@atlaskit/reactions 24.5.0 → 24.6.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 +14 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/ReactionSummary/ReactionSummaryView.js +15 -2
- package/dist/cjs/components/Reactions/Reactions.js +23 -2
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/ReactionSummary/ReactionSummaryView.js +14 -3
- package/dist/es2019/components/Reactions/Reactions.js +23 -2
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/ReactionSummary/ReactionSummaryView.js +16 -3
- package/dist/esm/components/Reactions/Reactions.js +23 -2
- package/dist/types/components/ReactionSummary/ReactionSummaryView.d.ts +6 -2
- package/dist/types-ts4.5/components/ReactionSummary/ReactionSummaryView.d.ts +6 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 24.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#108823](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108823)
|
|
8
|
+
[`2789da849cf6c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2789da849cf6c) -
|
|
9
|
+
[ux] Add reactions dialog entrypoint into ReactionSummaryView primarily for live pages
|
|
10
|
+
|
|
11
|
+
## 24.5.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 24.5.0
|
|
4
18
|
|
|
5
19
|
### Minor 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 = "24.
|
|
14
|
+
var packageVersion = "24.6.0";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -9,10 +9,13 @@ exports.ReactionSummaryView = exports.RENDER_SUMMARY_VIEW_POPUP_TESTID = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _reactIntlNext = require("react-intl-next");
|
|
12
13
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
13
14
|
var _primitives = require("@atlaskit/primitives");
|
|
15
|
+
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
14
16
|
var _Reaction = require("../Reaction");
|
|
15
17
|
var _ReactionSummaryButton = require("./ReactionSummaryButton");
|
|
18
|
+
var _i18n = require("../../shared/i18n");
|
|
16
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
21
|
var summaryPopupStyles = (0, _primitives.xcss)({
|
|
@@ -41,7 +44,9 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
41
44
|
_ref$showOpaqueBackgr = _ref.showOpaqueBackground,
|
|
42
45
|
showOpaqueBackground = _ref$showOpaqueBackgr === void 0 ? false : _ref$showOpaqueBackgr,
|
|
43
46
|
_ref$subtleReactionsS = _ref.subtleReactionsSummaryAndPicker,
|
|
44
|
-
subtleReactionsSummaryAndPicker = _ref$subtleReactionsS === void 0 ? false : _ref$subtleReactionsS
|
|
47
|
+
subtleReactionsSummaryAndPicker = _ref$subtleReactionsS === void 0 ? false : _ref$subtleReactionsS,
|
|
48
|
+
handleOpenReactionsDialog = _ref.handleOpenReactionsDialog,
|
|
49
|
+
allowUserDialog = _ref.allowUserDialog;
|
|
45
50
|
var _useState = (0, _react.useState)(false),
|
|
46
51
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
47
52
|
isSummaryPopupOpen = _useState2[0],
|
|
@@ -71,7 +76,15 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
71
76
|
flash: flash[reaction.emojiId],
|
|
72
77
|
showParticleEffect: particleEffectByEmoji[reaction.emojiId]
|
|
73
78
|
});
|
|
74
|
-
})
|
|
79
|
+
}), allowUserDialog && /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
80
|
+
appearance: "subtle",
|
|
81
|
+
onClick: function onClick() {
|
|
82
|
+
return handleOpenReactionsDialog === null || handleOpenReactionsDialog === void 0 ? void 0 : handleOpenReactionsDialog(reactions[0].emojiId);
|
|
83
|
+
}
|
|
84
|
+
}, /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
85
|
+
color: "color.text.subtlest",
|
|
86
|
+
weight: "medium"
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.seeWhoReacted))));
|
|
75
88
|
},
|
|
76
89
|
isOpen: isSummaryPopupOpen,
|
|
77
90
|
onClose: handlePopupClose,
|
|
@@ -183,6 +183,25 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
183
183
|
onSelection(emojiId);
|
|
184
184
|
}, [createAnalyticsEvent, onSelection, reactions]);
|
|
185
185
|
|
|
186
|
+
/**
|
|
187
|
+
* event handler to open selected reaction from tooltip
|
|
188
|
+
* @param emojiId selected emoji id
|
|
189
|
+
*/
|
|
190
|
+
var handleOpenReactionsDialog = function handleOpenReactionsDialog(emojiId) {
|
|
191
|
+
// ufo start opening reaction dialog
|
|
192
|
+
ufoExperiences.openDialog.start();
|
|
193
|
+
setSelectedEmojiId(emojiId);
|
|
194
|
+
onDialogOpenCallback(emojiId, 'tooltip');
|
|
195
|
+
// ufo opening reaction dialog success
|
|
196
|
+
ufoExperiences.openDialog.success({
|
|
197
|
+
metadata: {
|
|
198
|
+
emojiId: emojiId,
|
|
199
|
+
source: 'Reactions',
|
|
200
|
+
reason: 'Opening dialog from emoji tooltip link successfully'
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
};
|
|
204
|
+
|
|
186
205
|
/**
|
|
187
206
|
* Event handler to oepn all reactions link button
|
|
188
207
|
*/
|
|
@@ -296,7 +315,9 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
296
315
|
onReactionMouseEnter: handleReactionMouseEnter,
|
|
297
316
|
placement: summaryViewPlacement,
|
|
298
317
|
showOpaqueBackground: showOpaqueBackground,
|
|
299
|
-
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker
|
|
318
|
+
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
319
|
+
handleOpenReactionsDialog: handleOpenReactionsDialog,
|
|
320
|
+
allowUserDialog: allowUserDialog
|
|
300
321
|
})) : memorizedReactions.map(function (reaction) {
|
|
301
322
|
return (0, _react2.jsx)(_Reaction.Reaction, {
|
|
302
323
|
key: reaction.emojiId,
|
|
@@ -327,7 +348,7 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
327
348
|
showOpaqueBackground: showOpaqueBackground,
|
|
328
349
|
showAddReactionText: showAddReactionText,
|
|
329
350
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker
|
|
330
|
-
}), allowUserDialog && hasEmojiWithFivePlusReactions && (0, _react2.jsx)(_tooltip.default, {
|
|
351
|
+
}), allowUserDialog && hasEmojiWithFivePlusReactions && !shouldShowSummaryView && (0, _react2.jsx)(_tooltip.default, {
|
|
331
352
|
content: (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.seeWhoReactedTooltip),
|
|
332
353
|
hideTooltipOnClick: true
|
|
333
354
|
}, (0, _react2.jsx)(_standardButton.default
|
|
@@ -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 = "24.
|
|
4
|
+
const packageVersion = "24.6.0";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useState } from 'react';
|
|
3
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
3
4
|
import Popup from '@atlaskit/popup';
|
|
4
|
-
import { Inline, xcss } from '@atlaskit/primitives';
|
|
5
|
+
import { Inline, Text, xcss } from '@atlaskit/primitives';
|
|
6
|
+
import Button from '@atlaskit/button/new';
|
|
5
7
|
import { Reaction } from '../Reaction';
|
|
6
8
|
import { ReactionSummaryButton } from './ReactionSummaryButton';
|
|
9
|
+
import { messages } from '../../shared/i18n';
|
|
7
10
|
const summaryPopupStyles = xcss({
|
|
8
11
|
padding: 'space.100',
|
|
9
12
|
paddingTop: 'space.050',
|
|
@@ -24,7 +27,9 @@ export const ReactionSummaryView = ({
|
|
|
24
27
|
onReactionFocused,
|
|
25
28
|
onReactionMouseEnter,
|
|
26
29
|
showOpaqueBackground = false,
|
|
27
|
-
subtleReactionsSummaryAndPicker = false
|
|
30
|
+
subtleReactionsSummaryAndPicker = false,
|
|
31
|
+
handleOpenReactionsDialog,
|
|
32
|
+
allowUserDialog
|
|
28
33
|
}) => {
|
|
29
34
|
const [isSummaryPopupOpen, setSummaryPopupOpen] = useState(false);
|
|
30
35
|
const handlePopupClose = useCallback(() => setSummaryPopupOpen(false), []);
|
|
@@ -45,7 +50,13 @@ export const ReactionSummaryView = ({
|
|
|
45
50
|
onMouseEnter: onReactionMouseEnter,
|
|
46
51
|
flash: flash[reaction.emojiId],
|
|
47
52
|
showParticleEffect: particleEffectByEmoji[reaction.emojiId]
|
|
48
|
-
}))
|
|
53
|
+
})), allowUserDialog && /*#__PURE__*/React.createElement(Button, {
|
|
54
|
+
appearance: "subtle",
|
|
55
|
+
onClick: () => handleOpenReactionsDialog === null || handleOpenReactionsDialog === void 0 ? void 0 : handleOpenReactionsDialog(reactions[0].emojiId)
|
|
56
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
57
|
+
color: "color.text.subtlest",
|
|
58
|
+
weight: "medium"
|
|
59
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.seeWhoReacted)))),
|
|
49
60
|
isOpen: isSummaryPopupOpen,
|
|
50
61
|
onClose: handlePopupClose,
|
|
51
62
|
trigger: triggerProps => /*#__PURE__*/React.createElement(ReactionSummaryButton, _extends({}, triggerProps, {
|
|
@@ -150,6 +150,25 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
150
150
|
onSelection(emojiId);
|
|
151
151
|
}, [createAnalyticsEvent, onSelection, reactions]);
|
|
152
152
|
|
|
153
|
+
/**
|
|
154
|
+
* event handler to open selected reaction from tooltip
|
|
155
|
+
* @param emojiId selected emoji id
|
|
156
|
+
*/
|
|
157
|
+
const handleOpenReactionsDialog = emojiId => {
|
|
158
|
+
// ufo start opening reaction dialog
|
|
159
|
+
ufoExperiences.openDialog.start();
|
|
160
|
+
setSelectedEmojiId(emojiId);
|
|
161
|
+
onDialogOpenCallback(emojiId, 'tooltip');
|
|
162
|
+
// ufo opening reaction dialog success
|
|
163
|
+
ufoExperiences.openDialog.success({
|
|
164
|
+
metadata: {
|
|
165
|
+
emojiId,
|
|
166
|
+
source: 'Reactions',
|
|
167
|
+
reason: 'Opening dialog from emoji tooltip link successfully'
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
|
|
153
172
|
/**
|
|
154
173
|
* Event handler to oepn all reactions link button
|
|
155
174
|
*/
|
|
@@ -259,7 +278,9 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
259
278
|
onReactionMouseEnter: handleReactionMouseEnter,
|
|
260
279
|
placement: summaryViewPlacement,
|
|
261
280
|
showOpaqueBackground: showOpaqueBackground,
|
|
262
|
-
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker
|
|
281
|
+
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
282
|
+
handleOpenReactionsDialog: handleOpenReactionsDialog,
|
|
283
|
+
allowUserDialog: allowUserDialog
|
|
263
284
|
})) : memorizedReactions.map(reaction => jsx(Reaction, {
|
|
264
285
|
key: reaction.emojiId,
|
|
265
286
|
reaction: reaction,
|
|
@@ -288,7 +309,7 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
288
309
|
showOpaqueBackground: showOpaqueBackground,
|
|
289
310
|
showAddReactionText: showAddReactionText,
|
|
290
311
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker
|
|
291
|
-
}), allowUserDialog && hasEmojiWithFivePlusReactions && jsx(Tooltip, {
|
|
312
|
+
}), allowUserDialog && hasEmojiWithFivePlusReactions && !shouldShowSummaryView && jsx(Tooltip, {
|
|
292
313
|
content: jsx(FormattedMessage, messages.seeWhoReactedTooltip),
|
|
293
314
|
hideTooltipOnClick: true
|
|
294
315
|
}, jsx(Button
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
5
5
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
6
6
|
var packageName = "@atlaskit/reactions";
|
|
7
|
-
var packageVersion = "24.
|
|
7
|
+
var packageVersion = "24.6.0";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import React, { useCallback, useState } from 'react';
|
|
4
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
4
5
|
import Popup from '@atlaskit/popup';
|
|
5
|
-
import { Inline, xcss } from '@atlaskit/primitives';
|
|
6
|
+
import { Inline, Text, xcss } from '@atlaskit/primitives';
|
|
7
|
+
import Button from '@atlaskit/button/new';
|
|
6
8
|
import { Reaction } from '../Reaction';
|
|
7
9
|
import { ReactionSummaryButton } from './ReactionSummaryButton';
|
|
10
|
+
import { messages } from '../../shared/i18n';
|
|
8
11
|
var summaryPopupStyles = xcss({
|
|
9
12
|
padding: 'space.100',
|
|
10
13
|
paddingTop: 'space.050',
|
|
@@ -31,7 +34,9 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
|
|
|
31
34
|
_ref$showOpaqueBackgr = _ref.showOpaqueBackground,
|
|
32
35
|
showOpaqueBackground = _ref$showOpaqueBackgr === void 0 ? false : _ref$showOpaqueBackgr,
|
|
33
36
|
_ref$subtleReactionsS = _ref.subtleReactionsSummaryAndPicker,
|
|
34
|
-
subtleReactionsSummaryAndPicker = _ref$subtleReactionsS === void 0 ? false : _ref$subtleReactionsS
|
|
37
|
+
subtleReactionsSummaryAndPicker = _ref$subtleReactionsS === void 0 ? false : _ref$subtleReactionsS,
|
|
38
|
+
handleOpenReactionsDialog = _ref.handleOpenReactionsDialog,
|
|
39
|
+
allowUserDialog = _ref.allowUserDialog;
|
|
35
40
|
var _useState = useState(false),
|
|
36
41
|
_useState2 = _slicedToArray(_useState, 2),
|
|
37
42
|
isSummaryPopupOpen = _useState2[0],
|
|
@@ -61,7 +66,15 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
|
|
|
61
66
|
flash: flash[reaction.emojiId],
|
|
62
67
|
showParticleEffect: particleEffectByEmoji[reaction.emojiId]
|
|
63
68
|
});
|
|
64
|
-
})
|
|
69
|
+
}), allowUserDialog && /*#__PURE__*/React.createElement(Button, {
|
|
70
|
+
appearance: "subtle",
|
|
71
|
+
onClick: function onClick() {
|
|
72
|
+
return handleOpenReactionsDialog === null || handleOpenReactionsDialog === void 0 ? void 0 : handleOpenReactionsDialog(reactions[0].emojiId);
|
|
73
|
+
}
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
75
|
+
color: "color.text.subtlest",
|
|
76
|
+
weight: "medium"
|
|
77
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.seeWhoReacted))));
|
|
65
78
|
},
|
|
66
79
|
isOpen: isSummaryPopupOpen,
|
|
67
80
|
onClose: handlePopupClose,
|
|
@@ -170,6 +170,25 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
170
170
|
onSelection(emojiId);
|
|
171
171
|
}, [createAnalyticsEvent, onSelection, reactions]);
|
|
172
172
|
|
|
173
|
+
/**
|
|
174
|
+
* event handler to open selected reaction from tooltip
|
|
175
|
+
* @param emojiId selected emoji id
|
|
176
|
+
*/
|
|
177
|
+
var handleOpenReactionsDialog = function handleOpenReactionsDialog(emojiId) {
|
|
178
|
+
// ufo start opening reaction dialog
|
|
179
|
+
ufoExperiences.openDialog.start();
|
|
180
|
+
setSelectedEmojiId(emojiId);
|
|
181
|
+
onDialogOpenCallback(emojiId, 'tooltip');
|
|
182
|
+
// ufo opening reaction dialog success
|
|
183
|
+
ufoExperiences.openDialog.success({
|
|
184
|
+
metadata: {
|
|
185
|
+
emojiId: emojiId,
|
|
186
|
+
source: 'Reactions',
|
|
187
|
+
reason: 'Opening dialog from emoji tooltip link successfully'
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
|
|
173
192
|
/**
|
|
174
193
|
* Event handler to oepn all reactions link button
|
|
175
194
|
*/
|
|
@@ -283,7 +302,9 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
283
302
|
onReactionMouseEnter: handleReactionMouseEnter,
|
|
284
303
|
placement: summaryViewPlacement,
|
|
285
304
|
showOpaqueBackground: showOpaqueBackground,
|
|
286
|
-
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker
|
|
305
|
+
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
306
|
+
handleOpenReactionsDialog: handleOpenReactionsDialog,
|
|
307
|
+
allowUserDialog: allowUserDialog
|
|
287
308
|
})) : memorizedReactions.map(function (reaction) {
|
|
288
309
|
return jsx(Reaction, {
|
|
289
310
|
key: reaction.emojiId,
|
|
@@ -314,7 +335,7 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
314
335
|
showOpaqueBackground: showOpaqueBackground,
|
|
315
336
|
showAddReactionText: showAddReactionText,
|
|
316
337
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker
|
|
317
|
-
}), allowUserDialog && hasEmojiWithFivePlusReactions && jsx(Tooltip, {
|
|
338
|
+
}), allowUserDialog && hasEmojiWithFivePlusReactions && !shouldShowSummaryView && jsx(Tooltip, {
|
|
318
339
|
content: jsx(FormattedMessage, messages.seeWhoReactedTooltip),
|
|
319
340
|
hideTooltipOnClick: true
|
|
320
341
|
}, jsx(Button
|
|
@@ -6,7 +6,7 @@ import { type ReactionsProps } from '../Reactions';
|
|
|
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'> {
|
|
9
|
+
interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'flash' | 'particleEffectByEmoji' | 'allowUserDialog'> {
|
|
10
10
|
/**
|
|
11
11
|
* Optional prop to change the placement of the summary popup reaction list
|
|
12
12
|
*/
|
|
@@ -31,6 +31,10 @@ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider'
|
|
|
31
31
|
* Optional prop for applying subtle styling to reaction picker
|
|
32
32
|
*/
|
|
33
33
|
subtleReactionsSummaryAndPicker?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Optional function when the user wants to see more users in a modal
|
|
36
|
+
*/
|
|
37
|
+
handleOpenReactionsDialog?: (emojiId: string) => void;
|
|
34
38
|
}
|
|
35
|
-
export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, }: ReactionSummaryViewProps) => JSX.Element;
|
|
39
|
+
export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, handleOpenReactionsDialog, allowUserDialog, }: ReactionSummaryViewProps) => JSX.Element;
|
|
36
40
|
export {};
|
|
@@ -6,7 +6,7 @@ import { type ReactionsProps } from '../Reactions';
|
|
|
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'> {
|
|
9
|
+
interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'flash' | 'particleEffectByEmoji' | 'allowUserDialog'> {
|
|
10
10
|
/**
|
|
11
11
|
* Optional prop to change the placement of the summary popup reaction list
|
|
12
12
|
*/
|
|
@@ -31,6 +31,10 @@ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider'
|
|
|
31
31
|
* Optional prop for applying subtle styling to reaction picker
|
|
32
32
|
*/
|
|
33
33
|
subtleReactionsSummaryAndPicker?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Optional function when the user wants to see more users in a modal
|
|
36
|
+
*/
|
|
37
|
+
handleOpenReactionsDialog?: (emojiId: string) => void;
|
|
34
38
|
}
|
|
35
|
-
export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, }: ReactionSummaryViewProps) => JSX.Element;
|
|
39
|
+
export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, handleOpenReactionsDialog, allowUserDialog, }: ReactionSummaryViewProps) => JSX.Element;
|
|
36
40
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.6.0",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@atlaskit/icon": "^23.6.0",
|
|
43
43
|
"@atlaskit/modal-dialog": "^12.20.0",
|
|
44
44
|
"@atlaskit/motion": "^1.10.0",
|
|
45
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
45
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
46
46
|
"@atlaskit/popper": "^6.4.0",
|
|
47
|
-
"@atlaskit/popup": "1.31.
|
|
47
|
+
"@atlaskit/popup": "1.31.1",
|
|
48
48
|
"@atlaskit/primitives": "^13.4.0",
|
|
49
49
|
"@atlaskit/spinner": "^17.1.0",
|
|
50
50
|
"@atlaskit/tabs": "^17.2.0",
|