@atlaskit/reactions 27.2.1 → 29.0.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 (102) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-jira/tsconfig.json +3 -0
  4. package/afm-post-office/tsconfig.json +3 -0
  5. package/dist/cjs/analytics/index.js +1 -1
  6. package/dist/cjs/components/ReactionPicker/ReactionPicker.js +2 -5
  7. package/dist/cjs/components/ReactionSummary/ReactionSummaryViewEmojiPicker.js +7 -12
  8. package/dist/cjs/components/Reactions/Reactions.js +0 -3
  9. package/dist/cjs/components/Trigger/Trigger.js +1 -8
  10. package/dist/cjs/components/compiled/Counter.compiled.css +16 -0
  11. package/dist/cjs/components/compiled/Counter.js +102 -0
  12. package/dist/cjs/components/compiled/FlashAnimation.compiled.css +3 -0
  13. package/dist/cjs/components/compiled/FlashAnimation.js +35 -0
  14. package/dist/cjs/components/compiled/Reaction.compiled.css +9 -0
  15. package/dist/cjs/components/compiled/Reaction.js +185 -0
  16. package/dist/cjs/components/compiled/ReactionButton.compiled.css +37 -0
  17. package/dist/cjs/components/compiled/ReactionButton.js +70 -0
  18. package/dist/cjs/components/compiled/ReactionParticleEffect.compiled.css +17 -0
  19. package/dist/cjs/components/compiled/ReactionParticleEffect.js +41 -0
  20. package/dist/cjs/components/compiled/ReactionTooltip.compiled.css +29 -0
  21. package/dist/cjs/components/compiled/ReactionTooltip.js +77 -0
  22. package/dist/cjs/components/compiled/Reactions.compiled.css +11 -0
  23. package/dist/cjs/components/compiled/Reactions.js +374 -0
  24. package/dist/cjs/components/compiled/StaticReaction.compiled.css +17 -0
  25. package/dist/cjs/components/compiled/StaticReaction.js +34 -0
  26. package/dist/cjs/containers/ConnectedReactionsView/ConnectedReactionsView.js +6 -1
  27. package/dist/cjs/index.js +12 -15
  28. package/dist/es2019/analytics/index.js +1 -1
  29. package/dist/es2019/components/ReactionPicker/ReactionPicker.js +2 -4
  30. package/dist/es2019/components/ReactionSummary/ReactionSummaryViewEmojiPicker.js +4 -10
  31. package/dist/es2019/components/Reactions/Reactions.js +0 -2
  32. package/dist/es2019/components/Trigger/Trigger.js +1 -7
  33. package/dist/es2019/components/compiled/Counter.compiled.css +16 -0
  34. package/dist/es2019/components/compiled/Counter.js +86 -0
  35. package/dist/es2019/components/compiled/FlashAnimation.compiled.css +4 -0
  36. package/dist/es2019/components/compiled/FlashAnimation.js +21 -0
  37. package/dist/es2019/components/compiled/Reaction.compiled.css +9 -0
  38. package/dist/es2019/components/compiled/Reaction.js +151 -0
  39. package/dist/es2019/components/compiled/ReactionButton.compiled.css +37 -0
  40. package/dist/es2019/components/compiled/ReactionButton.js +56 -0
  41. package/dist/es2019/components/compiled/ReactionParticleEffect.compiled.css +19 -0
  42. package/dist/es2019/components/compiled/ReactionParticleEffect.js +26 -0
  43. package/dist/es2019/components/compiled/ReactionTooltip.compiled.css +29 -0
  44. package/dist/es2019/components/compiled/ReactionTooltip.js +62 -0
  45. package/dist/es2019/components/compiled/Reactions.compiled.css +11 -0
  46. package/dist/es2019/components/compiled/Reactions.js +323 -0
  47. package/dist/es2019/components/compiled/StaticReaction.compiled.css +17 -0
  48. package/dist/es2019/components/compiled/StaticReaction.js +24 -0
  49. package/dist/es2019/containers/ConnectedReactionsView/ConnectedReactionsView.js +7 -2
  50. package/dist/es2019/index.js +9 -1
  51. package/dist/esm/analytics/index.js +1 -1
  52. package/dist/esm/components/ReactionPicker/ReactionPicker.js +2 -5
  53. package/dist/esm/components/ReactionSummary/ReactionSummaryViewEmojiPicker.js +4 -10
  54. package/dist/esm/components/Reactions/Reactions.js +0 -3
  55. package/dist/esm/components/Trigger/Trigger.js +1 -8
  56. package/dist/esm/components/compiled/Counter.compiled.css +16 -0
  57. package/dist/esm/components/compiled/Counter.js +93 -0
  58. package/dist/esm/components/compiled/FlashAnimation.compiled.css +3 -0
  59. package/dist/esm/components/compiled/FlashAnimation.js +26 -0
  60. package/dist/esm/components/compiled/Reaction.compiled.css +9 -0
  61. package/dist/esm/components/compiled/Reaction.js +175 -0
  62. package/dist/esm/components/compiled/ReactionButton.compiled.css +37 -0
  63. package/dist/esm/components/compiled/ReactionButton.js +60 -0
  64. package/dist/esm/components/compiled/ReactionParticleEffect.compiled.css +17 -0
  65. package/dist/esm/components/compiled/ReactionParticleEffect.js +31 -0
  66. package/dist/esm/components/compiled/ReactionTooltip.compiled.css +29 -0
  67. package/dist/esm/components/compiled/ReactionTooltip.js +70 -0
  68. package/dist/esm/components/compiled/Reactions.compiled.css +11 -0
  69. package/dist/esm/components/compiled/Reactions.js +362 -0
  70. package/dist/esm/components/compiled/StaticReaction.compiled.css +17 -0
  71. package/dist/esm/components/compiled/StaticReaction.js +24 -0
  72. package/dist/esm/containers/ConnectedReactionsView/ConnectedReactionsView.js +7 -2
  73. package/dist/esm/index.js +9 -1
  74. package/dist/types/components/ReactionPicker/ReactionPicker.d.ts +1 -5
  75. package/dist/types/components/ReactionSummary/ReactionSummaryViewEmojiPicker.d.ts +2 -2
  76. package/dist/types/components/Reactions/Reactions.d.ts +2 -6
  77. package/dist/types/components/Trigger/Trigger.d.ts +0 -4
  78. package/dist/types/components/compiled/Counter.d.ts +52 -0
  79. package/dist/types/components/compiled/FlashAnimation.d.ts +23 -0
  80. package/dist/types/components/compiled/Reaction.d.ts +63 -0
  81. package/dist/types/components/compiled/ReactionButton.d.ts +20 -0
  82. package/dist/types/components/compiled/ReactionParticleEffect.d.ts +19 -0
  83. package/dist/types/components/compiled/ReactionTooltip.d.ts +43 -0
  84. package/dist/types/components/compiled/Reactions.d.ts +177 -0
  85. package/dist/types/components/compiled/StaticReaction.d.ts +12 -0
  86. package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +1 -1
  87. package/dist/types/index.d.ts +5 -1
  88. package/dist/types-ts4.5/components/ReactionPicker/ReactionPicker.d.ts +1 -5
  89. package/dist/types-ts4.5/components/ReactionSummary/ReactionSummaryViewEmojiPicker.d.ts +2 -2
  90. package/dist/types-ts4.5/components/Reactions/Reactions.d.ts +2 -6
  91. package/dist/types-ts4.5/components/Trigger/Trigger.d.ts +0 -4
  92. package/dist/types-ts4.5/components/compiled/Counter.d.ts +52 -0
  93. package/dist/types-ts4.5/components/compiled/FlashAnimation.d.ts +23 -0
  94. package/dist/types-ts4.5/components/compiled/Reaction.d.ts +63 -0
  95. package/dist/types-ts4.5/components/compiled/ReactionButton.d.ts +20 -0
  96. package/dist/types-ts4.5/components/compiled/ReactionParticleEffect.d.ts +19 -0
  97. package/dist/types-ts4.5/components/compiled/ReactionTooltip.d.ts +43 -0
  98. package/dist/types-ts4.5/components/compiled/Reactions.d.ts +177 -0
  99. package/dist/types-ts4.5/components/compiled/StaticReaction.d.ts +12 -0
  100. package/dist/types-ts4.5/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +1 -1
  101. package/dist/types-ts4.5/index.d.ts +5 -1
  102. package/package.json +13 -3
@@ -0,0 +1,70 @@
1
+ /* ReactionButton.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.ReactionButton = void 0;
10
+ require("./ReactionButton.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ var _react2 = require("@compiled/react");
15
+ var _FlashAnimation = require("./FlashAnimation");
16
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
+ var _compiled = require("@atlaskit/primitives/compiled");
18
+ 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); }
19
+ 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; }
20
+ var styles = {
21
+ reactionButton: "_2rko14q2 _1reo15vq _18m915vq _189ee4h9 _1dqonqa1 _1h6dmuej _1e0c1txw _2lx2vrvc _4cvr1y6m _1ul914no _4t3i1tcg _bfhksm61 _syaz1gjq _1pfh1b66 _12l21b66 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _irr3166n _1di61dty",
22
+ reactionStylesRefresh: "_2rkoglpi",
23
+ borderless: "_x3doglyw _1kl7glyw _1s7zglyw _n7zlglyw",
24
+ reacted: "_1h6d1yqz _bfhkfg4m _irr3i1yw _1di619ru",
25
+ opaqueBackground: "_bfhkvuon _irr3108i _1di61ji5"
26
+ };
27
+
28
+ /**
29
+ * Default styling px height for an emoji reaction
30
+ */
31
+ var akHeight = 24;
32
+ var flashHeight = akHeight - 2; // height without the 1px border
33
+
34
+ var flashStyle = null;
35
+ var flashStyleOld = null;
36
+ var ReactionButton = exports.ReactionButton = function ReactionButton(_ref) {
37
+ var onClick = _ref.onClick,
38
+ _ref$flash = _ref.flash,
39
+ flash = _ref$flash === void 0 ? false : _ref$flash,
40
+ showSubtleStyle = _ref.showSubtleStyle,
41
+ showOpaqueBackground = _ref.showOpaqueBackground,
42
+ reacted = _ref.reacted,
43
+ ariaLabel = _ref.ariaLabel,
44
+ ariaPressed = _ref.ariaPressed,
45
+ onMouseEnter = _ref.onMouseEnter,
46
+ onFocus = _ref.onFocus,
47
+ children = _ref.children,
48
+ _ref$dataAttributes = _ref.dataAttributes,
49
+ dataAttributes = _ref$dataAttributes === void 0 ? {} : _ref$dataAttributes,
50
+ testId = _ref.testId;
51
+ return /*#__PURE__*/React.createElement(_compiled.Pressable, (0, _extends2.default)({
52
+ onClick: onClick,
53
+ onMouseEnter: onMouseEnter,
54
+ onFocus: onFocus,
55
+ "aria-label": ariaLabel,
56
+ "aria-pressed": ariaPressed,
57
+ testId: testId,
58
+ xcss: (0, _react2.cx)(styles.reactionButton, reacted && styles.reacted, !reacted && showSubtleStyle && styles.borderless, !reacted && showOpaqueBackground && styles.opaqueBackground,
59
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
60
+ (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && styles.reactionStylesRefresh)
61
+ }, dataAttributes), /*#__PURE__*/React.createElement(_FlashAnimation.FlashAnimation, {
62
+ flash: flash
63
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
64
+ ,
65
+ className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? "_2rkogqwt _1e0c1txw _2lx2vrvc _4cvr1h6o _4t3i3698" : "_2rko19bv _1e0c1txw _2lx2vrvc _4cvr1h6o _4t3i3698"]),
66
+ style: {
67
+ "--_1ed2mu0": (0, _runtime.ix)("".concat(flashHeight, "px"))
68
+ }
69
+ }, children));
70
+ };
@@ -0,0 +1,17 @@
1
+
2
+ ._y44v1gev{animation:var(--_wb63cw)}._154iidpf{top:0}
3
+ ._1lac188d:nth-child(3){animation-delay:.3s}
4
+ ._1ltvftgi{left:8px}
5
+ ._1ltvidpf{left:0}
6
+ ._1pbyifev{z-index:10000}
7
+ ._1qen1lpd:nth-child(2){left:-5px}
8
+ ._5sagpwmj{animation-duration:.7s}
9
+ ._7vm81dfm:nth-child(4){animation-delay:.45s}
10
+ ._91vyftgi:nth-child(3){left:8px}
11
+ ._jsy51n1a:nth-child(4){left:-1px}
12
+ ._kqswh2mm{position:relative}
13
+ ._kqswstnw{position:absolute}
14
+ ._lcxvglyw{pointer-events:none}
15
+ ._tzy4idpf{opacity:0}
16
+ ._xg4k6ebc:nth-child(2){animation-delay:.15s}
17
+ @media (prefers-reduced-motion:reduce){._m602idpf{opacity:0}}
@@ -0,0 +1,41 @@
1
+ /* ReactionParticleEffect.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.ReactionParticleEffect = exports.PARTICLE_COUNT = void 0;
10
+ require("./ReactionParticleEffect.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
14
+ var _emoji = require("@atlaskit/emoji");
15
+ var _constants = require("@atlaskit/theme/constants");
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); }
17
+ 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
+ var fade = null;
19
+ var float = null;
20
+ var containerStyle = null;
21
+ var reactionParticleStyle = null;
22
+ var PARTICLE_COUNT = exports.PARTICLE_COUNT = 4;
23
+ var ReactionParticleEffect = exports.ReactionParticleEffect = function ReactionParticleEffect(_ref) {
24
+ var emojiProvider = _ref.emojiProvider,
25
+ emojiId = _ref.emojiId;
26
+ return /*#__PURE__*/React.createElement("div", {
27
+ className: (0, _runtime.ax)(["_kqswh2mm _1ltvftgi _1pbyifev _m602idpf"])
28
+ }, (0, _toConsumableArray2.default)(Array(PARTICLE_COUNT)).map(function (_, index) {
29
+ return /*#__PURE__*/React.createElement("div", {
30
+ key: index,
31
+ className: (0, _runtime.ax)(["_y44v1gev _kqswstnw _154iidpf _1ltvidpf _lcxvglyw _tzy4idpf _5sagpwmj _1qen1lpd _xg4k6ebc _91vyftgi _1lac188d _jsy51n1a _7vm81dfm"]),
32
+ style: {
33
+ "--_wb63cw": (0, _runtime.ix)("".concat(fade, " ease-in-out, ").concat(float, " ease"))
34
+ }
35
+ }, /*#__PURE__*/React.createElement(_emoji.ResourcedEmoji, {
36
+ emojiProvider: emojiProvider,
37
+ emojiId: emojiId,
38
+ fitToHeight: 16
39
+ }));
40
+ }));
41
+ };
@@ -0,0 +1,29 @@
1
+
2
+ ._d1n8glyw ul{list-style:none}._102oidpf ul{margin-top:0}
3
+ ._17d4idpf ul{margin-left:0}
4
+ ._18m915vq{overflow-y:hidden}
5
+ ._1bto1l2s{text-overflow:ellipsis}
6
+ ._1eg614y2 li{margin-top:5px}
7
+ ._1hms8stv{text-decoration-line:underline}
8
+ ._1hziidpf ul{padding-top:0}
9
+ ._1kvxidpf ul{margin-right:0}
10
+ ._1p1d1dk0{text-transform:capitalize}
11
+ ._1pru15vq li{overflow-x:hidden}
12
+ ._1reo15vq{overflow-x:hidden}
13
+ ._1ysjidpf ul{margin-bottom:0}
14
+ ._1ywo1e5h ul{text-align:left}
15
+ ._3n4midpf ul{padding-right:0}
16
+ ._4bfu1r31{text-decoration-color:currentColor}
17
+ ._5qec1l2s li{text-overflow:ellipsis}
18
+ ._80omtlke{cursor:pointer}
19
+ ._ajmmnqa1{text-decoration-style:solid}
20
+ ._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
21
+ ._k7zyidpf ul{padding-left:0}
22
+ ._ltofidpf ul{padding-bottom:0}
23
+ ._o5721q9c{white-space:nowrap}
24
+ ._otyr14y2{margin-bottom:5px}
25
+ ._p12f1w81{max-width:150px}
26
+ ._syaz1lqe{color:var(--_14nrcaz)}
27
+ ._u0h115vq li{overflow-y:hidden}
28
+ ._30l31i9p:hover{color:var(--_ywovvi)}
29
+ ._irr3pioe:hover{background-color:var(--_yr7xfv)}
@@ -0,0 +1,77 @@
1
+ /* ReactionTooltip.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.verticalMargin = exports.ReactionTooltip = exports.RENDER_REACTIONTOOLTIP_TESTID = void 0;
9
+ require("./ReactionTooltip.compiled.css");
10
+ var _runtime = require("@compiled/react/runtime");
11
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
+ var _react = _interopRequireDefault(require("react"));
13
+ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
14
+ var _reactIntlNext = require("react-intl-next");
15
+ var _constants = require("../../shared/constants");
16
+ var _i18n = require("../../shared/i18n");
17
+ var _colors = require("@atlaskit/theme/colors");
18
+ var verticalMargin = exports.verticalMargin = 5;
19
+ var tooltipStyle = null;
20
+ var emojiNameStyle = null;
21
+ var footerStyle = null;
22
+ var underlineStyle = null;
23
+
24
+ /**
25
+ * Test id for wrapper ReactionTooltip div
26
+ */
27
+ var RENDER_REACTIONTOOLTIP_TESTID = exports.RENDER_REACTIONTOOLTIP_TESTID = 'render-reactionTooltip';
28
+ var ReactionTooltip = exports.ReactionTooltip = function ReactionTooltip(_ref) {
29
+ var children = _ref.children,
30
+ emojiName = _ref.emojiName,
31
+ _ref$reaction$users = _ref.reaction.users,
32
+ users = _ref$reaction$users === void 0 ? [] : _ref$reaction$users,
33
+ _ref$maxReactions = _ref.maxReactions,
34
+ maxReactions = _ref$maxReactions === void 0 ? _constants.TOOLTIP_USERS_LIMIT : _ref$maxReactions,
35
+ _ref$isEnabled = _ref.isEnabled,
36
+ isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled,
37
+ allowUserDialog = _ref.allowUserDialog,
38
+ handleOpenReactionsDialog = _ref.handleOpenReactionsDialog,
39
+ dismissTooltip = _ref.dismissTooltip;
40
+ var handleClick = function handleClick() {
41
+ if (allowUserDialog && handleOpenReactionsDialog) {
42
+ dismissTooltip();
43
+ handleOpenReactionsDialog();
44
+ }
45
+ };
46
+ var content = !users || users.length === 0 || !isEnabled ? null : /*#__PURE__*/_react.default.createElement("div", {
47
+ tabIndex: 0,
48
+ className: (0, _runtime.ax)(["_1reo15vq _18m915vq _p12f1w81 _1bto1l2s _o5721q9c _otyr14y2 _d1n8glyw _102oidpf _1kvxidpf _1ysjidpf _17d4idpf _1hziidpf _3n4midpf _ltofidpf _k7zyidpf _1ywo1e5h _1pru15vq _u0h115vq _5qec1l2s _1eg614y2"])
49
+ }, /*#__PURE__*/_react.default.createElement("ul", null, emojiName ? /*#__PURE__*/_react.default.createElement("li", {
50
+ className: (0, _runtime.ax)(["_1p1d1dk0 _syaz1lqe _k48p1pd9"]),
51
+ style: {
52
+ "--_14nrcaz": (0, _runtime.ix)("var(--ds-text-inverse, ".concat(_colors.N90, ")"))
53
+ }
54
+ }, emojiName) : null, users.slice(0, maxReactions).map(function (user) {
55
+ return /*#__PURE__*/_react.default.createElement("li", {
56
+ key: user.id
57
+ }, user.displayName);
58
+ }), /*#__PURE__*/_react.default.createElement("li", {
59
+ onMouseDown: handleClick,
60
+ onClick: handleClick,
61
+ className: (0, _runtime.ax)(["_syaz1lqe", allowUserDialog && "_4bfu1r31 _1hms8stv _ajmmnqa1 _80omtlke _irr3pioe _30l31i9p"]),
62
+ style: {
63
+ "--_14nrcaz": (0, _runtime.ix)("var(--ds-text-inverse, ".concat(_colors.N90, ")")),
64
+ "--_yr7xfv": (0, _runtime.ix)("var(--ds-background-neutral-bold, ".concat(_colors.N800, ")")),
65
+ "--_ywovvi": (0, _runtime.ix)("var(--ds-text-inverse, ".concat(_colors.N0, ")"))
66
+ }
67
+ }, users.length > maxReactions && /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.otherUsers, {
68
+ values: {
69
+ count: users.length - maxReactions
70
+ }
71
+ })))));
72
+ return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
73
+ content: content,
74
+ position: "bottom",
75
+ testId: RENDER_REACTIONTOOLTIP_TESTID
76
+ }, _react.default.Children.only(children));
77
+ };
@@ -0,0 +1,11 @@
1
+
2
+ ._2rkoo7ao{border-radius:15px}._13vtidpf >:first-of-type>:first-of-type{margin-left:0}
3
+ ._19pk1b66{margin-top:var(--ds-space-050,4px)}
4
+ ._19pkr5cr{margin-top:var(--ds-space-negative-050,-4px)}
5
+ ._1e0c1o8l{display:inline-block}
6
+ ._1e0c1txw{display:flex}
7
+ ._1n261g80{flex-wrap:wrap}
8
+ ._1n261q9c{flex-wrap:nowrap}
9
+ ._4cvr1h6o{align-items:center}
10
+ ._kqswh2mm{position:relative}
11
+ ._kqswpfqs{position:static}
@@ -0,0 +1,374 @@
1
+ /* Reactions.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.Reactions = exports.RENDER_VIEWALL_REACTED_USERS_DIALOG = exports.RENDER_REACTIONS_TESTID = exports.RENDER_REACTIONS_SUMMARY_TESTID = void 0;
10
+ exports.getTooltip = getTooltip;
11
+ exports.ufoExperiences = void 0;
12
+ require("./Reactions.compiled.css");
13
+ var _runtime = require("@compiled/react/runtime");
14
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
15
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
16
+ var _react = _interopRequireWildcard(require("react"));
17
+ var _reactIntlNext = require("react-intl-next");
18
+ var _analyticsNext = require("@atlaskit/analytics-next");
19
+ var _modalDialog = require("@atlaskit/modal-dialog");
20
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
+ var _segment = _interopRequireDefault(require("@atlaskit/react-ufo/segment"));
22
+ var _analytics = require("../../analytics");
23
+ var _constants = require("../../shared/constants");
24
+ var _i18n = require("../../shared/i18n");
25
+ var _types = require("../../types");
26
+ var _ufo = require("../../ufo");
27
+ var _Reaction = require("./Reaction");
28
+ var _ReactionDialog = require("../ReactionDialog");
29
+ var _ReactionPicker = require("../ReactionPicker");
30
+ var _ReactionSummary = require("../ReactionSummary/");
31
+ 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); }
32
+ 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; }
33
+ var wrapperStyle = null;
34
+ var noFlexWrapStyles = null;
35
+ var noContainerPositionStyles = null;
36
+ var reactionPickerStyle = null;
37
+
38
+ /**
39
+ * Set of all available UFO experiences relating to Reactions Dialog
40
+ */
41
+ var ufoExperiences = exports.ufoExperiences = {
42
+ /**
43
+ * Experience when a reaction dialog is opened
44
+ */
45
+ openDialog: _ufo.ReactionDialogOpened,
46
+ /**
47
+ * Experience when a reaction changed/fetched from inside the modal dialog
48
+ */
49
+ selectedReactionChangeInsideDialog: _ufo.ReactionDialogSelectedReactionChanged
50
+ };
51
+
52
+ /**
53
+ * Test id for wrapper Reactions div
54
+ */
55
+ var RENDER_REACTIONS_TESTID = exports.RENDER_REACTIONS_TESTID = 'render-reactions';
56
+ /**
57
+ * Test id for the view all reacted user to trigger the dialog
58
+ */
59
+ var RENDER_VIEWALL_REACTED_USERS_DIALOG = exports.RENDER_VIEWALL_REACTED_USERS_DIALOG = 'viewall-reacted-users-dialog';
60
+
61
+ /**
62
+ * Test id for summary view of reactions
63
+ */
64
+ var RENDER_REACTIONS_SUMMARY_TESTID = exports.RENDER_REACTIONS_SUMMARY_TESTID = 'reaction-summary-view';
65
+ /**
66
+ * Get content of the tooltip
67
+ */
68
+ function getTooltip(status, errorMessage, tooltipContent) {
69
+ switch (status) {
70
+ case _types.ReactionStatus.error:
71
+ return errorMessage || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.unexpectedError);
72
+ // When reaction is not available don't show any tooltip (e.g. Archive page in Confluence)
73
+ case _types.ReactionStatus.disabled:
74
+ return null;
75
+ case _types.ReactionStatus.notLoaded:
76
+ case _types.ReactionStatus.loading:
77
+ return /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.loadingReactions);
78
+ case _types.ReactionStatus.ready:
79
+ return !!tooltipContent ? tooltipContent : /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.addReaction);
80
+ }
81
+ }
82
+
83
+ /**
84
+ * Renders list of reactions
85
+ */
86
+ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_ref) {
87
+ var _ref$flash = _ref.flash,
88
+ flash = _ref$flash === void 0 ? {} : _ref$flash,
89
+ _ref$particleEffectBy = _ref.particleEffectByEmoji,
90
+ particleEffectByEmoji = _ref$particleEffectBy === void 0 ? {} : _ref$particleEffectBy,
91
+ status = _ref.status,
92
+ errorMessage = _ref.errorMessage,
93
+ loadReaction = _ref.loadReaction,
94
+ quickReactionEmojis = _ref.quickReactionEmojis,
95
+ pickerQuickReactionEmojiIds = _ref.pickerQuickReactionEmojiIds,
96
+ _ref$getReactionDetai = _ref.getReactionDetails,
97
+ getReactionDetails = _ref$getReactionDetai === void 0 ? function () {} : _ref$getReactionDetai,
98
+ onSelection = _ref.onSelection,
99
+ _ref$reactions = _ref.reactions,
100
+ reactions = _ref$reactions === void 0 ? [] : _ref$reactions,
101
+ emojiProvider = _ref.emojiProvider,
102
+ allowAllEmojis = _ref.allowAllEmojis,
103
+ onReactionClick = _ref.onReactionClick,
104
+ allowUserDialog = _ref.allowUserDialog,
105
+ _ref$onDialogOpenCall = _ref.onDialogOpenCallback,
106
+ onDialogOpenCallback = _ref$onDialogOpenCall === void 0 ? function () {} : _ref$onDialogOpenCall,
107
+ _ref$onDialogCloseCal = _ref.onDialogCloseCallback,
108
+ onDialogCloseCallback = _ref$onDialogCloseCal === void 0 ? function () {} : _ref$onDialogCloseCal,
109
+ _ref$onDialogSelectRe = _ref.onDialogSelectReactionCallback,
110
+ onDialogSelectReactionCallback = _ref$onDialogSelectRe === void 0 ? function () {} : _ref$onDialogSelectRe,
111
+ _ref$onDialogPageChan = _ref.onDialogPageChangeCallback,
112
+ onDialogPageChangeCallback = _ref$onDialogPageChan === void 0 ? function () {} : _ref$onDialogPageChan,
113
+ _ref$emojiPickerSize = _ref.emojiPickerSize,
114
+ emojiPickerSize = _ref$emojiPickerSize === void 0 ? 'medium' : _ref$emojiPickerSize,
115
+ _ref$miniMode = _ref.miniMode,
116
+ miniMode = _ref$miniMode === void 0 ? false : _ref$miniMode,
117
+ _ref$summaryViewEnabl = _ref.summaryViewEnabled,
118
+ summaryViewEnabled = _ref$summaryViewEnabl === void 0 ? false : _ref$summaryViewEnabl,
119
+ _ref$summaryViewThres = _ref.summaryViewThreshold,
120
+ summaryViewThreshold = _ref$summaryViewThres === void 0 ? 3 : _ref$summaryViewThres,
121
+ summaryViewPlacement = _ref.summaryViewPlacement,
122
+ _ref$showOpaqueBackgr = _ref.showOpaqueBackground,
123
+ showOpaqueBackground = _ref$showOpaqueBackgr === void 0 ? false : _ref$showOpaqueBackgr,
124
+ _ref$subtleReactionsS = _ref.subtleReactionsSummaryAndPicker,
125
+ subtleReactionsSummaryAndPicker = _ref$subtleReactionsS === void 0 ? false : _ref$subtleReactionsS,
126
+ _ref$showAddReactionT = _ref.showAddReactionText,
127
+ showAddReactionText = _ref$showAddReactionT === void 0 ? false : _ref$showAddReactionT,
128
+ _ref$hideDefaultReact = _ref.hideDefaultReactions,
129
+ hideDefaultReactions = _ref$hideDefaultReact === void 0 ? false : _ref$hideDefaultReact,
130
+ ProfileCardWrapper = _ref.ProfileCardWrapper,
131
+ _ref$onlyRenderPicker = _ref.onlyRenderPicker,
132
+ onlyRenderPicker = _ref$onlyRenderPicker === void 0 ? false : _ref$onlyRenderPicker,
133
+ _ref$isViewOnly = _ref.isViewOnly,
134
+ isViewOnly = _ref$isViewOnly === void 0 ? false : _ref$isViewOnly,
135
+ reactionPickerAdditionalStyle = _ref.reactionPickerAdditionalStyle,
136
+ _ref$noWrap = _ref.noWrap,
137
+ noWrap = _ref$noWrap === void 0 ? false : _ref$noWrap,
138
+ _ref$noRelativeContai = _ref.noRelativeContainer,
139
+ noRelativeContainer = _ref$noRelativeContai === void 0 ? false : _ref$noRelativeContai,
140
+ showSubtleDefaultReactions = _ref.showSubtleDefaultReactions,
141
+ reactionPickerTriggerToolipContent = _ref.reactionPickerTriggerToolipContent,
142
+ reactionPickerTriggerIcon = _ref.reactionPickerTriggerIcon,
143
+ _ref$allowSelectFromS = _ref.allowSelectFromSummaryView,
144
+ allowSelectFromSummaryView = _ref$allowSelectFromS === void 0 ? false : _ref$allowSelectFromS,
145
+ _ref$useButtonAlignme = _ref.useButtonAlignmentStyling,
146
+ useButtonAlignmentStyling = _ref$useButtonAlignme === void 0 ? false : _ref$useButtonAlignme;
147
+ var _useState = (0, _react.useState)(),
148
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
149
+ selectedEmojiId = _useState2[0],
150
+ setSelectedEmojiId = _useState2[1];
151
+ var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
152
+ createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
153
+ var openTime = (0, _react.useRef)();
154
+ var renderTime = (0, _react.useRef)();
155
+ (0, _react.useEffect)(function () {
156
+ if (status === _types.ReactionStatus.notLoaded) {
157
+ loadReaction();
158
+ }
159
+ }, [status, loadReaction]);
160
+ (0, _react.useEffect)(function () {
161
+ if (status !== _types.ReactionStatus.ready) {
162
+ renderTime.current = Date.now();
163
+ } else {
164
+ var isSSR = process.env.REACT_SSR && (0, _platformFeatureFlags.fg)('platform_fix_analytics_error');
165
+ if ((0, _analytics.isSampled)(_constants.SAMPLING_RATE_REACTIONS_RENDERED_EXP) && !isSSR) {
166
+ var _renderTime$current;
167
+ (0, _analytics.createAndFireSafe)(createAnalyticsEvent, _analytics.createReactionsRenderedEvent, (_renderTime$current = renderTime.current) !== null && _renderTime$current !== void 0 ? _renderTime$current : Date.now() //renderTime.current can be null during unit test cases
168
+ );
169
+ }
170
+ renderTime.current = undefined;
171
+ }
172
+ }, [createAnalyticsEvent, status]);
173
+ var handleReactionMouseEnter = (0, _react.useCallback)(function (emojiId) {
174
+ getReactionDetails(emojiId);
175
+ }, [getReactionDetails]);
176
+ var handleReactionFocused = (0, _react.useCallback)(function (emojiId) {
177
+ getReactionDetails(emojiId);
178
+ }, [getReactionDetails]);
179
+ var handlePickerOpen = (0, _react.useCallback)(function () {
180
+ openTime.current = Date.now();
181
+ (0, _analytics.createAndFireSafe)(createAnalyticsEvent, _analytics.createPickerButtonClickedEvent, reactions.length);
182
+ }, [createAnalyticsEvent, reactions]);
183
+ var handleOnCancel = (0, _react.useCallback)(function () {
184
+ (0, _analytics.createAndFireSafe)(createAnalyticsEvent, _analytics.createPickerCancelledEvent, openTime.current);
185
+ openTime.current = undefined;
186
+ }, [createAnalyticsEvent]);
187
+ var handleOnMore = (0, _react.useCallback)(function () {
188
+ (0, _analytics.createAndFireSafe)(createAnalyticsEvent, _analytics.createPickerMoreClickedEvent, openTime.current);
189
+ }, [createAnalyticsEvent]);
190
+ var handleOnSelection = (0, _react.useCallback)(function (emojiId, source) {
191
+ (0, _analytics.createAndFireSafe)(createAnalyticsEvent, _analytics.createReactionSelectionEvent, source, emojiId, reactions.find(function (reaction) {
192
+ return reaction.emojiId === emojiId;
193
+ }), openTime.current);
194
+ openTime.current = undefined;
195
+ onSelection(emojiId);
196
+ }, [createAnalyticsEvent, onSelection, reactions]);
197
+ var handleCloseReactionsDialog = function handleCloseReactionsDialog(e, analyticsEvent) {
198
+ setSelectedEmojiId('');
199
+ onDialogCloseCallback(e, analyticsEvent);
200
+ };
201
+ var handleSelectReactionInDialog = function handleSelectReactionInDialog(emojiId) {
202
+ // ufo selected reaction inside the modal dialog
203
+ ufoExperiences.selectedReactionChangeInsideDialog.start();
204
+ handleReactionMouseEnter(emojiId);
205
+ setSelectedEmojiId(emojiId);
206
+ onDialogSelectReactionCallback(emojiId);
207
+
208
+ // ufo selected reaction inside the modal dialog success
209
+ ufoExperiences.selectedReactionChangeInsideDialog.success({
210
+ metadata: {
211
+ emojiId: emojiId,
212
+ source: 'Reactions',
213
+ reason: 'Selected Emoji changed'
214
+ }
215
+ });
216
+ };
217
+ var handlePaginationChange = (0, _react.useCallback)(function (emojiId, currentPage, maxPages) {
218
+ // fetch the latest active emoji from the new page
219
+ getReactionDetails(emojiId);
220
+ setSelectedEmojiId(emojiId);
221
+ onDialogPageChangeCallback(emojiId, currentPage, maxPages);
222
+ },
223
+ // Exclude unstable getReactionDetails to avoid extra re-renders
224
+ // eslint-disable-next-line react-hooks/exhaustive-deps
225
+ [setSelectedEmojiId]);
226
+
227
+ /**
228
+ * Get the reactions that we want to render are any reactions with a count greater than zero as well as any default emoji not already shown
229
+ */
230
+ var memorizedReactions = (0, _react.useMemo)(function () {
231
+ //
232
+ /**
233
+ * If reactions not empty, don't show quick reactions Pre defined emoji or if its empty and default reactions not hidden => return the current list of reactions
234
+ */
235
+ if (reactions.length === 0 && hideDefaultReactions || reactions.length > 0 || !quickReactionEmojis) {
236
+ return reactions;
237
+ }
238
+
239
+ // add any missing default reactions
240
+ var ari = quickReactionEmojis.ari,
241
+ containerAri = quickReactionEmojis.containerAri,
242
+ emojiIds = quickReactionEmojis.emojiIds;
243
+ var items = emojiIds.filter(function (emojiId) {
244
+ return !reactions.some(function (reaction) {
245
+ return reaction.emojiId === emojiId;
246
+ });
247
+ }).map(function (emojiId) {
248
+ return {
249
+ ari: ari,
250
+ containerAri: containerAri,
251
+ emojiId: emojiId,
252
+ count: 0,
253
+ reacted: false
254
+ };
255
+ });
256
+ return reactions.concat(items);
257
+ }, [quickReactionEmojis, reactions, hideDefaultReactions]);
258
+ var shouldShowSummaryView = summaryViewEnabled && memorizedReactions.length >= summaryViewThreshold && reactions.length > 0;
259
+
260
+ // criteria to show Reactions Dialog
261
+ var hasEmojiWithFivePlusReactions = reactions.some(function (reaction) {
262
+ return reaction.count >= 5;
263
+ });
264
+ var sortedReactions = (0, _react.useMemo)(function () {
265
+ return (0, _toConsumableArray2.default)(memorizedReactions).sort(function (a, b) {
266
+ return (b === null || b === void 0 ? void 0 : b.count) - (a === null || a === void 0 ? void 0 : a.count);
267
+ });
268
+ }, [memorizedReactions]);
269
+
270
+ /**
271
+ * event handler to open dialog with selected reaction
272
+ * @param emojiId initial emoji id to load dialog with
273
+ */
274
+ var _handleOpenReactionsDialog = function handleOpenReactionsDialog() {
275
+ var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
276
+ _ref2$emojiId = _ref2.emojiId,
277
+ emojiId = _ref2$emojiId === void 0 ? sortedReactions[0].emojiId : _ref2$emojiId,
278
+ _ref2$source = _ref2.source,
279
+ source = _ref2$source === void 0 ? 'endOfPageReactions' : _ref2$source;
280
+ // ufo start opening reaction dialog
281
+ ufoExperiences.openDialog.start();
282
+ getReactionDetails(emojiId);
283
+ setSelectedEmojiId(emojiId);
284
+ onDialogOpenCallback(emojiId, source);
285
+
286
+ // ufo opening reaction dialog success
287
+ ufoExperiences.openDialog.success({
288
+ metadata: {
289
+ emojiId: emojiId,
290
+ source: 'Reactions',
291
+ reason: 'Opening Reactions Dialog successfully'
292
+ }
293
+ });
294
+ };
295
+ return /*#__PURE__*/_react.default.createElement(_segment.default, {
296
+ name: "reactions"
297
+ }, /*#__PURE__*/_react.default.createElement("div", {
298
+ "data-testid": RENDER_REACTIONS_TESTID,
299
+ className: (0, _runtime.ax)(["_2rkoo7ao _1e0c1txw _1n261g80 _kqswh2mm _4cvr1h6o _19pkr5cr _13vtidpf", noWrap && "_1n261q9c", noRelativeContainer && "_kqswpfqs"])
300
+ }, !onlyRenderPicker && (shouldShowSummaryView ? /*#__PURE__*/_react.default.createElement("div", {
301
+ "data-testid": RENDER_REACTIONS_SUMMARY_TESTID
302
+ }, /*#__PURE__*/_react.default.createElement(_ReactionSummary.ReactionSummaryView, {
303
+ reactions: sortedReactions,
304
+ emojiProvider: emojiProvider,
305
+ flash: flash,
306
+ particleEffectByEmoji: particleEffectByEmoji,
307
+ onSelection: handleOnSelection,
308
+ onReactionClick: onReactionClick,
309
+ onReactionFocused: handleReactionFocused,
310
+ onReactionMouseEnter: handleReactionMouseEnter,
311
+ placement: summaryViewPlacement,
312
+ showOpaqueBackground: showOpaqueBackground,
313
+ subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
314
+ handleOpenReactionsDialog: function handleOpenReactionsDialog() {
315
+ return _handleOpenReactionsDialog({
316
+ source: 'summaryView'
317
+ });
318
+ },
319
+ allowUserDialog: allowUserDialog && hasEmojiWithFivePlusReactions,
320
+ isViewOnly: isViewOnly,
321
+ allowSelectFromSummaryView: allowSelectFromSummaryView,
322
+ disabled: status !== _types.ReactionStatus.ready,
323
+ reactionPickerTriggerIcon: reactionPickerTriggerIcon,
324
+ tooltipContent: getTooltip(status, errorMessage, reactionPickerTriggerToolipContent),
325
+ emojiPickerSize: emojiPickerSize,
326
+ onOpen: handlePickerOpen,
327
+ useButtonAlignmentStyling: useButtonAlignmentStyling
328
+ })) : memorizedReactions.map(function (reaction) {
329
+ return /*#__PURE__*/_react.default.createElement(_Reaction.Reaction, {
330
+ key: reaction.emojiId,
331
+ reaction: reaction,
332
+ emojiProvider: emojiProvider,
333
+ onClick: onReactionClick,
334
+ onMouseEnter: handleReactionMouseEnter,
335
+ onFocused: handleReactionFocused,
336
+ flash: flash[reaction.emojiId],
337
+ showParticleEffect: particleEffectByEmoji[reaction.emojiId],
338
+ showOpaqueBackground: showOpaqueBackground,
339
+ allowUserDialog: allowUserDialog && hasEmojiWithFivePlusReactions,
340
+ handleOpenReactionsDialog: _handleOpenReactionsDialog,
341
+ isViewOnly: isViewOnly,
342
+ showSubtleStyle: showSubtleDefaultReactions && reactions.length === 0
343
+ });
344
+ })), isViewOnly || allowSelectFromSummaryView ? null : /*#__PURE__*/_react.default.createElement(_ReactionPicker.ReactionPicker, {
345
+ emojiProvider: emojiProvider,
346
+ allowAllEmojis: allowAllEmojis,
347
+ pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
348
+ disabled: status !== _types.ReactionStatus.ready,
349
+ onSelection: handleOnSelection,
350
+ onOpen: handlePickerOpen,
351
+ onCancel: handleOnCancel,
352
+ onShowMore: handleOnMore,
353
+ tooltipContent: getTooltip(status, errorMessage, reactionPickerTriggerToolipContent),
354
+ emojiPickerSize: emojiPickerSize,
355
+ miniMode: miniMode,
356
+ showOpaqueBackground: showOpaqueBackground,
357
+ showAddReactionText: showAddReactionText,
358
+ subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
359
+ reactionPickerTriggerIcon: reactionPickerTriggerIcon,
360
+ reactionPickerAdditionalStyle: reactionPickerAdditionalStyle,
361
+ useButtonAlignmentStyling: useButtonAlignmentStyling,
362
+ className: (0, _runtime.ax)(["_1e0c1o8l _19pk1b66"])
363
+ }), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTransition, null, !!selectedEmojiId && /*#__PURE__*/_react.default.createElement(_segment.default, {
364
+ name: "reactions-dialog"
365
+ }, /*#__PURE__*/_react.default.createElement(_ReactionDialog.ReactionsDialog, {
366
+ selectedEmojiId: selectedEmojiId,
367
+ reactions: sortedReactions,
368
+ emojiProvider: emojiProvider,
369
+ handleCloseReactionsDialog: handleCloseReactionsDialog,
370
+ handleSelectReaction: handleSelectReactionInDialog,
371
+ handlePaginationChange: handlePaginationChange,
372
+ ProfileCardWrapper: ProfileCardWrapper
373
+ })))));
374
+ });
@@ -0,0 +1,17 @@
1
+
2
+ ._19itglyw{border:none}
3
+ ._2rkoglpi{border-radius:var(--ds-border-radius,4px)}._12l21b66{margin-inline-end:var(--ds-space-050,4px)}
4
+ ._18m915vq{overflow-y:hidden}
5
+ ._19bvze3t{padding-left:var(--ds-space-0,0)}
6
+ ._1e0c1txw{display:flex}
7
+ ._1pfh1b66{margin-block-start:var(--ds-space-050,4px)}
8
+ ._1reo15vq{overflow-x:hidden}
9
+ ._1ul914no{min-width:36px}
10
+ ._2lx2vrvc{flex-direction:row}
11
+ ._4cvr1y6m{align-items:flex-start}
12
+ ._4t3i1tcg{height:24px}
13
+ ._ca0qze3t{padding-top:var(--ds-space-0,0)}
14
+ ._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
15
+ ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
16
+ ._u5f3ze3t{padding-right:var(--ds-space-0,0)}
17
+ ._d0al73ad:hover{cursor:default}