@atlaskit/reactions 33.8.19 → 33.8.20

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 33.8.20
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0f66751ec3512`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f66751ec3512) -
8
+ Click events should also have key events for accessibility
9
+
3
10
  ## 33.8.19
4
11
 
5
12
  ### Patch Changes
@@ -11,7 +11,7 @@ var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
11
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
13
  var packageName = "@atlaskit/reactions";
14
- var packageVersion = "33.8.18";
14
+ var packageVersion = "33.8.19";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -1,9 +1,12 @@
1
- ._19bv19bv{padding-left:10px}
2
- ._19bvu2gc{padding-left:var(--ds-space-100,8px)}
1
+ ._18zrze3t{padding-inline:var(--ds-space-0,0)}
2
+ ._195gze3t{margin-inline:var(--ds-space-0,0)}
3
+ ._1mouze3t{margin-block:var(--ds-space-0,0)}
4
+ ._1rjc1b66{padding-block:var(--ds-space-050,4px)}
5
+ ._1rjcze3t{padding-block:var(--ds-space-0,0)}
3
6
  ._8hrz1nam{transform-origin:center center 0}
4
- ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
7
+ ._bozg19bv{padding-inline-start:10px}
8
+ ._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
5
9
  ._kqswh2mm{position:relative}
6
- ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
7
- ._u5f31b66{padding-right:var(--ds-space-050,4px)}
8
- ._u5f3v77o{padding-right:var(--ds-space-025,2px)}
9
- ._vwz41crf{line-height:9pt}
10
+ ._vwz41crf{line-height:9pt}
11
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
12
+ ._y4tiv77o{padding-inline-end:var(--ds-space-025,2px)}
@@ -15,6 +15,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
15
15
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
16
16
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
17
  var _reactIntlNext = require("react-intl-next");
18
+ var _css = require("@atlaskit/css");
18
19
  var _analyticsNext = require("@atlaskit/analytics-next");
19
20
  var _emoji = require("@atlaskit/emoji");
20
21
  var _analytics = require("../analytics");
@@ -30,7 +31,8 @@ var _StaticReaction = require("./StaticReaction");
30
31
  var _compiled = require("@atlaskit/primitives/compiled");
31
32
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
32
33
  var styles = {
33
- container: "_kqswh2mm"
34
+ container: "_kqswh2mm",
35
+ listItem: "_195gze3t _1mouze3t _18zrze3t _1rjcze3t"
34
36
  };
35
37
  var emojiStyle = null;
36
38
  var emojiNoReactionStyle = null;
@@ -137,7 +139,7 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
137
139
  setIsTooltipEnabled(false);
138
140
  };
139
141
  var emojiAndCount = /*#__PURE__*/React.createElement(_compiled.Inline, null, /*#__PURE__*/React.createElement("div", {
140
- className: (0, _runtime.ax)(["_8hrz1nam _vwz41crf _ca0q1b66 _u5f31b66 _n3td1b66 _19bvu2gc", reaction.count === 0 && "_ca0q1b66 _u5f3v77o _n3td1b66 _19bv19bv"])
142
+ className: (0, _runtime.ax)(["_1rjc1b66 _8hrz1nam _vwz41crf _bozgu2gc _y4ti1b66", reaction.count === 0 && "_1rjc1b66 _bozg19bv _y4tiv77o"])
141
143
  }, /*#__PURE__*/React.createElement(_emoji.ResourcedEmoji, {
142
144
  emojiProvider: emojiProvider,
143
145
  emojiId: emojiId,
@@ -156,7 +158,7 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
156
158
  });
157
159
  }
158
160
  return /*#__PURE__*/React.createElement(_compiled.Box, {
159
- xcss: styles.container,
161
+ xcss: (0, _css.cx)(styles.container, (0, _platformFeatureFlags.fg)('jfp_a11y_team_comment_actions_semantic') ? styles.listItem : undefined),
160
162
  as: (0, _platformFeatureFlags.fg)('jfp_a11y_team_comment_actions_semantic') ? 'li' : undefined
161
163
  }, showParticleEffect && /*#__PURE__*/React.createElement(_ReactionParticleEffect.ReactionParticleEffect, {
162
164
  emojiId: emojiId,
@@ -59,6 +59,7 @@ var ReactionTooltip = exports.ReactionTooltip = function ReactionTooltip(_ref) {
59
59
  }), /*#__PURE__*/_react.default.createElement("li", {
60
60
  onMouseDown: handleClick,
61
61
  onClick: handleClick,
62
+ onKeyDown: (0, _platformFeatureFlags.fg)('platform_suppression_removal_fix_reactions') ? handleClick : undefined,
62
63
  className: (0, _runtime.ax)(["_syaz1lqe", allowUserDialog && "_4bfu1r31 _1hms8stv _ajmmnqa1 _80omtlke _irr3pioe _30l31i9p"]),
63
64
  style: {
64
65
  "--_14nrcaz": (0, _runtime.ix)("var(--ds-text-inverse, ".concat(_colors.N90, ")")),
@@ -1,24 +1,20 @@
1
1
 
2
- ._qtt8glyw{list-style:none}._13vtidpf >:first-of-type>:first-of-type{margin-left:0}
3
- ._17s9idpf >li{padding-bottom:0}
4
- ._18u0idpf{margin-left:0}
2
+ ._qtt8glyw{list-style:none}
3
+ ._18zrze3t{padding-inline:var(--ds-space-0,0)}
4
+ ._195gze3t{margin-inline:var(--ds-space-0,0)}
5
+ ._1rjcze3t{padding-block:var(--ds-space-0,0)}._18u0idpf{margin-left:0}
5
6
  ._19bvidpf{padding-left:0}
6
- ._19pk1b66{margin-top:var(--ds-space-050,4px)}
7
7
  ._19pkidpf{margin-top:0}
8
- ._19pkr5cr{margin-top:var(--ds-space-negative-050,-4px)}
9
- ._1b3sidpf >li{padding-left:0}
10
8
  ._1e0c1o8l{display:inline-block}
11
9
  ._1e0c1txw{display:flex}
12
- ._1l0sidpf >li{margin-bottom:0}
10
+ ._1fohidpf >:first-of-type>:first-of-type{margin-inline-start:0}
13
11
  ._1n261g80{flex-wrap:wrap}
14
12
  ._1n261q9c{flex-wrap:nowrap}
15
- ._1pyaidpf >li{margin-top:0}
13
+ ._1pfh1b66{margin-block-start:var(--ds-space-050,4px)}
14
+ ._1pfhr5cr{margin-block-start:var(--ds-space-negative-050,-4px)}
16
15
  ._2hwxidpf{margin-right:0}
17
16
  ._4cvr1h6o{align-items:center}
18
- ._694cidpf >li{margin-right:0}
19
- ._9g0pidpf >li{margin-left:0}
20
- ._ahxuidpf >li{padding-top:0}
21
- ._bapwidpf >li{padding-right:0}
17
+ ._6rthze3t{margin-block-end:var(--ds-space-0,0)}
22
18
  ._ca0qidpf{padding-top:0}
23
19
  ._kqswh2mm{position:relative}
24
20
  ._kqswpfqs{position:static}
@@ -36,7 +36,7 @@ var noContainerPositionStyles = null;
36
36
  var reactionPickerStyle = null;
37
37
  var listContainerStyles = null;
38
38
  var pickerListItemStyles = {
39
- picker: "_1e0c1o8l _19pk1b66"
39
+ picker: "_195gze3t _18zrze3t _1rjcze3t _1e0c1o8l _1pfh1b66 _6rthze3t"
40
40
  };
41
41
 
42
42
  /**
@@ -345,7 +345,7 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
345
345
  name: "reactions"
346
346
  }, /*#__PURE__*/_react.default.createElement("div", {
347
347
  "data-testid": RENDER_REACTIONS_TESTID,
348
- className: (0, _runtime.ax)(["_1e0c1txw _1n261g80 _kqswh2mm _4cvr1h6o _19pkr5cr _13vtidpf", noWrap && "_1n261q9c", noRelativeContainer && "_kqswpfqs"])
348
+ className: (0, _runtime.ax)(["_1e0c1txw _1n261g80 _kqswh2mm _4cvr1h6o _1pfhr5cr _1fohidpf", noWrap && "_1n261q9c", noRelativeContainer && "_kqswpfqs"])
349
349
  }, !onlyRenderPicker && (shouldShowSummaryView ? /*#__PURE__*/_react.default.createElement("div", {
350
350
  "data-testid": RENDER_REACTIONS_SUMMARY_TESTID
351
351
  }, /*#__PURE__*/_react.default.createElement(_ReactionSummaryView.ReactionSummaryView, {
@@ -380,7 +380,7 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
380
380
  summaryButtonIconAfter: summaryButtonIconAfter,
381
381
  summaryViewParticleEffectEmojiId: renderParticleEffectOnSummaryView ? summaryViewParticleEffectEmojiId : null
382
382
  })) : (0, _platformFeatureFlags.fg)('jfp_a11y_team_comment_actions_semantic') ? /*#__PURE__*/_react.default.createElement("ul", {
383
- className: (0, _runtime.ax)(["_qtt8glyw _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1txw _1n261g80 _4cvr1h6o _kqswh2mm _1pyaidpf _694cidpf _1l0sidpf _9g0pidpf _ahxuidpf _bapwidpf _17s9idpf _1b3sidpf"])
383
+ className: (0, _runtime.ax)(["_qtt8glyw _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1txw _1n261g80 _4cvr1h6o _kqswh2mm"])
384
384
  }, memorizedReactions.map(function (reaction) {
385
385
  return /*#__PURE__*/_react.default.createElement(_Reaction.Reaction, {
386
386
  key: reaction.emojiId,
@@ -460,7 +460,7 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
460
460
  hoverableReactionPickerDelay: hoverableSummaryView ? 300 : 0,
461
461
  reactionPickerPlacement: reactionPickerPlacement,
462
462
  reactionPickerPopperZIndex: reactionPickerPopperZIndex,
463
- className: (0, _runtime.ax)(["_1e0c1o8l _19pk1b66"])
463
+ className: (0, _runtime.ax)(["_1e0c1o8l _1pfh1b66"])
464
464
  }), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTransition, null, !!selectedEmojiId && /*#__PURE__*/_react.default.createElement(_segment.default, {
465
465
  name: "reactions-dialog"
466
466
  }, /*#__PURE__*/_react.default.createElement(_ReactionsDialog.ReactionsDialog, {
@@ -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 = "33.8.18";
4
+ const packageVersion = "33.8.19";
5
5
  /**
6
6
  * TODO: move to utility package?
7
7
  * A random sampling function
@@ -1,9 +1,12 @@
1
- ._19bv19bv{padding-left:10px}
2
- ._19bvu2gc{padding-left:var(--ds-space-100,8px)}
1
+ ._18zrze3t{padding-inline:var(--ds-space-0,0)}
2
+ ._195gze3t{margin-inline:var(--ds-space-0,0)}
3
+ ._1mouze3t{margin-block:var(--ds-space-0,0)}
4
+ ._1rjc1b66{padding-block:var(--ds-space-050,4px)}
5
+ ._1rjcze3t{padding-block:var(--ds-space-0,0)}
3
6
  ._8hrz1nam{transform-origin:center center 0}
4
- ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
7
+ ._bozg19bv{padding-inline-start:10px}
8
+ ._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
5
9
  ._kqswh2mm{position:relative}
6
- ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
7
- ._u5f31b66{padding-right:var(--ds-space-050,4px)}
8
- ._u5f3v77o{padding-right:var(--ds-space-025,2px)}
9
- ._vwz41crf{line-height:9pt}
10
+ ._vwz41crf{line-height:9pt}
11
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
12
+ ._y4tiv77o{padding-inline-end:var(--ds-space-025,2px)}
@@ -4,6 +4,7 @@ import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useCallback, useEffect, useRef, useState } from 'react';
6
6
  import { useIntl } from 'react-intl-next';
7
+ import { cx } from '@atlaskit/css';
7
8
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
8
9
  import { ResourcedEmoji } from '@atlaskit/emoji';
9
10
  import { createAndFireSafe, createReactionClickedEvent, createReactionFocusedEvent, createReactionHoveredEvent } from '../analytics';
@@ -18,7 +19,8 @@ import { ReactionButton } from './ReactionButton';
18
19
  import { StaticReaction } from './StaticReaction';
19
20
  import { Box, Inline } from '@atlaskit/primitives/compiled';
20
21
  const styles = {
21
- container: "_kqswh2mm"
22
+ container: "_kqswh2mm",
23
+ listItem: "_195gze3t _1mouze3t _18zrze3t _1rjcze3t"
22
24
  };
23
25
  const emojiStyle = null;
24
26
  const emojiNoReactionStyle = null;
@@ -104,7 +106,7 @@ export const Reaction = ({
104
106
  setIsTooltipEnabled(false);
105
107
  };
106
108
  const emojiAndCount = /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement("div", {
107
- className: ax(["_8hrz1nam _vwz41crf _ca0q1b66 _u5f31b66 _n3td1b66 _19bvu2gc", reaction.count === 0 && "_ca0q1b66 _u5f3v77o _n3td1b66 _19bv19bv"])
109
+ className: ax(["_1rjc1b66 _8hrz1nam _vwz41crf _bozgu2gc _y4ti1b66", reaction.count === 0 && "_1rjc1b66 _bozg19bv _y4tiv77o"])
108
110
  }, /*#__PURE__*/React.createElement(ResourcedEmoji, {
109
111
  emojiProvider: emojiProvider,
110
112
  emojiId: emojiId,
@@ -123,7 +125,7 @@ export const Reaction = ({
123
125
  });
124
126
  }
125
127
  return /*#__PURE__*/React.createElement(Box, {
126
- xcss: styles.container,
128
+ xcss: cx(styles.container, fg('jfp_a11y_team_comment_actions_semantic') ? styles.listItem : undefined),
127
129
  as: fg('jfp_a11y_team_comment_actions_semantic') ? 'li' : undefined
128
130
  }, showParticleEffect && /*#__PURE__*/React.createElement(ReactionParticleEffect, {
129
131
  emojiId: emojiId,
@@ -49,6 +49,7 @@ export const ReactionTooltip = ({
49
49
  }), /*#__PURE__*/React.createElement("li", {
50
50
  onMouseDown: handleClick,
51
51
  onClick: handleClick,
52
+ onKeyDown: fg('platform_suppression_removal_fix_reactions') ? handleClick : undefined,
52
53
  className: ax(["_syaz6r0x", allowUserDialog && "_4bfu1r31 _1hms8stv _ajmmnqa1 _80omtlke _irr3gkf6 _30l315cr"])
53
54
  }, users.length > maxReactions && /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.otherUsers, {
54
55
  values: {
@@ -1,24 +1,20 @@
1
1
 
2
- ._qtt8glyw{list-style:none}._13vtidpf >:first-of-type>:first-of-type{margin-left:0}
3
- ._17s9idpf >li{padding-bottom:0}
4
- ._18u0idpf{margin-left:0}
2
+ ._qtt8glyw{list-style:none}
3
+ ._18zrze3t{padding-inline:var(--ds-space-0,0)}
4
+ ._195gze3t{margin-inline:var(--ds-space-0,0)}
5
+ ._1rjcze3t{padding-block:var(--ds-space-0,0)}._18u0idpf{margin-left:0}
5
6
  ._19bvidpf{padding-left:0}
6
- ._19pk1b66{margin-top:var(--ds-space-050,4px)}
7
7
  ._19pkidpf{margin-top:0}
8
- ._19pkr5cr{margin-top:var(--ds-space-negative-050,-4px)}
9
- ._1b3sidpf >li{padding-left:0}
10
8
  ._1e0c1o8l{display:inline-block}
11
9
  ._1e0c1txw{display:flex}
12
- ._1l0sidpf >li{margin-bottom:0}
10
+ ._1fohidpf >:first-of-type>:first-of-type{margin-inline-start:0}
13
11
  ._1n261g80{flex-wrap:wrap}
14
12
  ._1n261q9c{flex-wrap:nowrap}
15
- ._1pyaidpf >li{margin-top:0}
13
+ ._1pfh1b66{margin-block-start:var(--ds-space-050,4px)}
14
+ ._1pfhr5cr{margin-block-start:var(--ds-space-negative-050,-4px)}
16
15
  ._2hwxidpf{margin-right:0}
17
16
  ._4cvr1h6o{align-items:center}
18
- ._694cidpf >li{margin-right:0}
19
- ._9g0pidpf >li{margin-left:0}
20
- ._ahxuidpf >li{padding-top:0}
21
- ._bapwidpf >li{padding-right:0}
17
+ ._6rthze3t{margin-block-end:var(--ds-space-0,0)}
22
18
  ._ca0qidpf{padding-top:0}
23
19
  ._kqswh2mm{position:relative}
24
20
  ._kqswpfqs{position:static}
@@ -23,7 +23,7 @@ const noContainerPositionStyles = null;
23
23
  const reactionPickerStyle = null;
24
24
  const listContainerStyles = null;
25
25
  const pickerListItemStyles = {
26
- picker: "_1e0c1o8l _19pk1b66"
26
+ picker: "_195gze3t _18zrze3t _1rjcze3t _1e0c1o8l _1pfh1b66 _6rthze3t"
27
27
  };
28
28
 
29
29
  /**
@@ -291,7 +291,7 @@ export const Reactions = /*#__PURE__*/React.memo(({
291
291
  name: "reactions"
292
292
  }, /*#__PURE__*/React.createElement("div", {
293
293
  "data-testid": RENDER_REACTIONS_TESTID,
294
- className: ax(["_1e0c1txw _1n261g80 _kqswh2mm _4cvr1h6o _19pkr5cr _13vtidpf", noWrap && "_1n261q9c", noRelativeContainer && "_kqswpfqs"])
294
+ className: ax(["_1e0c1txw _1n261g80 _kqswh2mm _4cvr1h6o _1pfhr5cr _1fohidpf", noWrap && "_1n261q9c", noRelativeContainer && "_kqswpfqs"])
295
295
  }, !onlyRenderPicker && (shouldShowSummaryView ? /*#__PURE__*/React.createElement("div", {
296
296
  "data-testid": RENDER_REACTIONS_SUMMARY_TESTID
297
297
  }, /*#__PURE__*/React.createElement(ReactionSummaryView, {
@@ -324,7 +324,7 @@ export const Reactions = /*#__PURE__*/React.memo(({
324
324
  summaryButtonIconAfter: summaryButtonIconAfter,
325
325
  summaryViewParticleEffectEmojiId: renderParticleEffectOnSummaryView ? summaryViewParticleEffectEmojiId : null
326
326
  })) : fg('jfp_a11y_team_comment_actions_semantic') ? /*#__PURE__*/React.createElement("ul", {
327
- className: ax(["_qtt8glyw _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1txw _1n261g80 _4cvr1h6o _kqswh2mm _1pyaidpf _694cidpf _1l0sidpf _9g0pidpf _ahxuidpf _bapwidpf _17s9idpf _1b3sidpf"])
327
+ className: ax(["_qtt8glyw _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1txw _1n261g80 _4cvr1h6o _kqswh2mm"])
328
328
  }, memorizedReactions.map(reaction => /*#__PURE__*/React.createElement(Reaction, {
329
329
  key: reaction.emojiId,
330
330
  reaction: reaction,
@@ -400,7 +400,7 @@ export const Reactions = /*#__PURE__*/React.memo(({
400
400
  hoverableReactionPickerDelay: hoverableSummaryView ? 300 : 0,
401
401
  reactionPickerPlacement: reactionPickerPlacement,
402
402
  reactionPickerPopperZIndex: reactionPickerPopperZIndex,
403
- className: ax(["_1e0c1o8l _19pk1b66"])
403
+ className: ax(["_1e0c1o8l _1pfh1b66"])
404
404
  }), /*#__PURE__*/React.createElement(ModalTransition, null, !!selectedEmojiId && /*#__PURE__*/React.createElement(UFOSegment, {
405
405
  name: "reactions-dialog"
406
406
  }, /*#__PURE__*/React.createElement(ReactionsDialog, {
@@ -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 = "33.8.18";
7
+ var packageVersion = "33.8.19";
8
8
  /**
9
9
  * TODO: move to utility package?
10
10
  * A random sampling function
@@ -1,9 +1,12 @@
1
- ._19bv19bv{padding-left:10px}
2
- ._19bvu2gc{padding-left:var(--ds-space-100,8px)}
1
+ ._18zrze3t{padding-inline:var(--ds-space-0,0)}
2
+ ._195gze3t{margin-inline:var(--ds-space-0,0)}
3
+ ._1mouze3t{margin-block:var(--ds-space-0,0)}
4
+ ._1rjc1b66{padding-block:var(--ds-space-050,4px)}
5
+ ._1rjcze3t{padding-block:var(--ds-space-0,0)}
3
6
  ._8hrz1nam{transform-origin:center center 0}
4
- ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
7
+ ._bozg19bv{padding-inline-start:10px}
8
+ ._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
5
9
  ._kqswh2mm{position:relative}
6
- ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
7
- ._u5f31b66{padding-right:var(--ds-space-050,4px)}
8
- ._u5f3v77o{padding-right:var(--ds-space-025,2px)}
9
- ._vwz41crf{line-height:9pt}
10
+ ._vwz41crf{line-height:9pt}
11
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
12
+ ._y4tiv77o{padding-inline-end:var(--ds-space-025,2px)}
@@ -7,6 +7,7 @@ import { ax, ix } from "@compiled/react/runtime";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
  import { useCallback, useEffect, useRef, useState } from 'react';
9
9
  import { useIntl } from 'react-intl-next';
10
+ import { cx } from '@atlaskit/css';
10
11
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
11
12
  import { ResourcedEmoji } from '@atlaskit/emoji';
12
13
  import { createAndFireSafe, createReactionClickedEvent, createReactionFocusedEvent, createReactionHoveredEvent } from '../analytics';
@@ -21,7 +22,8 @@ import { ReactionButton } from './ReactionButton';
21
22
  import { StaticReaction } from './StaticReaction';
22
23
  import { Box, Inline } from '@atlaskit/primitives/compiled';
23
24
  var styles = {
24
- container: "_kqswh2mm"
25
+ container: "_kqswh2mm",
26
+ listItem: "_195gze3t _1mouze3t _18zrze3t _1rjcze3t"
25
27
  };
26
28
  var emojiStyle = null;
27
29
  var emojiNoReactionStyle = null;
@@ -128,7 +130,7 @@ export var Reaction = function Reaction(_ref) {
128
130
  setIsTooltipEnabled(false);
129
131
  };
130
132
  var emojiAndCount = /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement("div", {
131
- className: ax(["_8hrz1nam _vwz41crf _ca0q1b66 _u5f31b66 _n3td1b66 _19bvu2gc", reaction.count === 0 && "_ca0q1b66 _u5f3v77o _n3td1b66 _19bv19bv"])
133
+ className: ax(["_1rjc1b66 _8hrz1nam _vwz41crf _bozgu2gc _y4ti1b66", reaction.count === 0 && "_1rjc1b66 _bozg19bv _y4tiv77o"])
132
134
  }, /*#__PURE__*/React.createElement(ResourcedEmoji, {
133
135
  emojiProvider: emojiProvider,
134
136
  emojiId: emojiId,
@@ -147,7 +149,7 @@ export var Reaction = function Reaction(_ref) {
147
149
  });
148
150
  }
149
151
  return /*#__PURE__*/React.createElement(Box, {
150
- xcss: styles.container,
152
+ xcss: cx(styles.container, fg('jfp_a11y_team_comment_actions_semantic') ? styles.listItem : undefined),
151
153
  as: fg('jfp_a11y_team_comment_actions_semantic') ? 'li' : undefined
152
154
  }, showParticleEffect && /*#__PURE__*/React.createElement(ReactionParticleEffect, {
153
155
  emojiId: emojiId,
@@ -52,6 +52,7 @@ export var ReactionTooltip = function ReactionTooltip(_ref) {
52
52
  }), /*#__PURE__*/React.createElement("li", {
53
53
  onMouseDown: handleClick,
54
54
  onClick: handleClick,
55
+ onKeyDown: fg('platform_suppression_removal_fix_reactions') ? handleClick : undefined,
55
56
  className: ax(["_syaz1lqe", allowUserDialog && "_4bfu1r31 _1hms8stv _ajmmnqa1 _80omtlke _irr3pioe _30l31i9p"]),
56
57
  style: {
57
58
  "--_14nrcaz": ix("var(--ds-text-inverse, ".concat(N90, ")")),
@@ -1,24 +1,20 @@
1
1
 
2
- ._qtt8glyw{list-style:none}._13vtidpf >:first-of-type>:first-of-type{margin-left:0}
3
- ._17s9idpf >li{padding-bottom:0}
4
- ._18u0idpf{margin-left:0}
2
+ ._qtt8glyw{list-style:none}
3
+ ._18zrze3t{padding-inline:var(--ds-space-0,0)}
4
+ ._195gze3t{margin-inline:var(--ds-space-0,0)}
5
+ ._1rjcze3t{padding-block:var(--ds-space-0,0)}._18u0idpf{margin-left:0}
5
6
  ._19bvidpf{padding-left:0}
6
- ._19pk1b66{margin-top:var(--ds-space-050,4px)}
7
7
  ._19pkidpf{margin-top:0}
8
- ._19pkr5cr{margin-top:var(--ds-space-negative-050,-4px)}
9
- ._1b3sidpf >li{padding-left:0}
10
8
  ._1e0c1o8l{display:inline-block}
11
9
  ._1e0c1txw{display:flex}
12
- ._1l0sidpf >li{margin-bottom:0}
10
+ ._1fohidpf >:first-of-type>:first-of-type{margin-inline-start:0}
13
11
  ._1n261g80{flex-wrap:wrap}
14
12
  ._1n261q9c{flex-wrap:nowrap}
15
- ._1pyaidpf >li{margin-top:0}
13
+ ._1pfh1b66{margin-block-start:var(--ds-space-050,4px)}
14
+ ._1pfhr5cr{margin-block-start:var(--ds-space-negative-050,-4px)}
16
15
  ._2hwxidpf{margin-right:0}
17
16
  ._4cvr1h6o{align-items:center}
18
- ._694cidpf >li{margin-right:0}
19
- ._9g0pidpf >li{margin-left:0}
20
- ._ahxuidpf >li{padding-top:0}
21
- ._bapwidpf >li{padding-right:0}
17
+ ._6rthze3t{margin-block-end:var(--ds-space-0,0)}
22
18
  ._ca0qidpf{padding-top:0}
23
19
  ._kqswh2mm{position:relative}
24
20
  ._kqswpfqs{position:static}
@@ -25,7 +25,7 @@ var noContainerPositionStyles = null;
25
25
  var reactionPickerStyle = null;
26
26
  var listContainerStyles = null;
27
27
  var pickerListItemStyles = {
28
- picker: "_1e0c1o8l _19pk1b66"
28
+ picker: "_195gze3t _18zrze3t _1rjcze3t _1e0c1o8l _1pfh1b66 _6rthze3t"
29
29
  };
30
30
 
31
31
  /**
@@ -334,7 +334,7 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
334
334
  name: "reactions"
335
335
  }, /*#__PURE__*/React.createElement("div", {
336
336
  "data-testid": RENDER_REACTIONS_TESTID,
337
- className: ax(["_1e0c1txw _1n261g80 _kqswh2mm _4cvr1h6o _19pkr5cr _13vtidpf", noWrap && "_1n261q9c", noRelativeContainer && "_kqswpfqs"])
337
+ className: ax(["_1e0c1txw _1n261g80 _kqswh2mm _4cvr1h6o _1pfhr5cr _1fohidpf", noWrap && "_1n261q9c", noRelativeContainer && "_kqswpfqs"])
338
338
  }, !onlyRenderPicker && (shouldShowSummaryView ? /*#__PURE__*/React.createElement("div", {
339
339
  "data-testid": RENDER_REACTIONS_SUMMARY_TESTID
340
340
  }, /*#__PURE__*/React.createElement(ReactionSummaryView, {
@@ -369,7 +369,7 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
369
369
  summaryButtonIconAfter: summaryButtonIconAfter,
370
370
  summaryViewParticleEffectEmojiId: renderParticleEffectOnSummaryView ? summaryViewParticleEffectEmojiId : null
371
371
  })) : fg('jfp_a11y_team_comment_actions_semantic') ? /*#__PURE__*/React.createElement("ul", {
372
- className: ax(["_qtt8glyw _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1txw _1n261g80 _4cvr1h6o _kqswh2mm _1pyaidpf _694cidpf _1l0sidpf _9g0pidpf _ahxuidpf _bapwidpf _17s9idpf _1b3sidpf"])
372
+ className: ax(["_qtt8glyw _19pkidpf _2hwxidpf _otyridpf _18u0idpf _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1e0c1txw _1n261g80 _4cvr1h6o _kqswh2mm"])
373
373
  }, memorizedReactions.map(function (reaction) {
374
374
  return /*#__PURE__*/React.createElement(Reaction, {
375
375
  key: reaction.emojiId,
@@ -449,7 +449,7 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
449
449
  hoverableReactionPickerDelay: hoverableSummaryView ? 300 : 0,
450
450
  reactionPickerPlacement: reactionPickerPlacement,
451
451
  reactionPickerPopperZIndex: reactionPickerPopperZIndex,
452
- className: ax(["_1e0c1o8l _19pk1b66"])
452
+ className: ax(["_1e0c1o8l _1pfh1b66"])
453
453
  }), /*#__PURE__*/React.createElement(ModalTransition, null, !!selectedEmojiId && /*#__PURE__*/React.createElement(UFOSegment, {
454
454
  name: "reactions-dialog"
455
455
  }, /*#__PURE__*/React.createElement(ReactionsDialog, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "33.8.19",
3
+ "version": "33.8.20",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"