@atlaskit/reactions 22.8.3 → 22.9.0
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 +27 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/Counter/styles.js +4 -4
- package/dist/cjs/components/FlashAnimation/styles.js +3 -3
- package/dist/cjs/components/Reaction/styles.js +6 -6
- package/dist/cjs/components/ReactionDialog/styles.js +7 -7
- package/dist/cjs/components/ReactionParticleEffect/styles.js +6 -3
- package/dist/cjs/components/ReactionPicker/styles.js +4 -4
- package/dist/cjs/components/ReactionSummary/ReactionSummaryButton.js +10 -1
- package/dist/cjs/components/ReactionSummary/ReactionSummaryView.js +2 -2
- package/dist/cjs/components/ReactionTooltip/styles.js +4 -4
- package/dist/cjs/components/Reactions/Reactions.js +4 -2
- package/dist/cjs/components/Reactions/styles.js +3 -3
- package/dist/cjs/components/Selector/styles.js +2 -2
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/Counter/styles.js +4 -4
- package/dist/es2019/components/FlashAnimation/styles.js +3 -3
- package/dist/es2019/components/Reaction/styles.js +6 -6
- package/dist/es2019/components/ReactionDialog/styles.js +7 -7
- package/dist/es2019/components/ReactionParticleEffect/styles.js +6 -3
- package/dist/es2019/components/ReactionPicker/styles.js +4 -4
- package/dist/es2019/components/ReactionSummary/ReactionSummaryButton.js +10 -1
- package/dist/es2019/components/ReactionSummary/ReactionSummaryView.js +1 -1
- package/dist/es2019/components/ReactionTooltip/styles.js +4 -4
- package/dist/es2019/components/Reactions/Reactions.js +4 -2
- package/dist/es2019/components/Reactions/styles.js +3 -3
- package/dist/es2019/components/Selector/styles.js +2 -2
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/Counter/styles.js +4 -4
- package/dist/esm/components/FlashAnimation/styles.js +3 -3
- package/dist/esm/components/Reaction/styles.js +6 -6
- package/dist/esm/components/ReactionDialog/styles.js +7 -7
- package/dist/esm/components/ReactionParticleEffect/styles.js +6 -3
- package/dist/esm/components/ReactionPicker/styles.js +4 -4
- package/dist/esm/components/ReactionSummary/ReactionSummaryButton.js +10 -1
- package/dist/esm/components/ReactionSummary/ReactionSummaryView.js +2 -2
- package/dist/esm/components/ReactionTooltip/styles.js +4 -4
- package/dist/esm/components/Reactions/Reactions.js +4 -2
- package/dist/esm/components/Reactions/styles.js +3 -3
- package/dist/esm/components/Selector/styles.js +2 -2
- package/dist/types/components/Reactions/Reactions.d.ts +6 -1
- package/dist/types-ts4.5/components/Reactions/Reactions.d.ts +6 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 22.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#120256](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/120256)
|
|
8
|
+
[`2cbfadca64339`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2cbfadca64339) -
|
|
9
|
+
Added ability to adjust placement of Summarized Reactions Pop-up. Made the Summarized Reactions
|
|
10
|
+
button toggleable
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 22.8.5
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#118651](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/118651)
|
|
21
|
+
[`cd0076681b737`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd0076681b737) -
|
|
22
|
+
hide floating reactions effect when user opts for reduced motion
|
|
23
|
+
|
|
24
|
+
## 22.8.4
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
|
|
3
30
|
## 22.8.3
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
|
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var packageName = "@atlaskit/reactions";
|
|
14
|
-
var packageVersion = "22.
|
|
14
|
+
var packageVersion = "22.9.0";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -9,7 +9,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
13
|
var countStyle = exports.countStyle = (0, _react.css)({
|
|
14
14
|
fontSize: 11,
|
|
15
15
|
color: "var(--ds-text-subtlest, ".concat(_colors.N90, ")"),
|
|
@@ -19,18 +19,18 @@ var countStyle = exports.countStyle = (0, _react.css)({
|
|
|
19
19
|
lineHeight: '14px'
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
23
23
|
var containerStyle = exports.containerStyle = (0, _react.css)({
|
|
24
24
|
display: 'flex',
|
|
25
25
|
flexDirection: 'column'
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
29
|
var highlightStyle = exports.highlightStyle = (0, _react.css)({
|
|
30
30
|
color: "var(--ds-text-selected, ".concat(_colors.B400, ")")
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
34
34
|
var counterLabelStyle = exports.counterLabelStyle = (0, _react.css)({
|
|
35
35
|
fontVariantNumeric: 'tabular-nums'
|
|
36
36
|
});
|
|
@@ -11,7 +11,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
11
11
|
|
|
12
12
|
var flashTime = 700;
|
|
13
13
|
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
15
15
|
var flashAnimation = exports.flashAnimation = (0, _react.keyframes)({
|
|
16
16
|
'0%': {
|
|
17
17
|
backgroundColor: 'transparent'
|
|
@@ -30,13 +30,13 @@ var flashAnimation = exports.flashAnimation = (0, _react.keyframes)({
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
34
34
|
var containerStyle = exports.containerStyle = (0, _react.css)({
|
|
35
35
|
width: '100%',
|
|
36
36
|
height: '100%'
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
40
40
|
var flashStyle = exports.flashStyle = (0, _react.css)({
|
|
41
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
42
42
|
animation: "".concat(flashAnimation, " ").concat(flashTime, "ms ease-in-out")
|
|
@@ -20,19 +20,19 @@ var akHeight = 24;
|
|
|
20
20
|
* of FlashAnimation b/c it otherwise throws off the flash styling
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
24
24
|
var containerStyle = exports.containerStyle = (0, _react.css)({
|
|
25
25
|
position: 'relative'
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
29
|
var emojiStyle = exports.emojiStyle = (0, _react.css)({
|
|
30
30
|
transformOrigin: 'center center 0',
|
|
31
31
|
lineHeight: '12px',
|
|
32
32
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-100, 8px)")
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
36
36
|
var reactionStyle = exports.reactionStyle = (0, _react.css)({
|
|
37
37
|
display: 'flex',
|
|
38
38
|
flexDirection: 'row',
|
|
@@ -61,7 +61,7 @@ var reactionStyle = exports.reactionStyle = (0, _react.css)({
|
|
|
61
61
|
overflow: 'hidden'
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
65
65
|
var reactedStyle = exports.reactedStyle = (0, _react.css)({
|
|
66
66
|
backgroundColor: "var(--ds-background-selected, ".concat(_colors.B50, ")"),
|
|
67
67
|
borderColor: "var(--ds-border-selected, ".concat(_colors.B300, ")"),
|
|
@@ -71,7 +71,7 @@ var reactedStyle = exports.reactedStyle = (0, _react.css)({
|
|
|
71
71
|
});
|
|
72
72
|
var flashHeight = exports.flashHeight = akHeight - 2; // height without the 1px border
|
|
73
73
|
|
|
74
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
75
75
|
var flashStyle = exports.flashStyle = (0, _react.css)({
|
|
76
76
|
display: 'flex',
|
|
77
77
|
flexDirection: 'row',
|
|
@@ -81,7 +81,7 @@ var flashStyle = exports.flashStyle = (0, _react.css)({
|
|
|
81
81
|
height: "".concat(flashHeight, "px")
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
85
85
|
var emojiNoReactionStyle = exports.emojiNoReactionStyle = (0, _react.css)({
|
|
86
86
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-025, 2px)", " ", "var(--ds-space-050, 4px)", " 10px")
|
|
87
87
|
});
|
|
@@ -45,7 +45,7 @@ var containerStyle = exports.containerStyle = function containerStyle(reactionsB
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
49
49
|
var titleStyle = exports.titleStyle = (0, _react.css)({
|
|
50
50
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
51
51
|
'& > h1': {
|
|
@@ -145,7 +145,7 @@ var customTabWrapper = exports.customTabWrapper = function customTabWrapper(isSe
|
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
147
|
|
|
148
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
149
149
|
var navigationContainerStyle = exports.navigationContainerStyle = (0, _react.css)({
|
|
150
150
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
151
151
|
'> button': {
|
|
@@ -157,7 +157,7 @@ var navigationContainerStyle = exports.navigationContainerStyle = (0, _react.css
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
|
|
160
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
160
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
161
161
|
var reactionViewStyle = exports.reactionViewStyle = (0, _react.css)({
|
|
162
162
|
marginTop: "var(--ds-space-300, 24px)",
|
|
163
163
|
display: 'flex',
|
|
@@ -177,7 +177,7 @@ var reactionViewStyle = exports.reactionViewStyle = (0, _react.css)({
|
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
180
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
181
181
|
var userListStyle = exports.userListStyle = (0, _react.css)({
|
|
182
182
|
listStyle: 'none',
|
|
183
183
|
marginTop: "var(--ds-space-200, 16px)",
|
|
@@ -190,7 +190,7 @@ var userListStyle = exports.userListStyle = (0, _react.css)({
|
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
|
|
193
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
193
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
194
194
|
var userStyle = exports.userStyle = (0, _react.css)({
|
|
195
195
|
display: 'flex',
|
|
196
196
|
alignItems: 'center',
|
|
@@ -201,7 +201,7 @@ var userStyle = exports.userStyle = (0, _react.css)({
|
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
203
|
|
|
204
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
204
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
205
205
|
var customTabListStyles = exports.customTabListStyles = (0, _react.css)({
|
|
206
206
|
overflow: 'auto',
|
|
207
207
|
scrollBehavior: 'smooth',
|
|
@@ -215,7 +215,7 @@ var customTabListStyles = exports.customTabListStyles = (0, _react.css)({
|
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
|
|
218
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
218
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
219
219
|
var centerSpinner = exports.centerSpinner = (0, _react.css)({
|
|
220
220
|
display: 'flex',
|
|
221
221
|
justifyContent: 'center',
|
|
@@ -31,15 +31,18 @@ var float = (0, _react.keyframes)({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
35
|
var containerStyle = exports.containerStyle = (0, _react.css)({
|
|
36
36
|
position: 'relative',
|
|
37
37
|
left: 8,
|
|
38
38
|
// Ensure the effect displays above tooltips
|
|
39
|
-
zIndex: _constants.layers.tooltip() + 1
|
|
39
|
+
zIndex: _constants.layers.tooltip() + 1,
|
|
40
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
41
|
+
opacity: 0
|
|
42
|
+
}
|
|
40
43
|
});
|
|
41
44
|
|
|
42
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
43
46
|
var reactionParticleStyle = exports.reactionParticleStyle = (0, _react.css)({
|
|
44
47
|
position: 'absolute',
|
|
45
48
|
top: 0,
|
|
@@ -10,7 +10,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
10
10
|
/** @jsx jsx */
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
14
|
var pickerStyle = exports.pickerStyle = (0, _react.css)({
|
|
15
15
|
verticalAlign: 'middle',
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -19,12 +19,12 @@ var pickerStyle = exports.pickerStyle = (0, _react.css)({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
23
23
|
var contentStyle = exports.contentStyle = (0, _react.css)({
|
|
24
24
|
display: 'flex'
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
28
|
var popupWrapperStyle = exports.popupWrapperStyle = (0, _react.css)({
|
|
29
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
30
30
|
':focus': {
|
|
@@ -32,7 +32,7 @@ var popupWrapperStyle = exports.popupWrapperStyle = (0, _react.css)({
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
36
36
|
var popupStyle = exports.popupStyle = (0, _react.css)({
|
|
37
37
|
background: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
38
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -69,7 +69,16 @@ var ReactionSummaryButton = exports.ReactionSummaryButton = /*#__PURE__*/(0, _re
|
|
|
69
69
|
}, /*#__PURE__*/_react.default.createElement(_Reaction.ReactionButton, {
|
|
70
70
|
onClick: onClick,
|
|
71
71
|
testId: RENDER_SUMMARY_BUTTON_TESTID,
|
|
72
|
-
ariaLabel: intl.formatMessage(_i18n.messages.summary)
|
|
72
|
+
ariaLabel: intl.formatMessage(_i18n.messages.summary),
|
|
73
|
+
additionalStyles: [(0, _primitives.xcss)({
|
|
74
|
+
backgroundColor: 'elevation.surface',
|
|
75
|
+
':hover': {
|
|
76
|
+
backgroundColor: 'elevation.surface.hovered'
|
|
77
|
+
},
|
|
78
|
+
':active': {
|
|
79
|
+
backgroundColor: 'elevation.surface.pressed'
|
|
80
|
+
}
|
|
81
|
+
})]
|
|
73
82
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
74
83
|
space: "space.050",
|
|
75
84
|
xcss: buttonStyle
|
|
@@ -47,8 +47,8 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
47
47
|
return setSummaryPopupOpen(false);
|
|
48
48
|
}, []);
|
|
49
49
|
var handleSummaryClick = (0, _react.useCallback)(function () {
|
|
50
|
-
return setSummaryPopupOpen(
|
|
51
|
-
}, []);
|
|
50
|
+
return setSummaryPopupOpen(!isSummaryPopupOpen);
|
|
51
|
+
}, [isSummaryPopupOpen]);
|
|
52
52
|
return /*#__PURE__*/_react.default.createElement(_popup.default, {
|
|
53
53
|
placement: placement,
|
|
54
54
|
content: function content() {
|
|
@@ -11,7 +11,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
11
11
|
|
|
12
12
|
var verticalMargin = exports.verticalMargin = 5;
|
|
13
13
|
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
15
15
|
var tooltipStyle = exports.tooltipStyle = (0, _react.css)({
|
|
16
16
|
maxWidth: '150px',
|
|
17
17
|
textOverflow: 'ellipsis',
|
|
@@ -33,20 +33,20 @@ var tooltipStyle = exports.tooltipStyle = (0, _react.css)({
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
37
37
|
var emojiNameStyle = exports.emojiNameStyle = (0, _react.css)({
|
|
38
38
|
textTransform: 'capitalize',
|
|
39
39
|
color: "var(--ds-text-inverse, ".concat(_colors.N90, ")"),
|
|
40
40
|
fontWeight: 600
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
44
|
var footerStyle = exports.footerStyle = (0, _react.css)({
|
|
45
45
|
color: "var(--ds-text-inverse, ".concat(_colors.N90, ")"),
|
|
46
46
|
fontWeight: 300
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
50
50
|
var underlineStyle = exports.underlineStyle = (0, _react.css)({
|
|
51
51
|
cursor: 'pointer',
|
|
52
52
|
textDecoration: 'underline',
|
|
@@ -118,7 +118,8 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
118
118
|
_ref$summaryViewEnabl = _ref.summaryViewEnabled,
|
|
119
119
|
summaryViewEnabled = _ref$summaryViewEnabl === void 0 ? false : _ref$summaryViewEnabl,
|
|
120
120
|
_ref$summaryViewThres = _ref.summaryViewThreshold,
|
|
121
|
-
summaryViewThreshold = _ref$summaryViewThres === void 0 ? 3 : _ref$summaryViewThres
|
|
121
|
+
summaryViewThreshold = _ref$summaryViewThres === void 0 ? 3 : _ref$summaryViewThres,
|
|
122
|
+
summaryViewPlacement = _ref.summaryViewPlacement;
|
|
122
123
|
var _useState = (0, _react.useState)(),
|
|
123
124
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
124
125
|
selectedEmojiId = _useState2[0],
|
|
@@ -288,7 +289,8 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
288
289
|
allowUserDialog: allowUserDialog,
|
|
289
290
|
onReactionClick: onReactionClick,
|
|
290
291
|
onReactionFocused: handleReactionFocused,
|
|
291
|
-
onReactionMouseEnter: handleReactionMouseEnter
|
|
292
|
+
onReactionMouseEnter: handleReactionMouseEnter,
|
|
293
|
+
placement: summaryViewPlacement
|
|
292
294
|
})) : memorizedReactions.map(function (reaction) {
|
|
293
295
|
return (0, _react2.jsx)(_Reaction.Reaction, {
|
|
294
296
|
key: reaction.emojiId,
|
|
@@ -8,13 +8,13 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
12
|
var reactionPickerStyle = exports.reactionPickerStyle = (0, _react.css)({
|
|
13
13
|
display: 'inline-block',
|
|
14
14
|
marginTop: "var(--ds-space-050, 4px)"
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
18
|
var seeWhoReactedStyle = exports.seeWhoReactedStyle = (0, _react.css)({
|
|
19
19
|
height: '24px',
|
|
20
20
|
lineHeight: '24px',
|
|
@@ -24,7 +24,7 @@ var seeWhoReactedStyle = exports.seeWhoReactedStyle = (0, _react.css)({
|
|
|
24
24
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
28
|
var wrapperStyle = exports.wrapperStyle = (0, _react.css)({
|
|
29
29
|
display: 'flex',
|
|
30
30
|
flexWrap: 'wrap',
|
|
@@ -8,7 +8,7 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
12
|
var revealAnimation = exports.revealAnimation = (0, _react.keyframes)({
|
|
13
13
|
'0%': {
|
|
14
14
|
opacity: 1,
|
|
@@ -23,7 +23,7 @@ var revealAnimation = exports.revealAnimation = (0, _react.keyframes)({
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
27
|
var revealStyle = exports.revealStyle = (0, _react.css)({
|
|
28
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
29
|
animation: "".concat(revealAnimation, " 150ms ease-in-out forwards"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
3
3
|
const packageName = "@atlaskit/reactions";
|
|
4
|
-
const packageVersion = "22.
|
|
4
|
+
const packageVersion = "22.9.0";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { N90, B400 } from '@atlaskit/theme/colors';
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
6
|
export const countStyle = css({
|
|
7
7
|
fontSize: 11,
|
|
8
8
|
color: `var(--ds-text-subtlest, ${N90})`,
|
|
@@ -12,18 +12,18 @@ export const countStyle = css({
|
|
|
12
12
|
lineHeight: '14px'
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
16
16
|
export const containerStyle = css({
|
|
17
17
|
display: 'flex',
|
|
18
18
|
flexDirection: 'column'
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
22
22
|
export const highlightStyle = css({
|
|
23
23
|
color: `var(--ds-text-selected, ${B400})`
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
27
|
export const counterLabelStyle = css({
|
|
28
28
|
fontVariantNumeric: 'tabular-nums'
|
|
29
29
|
});
|
|
@@ -4,7 +4,7 @@ import { css, keyframes } from '@emotion/react';
|
|
|
4
4
|
import { B75, B300 } from '@atlaskit/theme/colors';
|
|
5
5
|
const flashTime = 700;
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
8
|
export const flashAnimation = keyframes({
|
|
9
9
|
'0%': {
|
|
10
10
|
backgroundColor: 'transparent'
|
|
@@ -23,13 +23,13 @@ export const flashAnimation = keyframes({
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
27
|
export const containerStyle = css({
|
|
28
28
|
width: '100%',
|
|
29
29
|
height: '100%'
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
33
33
|
export const flashStyle = css({
|
|
34
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
35
|
animation: `${flashAnimation} ${flashTime}ms ease-in-out`
|
|
@@ -13,19 +13,19 @@ const akHeight = 24;
|
|
|
13
13
|
* of FlashAnimation b/c it otherwise throws off the flash styling
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
17
17
|
export const containerStyle = css({
|
|
18
18
|
position: 'relative'
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
22
22
|
export const emojiStyle = css({
|
|
23
23
|
transformOrigin: 'center center 0',
|
|
24
24
|
lineHeight: '12px',
|
|
25
25
|
padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"}`
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
29
|
export const reactionStyle = css({
|
|
30
30
|
display: 'flex',
|
|
31
31
|
flexDirection: 'row',
|
|
@@ -54,7 +54,7 @@ export const reactionStyle = css({
|
|
|
54
54
|
overflow: 'hidden'
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
58
58
|
export const reactedStyle = css({
|
|
59
59
|
backgroundColor: `var(--ds-background-selected, ${B50})`,
|
|
60
60
|
borderColor: `var(--ds-border-selected, ${B300})`,
|
|
@@ -64,7 +64,7 @@ export const reactedStyle = css({
|
|
|
64
64
|
});
|
|
65
65
|
export const flashHeight = akHeight - 2; // height without the 1px border
|
|
66
66
|
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
68
68
|
export const flashStyle = css({
|
|
69
69
|
display: 'flex',
|
|
70
70
|
flexDirection: 'row',
|
|
@@ -74,7 +74,7 @@ export const flashStyle = css({
|
|
|
74
74
|
height: `${flashHeight}px`
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
78
78
|
export const emojiNoReactionStyle = css({
|
|
79
79
|
padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-025, 2px)"} ${"var(--ds-space-050, 4px)"} 10px`
|
|
80
80
|
});
|
|
@@ -36,7 +36,7 @@ export const containerStyle = reactionsBorderWidth => css({
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
40
40
|
export const titleStyle = css({
|
|
41
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
42
42
|
'& > h1': {
|
|
@@ -130,7 +130,7 @@ export const customTabWrapper = (isSelected, selectedEmojiId, theme) => css({
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
|
|
133
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
133
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
134
134
|
export const navigationContainerStyle = css({
|
|
135
135
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
136
136
|
'> button': {
|
|
@@ -142,7 +142,7 @@ export const navigationContainerStyle = css({
|
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
|
|
145
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
145
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
146
146
|
export const reactionViewStyle = css({
|
|
147
147
|
marginTop: "var(--ds-space-300, 24px)",
|
|
148
148
|
display: 'flex',
|
|
@@ -162,7 +162,7 @@ export const reactionViewStyle = css({
|
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
|
|
165
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
165
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
166
166
|
export const userListStyle = css({
|
|
167
167
|
listStyle: 'none',
|
|
168
168
|
marginTop: "var(--ds-space-200, 16px)",
|
|
@@ -175,7 +175,7 @@ export const userListStyle = css({
|
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
177
|
|
|
178
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
178
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
179
179
|
export const userStyle = css({
|
|
180
180
|
display: 'flex',
|
|
181
181
|
alignItems: 'center',
|
|
@@ -186,7 +186,7 @@ export const userStyle = css({
|
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
188
|
|
|
189
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
189
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
190
190
|
export const customTabListStyles = css({
|
|
191
191
|
overflow: 'auto',
|
|
192
192
|
scrollBehavior: 'smooth',
|
|
@@ -200,7 +200,7 @@ export const customTabListStyles = css({
|
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
|
|
203
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
203
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
204
204
|
export const centerSpinner = css({
|
|
205
205
|
display: 'flex',
|
|
206
206
|
justifyContent: 'center',
|
|
@@ -25,15 +25,18 @@ const float = keyframes({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
29
|
export const containerStyle = css({
|
|
30
30
|
position: 'relative',
|
|
31
31
|
left: 8,
|
|
32
32
|
// Ensure the effect displays above tooltips
|
|
33
|
-
zIndex: layers.tooltip() + 1
|
|
33
|
+
zIndex: layers.tooltip() + 1,
|
|
34
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
35
|
+
opacity: 0
|
|
36
|
+
}
|
|
34
37
|
});
|
|
35
38
|
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
37
40
|
export const reactionParticleStyle = css({
|
|
38
41
|
position: 'absolute',
|
|
39
42
|
top: 0,
|