@atlaskit/reactions 36.3.35 → 36.4.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 +17 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/Reaction.js +3 -1
- package/dist/cjs/components/ReactionSummaryView.js +3 -1
- package/dist/cjs/components/ReactionTooltip.compiled.css +1 -0
- package/dist/cjs/components/ReactionTooltip.js +5 -2
- package/dist/cjs/components/Reactions.js +3 -0
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/Reaction.js +3 -1
- package/dist/es2019/components/ReactionSummaryView.js +3 -1
- package/dist/es2019/components/ReactionTooltip.compiled.css +1 -0
- package/dist/es2019/components/ReactionTooltip.js +4 -2
- package/dist/es2019/components/Reactions.js +3 -0
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/Reaction.js +3 -1
- package/dist/esm/components/ReactionSummaryView.js +3 -1
- package/dist/esm/components/ReactionTooltip.compiled.css +1 -0
- package/dist/esm/components/ReactionTooltip.js +5 -2
- package/dist/esm/components/Reactions.js +3 -0
- package/dist/types/components/Reaction.d.ts +2 -1
- package/dist/types/components/ReactionSummaryView.d.ts +2 -2
- package/dist/types/components/ReactionTooltip.d.ts +2 -1
- package/dist/types/components/Reactions.d.ts +2 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 36.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`8913b07c9f7a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8913b07c9f7a0) -
|
|
8
|
+
Add a wider reaction tooltip for agentic_reactions_master_gate
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 36.3.36
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 36.3.35
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _createAndFireEvents = _interopRequireDefault(require("@atlaskit/analytics-n
|
|
|
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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
13
13
|
var packageName = "@atlaskit/reactions";
|
|
14
|
-
var packageVersion = "36.3.
|
|
14
|
+
var packageVersion = "36.3.36";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -65,7 +65,8 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
|
|
|
65
65
|
isViewOnly = _ref$isViewOnly === void 0 ? false : _ref$isViewOnly,
|
|
66
66
|
showSubtleStyle = _ref.showSubtleStyle,
|
|
67
67
|
optimisticImageURL = _ref.optimisticImageURL,
|
|
68
|
-
rootElement = _ref.rootElement
|
|
68
|
+
rootElement = _ref.rootElement,
|
|
69
|
+
wideTooltip = _ref.wideTooltip;
|
|
69
70
|
var intl = (0, _reactIntl.useIntl)();
|
|
70
71
|
var hoverStart = (0, _react.useRef)();
|
|
71
72
|
var focusStart = (0, _react.useRef)();
|
|
@@ -169,6 +170,7 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
|
|
|
169
170
|
emojiProvider: emojiProvider,
|
|
170
171
|
optimisticImageURL: optimisticImageURL
|
|
171
172
|
}), /*#__PURE__*/React.createElement(_ReactionTooltip.ReactionTooltip, {
|
|
173
|
+
wideTooltip: wideTooltip,
|
|
172
174
|
emojiName: emojiName,
|
|
173
175
|
reaction: reaction,
|
|
174
176
|
isEnabled: isTooltipEnabled,
|
|
@@ -68,7 +68,8 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
68
68
|
hoverableSummaryViewDelay = _ref$hoverableSummary2 === void 0 ? 300 : _ref$hoverableSummary2,
|
|
69
69
|
summaryGetOptimisticImageURL = _ref.summaryGetOptimisticImageURL,
|
|
70
70
|
summaryButtonIconAfter = _ref.summaryButtonIconAfter,
|
|
71
|
-
summaryViewParticleEffectEmojiId = _ref.summaryViewParticleEffectEmojiId
|
|
71
|
+
summaryViewParticleEffectEmojiId = _ref.summaryViewParticleEffectEmojiId,
|
|
72
|
+
wideReactionTooltip = _ref.wideReactionTooltip;
|
|
72
73
|
var _useDelayedState = (0, _useDelayedState3.useDelayedState)(false, hoverableSummaryViewDelay),
|
|
73
74
|
_useDelayedState2 = (0, _slicedToArray2.default)(_useDelayedState, 2),
|
|
74
75
|
isSummaryPopupOpen = _useDelayedState2[0],
|
|
@@ -222,6 +223,7 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
222
223
|
alignBlock: "center"
|
|
223
224
|
}, reactions.map(function (reaction) {
|
|
224
225
|
return /*#__PURE__*/React.createElement(_Reaction.Reaction, {
|
|
226
|
+
wideTooltip: wideReactionTooltip,
|
|
225
227
|
key: reaction.emojiId,
|
|
226
228
|
rootElement: "li",
|
|
227
229
|
reaction: reaction,
|
|
@@ -17,6 +17,7 @@ var _constants = require("../shared/constants");
|
|
|
17
17
|
var _i18n = require("../shared/i18n");
|
|
18
18
|
var verticalMargin = exports.verticalMargin = 5;
|
|
19
19
|
var tooltipStyle = null;
|
|
20
|
+
var wideTooltipStyle = null;
|
|
20
21
|
var emojiNameStyle = null;
|
|
21
22
|
var footerStyle = null;
|
|
22
23
|
var underlineStyle = null;
|
|
@@ -40,7 +41,9 @@ var ReactionTooltip = exports.ReactionTooltip = function ReactionTooltip(_ref) {
|
|
|
40
41
|
isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled,
|
|
41
42
|
allowUserDialog = _ref.allowUserDialog,
|
|
42
43
|
handleOpenReactionsDialog = _ref.handleOpenReactionsDialog,
|
|
43
|
-
dismissTooltip = _ref.dismissTooltip
|
|
44
|
+
dismissTooltip = _ref.dismissTooltip,
|
|
45
|
+
_ref$wideTooltip = _ref.wideTooltip,
|
|
46
|
+
wideTooltip = _ref$wideTooltip === void 0 ? false : _ref$wideTooltip;
|
|
44
47
|
var handleClick = function handleClick() {
|
|
45
48
|
if (allowUserDialog && handleOpenReactionsDialog) {
|
|
46
49
|
dismissTooltip();
|
|
@@ -49,7 +52,7 @@ var ReactionTooltip = exports.ReactionTooltip = function ReactionTooltip(_ref) {
|
|
|
49
52
|
};
|
|
50
53
|
var content = !users || users.length === 0 || !isEnabled ? null : /*#__PURE__*/_react.default.createElement("div", {
|
|
51
54
|
tabIndex: (0, _fg.fg)('platform_suppression_removal_fix_reactions') ? undefined : 0,
|
|
52
|
-
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _p12f1w81 _1bto1l2s _o5721q9c _otyr14y2 _d1n8glyw _102oidpf _1kvxidpf _1ysjidpf _17d4idpf _1hziidpf _3n4midpf _ltofidpf _k7zyidpf _1ywo1e5h _1pru15vq _u0h115vq _5qec1l2s _1eg614y2"])
|
|
55
|
+
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _p12f1w81 _1bto1l2s _o5721q9c _otyr14y2 _d1n8glyw _102oidpf _1kvxidpf _1ysjidpf _17d4idpf _1hziidpf _3n4midpf _ltofidpf _k7zyidpf _1ywo1e5h _1pru15vq _u0h115vq _5qec1l2s _1eg614y2", wideTooltip && "_p12fnklw"])
|
|
53
56
|
}, /*#__PURE__*/_react.default.createElement("ul", null, emojiName ? /*#__PURE__*/_react.default.createElement("li", {
|
|
54
57
|
className: (0, _runtime.ax)(["_1p1d1dk0 _syaz15cr _k48p1pd9"])
|
|
55
58
|
}, emojiName) : null, users.slice(0, maxReactions).map(function (user) {
|
|
@@ -129,6 +129,7 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
129
129
|
_ref$hideDefaultReact = _ref.hideDefaultReactions,
|
|
130
130
|
hideDefaultReactions = _ref$hideDefaultReact === void 0 ? false : _ref$hideDefaultReact,
|
|
131
131
|
ProfileCardWrapper = _ref.ProfileCardWrapper,
|
|
132
|
+
wideReactionTooltip = _ref.wideReactionTooltip,
|
|
132
133
|
_ref$onlyRenderPicker = _ref.onlyRenderPicker,
|
|
133
134
|
onlyRenderPicker = _ref$onlyRenderPicker === void 0 ? false : _ref$onlyRenderPicker,
|
|
134
135
|
_ref$isViewOnly = _ref.isViewOnly,
|
|
@@ -339,6 +340,7 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
339
340
|
};
|
|
340
341
|
var renderReactionItem = function renderReactionItem(reaction, rootElement) {
|
|
341
342
|
return /*#__PURE__*/_react.default.createElement(_Reaction.Reaction, {
|
|
343
|
+
wideTooltip: wideReactionTooltip,
|
|
342
344
|
key: reaction.emojiId,
|
|
343
345
|
rootElement: rootElement,
|
|
344
346
|
reaction: reaction,
|
|
@@ -388,6 +390,7 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
388
390
|
onReactionMouseEnter: handleReactionMouseEnter,
|
|
389
391
|
placement: summaryViewPlacement,
|
|
390
392
|
showOpaqueBackground: showOpaqueBackground,
|
|
393
|
+
wideReactionTooltip: wideReactionTooltip,
|
|
391
394
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
392
395
|
handleOpenReactionsDialog: function handleOpenReactionsDialog() {
|
|
393
396
|
return _handleOpenReactionsDialog({
|
|
@@ -2,7 +2,7 @@ import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-t
|
|
|
2
2
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
3
3
|
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
4
4
|
const packageName = "@atlaskit/reactions";
|
|
5
|
-
const packageVersion = "36.3.
|
|
5
|
+
const packageVersion = "36.3.36";
|
|
6
6
|
/**
|
|
7
7
|
* TODO: move to utility package?
|
|
8
8
|
* A random sampling function
|
|
@@ -47,7 +47,8 @@ export const Reaction = ({
|
|
|
47
47
|
isViewOnly = false,
|
|
48
48
|
showSubtleStyle,
|
|
49
49
|
optimisticImageURL,
|
|
50
|
-
rootElement
|
|
50
|
+
rootElement,
|
|
51
|
+
wideTooltip
|
|
51
52
|
}) => {
|
|
52
53
|
const intl = useIntl();
|
|
53
54
|
const hoverStart = useRef();
|
|
@@ -136,6 +137,7 @@ export const Reaction = ({
|
|
|
136
137
|
emojiProvider: emojiProvider,
|
|
137
138
|
optimisticImageURL: optimisticImageURL
|
|
138
139
|
}), /*#__PURE__*/React.createElement(ReactionTooltip, {
|
|
140
|
+
wideTooltip: wideTooltip,
|
|
139
141
|
emojiName: emojiName,
|
|
140
142
|
reaction: reaction,
|
|
141
143
|
isEnabled: isTooltipEnabled,
|
|
@@ -49,7 +49,8 @@ export const ReactionSummaryView = ({
|
|
|
49
49
|
hoverableSummaryViewDelay = 300,
|
|
50
50
|
summaryGetOptimisticImageURL,
|
|
51
51
|
summaryButtonIconAfter,
|
|
52
|
-
summaryViewParticleEffectEmojiId
|
|
52
|
+
summaryViewParticleEffectEmojiId,
|
|
53
|
+
wideReactionTooltip
|
|
53
54
|
}) => {
|
|
54
55
|
const [isSummaryPopupOpen, setSummaryPopupOpen] = useDelayedState(false, hoverableSummaryViewDelay);
|
|
55
56
|
const [isHoveringSummaryView, setIsHoveringSummaryView] = useState(false);
|
|
@@ -189,6 +190,7 @@ export const ReactionSummaryView = ({
|
|
|
189
190
|
alignBlock: "center"
|
|
190
191
|
}, reactions.map(reaction => {
|
|
191
192
|
return /*#__PURE__*/React.createElement(Reaction, {
|
|
193
|
+
wideTooltip: wideReactionTooltip,
|
|
192
194
|
key: reaction.emojiId,
|
|
193
195
|
rootElement: "li",
|
|
194
196
|
reaction: reaction,
|
|
@@ -10,6 +10,7 @@ import { TOOLTIP_USERS_LIMIT } from '../shared/constants';
|
|
|
10
10
|
import { messages } from '../shared/i18n';
|
|
11
11
|
export const verticalMargin = 5;
|
|
12
12
|
const tooltipStyle = null;
|
|
13
|
+
const wideTooltipStyle = null;
|
|
13
14
|
const emojiNameStyle = null;
|
|
14
15
|
const footerStyle = null;
|
|
15
16
|
const underlineStyle = null;
|
|
@@ -32,7 +33,8 @@ export const ReactionTooltip = ({
|
|
|
32
33
|
isEnabled = true,
|
|
33
34
|
allowUserDialog,
|
|
34
35
|
handleOpenReactionsDialog,
|
|
35
|
-
dismissTooltip
|
|
36
|
+
dismissTooltip,
|
|
37
|
+
wideTooltip = false
|
|
36
38
|
}) => {
|
|
37
39
|
const handleClick = () => {
|
|
38
40
|
if (allowUserDialog && handleOpenReactionsDialog) {
|
|
@@ -42,7 +44,7 @@ export const ReactionTooltip = ({
|
|
|
42
44
|
};
|
|
43
45
|
const content = !users || users.length === 0 || !isEnabled ? null : /*#__PURE__*/React.createElement("div", {
|
|
44
46
|
tabIndex: fg('platform_suppression_removal_fix_reactions') ? undefined : 0,
|
|
45
|
-
className: ax(["_1reo15vq _18m915vq _p12f1w81 _1bto1l2s _o5721q9c _otyr14y2 _d1n8glyw _102oidpf _1kvxidpf _1ysjidpf _17d4idpf _1hziidpf _3n4midpf _ltofidpf _k7zyidpf _1ywo1e5h _1pru15vq _u0h115vq _5qec1l2s _1eg614y2"])
|
|
47
|
+
className: ax(["_1reo15vq _18m915vq _p12f1w81 _1bto1l2s _o5721q9c _otyr14y2 _d1n8glyw _102oidpf _1kvxidpf _1ysjidpf _17d4idpf _1hziidpf _3n4midpf _ltofidpf _k7zyidpf _1ywo1e5h _1pru15vq _u0h115vq _5qec1l2s _1eg614y2", wideTooltip && "_p12fnklw"])
|
|
46
48
|
}, /*#__PURE__*/React.createElement("ul", null, emojiName ? /*#__PURE__*/React.createElement("li", {
|
|
47
49
|
className: ax(["_1p1d1dk0 _syaz15cr _k48p1pd9"])
|
|
48
50
|
}, emojiName) : null, users.slice(0, maxReactions).map(user => {
|
|
@@ -100,6 +100,7 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
100
100
|
showAddReactionText = false,
|
|
101
101
|
hideDefaultReactions = false,
|
|
102
102
|
ProfileCardWrapper,
|
|
103
|
+
wideReactionTooltip,
|
|
103
104
|
onlyRenderPicker = false,
|
|
104
105
|
isViewOnly = false,
|
|
105
106
|
noWrap = false,
|
|
@@ -284,6 +285,7 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
284
285
|
});
|
|
285
286
|
};
|
|
286
287
|
const renderReactionItem = (reaction, rootElement) => /*#__PURE__*/React.createElement(Reaction, {
|
|
288
|
+
wideTooltip: wideReactionTooltip,
|
|
287
289
|
key: reaction.emojiId,
|
|
288
290
|
rootElement: rootElement,
|
|
289
291
|
reaction: reaction,
|
|
@@ -328,6 +330,7 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
328
330
|
onReactionMouseEnter: handleReactionMouseEnter,
|
|
329
331
|
placement: summaryViewPlacement,
|
|
330
332
|
showOpaqueBackground: showOpaqueBackground,
|
|
333
|
+
wideReactionTooltip: wideReactionTooltip,
|
|
331
334
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
332
335
|
handleOpenReactionsDialog: () => handleOpenReactionsDialog({
|
|
333
336
|
source: 'summaryView'
|
|
@@ -5,7 +5,7 @@ import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-t
|
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
6
6
|
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
7
7
|
var packageName = "@atlaskit/reactions";
|
|
8
|
-
var packageVersion = "36.3.
|
|
8
|
+
var packageVersion = "36.3.36";
|
|
9
9
|
/**
|
|
10
10
|
* TODO: move to utility package?
|
|
11
11
|
* A random sampling function
|
|
@@ -56,7 +56,8 @@ export var Reaction = function Reaction(_ref) {
|
|
|
56
56
|
isViewOnly = _ref$isViewOnly === void 0 ? false : _ref$isViewOnly,
|
|
57
57
|
showSubtleStyle = _ref.showSubtleStyle,
|
|
58
58
|
optimisticImageURL = _ref.optimisticImageURL,
|
|
59
|
-
rootElement = _ref.rootElement
|
|
59
|
+
rootElement = _ref.rootElement,
|
|
60
|
+
wideTooltip = _ref.wideTooltip;
|
|
60
61
|
var intl = useIntl();
|
|
61
62
|
var hoverStart = useRef();
|
|
62
63
|
var focusStart = useRef();
|
|
@@ -160,6 +161,7 @@ export var Reaction = function Reaction(_ref) {
|
|
|
160
161
|
emojiProvider: emojiProvider,
|
|
161
162
|
optimisticImageURL: optimisticImageURL
|
|
162
163
|
}), /*#__PURE__*/React.createElement(ReactionTooltip, {
|
|
164
|
+
wideTooltip: wideTooltip,
|
|
163
165
|
emojiName: emojiName,
|
|
164
166
|
reaction: reaction,
|
|
165
167
|
isEnabled: isTooltipEnabled,
|
|
@@ -59,7 +59,8 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
|
|
|
59
59
|
hoverableSummaryViewDelay = _ref$hoverableSummary2 === void 0 ? 300 : _ref$hoverableSummary2,
|
|
60
60
|
summaryGetOptimisticImageURL = _ref.summaryGetOptimisticImageURL,
|
|
61
61
|
summaryButtonIconAfter = _ref.summaryButtonIconAfter,
|
|
62
|
-
summaryViewParticleEffectEmojiId = _ref.summaryViewParticleEffectEmojiId
|
|
62
|
+
summaryViewParticleEffectEmojiId = _ref.summaryViewParticleEffectEmojiId,
|
|
63
|
+
wideReactionTooltip = _ref.wideReactionTooltip;
|
|
63
64
|
var _useDelayedState = useDelayedState(false, hoverableSummaryViewDelay),
|
|
64
65
|
_useDelayedState2 = _slicedToArray(_useDelayedState, 2),
|
|
65
66
|
isSummaryPopupOpen = _useDelayedState2[0],
|
|
@@ -213,6 +214,7 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
|
|
|
213
214
|
alignBlock: "center"
|
|
214
215
|
}, reactions.map(function (reaction) {
|
|
215
216
|
return /*#__PURE__*/React.createElement(Reaction, {
|
|
217
|
+
wideTooltip: wideReactionTooltip,
|
|
216
218
|
key: reaction.emojiId,
|
|
217
219
|
rootElement: "li",
|
|
218
220
|
reaction: reaction,
|
|
@@ -10,6 +10,7 @@ import { TOOLTIP_USERS_LIMIT } from '../shared/constants';
|
|
|
10
10
|
import { messages } from '../shared/i18n';
|
|
11
11
|
export var verticalMargin = 5;
|
|
12
12
|
var tooltipStyle = null;
|
|
13
|
+
var wideTooltipStyle = null;
|
|
13
14
|
var emojiNameStyle = null;
|
|
14
15
|
var footerStyle = null;
|
|
15
16
|
var underlineStyle = null;
|
|
@@ -33,7 +34,9 @@ export var ReactionTooltip = function ReactionTooltip(_ref) {
|
|
|
33
34
|
isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled,
|
|
34
35
|
allowUserDialog = _ref.allowUserDialog,
|
|
35
36
|
handleOpenReactionsDialog = _ref.handleOpenReactionsDialog,
|
|
36
|
-
dismissTooltip = _ref.dismissTooltip
|
|
37
|
+
dismissTooltip = _ref.dismissTooltip,
|
|
38
|
+
_ref$wideTooltip = _ref.wideTooltip,
|
|
39
|
+
wideTooltip = _ref$wideTooltip === void 0 ? false : _ref$wideTooltip;
|
|
37
40
|
var handleClick = function handleClick() {
|
|
38
41
|
if (allowUserDialog && handleOpenReactionsDialog) {
|
|
39
42
|
dismissTooltip();
|
|
@@ -42,7 +45,7 @@ export var ReactionTooltip = function ReactionTooltip(_ref) {
|
|
|
42
45
|
};
|
|
43
46
|
var content = !users || users.length === 0 || !isEnabled ? null : /*#__PURE__*/React.createElement("div", {
|
|
44
47
|
tabIndex: fg('platform_suppression_removal_fix_reactions') ? undefined : 0,
|
|
45
|
-
className: ax(["_1reo15vq _18m915vq _p12f1w81 _1bto1l2s _o5721q9c _otyr14y2 _d1n8glyw _102oidpf _1kvxidpf _1ysjidpf _17d4idpf _1hziidpf _3n4midpf _ltofidpf _k7zyidpf _1ywo1e5h _1pru15vq _u0h115vq _5qec1l2s _1eg614y2"])
|
|
48
|
+
className: ax(["_1reo15vq _18m915vq _p12f1w81 _1bto1l2s _o5721q9c _otyr14y2 _d1n8glyw _102oidpf _1kvxidpf _1ysjidpf _17d4idpf _1hziidpf _3n4midpf _ltofidpf _k7zyidpf _1ywo1e5h _1pru15vq _u0h115vq _5qec1l2s _1eg614y2", wideTooltip && "_p12fnklw"])
|
|
46
49
|
}, /*#__PURE__*/React.createElement("ul", null, emojiName ? /*#__PURE__*/React.createElement("li", {
|
|
47
50
|
className: ax(["_1p1d1dk0 _syaz15cr _k48p1pd9"])
|
|
48
51
|
}, emojiName) : null, users.slice(0, maxReactions).map(function (user) {
|
|
@@ -118,6 +118,7 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
118
118
|
_ref$hideDefaultReact = _ref.hideDefaultReactions,
|
|
119
119
|
hideDefaultReactions = _ref$hideDefaultReact === void 0 ? false : _ref$hideDefaultReact,
|
|
120
120
|
ProfileCardWrapper = _ref.ProfileCardWrapper,
|
|
121
|
+
wideReactionTooltip = _ref.wideReactionTooltip,
|
|
121
122
|
_ref$onlyRenderPicker = _ref.onlyRenderPicker,
|
|
122
123
|
onlyRenderPicker = _ref$onlyRenderPicker === void 0 ? false : _ref$onlyRenderPicker,
|
|
123
124
|
_ref$isViewOnly = _ref.isViewOnly,
|
|
@@ -328,6 +329,7 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
328
329
|
};
|
|
329
330
|
var renderReactionItem = function renderReactionItem(reaction, rootElement) {
|
|
330
331
|
return /*#__PURE__*/React.createElement(Reaction, {
|
|
332
|
+
wideTooltip: wideReactionTooltip,
|
|
331
333
|
key: reaction.emojiId,
|
|
332
334
|
rootElement: rootElement,
|
|
333
335
|
reaction: reaction,
|
|
@@ -377,6 +379,7 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
377
379
|
onReactionMouseEnter: handleReactionMouseEnter,
|
|
378
380
|
placement: summaryViewPlacement,
|
|
379
381
|
showOpaqueBackground: showOpaqueBackground,
|
|
382
|
+
wideReactionTooltip: wideReactionTooltip,
|
|
380
383
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
381
384
|
handleOpenReactionsDialog: function handleOpenReactionsDialog() {
|
|
382
385
|
return _handleOpenReactionsDialog({
|
|
@@ -64,8 +64,9 @@ export interface ReactionProps {
|
|
|
64
64
|
* Optional prop for controlling if the reaction displayed is a default one and should not have a border
|
|
65
65
|
*/
|
|
66
66
|
showSubtleStyle?: boolean;
|
|
67
|
+
wideTooltip?: boolean;
|
|
67
68
|
}
|
|
68
69
|
/**
|
|
69
70
|
* Render an emoji reaction button
|
|
70
71
|
*/
|
|
71
|
-
export declare const Reaction: ({ emojiProvider, onClick, reaction, onMouseEnter, onFocused, flash, showParticleEffect, showOpaqueBackground, allowUserDialog, handleOpenReactionsDialog, isViewOnly, showSubtleStyle, optimisticImageURL, rootElement, }: ReactionProps) => JSX.Element;
|
|
72
|
+
export declare const Reaction: ({ emojiProvider, onClick, reaction, onMouseEnter, onFocused, flash, showParticleEffect, showOpaqueBackground, allowUserDialog, handleOpenReactionsDialog, isViewOnly, showSubtleStyle, optimisticImageURL, rootElement, wideTooltip, }: ReactionProps) => JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { type TriggerProps } from './Trigger';
|
|
|
6
6
|
* Test id for the Reactions summary view popup
|
|
7
7
|
*/
|
|
8
8
|
export declare const RENDER_SUMMARY_VIEW_POPUP_TESTID = "render-summary-view-popup";
|
|
9
|
-
interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'flash' | 'particleEffectByEmoji' | 'allowUserDialog' | 'allowSelectFromSummaryView' | 'contentId' | 'emojiPickerSize' | 'useButtonAlignmentStyling' | 'reactionPickerTriggerText'>, Pick<TriggerProps, 'tooltipContent' | 'reactionPickerTriggerIcon' | 'disabled'> {
|
|
9
|
+
interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'flash' | 'particleEffectByEmoji' | 'allowUserDialog' | 'allowSelectFromSummaryView' | 'contentId' | 'emojiPickerSize' | 'useButtonAlignmentStyling' | 'reactionPickerTriggerText' | 'wideReactionTooltip'>, Pick<TriggerProps, 'tooltipContent' | 'reactionPickerTriggerIcon' | 'disabled'> {
|
|
10
10
|
/**
|
|
11
11
|
* Optional prop for enabling the Reactions Dialog
|
|
12
12
|
*/
|
|
@@ -77,5 +77,5 @@ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider'
|
|
|
77
77
|
shortName: string;
|
|
78
78
|
} | null;
|
|
79
79
|
}
|
|
80
|
-
export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, allowUserDialog, handleOpenReactionsDialog, isViewOnly, allowSelectFromSummaryView, contentId, disabled, emojiPickerSize, onSelection, tooltipContent, reactionPickerTriggerIcon, onOpen, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, hoverableSummaryViewDelay, summaryGetOptimisticImageURL, summaryButtonIconAfter, summaryViewParticleEffectEmojiId, }: ReactionSummaryViewProps) => JSX.Element;
|
|
80
|
+
export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, allowUserDialog, handleOpenReactionsDialog, isViewOnly, allowSelectFromSummaryView, contentId, disabled, emojiPickerSize, onSelection, tooltipContent, reactionPickerTriggerIcon, onOpen, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, hoverableSummaryViewDelay, summaryGetOptimisticImageURL, summaryButtonIconAfter, summaryViewParticleEffectEmojiId, wideReactionTooltip, }: ReactionSummaryViewProps) => JSX.Element;
|
|
81
81
|
export {};
|
|
@@ -39,5 +39,6 @@ export type ReactionTooltipProps = PropsWithChildren<{
|
|
|
39
39
|
* Info on the emoji reaction to render
|
|
40
40
|
*/
|
|
41
41
|
reaction: ReactionSummary;
|
|
42
|
+
wideTooltip?: boolean;
|
|
42
43
|
}>;
|
|
43
|
-
export declare const ReactionTooltip: ({ children, emojiName, reaction: { users }, maxReactions, isEnabled, allowUserDialog, handleOpenReactionsDialog, dismissTooltip, }: ReactionTooltipProps) => JSX.Element;
|
|
44
|
+
export declare const ReactionTooltip: ({ children, emojiName, reaction: { users }, maxReactions, isEnabled, allowUserDialog, handleOpenReactionsDialog, dismissTooltip, wideTooltip, }: ReactionTooltipProps) => JSX.Element;
|
|
@@ -191,6 +191,7 @@ export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmoji
|
|
|
191
191
|
* Optional prop to change the style of the summary view
|
|
192
192
|
*/
|
|
193
193
|
useButtonAlignmentStyling?: boolean;
|
|
194
|
+
wideReactionTooltip?: boolean;
|
|
194
195
|
}
|
|
195
196
|
export interface OpenReactionsDialogOptions {
|
|
196
197
|
emojiId?: string;
|
|
@@ -203,4 +204,4 @@ export declare function getTooltip(status: ReactionStatus, errorMessage?: string
|
|
|
203
204
|
/**
|
|
204
205
|
* Renders list of reactions
|
|
205
206
|
*/
|
|
206
|
-
export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, contentId, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, isViewOnly, noWrap, noRelativeContainer, showSubtleDefaultReactions, reactionPickerTriggerTooltipContent, reactionPickerTriggerIcon, allowSelectFromSummaryView, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, isListItem, summaryGetOptimisticImageURL, getOptimisticImageURL, reactionPickerPlacement, summaryButtonIconAfter, renderParticleEffectOnSummaryView, reactionPickerPopperZIndex, }: ReactionsProps) => JSX.Element>;
|
|
207
|
+
export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, contentId, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, wideReactionTooltip, onlyRenderPicker, isViewOnly, noWrap, noRelativeContainer, showSubtleDefaultReactions, reactionPickerTriggerTooltipContent, reactionPickerTriggerIcon, allowSelectFromSummaryView, useButtonAlignmentStyling, reactionPickerTriggerText, hoverableSummaryView, isListItem, summaryGetOptimisticImageURL, getOptimisticImageURL, reactionPickerPlacement, summaryButtonIconAfter, renderParticleEffectOnSummaryView, reactionPickerPopperZIndex, }: ReactionsProps) => JSX.Element>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "36.
|
|
3
|
+
"version": "36.4.0",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"@atlaskit/icon": "^38.0.0",
|
|
47
47
|
"@atlaskit/link": "^5.1.0",
|
|
48
48
|
"@atlaskit/modal-dialog": "^17.0.0",
|
|
49
|
-
"@atlaskit/motion": "^9.
|
|
49
|
+
"@atlaskit/motion": "^9.2.0",
|
|
50
50
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
51
51
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
52
52
|
"@atlaskit/popper": "^9.4.0",
|
|
53
|
-
"@atlaskit/popup": "^
|
|
53
|
+
"@atlaskit/popup": "^9.0.0",
|
|
54
54
|
"@atlaskit/portal": "^7.0.0",
|
|
55
55
|
"@atlaskit/primitives": "^22.5.0",
|
|
56
56
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"@atlaskit/spinner": "^20.4.0",
|
|
59
59
|
"@atlaskit/tabs": "^21.3.0",
|
|
60
60
|
"@atlaskit/theme": "^28.2.0",
|
|
61
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
61
|
+
"@atlaskit/tmp-editor-statsig": "^220.0.0",
|
|
62
62
|
"@atlaskit/tokens": "^20.1.0",
|
|
63
|
-
"@atlaskit/tooltip": "^24.
|
|
63
|
+
"@atlaskit/tooltip": "^24.4.0",
|
|
64
64
|
"@atlaskit/ufo": "^2.0.0",
|
|
65
65
|
"@atlaskit/util-service-support": "^7.4.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|