@atlaskit/reactions 24.2.0 → 24.3.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/analytics/index.js +1 -1
  3. package/dist/cjs/components/Reaction/Reaction.js +0 -9
  4. package/dist/cjs/components/ReactionSummary/ReactionSummaryView.js +1 -5
  5. package/dist/cjs/components/ReactionTooltip/ReactionTooltip.js +4 -15
  6. package/dist/cjs/components/ReactionTooltip/styles.js +1 -12
  7. package/dist/cjs/components/Reactions/Reactions.js +0 -24
  8. package/dist/cjs/shared/i18n.js +0 -5
  9. package/dist/es2019/analytics/index.js +1 -1
  10. package/dist/es2019/components/Reaction/Reaction.js +0 -8
  11. package/dist/es2019/components/ReactionSummary/ReactionSummaryView.js +1 -5
  12. package/dist/es2019/components/ReactionTooltip/ReactionTooltip.js +5 -13
  13. package/dist/es2019/components/ReactionTooltip/styles.js +1 -12
  14. package/dist/es2019/components/Reactions/Reactions.js +0 -24
  15. package/dist/es2019/shared/i18n.js +0 -5
  16. package/dist/esm/analytics/index.js +1 -1
  17. package/dist/esm/components/Reaction/Reaction.js +0 -9
  18. package/dist/esm/components/ReactionSummary/ReactionSummaryView.js +1 -5
  19. package/dist/esm/components/ReactionTooltip/ReactionTooltip.js +5 -16
  20. package/dist/esm/components/ReactionTooltip/styles.js +1 -12
  21. package/dist/esm/components/Reactions/Reactions.js +0 -24
  22. package/dist/esm/shared/i18n.js +0 -5
  23. package/dist/types/components/Reaction/Reaction.d.ts +2 -7
  24. package/dist/types/components/ReactionSummary/ReactionSummaryView.d.ts +2 -7
  25. package/dist/types/components/ReactionTooltip/ReactionTooltip.d.ts +1 -9
  26. package/dist/types/components/ReactionTooltip/styles.d.ts +0 -1
  27. package/dist/types/components/Reactions/Reactions.d.ts +5 -2
  28. package/dist/types/shared/i18n.d.ts +0 -5
  29. package/dist/types-ts4.5/components/Reaction/Reaction.d.ts +2 -7
  30. package/dist/types-ts4.5/components/ReactionSummary/ReactionSummaryView.d.ts +2 -7
  31. package/dist/types-ts4.5/components/ReactionTooltip/ReactionTooltip.d.ts +1 -9
  32. package/dist/types-ts4.5/components/ReactionTooltip/styles.d.ts +0 -1
  33. package/dist/types-ts4.5/components/Reactions/Reactions.d.ts +5 -2
  34. package/dist/types-ts4.5/shared/i18n.d.ts +0 -5
  35. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 24.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#108357](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108357)
8
+ [`dd0053af6d370`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dd0053af6d370) -
9
+ [ux] "And X others" entrypoint into Reactions Dialog removed. "More info" entrypoint removed and
10
+ completely deleted from ReactionTooltip
11
+
3
12
  ## 24.2.0
4
13
 
5
14
  ### 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.2.0";
14
+ var packageVersion = "24.3.0";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -74,9 +74,6 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
74
74
  flash = _ref$flash === void 0 ? false : _ref$flash,
75
75
  _ref$showParticleEffe = _ref.showParticleEffect,
76
76
  showParticleEffect = _ref$showParticleEffe === void 0 ? false : _ref$showParticleEffe,
77
- _ref$handleUserListCl = _ref.handleUserListClick,
78
- handleUserListClick = _ref$handleUserListCl === void 0 ? function () {} : _ref$handleUserListCl,
79
- allowUserDialog = _ref.allowUserDialog,
80
77
  _ref$showOpaqueBackgr = _ref.showOpaqueBackground,
81
78
  showOpaqueBackground = _ref$showOpaqueBackgr === void 0 ? false : _ref$showOpaqueBackgr;
82
79
  var intl = (0, _reactIntlNext.useIntl)();
@@ -151,10 +148,6 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
151
148
  (0, _analytics.createAndFireSafe)(createAnalyticsEvent, _analytics.createReactionFocusedEvent, hoverStart.current);
152
149
  onFocused(reaction.emojiId, event);
153
150
  }, [createAnalyticsEvent, reaction, onFocused]);
154
- var handleOpenReactionsDialog = function handleOpenReactionsDialog(emojiId) {
155
- handleUserListClick(emojiId);
156
- setIsTooltipEnabled(false);
157
- };
158
151
  var buttonStyles = showOpaqueBackground ? [opaqueBackgroundStyles] : [];
159
152
  return (0, _react2.jsx)(_primitives.Box, {
160
153
  xcss: containerStyles
@@ -164,8 +157,6 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
164
157
  }), (0, _react2.jsx)(_ReactionTooltip.ReactionTooltip, {
165
158
  emojiName: emojiName,
166
159
  reaction: reaction,
167
- handleUserListClick: handleOpenReactionsDialog,
168
- allowUserDialog: allowUserDialog,
169
160
  isEnabled: isTooltipEnabled
170
161
  }, (0, _react2.jsx)(_ReactionButton.ReactionButton, {
171
162
  onClick: handleClick,
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", {
8
8
  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
+ var _react = _interopRequireWildcard(require("react"));
11
12
  var _popup = _interopRequireDefault(require("@atlaskit/popup"));
12
13
  var _primitives = require("@atlaskit/primitives");
13
- var _react = _interopRequireWildcard(require("react"));
14
14
  var _Reaction = require("../Reaction");
15
15
  var _ReactionSummaryButton = require("./ReactionSummaryButton");
16
16
  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); }
@@ -33,8 +33,6 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
33
33
  flash = _ref$flash === void 0 ? {} : _ref$flash,
34
34
  _ref$particleEffectBy = _ref.particleEffectByEmoji,
35
35
  particleEffectByEmoji = _ref$particleEffectBy === void 0 ? {} : _ref$particleEffectBy,
36
- handleOpenReactionsDialog = _ref.handleOpenReactionsDialog,
37
- allowUserDialog = _ref.allowUserDialog,
38
36
  _ref$placement = _ref.placement,
39
37
  placement = _ref$placement === void 0 ? 'auto-start' : _ref$placement,
40
38
  onReactionClick = _ref.onReactionClick,
@@ -71,8 +69,6 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
71
69
  onFocused: onReactionFocused,
72
70
  onMouseEnter: onReactionMouseEnter,
73
71
  flash: flash[reaction.emojiId],
74
- handleUserListClick: handleOpenReactionsDialog,
75
- allowUserDialog: allowUserDialog,
76
72
  showParticleEffect: particleEffectByEmoji[reaction.emojiId]
77
73
  });
78
74
  }));
@@ -27,16 +27,10 @@ var RENDER_REACTIONTOOLTIP_TESTID = exports.RENDER_REACTIONTOOLTIP_TESTID = 'ren
27
27
  var ReactionTooltip = exports.ReactionTooltip = function ReactionTooltip(_ref) {
28
28
  var children = _ref.children,
29
29
  emojiName = _ref.emojiName,
30
- _ref$reaction = _ref.reaction,
31
- _ref$reaction$users = _ref$reaction.users,
30
+ _ref$reaction$users = _ref.reaction.users,
32
31
  users = _ref$reaction$users === void 0 ? [] : _ref$reaction$users,
33
- _ref$reaction$emojiId = _ref$reaction.emojiId,
34
- emojiId = _ref$reaction$emojiId === void 0 ? '' : _ref$reaction$emojiId,
35
32
  _ref$maxReactions = _ref.maxReactions,
36
33
  maxReactions = _ref$maxReactions === void 0 ? _constants.TOOLTIP_USERS_LIMIT : _ref$maxReactions,
37
- handleUserListClick = _ref.handleUserListClick,
38
- _ref$allowUserDialog = _ref.allowUserDialog,
39
- allowUserDialog = _ref$allowUserDialog === void 0 ? false : _ref$allowUserDialog,
40
34
  _ref$isEnabled = _ref.isEnabled,
41
35
  isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled;
42
36
  /**
@@ -55,17 +49,12 @@ var ReactionTooltip = exports.ReactionTooltip = function ReactionTooltip(_ref) {
55
49
  }, user.displayName);
56
50
  }), (0, _react2.jsx)("li", {
57
51
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
58
- css: allowUserDialog ? [_styles.footerStyle, _styles.underlineStyle] : _styles.footerStyle,
59
- onClick: function onClick() {
60
- if (allowUserDialog && handleUserListClick) {
61
- handleUserListClick(emojiId);
62
- }
63
- }
64
- }, users.length > maxReactions ? (0, _react2.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.otherUsers, {
52
+ css: _styles.footerStyle
53
+ }, users.length > maxReactions && (0, _react2.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.otherUsers, {
65
54
  values: {
66
55
  count: users.length - maxReactions
67
56
  }
68
- })) : allowUserDialog && (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.moreInfo))));
57
+ })))));
69
58
  return (0, _react2.jsx)(_tooltip.default, {
70
59
  content: content,
71
60
  position: "bottom",
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.verticalMargin = exports.underlineStyle = exports.tooltipStyle = exports.footerStyle = exports.emojiNameStyle = void 0;
6
+ exports.verticalMargin = exports.tooltipStyle = exports.footerStyle = exports.emojiNameStyle = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
9
  /**
@@ -46,15 +46,4 @@ var emojiNameStyle = exports.emojiNameStyle = (0, _react.css)({
46
46
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
47
47
  var footerStyle = exports.footerStyle = (0, _react.css)({
48
48
  color: "var(--ds-text-inverse, ".concat(_colors.N90, ")")
49
- });
50
-
51
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
52
- var underlineStyle = exports.underlineStyle = (0, _react.css)({
53
- cursor: 'pointer',
54
- textDecoration: 'underline',
55
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
56
- ':hover': {
57
- backgroundColor: "var(--ds-background-neutral-bold, ".concat(_colors.N800, ")"),
58
- color: "var(--ds-text-inverse, ".concat(_colors.N0, ")")
59
- }
60
49
  });
@@ -183,26 +183,6 @@ 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
-
196
- // ufo opening reaction dialog success
197
- ufoExperiences.openDialog.success({
198
- metadata: {
199
- emojiId: emojiId,
200
- source: 'Reactions',
201
- reason: 'Opening dialog from emoji tooltip link successfully'
202
- }
203
- });
204
- };
205
-
206
186
  /**
207
187
  * Event handler to oepn all reactions link button
208
188
  */
@@ -311,8 +291,6 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
311
291
  emojiProvider: emojiProvider,
312
292
  flash: flash,
313
293
  particleEffectByEmoji: particleEffectByEmoji,
314
- handleOpenReactionsDialog: handleOpenReactionsDialog,
315
- allowUserDialog: allowUserDialog,
316
294
  onReactionClick: onReactionClick,
317
295
  onReactionFocused: handleReactionFocused,
318
296
  onReactionMouseEnter: handleReactionMouseEnter,
@@ -328,8 +306,6 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
328
306
  onMouseEnter: handleReactionMouseEnter,
329
307
  onFocused: handleReactionFocused,
330
308
  flash: flash[reaction.emojiId],
331
- handleUserListClick: handleOpenReactionsDialog,
332
- allowUserDialog: allowUserDialog,
333
309
  showParticleEffect: particleEffectByEmoji[reaction.emojiId],
334
310
  showOpaqueBackground: showOpaqueBackground
335
311
  });
@@ -21,11 +21,6 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
21
21
  defaultMessage: 'More emojis',
22
22
  description: 'Tooltip of the "show more" button in the quick reaction selector. The full emoji selector is displayed when the user clicks on it.'
23
23
  },
24
- moreInfo: {
25
- id: 'fabric.reactions.more.info',
26
- defaultMessage: 'More info',
27
- description: 'Clickable text in a tooltip that will display more information about the users who reacted'
28
- },
29
24
  reactWithEmoji: {
30
25
  id: 'fabric.reactions.reactwithemoji',
31
26
  defaultMessage: 'React with {emoji} emoji',
@@ -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.2.0";
4
+ const packageVersion = "24.3.0";
5
5
  /**
6
6
  * TODO: move to utility package?
7
7
  * A random sampling function
@@ -56,8 +56,6 @@ export const Reaction = ({
56
56
  onFocused = () => {},
57
57
  flash = false,
58
58
  showParticleEffect = false,
59
- handleUserListClick = () => {},
60
- allowUserDialog,
61
59
  showOpaqueBackground = false
62
60
  }) => {
63
61
  const intl = useIntl();
@@ -116,10 +114,6 @@ export const Reaction = ({
116
114
  createAndFireSafe(createAnalyticsEvent, createReactionFocusedEvent, hoverStart.current);
117
115
  onFocused(reaction.emojiId, event);
118
116
  }, [createAnalyticsEvent, reaction, onFocused]);
119
- const handleOpenReactionsDialog = emojiId => {
120
- handleUserListClick(emojiId);
121
- setIsTooltipEnabled(false);
122
- };
123
117
  const buttonStyles = showOpaqueBackground ? [opaqueBackgroundStyles] : [];
124
118
  return jsx(Box, {
125
119
  xcss: containerStyles
@@ -129,8 +123,6 @@ export const Reaction = ({
129
123
  }), jsx(ReactionTooltip, {
130
124
  emojiName: emojiName,
131
125
  reaction: reaction,
132
- handleUserListClick: handleOpenReactionsDialog,
133
- allowUserDialog: allowUserDialog,
134
126
  isEnabled: isTooltipEnabled
135
127
  }, jsx(ReactionButton, {
136
128
  onClick: handleClick,
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ import React, { useCallback, useState } from 'react';
2
3
  import Popup from '@atlaskit/popup';
3
4
  import { Inline, xcss } from '@atlaskit/primitives';
4
- import React, { useCallback, useState } from 'react';
5
5
  import { Reaction } from '../Reaction';
6
6
  import { ReactionSummaryButton } from './ReactionSummaryButton';
7
7
  const summaryPopupStyles = xcss({
@@ -19,8 +19,6 @@ export const ReactionSummaryView = ({
19
19
  reactions = [],
20
20
  flash = {},
21
21
  particleEffectByEmoji = {},
22
- handleOpenReactionsDialog,
23
- allowUserDialog,
24
22
  placement = 'auto-start',
25
23
  onReactionClick,
26
24
  onReactionFocused,
@@ -46,8 +44,6 @@ export const ReactionSummaryView = ({
46
44
  onFocused: onReactionFocused,
47
45
  onMouseEnter: onReactionMouseEnter,
48
46
  flash: flash[reaction.emojiId],
49
- handleUserListClick: handleOpenReactionsDialog,
50
- allowUserDialog: allowUserDialog,
51
47
  showParticleEffect: particleEffectByEmoji[reaction.emojiId]
52
48
  }))),
53
49
  isOpen: isSummaryPopupOpen,
@@ -10,7 +10,7 @@ import Tooltip from '@atlaskit/tooltip';
10
10
  import { FormattedMessage } from 'react-intl-next';
11
11
  import { TOOLTIP_USERS_LIMIT } from '../../shared/constants';
12
12
  import { messages } from '../../shared/i18n';
13
- import { emojiNameStyle, footerStyle, tooltipStyle, underlineStyle } from './styles';
13
+ import { emojiNameStyle, footerStyle, tooltipStyle } from './styles';
14
14
 
15
15
  /**
16
16
  * Test id for wrapper ReactionTooltip div
@@ -20,12 +20,9 @@ export const ReactionTooltip = ({
20
20
  children,
21
21
  emojiName,
22
22
  reaction: {
23
- users = [],
24
- emojiId = ''
23
+ users = []
25
24
  },
26
25
  maxReactions = TOOLTIP_USERS_LIMIT,
27
- handleUserListClick,
28
- allowUserDialog = false,
29
26
  isEnabled = true
30
27
  }) => {
31
28
  /**
@@ -44,17 +41,12 @@ export const ReactionTooltip = ({
44
41
  }, user.displayName);
45
42
  }), jsx("li", {
46
43
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
47
- css: allowUserDialog ? [footerStyle, underlineStyle] : footerStyle,
48
- onClick: () => {
49
- if (allowUserDialog && handleUserListClick) {
50
- handleUserListClick(emojiId);
51
- }
52
- }
53
- }, users.length > maxReactions ? jsx(FormattedMessage, _extends({}, messages.otherUsers, {
44
+ css: footerStyle
45
+ }, users.length > maxReactions && jsx(FormattedMessage, _extends({}, messages.otherUsers, {
54
46
  values: {
55
47
  count: users.length - maxReactions
56
48
  }
57
- })) : allowUserDialog && jsx(FormattedMessage, messages.moreInfo))));
49
+ })))));
58
50
  return jsx(Tooltip, {
59
51
  content: content,
60
52
  position: "bottom",
@@ -4,7 +4,7 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css } from '@emotion/react';
7
- import { N90, N800, N0 } from '@atlaskit/theme/colors';
7
+ import { N90 } from '@atlaskit/theme/colors';
8
8
  export const verticalMargin = 5;
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -39,15 +39,4 @@ export const emojiNameStyle = css({
39
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
40
40
  export const footerStyle = css({
41
41
  color: `var(--ds-text-inverse, ${N90})`
42
- });
43
-
44
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
45
- export const underlineStyle = css({
46
- cursor: 'pointer',
47
- textDecoration: 'underline',
48
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
49
- ':hover': {
50
- backgroundColor: `var(--ds-background-neutral-bold, ${N800})`,
51
- color: `var(--ds-text-inverse, ${N0})`
52
- }
53
42
  });
@@ -150,26 +150,6 @@ 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
-
163
- // ufo opening reaction dialog success
164
- ufoExperiences.openDialog.success({
165
- metadata: {
166
- emojiId,
167
- source: 'Reactions',
168
- reason: 'Opening dialog from emoji tooltip link successfully'
169
- }
170
- });
171
- };
172
-
173
153
  /**
174
154
  * Event handler to oepn all reactions link button
175
155
  */
@@ -274,8 +254,6 @@ export const Reactions = /*#__PURE__*/React.memo(({
274
254
  emojiProvider: emojiProvider,
275
255
  flash: flash,
276
256
  particleEffectByEmoji: particleEffectByEmoji,
277
- handleOpenReactionsDialog: handleOpenReactionsDialog,
278
- allowUserDialog: allowUserDialog,
279
257
  onReactionClick: onReactionClick,
280
258
  onReactionFocused: handleReactionFocused,
281
259
  onReactionMouseEnter: handleReactionMouseEnter,
@@ -290,8 +268,6 @@ export const Reactions = /*#__PURE__*/React.memo(({
290
268
  onMouseEnter: handleReactionMouseEnter,
291
269
  onFocused: handleReactionFocused,
292
270
  flash: flash[reaction.emojiId],
293
- handleUserListClick: handleOpenReactionsDialog,
294
- allowUserDialog: allowUserDialog,
295
271
  showParticleEffect: particleEffectByEmoji[reaction.emojiId],
296
272
  showOpaqueBackground: showOpaqueBackground
297
273
  })), jsx(ReactionPicker
@@ -15,11 +15,6 @@ export const messages = defineMessages({
15
15
  defaultMessage: 'More emojis',
16
16
  description: 'Tooltip of the "show more" button in the quick reaction selector. The full emoji selector is displayed when the user clicks on it.'
17
17
  },
18
- moreInfo: {
19
- id: 'fabric.reactions.more.info',
20
- defaultMessage: 'More info',
21
- description: 'Clickable text in a tooltip that will display more information about the users who reacted'
22
- },
23
18
  reactWithEmoji: {
24
19
  id: 'fabric.reactions.reactwithemoji',
25
20
  defaultMessage: 'React with {emoji} emoji',
@@ -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.2.0";
7
+ var packageVersion = "24.3.0";
8
8
  /**
9
9
  * TODO: move to utility package?
10
10
  * A random sampling function
@@ -63,9 +63,6 @@ export var Reaction = function Reaction(_ref) {
63
63
  flash = _ref$flash === void 0 ? false : _ref$flash,
64
64
  _ref$showParticleEffe = _ref.showParticleEffect,
65
65
  showParticleEffect = _ref$showParticleEffe === void 0 ? false : _ref$showParticleEffe,
66
- _ref$handleUserListCl = _ref.handleUserListClick,
67
- handleUserListClick = _ref$handleUserListCl === void 0 ? function () {} : _ref$handleUserListCl,
68
- allowUserDialog = _ref.allowUserDialog,
69
66
  _ref$showOpaqueBackgr = _ref.showOpaqueBackground,
70
67
  showOpaqueBackground = _ref$showOpaqueBackgr === void 0 ? false : _ref$showOpaqueBackgr;
71
68
  var intl = useIntl();
@@ -140,10 +137,6 @@ export var Reaction = function Reaction(_ref) {
140
137
  createAndFireSafe(createAnalyticsEvent, createReactionFocusedEvent, hoverStart.current);
141
138
  onFocused(reaction.emojiId, event);
142
139
  }, [createAnalyticsEvent, reaction, onFocused]);
143
- var handleOpenReactionsDialog = function handleOpenReactionsDialog(emojiId) {
144
- handleUserListClick(emojiId);
145
- setIsTooltipEnabled(false);
146
- };
147
140
  var buttonStyles = showOpaqueBackground ? [opaqueBackgroundStyles] : [];
148
141
  return jsx(Box, {
149
142
  xcss: containerStyles
@@ -153,8 +146,6 @@ export var Reaction = function Reaction(_ref) {
153
146
  }), jsx(ReactionTooltip, {
154
147
  emojiName: emojiName,
155
148
  reaction: reaction,
156
- handleUserListClick: handleOpenReactionsDialog,
157
- allowUserDialog: allowUserDialog,
158
149
  isEnabled: isTooltipEnabled
159
150
  }, jsx(ReactionButton, {
160
151
  onClick: handleClick,
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
+ import React, { useCallback, useState } from 'react';
3
4
  import Popup from '@atlaskit/popup';
4
5
  import { Inline, xcss } from '@atlaskit/primitives';
5
- import React, { useCallback, useState } from 'react';
6
6
  import { Reaction } from '../Reaction';
7
7
  import { ReactionSummaryButton } from './ReactionSummaryButton';
8
8
  var summaryPopupStyles = xcss({
@@ -23,8 +23,6 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
23
23
  flash = _ref$flash === void 0 ? {} : _ref$flash,
24
24
  _ref$particleEffectBy = _ref.particleEffectByEmoji,
25
25
  particleEffectByEmoji = _ref$particleEffectBy === void 0 ? {} : _ref$particleEffectBy,
26
- handleOpenReactionsDialog = _ref.handleOpenReactionsDialog,
27
- allowUserDialog = _ref.allowUserDialog,
28
26
  _ref$placement = _ref.placement,
29
27
  placement = _ref$placement === void 0 ? 'auto-start' : _ref$placement,
30
28
  onReactionClick = _ref.onReactionClick,
@@ -61,8 +59,6 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
61
59
  onFocused: onReactionFocused,
62
60
  onMouseEnter: onReactionMouseEnter,
63
61
  flash: flash[reaction.emojiId],
64
- handleUserListClick: handleOpenReactionsDialog,
65
- allowUserDialog: allowUserDialog,
66
62
  showParticleEffect: particleEffectByEmoji[reaction.emojiId]
67
63
  });
68
64
  }));
@@ -10,7 +10,7 @@ import Tooltip from '@atlaskit/tooltip';
10
10
  import { FormattedMessage } from 'react-intl-next';
11
11
  import { TOOLTIP_USERS_LIMIT } from '../../shared/constants';
12
12
  import { messages } from '../../shared/i18n';
13
- import { emojiNameStyle, footerStyle, tooltipStyle, underlineStyle } from './styles';
13
+ import { emojiNameStyle, footerStyle, tooltipStyle } from './styles';
14
14
 
15
15
  /**
16
16
  * Test id for wrapper ReactionTooltip div
@@ -19,16 +19,10 @@ export var RENDER_REACTIONTOOLTIP_TESTID = 'render-reactionTooltip';
19
19
  export var ReactionTooltip = function ReactionTooltip(_ref) {
20
20
  var children = _ref.children,
21
21
  emojiName = _ref.emojiName,
22
- _ref$reaction = _ref.reaction,
23
- _ref$reaction$users = _ref$reaction.users,
22
+ _ref$reaction$users = _ref.reaction.users,
24
23
  users = _ref$reaction$users === void 0 ? [] : _ref$reaction$users,
25
- _ref$reaction$emojiId = _ref$reaction.emojiId,
26
- emojiId = _ref$reaction$emojiId === void 0 ? '' : _ref$reaction$emojiId,
27
24
  _ref$maxReactions = _ref.maxReactions,
28
25
  maxReactions = _ref$maxReactions === void 0 ? TOOLTIP_USERS_LIMIT : _ref$maxReactions,
29
- handleUserListClick = _ref.handleUserListClick,
30
- _ref$allowUserDialog = _ref.allowUserDialog,
31
- allowUserDialog = _ref$allowUserDialog === void 0 ? false : _ref$allowUserDialog,
32
26
  _ref$isEnabled = _ref.isEnabled,
33
27
  isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled;
34
28
  /**
@@ -47,17 +41,12 @@ export var ReactionTooltip = function ReactionTooltip(_ref) {
47
41
  }, user.displayName);
48
42
  }), jsx("li", {
49
43
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
50
- css: allowUserDialog ? [footerStyle, underlineStyle] : footerStyle,
51
- onClick: function onClick() {
52
- if (allowUserDialog && handleUserListClick) {
53
- handleUserListClick(emojiId);
54
- }
55
- }
56
- }, users.length > maxReactions ? jsx(FormattedMessage, _extends({}, messages.otherUsers, {
44
+ css: footerStyle
45
+ }, users.length > maxReactions && jsx(FormattedMessage, _extends({}, messages.otherUsers, {
57
46
  values: {
58
47
  count: users.length - maxReactions
59
48
  }
60
- })) : allowUserDialog && jsx(FormattedMessage, messages.moreInfo))));
49
+ })))));
61
50
  return jsx(Tooltip, {
62
51
  content: content,
63
52
  position: "bottom",
@@ -4,7 +4,7 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css } from '@emotion/react';
7
- import { N90, N800, N0 } from '@atlaskit/theme/colors';
7
+ import { N90 } from '@atlaskit/theme/colors';
8
8
  export var verticalMargin = 5;
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -39,15 +39,4 @@ export var emojiNameStyle = css({
39
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
40
40
  export var footerStyle = css({
41
41
  color: "var(--ds-text-inverse, ".concat(N90, ")")
42
- });
43
-
44
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
45
- export var underlineStyle = css({
46
- cursor: 'pointer',
47
- textDecoration: 'underline',
48
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
49
- ':hover': {
50
- backgroundColor: "var(--ds-background-neutral-bold, ".concat(N800, ")"),
51
- color: "var(--ds-text-inverse, ".concat(N0, ")")
52
- }
53
42
  });
@@ -170,26 +170,6 @@ 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
-
183
- // ufo opening reaction dialog success
184
- ufoExperiences.openDialog.success({
185
- metadata: {
186
- emojiId: emojiId,
187
- source: 'Reactions',
188
- reason: 'Opening dialog from emoji tooltip link successfully'
189
- }
190
- });
191
- };
192
-
193
173
  /**
194
174
  * Event handler to oepn all reactions link button
195
175
  */
@@ -298,8 +278,6 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
298
278
  emojiProvider: emojiProvider,
299
279
  flash: flash,
300
280
  particleEffectByEmoji: particleEffectByEmoji,
301
- handleOpenReactionsDialog: handleOpenReactionsDialog,
302
- allowUserDialog: allowUserDialog,
303
281
  onReactionClick: onReactionClick,
304
282
  onReactionFocused: handleReactionFocused,
305
283
  onReactionMouseEnter: handleReactionMouseEnter,
@@ -315,8 +293,6 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
315
293
  onMouseEnter: handleReactionMouseEnter,
316
294
  onFocused: handleReactionFocused,
317
295
  flash: flash[reaction.emojiId],
318
- handleUserListClick: handleOpenReactionsDialog,
319
- allowUserDialog: allowUserDialog,
320
296
  showParticleEffect: particleEffectByEmoji[reaction.emojiId],
321
297
  showOpaqueBackground: showOpaqueBackground
322
298
  });
@@ -15,11 +15,6 @@ export var messages = defineMessages({
15
15
  defaultMessage: 'More emojis',
16
16
  description: 'Tooltip of the "show more" button in the quick reaction selector. The full emoji selector is displayed when the user clicks on it.'
17
17
  },
18
- moreInfo: {
19
- id: 'fabric.reactions.more.info',
20
- defaultMessage: 'More info',
21
- description: 'Clickable text in a tooltip that will display more information about the users who reacted'
22
- },
23
18
  reactWithEmoji: {
24
19
  id: 'fabric.reactions.reactwithemoji',
25
20
  defaultMessage: 'React with {emoji} emoji',
@@ -1,13 +1,12 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import { type EmojiProvider } from '@atlaskit/emoji';
3
3
  import { type ReactionSummary, type ReactionClick, type ReactionMouseEnter } from '../../types';
4
- import { type ReactionTooltipProps } from '../ReactionTooltip';
5
4
  import { type ReactionFocused } from '../../types/reaction';
6
5
  /**
7
6
  * Test id for Reaction item wrapper div
8
7
  */
9
8
  export declare const RENDER_REACTION_TESTID = "render_reaction_wrapper";
10
- export interface ReactionProps extends Pick<ReactionTooltipProps, 'allowUserDialog'> {
9
+ export interface ReactionProps {
11
10
  /**
12
11
  * Data for the reaction
13
12
  */
@@ -36,10 +35,6 @@ export interface ReactionProps extends Pick<ReactionTooltipProps, 'allowUserDial
36
35
  * Show a floating emoji particle effect (usually in response to a new reaction) (defaults to false)
37
36
  */
38
37
  showParticleEffect?: boolean;
39
- /**
40
- * Optional function when the user wants to see more users in a modal
41
- */
42
- handleUserListClick?: (emojiId: string) => void;
43
38
  /**
44
39
  * Optional prop for using an opaque button background instead of a transparent background
45
40
  */
@@ -48,4 +43,4 @@ export interface ReactionProps extends Pick<ReactionTooltipProps, 'allowUserDial
48
43
  /**
49
44
  * Render an emoji reaction button
50
45
  */
51
- export declare const Reaction: ({ emojiProvider, onClick, reaction, onMouseEnter, onFocused, flash, showParticleEffect, handleUserListClick, allowUserDialog, showOpaqueBackground, }: ReactionProps) => jsx.JSX.Element;
46
+ export declare const Reaction: ({ emojiProvider, onClick, reaction, onMouseEnter, onFocused, flash, showParticleEffect, showOpaqueBackground, }: ReactionProps) => jsx.JSX.Element;
@@ -1,17 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { type Placement } from '@atlaskit/popper';
3
3
  import { type ReactionClick, type ReactionFocused, type ReactionMouseEnter } from '../../types';
4
- import { type ReactionProps } from '../Reaction';
5
4
  import { type ReactionsProps } from '../Reactions';
6
5
  /**
7
6
  * Test id for the Reactions summary view popup
8
7
  */
9
8
  export declare const RENDER_SUMMARY_VIEW_POPUP_TESTID = "render-summary-view-popup";
10
- interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'flash' | 'particleEffectByEmoji'>, Pick<ReactionProps, 'allowUserDialog'> {
11
- /**
12
- * Optional function when the user wants to see more users in a modal
13
- */
14
- handleOpenReactionsDialog: (emojiId: string) => void;
9
+ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'flash' | 'particleEffectByEmoji'> {
15
10
  /**
16
11
  * Optional prop to change the placement of the summary popup reaction list
17
12
  */
@@ -37,5 +32,5 @@ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider'
37
32
  */
38
33
  subtleReactionsSummaryAndPicker?: boolean;
39
34
  }
40
- export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, handleOpenReactionsDialog, allowUserDialog, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, }: ReactionSummaryViewProps) => JSX.Element;
35
+ export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, }: ReactionSummaryViewProps) => JSX.Element;
41
36
  export {};
@@ -22,17 +22,9 @@ export type ReactionTooltipProps = PropsWithChildren<{
22
22
  * Optional Max users to show in the displayed tooltip (defaults to 5)
23
23
  */
24
24
  maxReactions?: number;
25
- /**
26
- * Optional function when the user wants to see more users in a modal
27
- */
28
- handleUserListClick?: (emojiId: string) => void;
29
- /**
30
- * Optional flag to show reactions dialog (defaults to false)
31
- */
32
- allowUserDialog?: boolean;
33
25
  /**
34
26
  * Optional flag for enabling tooltip (defaults to true)
35
27
  */
36
28
  isEnabled?: boolean;
37
29
  }>;
38
- export declare const ReactionTooltip: ({ children, emojiName, reaction: { users, emojiId }, maxReactions, handleUserListClick, allowUserDialog, isEnabled, }: ReactionTooltipProps) => jsx.JSX.Element;
30
+ export declare const ReactionTooltip: ({ children, emojiName, reaction: { users }, maxReactions, isEnabled, }: ReactionTooltipProps) => jsx.JSX.Element;
@@ -2,4 +2,3 @@ export declare const verticalMargin = 5;
2
2
  export declare const tooltipStyle: import("@emotion/react").SerializedStyles;
3
3
  export declare const emojiNameStyle: import("@emotion/react").SerializedStyles;
4
4
  export declare const footerStyle: import("@emotion/react").SerializedStyles;
5
- export declare const underlineStyle: import("@emotion/react").SerializedStyles;
@@ -7,7 +7,6 @@ import { jsx } from '@emotion/react';
7
7
  import { type OnCloseHandler } from '@atlaskit/modal-dialog';
8
8
  import { type Placement } from '@atlaskit/popper';
9
9
  import { type onDialogSelectReactionChange, ReactionStatus, type ReactionClick, type ReactionSummary, type QuickReactionEmojiSummary, type ProfileCardWrapper } from '../../types';
10
- import { type ReactionProps } from '../Reaction';
11
10
  import { type ReactionPickerProps } from '../ReactionPicker';
12
11
  import { type SelectorProps } from '../Selector';
13
12
  /**
@@ -39,7 +38,7 @@ export declare const RENDER_VIEWALL_REACTED_USERS_DIALOG = "viewall-reacted-user
39
38
  * Test id for summary view of reactions
40
39
  */
41
40
  export declare const RENDER_REACTIONS_SUMMARY_TESTID = "reaction-summary-view";
42
- export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode'>, Pick<SelectorProps, 'pickerQuickReactionEmojiIds'>, Pick<ReactionProps, 'allowUserDialog'> {
41
+ export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode'>, Pick<SelectorProps, 'pickerQuickReactionEmojiIds'> {
43
42
  /**
44
43
  * event handler to fetching the reactions
45
44
  */
@@ -126,6 +125,10 @@ export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmoji
126
125
  * Optional prop for hiding default reactions displayed when there are no existing reactions
127
126
  */
128
127
  hideDefaultReactions?: boolean;
128
+ /**
129
+ * Optional prop from checking a feature gate for rendering Reactions Dialog
130
+ */
131
+ allowUserDialog?: boolean;
129
132
  /**
130
133
  * Optional prop for rendering a profile card wrapper in the Reactions Dialog
131
134
  */
@@ -14,11 +14,6 @@ export declare const messages: {
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
- moreInfo: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
17
  reactWithEmoji: {
23
18
  id: string;
24
19
  defaultMessage: string;
@@ -1,13 +1,12 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import { type EmojiProvider } from '@atlaskit/emoji';
3
3
  import { type ReactionSummary, type ReactionClick, type ReactionMouseEnter } from '../../types';
4
- import { type ReactionTooltipProps } from '../ReactionTooltip';
5
4
  import { type ReactionFocused } from '../../types/reaction';
6
5
  /**
7
6
  * Test id for Reaction item wrapper div
8
7
  */
9
8
  export declare const RENDER_REACTION_TESTID = "render_reaction_wrapper";
10
- export interface ReactionProps extends Pick<ReactionTooltipProps, 'allowUserDialog'> {
9
+ export interface ReactionProps {
11
10
  /**
12
11
  * Data for the reaction
13
12
  */
@@ -36,10 +35,6 @@ export interface ReactionProps extends Pick<ReactionTooltipProps, 'allowUserDial
36
35
  * Show a floating emoji particle effect (usually in response to a new reaction) (defaults to false)
37
36
  */
38
37
  showParticleEffect?: boolean;
39
- /**
40
- * Optional function when the user wants to see more users in a modal
41
- */
42
- handleUserListClick?: (emojiId: string) => void;
43
38
  /**
44
39
  * Optional prop for using an opaque button background instead of a transparent background
45
40
  */
@@ -48,4 +43,4 @@ export interface ReactionProps extends Pick<ReactionTooltipProps, 'allowUserDial
48
43
  /**
49
44
  * Render an emoji reaction button
50
45
  */
51
- export declare const Reaction: ({ emojiProvider, onClick, reaction, onMouseEnter, onFocused, flash, showParticleEffect, handleUserListClick, allowUserDialog, showOpaqueBackground, }: ReactionProps) => jsx.JSX.Element;
46
+ export declare const Reaction: ({ emojiProvider, onClick, reaction, onMouseEnter, onFocused, flash, showParticleEffect, showOpaqueBackground, }: ReactionProps) => jsx.JSX.Element;
@@ -1,17 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { type Placement } from '@atlaskit/popper';
3
3
  import { type ReactionClick, type ReactionFocused, type ReactionMouseEnter } from '../../types';
4
- import { type ReactionProps } from '../Reaction';
5
4
  import { type ReactionsProps } from '../Reactions';
6
5
  /**
7
6
  * Test id for the Reactions summary view popup
8
7
  */
9
8
  export declare const RENDER_SUMMARY_VIEW_POPUP_TESTID = "render-summary-view-popup";
10
- interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'flash' | 'particleEffectByEmoji'>, Pick<ReactionProps, 'allowUserDialog'> {
11
- /**
12
- * Optional function when the user wants to see more users in a modal
13
- */
14
- handleOpenReactionsDialog: (emojiId: string) => void;
9
+ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'flash' | 'particleEffectByEmoji'> {
15
10
  /**
16
11
  * Optional prop to change the placement of the summary popup reaction list
17
12
  */
@@ -37,5 +32,5 @@ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider'
37
32
  */
38
33
  subtleReactionsSummaryAndPicker?: boolean;
39
34
  }
40
- export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, handleOpenReactionsDialog, allowUserDialog, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, }: ReactionSummaryViewProps) => JSX.Element;
35
+ export declare const ReactionSummaryView: ({ emojiProvider, reactions, flash, particleEffectByEmoji, placement, onReactionClick, onReactionFocused, onReactionMouseEnter, showOpaqueBackground, subtleReactionsSummaryAndPicker, }: ReactionSummaryViewProps) => JSX.Element;
41
36
  export {};
@@ -22,17 +22,9 @@ export type ReactionTooltipProps = PropsWithChildren<{
22
22
  * Optional Max users to show in the displayed tooltip (defaults to 5)
23
23
  */
24
24
  maxReactions?: number;
25
- /**
26
- * Optional function when the user wants to see more users in a modal
27
- */
28
- handleUserListClick?: (emojiId: string) => void;
29
- /**
30
- * Optional flag to show reactions dialog (defaults to false)
31
- */
32
- allowUserDialog?: boolean;
33
25
  /**
34
26
  * Optional flag for enabling tooltip (defaults to true)
35
27
  */
36
28
  isEnabled?: boolean;
37
29
  }>;
38
- export declare const ReactionTooltip: ({ children, emojiName, reaction: { users, emojiId }, maxReactions, handleUserListClick, allowUserDialog, isEnabled, }: ReactionTooltipProps) => jsx.JSX.Element;
30
+ export declare const ReactionTooltip: ({ children, emojiName, reaction: { users }, maxReactions, isEnabled, }: ReactionTooltipProps) => jsx.JSX.Element;
@@ -2,4 +2,3 @@ export declare const verticalMargin = 5;
2
2
  export declare const tooltipStyle: import("@emotion/react").SerializedStyles;
3
3
  export declare const emojiNameStyle: import("@emotion/react").SerializedStyles;
4
4
  export declare const footerStyle: import("@emotion/react").SerializedStyles;
5
- export declare const underlineStyle: import("@emotion/react").SerializedStyles;
@@ -7,7 +7,6 @@ import { jsx } from '@emotion/react';
7
7
  import { type OnCloseHandler } from '@atlaskit/modal-dialog';
8
8
  import { type Placement } from '@atlaskit/popper';
9
9
  import { type onDialogSelectReactionChange, ReactionStatus, type ReactionClick, type ReactionSummary, type QuickReactionEmojiSummary, type ProfileCardWrapper } from '../../types';
10
- import { type ReactionProps } from '../Reaction';
11
10
  import { type ReactionPickerProps } from '../ReactionPicker';
12
11
  import { type SelectorProps } from '../Selector';
13
12
  /**
@@ -39,7 +38,7 @@ export declare const RENDER_VIEWALL_REACTED_USERS_DIALOG = "viewall-reacted-user
39
38
  * Test id for summary view of reactions
40
39
  */
41
40
  export declare const RENDER_REACTIONS_SUMMARY_TESTID = "reaction-summary-view";
42
- export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode'>, Pick<SelectorProps, 'pickerQuickReactionEmojiIds'>, Pick<ReactionProps, 'allowUserDialog'> {
41
+ export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode'>, Pick<SelectorProps, 'pickerQuickReactionEmojiIds'> {
43
42
  /**
44
43
  * event handler to fetching the reactions
45
44
  */
@@ -126,6 +125,10 @@ export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmoji
126
125
  * Optional prop for hiding default reactions displayed when there are no existing reactions
127
126
  */
128
127
  hideDefaultReactions?: boolean;
128
+ /**
129
+ * Optional prop from checking a feature gate for rendering Reactions Dialog
130
+ */
131
+ allowUserDialog?: boolean;
129
132
  /**
130
133
  * Optional prop for rendering a profile card wrapper in the Reactions Dialog
131
134
  */
@@ -14,11 +14,6 @@ export declare const messages: {
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
- moreInfo: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
17
  reactWithEmoji: {
23
18
  id: string;
24
19
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "24.2.0",
3
+ "version": "24.3.0",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"