@atlaskit/reactions 34.2.7 → 34.2.8

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,13 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 34.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d0246d76b398a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d0246d76b398a) -
8
+ Do not announce decorative particle effects
9
+ - Updated dependencies
10
+
3
11
  ## 34.2.7
4
12
 
5
13
  ### Patch Changes
@@ -66,18 +66,18 @@ var MockReactionsClient = exports.MockReactionsClient = /*#__PURE__*/function ()
66
66
  value: function () {
67
67
  var _getReactions = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(containerAri, aris) {
68
68
  var _this2 = this;
69
- return _regenerator.default.wrap(function _callee$(_context) {
69
+ return _regenerator.default.wrap(function (_context) {
70
70
  while (1) switch (_context.prev = _context.next) {
71
71
  case 0:
72
- _context.next = 2;
72
+ _context.next = 1;
73
73
  return this.delayPromise();
74
- case 2:
74
+ case 1:
75
75
  return _context.abrupt("return", aris.reduce(function (results, ari) {
76
76
  var reactionKey = getReactionKey(containerAri, ari);
77
77
  results[ari] = _this2.mockData[reactionKey] || [];
78
78
  return results;
79
79
  }, {}));
80
- case 3:
80
+ case 2:
81
81
  case "end":
82
82
  return _context.stop();
83
83
  }
@@ -93,30 +93,30 @@ var MockReactionsClient = exports.MockReactionsClient = /*#__PURE__*/function ()
93
93
  value: function () {
94
94
  var _getDetailedReaction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(containerAri, ari, emojiId) {
95
95
  var reactionKey, reactionsMockData, reaction, users;
96
- return _regenerator.default.wrap(function _callee2$(_context2) {
96
+ return _regenerator.default.wrap(function (_context2) {
97
97
  while (1) switch (_context2.prev = _context2.next) {
98
98
  case 0:
99
- _context2.next = 2;
99
+ _context2.next = 1;
100
100
  return this.delayPromise();
101
- case 2:
101
+ case 1:
102
102
  reactionKey = "".concat(containerAri, "|").concat(ari);
103
103
  reactionsMockData = this.mockData[reactionKey];
104
104
  if (!reactionsMockData) {
105
- _context2.next = 9;
105
+ _context2.next = 2;
106
106
  break;
107
107
  }
108
108
  reaction = reactionsMockData.find(function (reaction_1) {
109
109
  return reaction_1.emojiId === emojiId;
110
110
  });
111
111
  if (!reaction) {
112
- _context2.next = 9;
112
+ _context2.next = 2;
113
113
  break;
114
114
  }
115
115
  users = [].concat(defaultUsers).slice(Math.floor(Math.random() * 4), Math.floor(Math.random() * 9) + 4).slice(0, reaction.count);
116
116
  return _context2.abrupt("return", _objectSpread(_objectSpread({}, reaction), {}, {
117
117
  users: users
118
118
  }));
119
- case 9:
119
+ case 2:
120
120
  return _context2.abrupt("return", {
121
121
  containerAri: containerAri,
122
122
  ari: ari,
@@ -125,7 +125,7 @@ var MockReactionsClient = exports.MockReactionsClient = /*#__PURE__*/function ()
125
125
  reacted: true,
126
126
  users: []
127
127
  });
128
- case 10:
128
+ case 3:
129
129
  case "end":
130
130
  return _context2.stop();
131
131
  }
@@ -141,12 +141,12 @@ var MockReactionsClient = exports.MockReactionsClient = /*#__PURE__*/function ()
141
141
  value: function () {
142
142
  var _addReaction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(containerAri, ari, emojiId) {
143
143
  var reactionKey, found, reactionsMockData;
144
- return _regenerator.default.wrap(function _callee3$(_context3) {
144
+ return _regenerator.default.wrap(function (_context3) {
145
145
  while (1) switch (_context3.prev = _context3.next) {
146
146
  case 0:
147
- _context3.next = 2;
147
+ _context3.next = 1;
148
148
  return this.delayPromise();
149
- case 2:
149
+ case 1:
150
150
  reactionKey = getReactionKey(containerAri, ari);
151
151
  found = false;
152
152
  reactionsMockData = this.mockData[reactionKey];
@@ -172,7 +172,7 @@ var MockReactionsClient = exports.MockReactionsClient = /*#__PURE__*/function ()
172
172
  }]);
173
173
  }
174
174
  return _context3.abrupt("return", this.mockData[reactionKey]);
175
- case 8:
175
+ case 2:
176
176
  case "end":
177
177
  return _context3.stop();
178
178
  }
@@ -188,12 +188,12 @@ var MockReactionsClient = exports.MockReactionsClient = /*#__PURE__*/function ()
188
188
  value: function () {
189
189
  var _deleteReaction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(containerAri, ari, emojiId) {
190
190
  var reactionKey;
191
- return _regenerator.default.wrap(function _callee4$(_context4) {
191
+ return _regenerator.default.wrap(function (_context4) {
192
192
  while (1) switch (_context4.prev = _context4.next) {
193
193
  case 0:
194
- _context4.next = 2;
194
+ _context4.next = 1;
195
195
  return this.delayPromise();
196
- case 2:
196
+ case 1:
197
197
  reactionKey = getReactionKey(containerAri, ari);
198
198
  this.mockData[reactionKey] = this.mockData[reactionKey].map(function (reaction) {
199
199
  if (reaction.emojiId === emojiId) {
@@ -210,7 +210,7 @@ var MockReactionsClient = exports.MockReactionsClient = /*#__PURE__*/function ()
210
210
  return !!reaction_1;
211
211
  });
212
212
  return _context4.abrupt("return", this.mockData[reactionKey]);
213
- case 5:
213
+ case 2:
214
214
  case "end":
215
215
  return _context4.stop();
216
216
  }
@@ -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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
13
13
  var packageName = "@atlaskit/reactions";
14
- var packageVersion = "34.2.6";
14
+ var packageVersion = "34.2.7";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -88,21 +88,21 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
88
88
  (0, _react.useEffect)(function () {
89
89
  (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
90
90
  var emojiResource, foundEmoji;
91
- return _regenerator.default.wrap(function _callee$(_context) {
91
+ return _regenerator.default.wrap(function (_context) {
92
92
  while (1) switch (_context.prev = _context.next) {
93
93
  case 0:
94
- _context.next = 2;
94
+ _context.next = 1;
95
95
  return Promise.resolve(emojiProvider);
96
- case 2:
96
+ case 1:
97
97
  emojiResource = _context.sent;
98
- _context.next = 5;
98
+ _context.next = 2;
99
99
  return emojiResource.findById(reaction.emojiId);
100
- case 5:
100
+ case 2:
101
101
  foundEmoji = _context.sent;
102
102
  if (foundEmoji) {
103
103
  setEmojiName(foundEmoji.name);
104
104
  }
105
- case 7:
105
+ case 3:
106
106
  case "end":
107
107
  return _context.stop();
108
108
  }
@@ -12,6 +12,7 @@ var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
13
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
14
14
  var _emoji = require("@atlaskit/emoji");
15
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
16
  var _constants = require("@atlaskit/theme/constants");
16
17
  var _constants2 = require("../shared/constants");
17
18
  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); }
@@ -23,6 +24,7 @@ var ReactionParticleEffect = exports.ReactionParticleEffect = function ReactionP
23
24
  emojiId = _ref.emojiId,
24
25
  optimisticImageURL = _ref.optimisticImageURL;
25
26
  return /*#__PURE__*/React.createElement("div", {
27
+ "aria-hidden": (0, _platformFeatureFlags.fg)('platform_a11y_fixes_reaction_emoji') ? true : undefined,
26
28
  className: (0, _runtime.ax)(["_kqswh2mm _1ltvftgi _1pbyifev _m602idpf"])
27
29
  }, (0, _toConsumableArray2.default)(Array(PARTICLE_COUNT)).map(function (_, index) {
28
30
  return /*#__PURE__*/React.createElement("div", {
@@ -111,19 +111,19 @@ var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDi
111
111
  }
112
112
  (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
113
113
  var provider, emoji, capitalizedName;
114
- return _regenerator.default.wrap(function _callee$(_context) {
114
+ return _regenerator.default.wrap(function (_context) {
115
115
  while (1) switch (_context.prev = _context.next) {
116
116
  case 0:
117
- _context.next = 2;
117
+ _context.next = 1;
118
118
  return emojiProvider;
119
- case 2:
119
+ case 1:
120
120
  provider = _context.sent;
121
- _context.next = 5;
121
+ _context.next = 2;
122
122
  return provider.findByEmojiId({
123
123
  shortName: '',
124
124
  id: emojiId
125
125
  });
126
- case 5:
126
+ case 2:
127
127
  emoji = _context.sent;
128
128
  if (emoji !== null && emoji !== void 0 && emoji.name) {
129
129
  // capitalize first letter of each string
@@ -134,7 +134,7 @@ var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDi
134
134
  return _objectSpread(_objectSpread({}, prevCache), {}, (0, _defineProperty2.default)({}, emojiId, capitalizedName));
135
135
  });
136
136
  }
137
- case 7:
137
+ case 3:
138
138
  case "end":
139
139
  return _context.stop();
140
140
  }
@@ -26,15 +26,15 @@ var ConnectedReactionPicker = exports.ConnectedReactionPicker = function Connect
26
26
  var onSelection = function onSelection(emojiId) {
27
27
  (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
28
28
  var _store;
29
- return _regenerator.default.wrap(function _callee$(_context) {
29
+ return _regenerator.default.wrap(function (_context) {
30
30
  while (1) switch (_context.prev = _context.next) {
31
31
  case 0:
32
- _context.next = 2;
32
+ _context.next = 1;
33
33
  return Promise.resolve(store);
34
- case 2:
34
+ case 1:
35
35
  _store = _context.sent;
36
36
  _store.addReaction(containerAri, ari, emojiId);
37
- case 4:
37
+ case 2:
38
38
  case "end":
39
39
  return _context.stop();
40
40
  }
@@ -161,19 +161,19 @@ var ConnectedReactionsView = exports.ConnectedReactionsView = function Connected
161
161
  (0, _react.useEffect)(function () {
162
162
  (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
163
163
  var _store;
164
- return _regenerator.default.wrap(function _callee$(_context) {
164
+ return _regenerator.default.wrap(function (_context) {
165
165
  while (1) switch (_context.prev = _context.next) {
166
166
  case 0:
167
167
  if (!('then' in store)) {
168
- _context.next = 5;
168
+ _context.next = 2;
169
169
  break;
170
170
  }
171
- _context.next = 3;
171
+ _context.next = 1;
172
172
  return Promise.resolve(store);
173
- case 3:
173
+ case 1:
174
174
  _store = _context.sent;
175
175
  resolveStore(_store);
176
- case 5:
176
+ case 2:
177
177
  case "end":
178
178
  return _context.stop();
179
179
  }
@@ -193,15 +193,15 @@ var ConnectedReactionsView = exports.ConnectedReactionsView = function Connected
193
193
  };
194
194
  (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
195
195
  var _store;
196
- return _regenerator.default.wrap(function _callee2$(_context2) {
196
+ return _regenerator.default.wrap(function (_context2) {
197
197
  while (1) switch (_context2.prev = _context2.next) {
198
198
  case 0:
199
- _context2.next = 2;
199
+ _context2.next = 1;
200
200
  return Promise.resolve(store);
201
- case 2:
201
+ case 1:
202
202
  _store = _context2.sent;
203
203
  _store.onChange(onChangeCallback);
204
- case 4:
204
+ case 2:
205
205
  case "end":
206
206
  return _context2.stop();
207
207
  }
@@ -210,15 +210,15 @@ var ConnectedReactionsView = exports.ConnectedReactionsView = function Connected
210
210
  return function cleanup() {
211
211
  (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
212
212
  var _store;
213
- return _regenerator.default.wrap(function _callee3$(_context3) {
213
+ return _regenerator.default.wrap(function (_context3) {
214
214
  while (1) switch (_context3.prev = _context3.next) {
215
215
  case 0:
216
- _context3.next = 2;
216
+ _context3.next = 1;
217
217
  return Promise.resolve(store);
218
- case 2:
218
+ case 1:
219
219
  _store = _context3.sent;
220
220
  _store.removeOnChangeListener(onChangeCallback);
221
- case 4:
221
+ case 2:
222
222
  case "end":
223
223
  return _context3.stop();
224
224
  }
@@ -80,7 +80,7 @@ var ReactionConsumer = exports.ReactionConsumer = /*#__PURE__*/function (_React$
80
80
  key: "componentWillUnmount",
81
81
  value: function () {
82
82
  var _componentWillUnmount = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
83
- return _regenerator.default.wrap(function _callee$(_context) {
83
+ return _regenerator.default.wrap(function (_context) {
84
84
  while (1) switch (_context.prev = _context.next) {
85
85
  case 0:
86
86
  if (this.state.store) {
@@ -2,7 +2,7 @@
2
2
  import { createAndFireEvent } from '@atlaskit/analytics-next';
3
3
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
4
4
  const packageName = "@atlaskit/reactions";
5
- const packageVersion = "34.2.6";
5
+ const packageVersion = "34.2.7";
6
6
  /**
7
7
  * TODO: move to utility package?
8
8
  * A random sampling function
@@ -3,6 +3,7 @@ import "./ReactionParticleEffect.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { ResourcedEmoji } from '@atlaskit/emoji';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
6
7
  import { layers } from '@atlaskit/theme/constants';
7
8
  import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
8
9
  const containerStyle = null;
@@ -13,6 +14,7 @@ export const ReactionParticleEffect = ({
13
14
  emojiId,
14
15
  optimisticImageURL
15
16
  }) => /*#__PURE__*/React.createElement("div", {
17
+ "aria-hidden": fg('platform_a11y_fixes_reaction_emoji') ? true : undefined,
16
18
  className: ax(["_kqswh2mm _1ltvftgi _1pbyifev _m602idpf"])
17
19
  }, [...Array(PARTICLE_COUNT)].map((_, index) => {
18
20
  return /*#__PURE__*/React.createElement("div", {
@@ -59,18 +59,18 @@ export var MockReactionsClient = /*#__PURE__*/function () {
59
59
  value: function () {
60
60
  var _getReactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(containerAri, aris) {
61
61
  var _this2 = this;
62
- return _regeneratorRuntime.wrap(function _callee$(_context) {
62
+ return _regeneratorRuntime.wrap(function (_context) {
63
63
  while (1) switch (_context.prev = _context.next) {
64
64
  case 0:
65
- _context.next = 2;
65
+ _context.next = 1;
66
66
  return this.delayPromise();
67
- case 2:
67
+ case 1:
68
68
  return _context.abrupt("return", aris.reduce(function (results, ari) {
69
69
  var reactionKey = getReactionKey(containerAri, ari);
70
70
  results[ari] = _this2.mockData[reactionKey] || [];
71
71
  return results;
72
72
  }, {}));
73
- case 3:
73
+ case 2:
74
74
  case "end":
75
75
  return _context.stop();
76
76
  }
@@ -86,30 +86,30 @@ export var MockReactionsClient = /*#__PURE__*/function () {
86
86
  value: function () {
87
87
  var _getDetailedReaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(containerAri, ari, emojiId) {
88
88
  var reactionKey, reactionsMockData, reaction, users;
89
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
89
+ return _regeneratorRuntime.wrap(function (_context2) {
90
90
  while (1) switch (_context2.prev = _context2.next) {
91
91
  case 0:
92
- _context2.next = 2;
92
+ _context2.next = 1;
93
93
  return this.delayPromise();
94
- case 2:
94
+ case 1:
95
95
  reactionKey = "".concat(containerAri, "|").concat(ari);
96
96
  reactionsMockData = this.mockData[reactionKey];
97
97
  if (!reactionsMockData) {
98
- _context2.next = 9;
98
+ _context2.next = 2;
99
99
  break;
100
100
  }
101
101
  reaction = reactionsMockData.find(function (reaction_1) {
102
102
  return reaction_1.emojiId === emojiId;
103
103
  });
104
104
  if (!reaction) {
105
- _context2.next = 9;
105
+ _context2.next = 2;
106
106
  break;
107
107
  }
108
108
  users = [].concat(defaultUsers).slice(Math.floor(Math.random() * 4), Math.floor(Math.random() * 9) + 4).slice(0, reaction.count);
109
109
  return _context2.abrupt("return", _objectSpread(_objectSpread({}, reaction), {}, {
110
110
  users: users
111
111
  }));
112
- case 9:
112
+ case 2:
113
113
  return _context2.abrupt("return", {
114
114
  containerAri: containerAri,
115
115
  ari: ari,
@@ -118,7 +118,7 @@ export var MockReactionsClient = /*#__PURE__*/function () {
118
118
  reacted: true,
119
119
  users: []
120
120
  });
121
- case 10:
121
+ case 3:
122
122
  case "end":
123
123
  return _context2.stop();
124
124
  }
@@ -134,12 +134,12 @@ export var MockReactionsClient = /*#__PURE__*/function () {
134
134
  value: function () {
135
135
  var _addReaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(containerAri, ari, emojiId) {
136
136
  var reactionKey, found, reactionsMockData;
137
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
137
+ return _regeneratorRuntime.wrap(function (_context3) {
138
138
  while (1) switch (_context3.prev = _context3.next) {
139
139
  case 0:
140
- _context3.next = 2;
140
+ _context3.next = 1;
141
141
  return this.delayPromise();
142
- case 2:
142
+ case 1:
143
143
  reactionKey = getReactionKey(containerAri, ari);
144
144
  found = false;
145
145
  reactionsMockData = this.mockData[reactionKey];
@@ -165,7 +165,7 @@ export var MockReactionsClient = /*#__PURE__*/function () {
165
165
  }]);
166
166
  }
167
167
  return _context3.abrupt("return", this.mockData[reactionKey]);
168
- case 8:
168
+ case 2:
169
169
  case "end":
170
170
  return _context3.stop();
171
171
  }
@@ -181,12 +181,12 @@ export var MockReactionsClient = /*#__PURE__*/function () {
181
181
  value: function () {
182
182
  var _deleteReaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(containerAri, ari, emojiId) {
183
183
  var reactionKey;
184
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
184
+ return _regeneratorRuntime.wrap(function (_context4) {
185
185
  while (1) switch (_context4.prev = _context4.next) {
186
186
  case 0:
187
- _context4.next = 2;
187
+ _context4.next = 1;
188
188
  return this.delayPromise();
189
- case 2:
189
+ case 1:
190
190
  reactionKey = getReactionKey(containerAri, ari);
191
191
  this.mockData[reactionKey] = this.mockData[reactionKey].map(function (reaction) {
192
192
  if (reaction.emojiId === emojiId) {
@@ -203,7 +203,7 @@ export var MockReactionsClient = /*#__PURE__*/function () {
203
203
  return !!reaction_1;
204
204
  });
205
205
  return _context4.abrupt("return", this.mockData[reactionKey]);
206
- case 5:
206
+ case 2:
207
207
  case "end":
208
208
  return _context4.stop();
209
209
  }
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  import { createAndFireEvent } from '@atlaskit/analytics-next';
6
6
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
7
7
  var packageName = "@atlaskit/reactions";
8
- var packageVersion = "34.2.6";
8
+ var packageVersion = "34.2.7";
9
9
  /**
10
10
  * TODO: move to utility package?
11
11
  * A random sampling function
@@ -79,21 +79,21 @@ export var Reaction = function Reaction(_ref) {
79
79
  useEffect(function () {
80
80
  _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
81
81
  var emojiResource, foundEmoji;
82
- return _regeneratorRuntime.wrap(function _callee$(_context) {
82
+ return _regeneratorRuntime.wrap(function (_context) {
83
83
  while (1) switch (_context.prev = _context.next) {
84
84
  case 0:
85
- _context.next = 2;
85
+ _context.next = 1;
86
86
  return Promise.resolve(emojiProvider);
87
- case 2:
87
+ case 1:
88
88
  emojiResource = _context.sent;
89
- _context.next = 5;
89
+ _context.next = 2;
90
90
  return emojiResource.findById(reaction.emojiId);
91
- case 5:
91
+ case 2:
92
92
  foundEmoji = _context.sent;
93
93
  if (foundEmoji) {
94
94
  setEmojiName(foundEmoji.name);
95
95
  }
96
- case 7:
96
+ case 3:
97
97
  case "end":
98
98
  return _context.stop();
99
99
  }
@@ -4,6 +4,7 @@ import "./ReactionParticleEffect.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { ResourcedEmoji } from '@atlaskit/emoji';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { layers } from '@atlaskit/theme/constants';
8
9
  import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
9
10
  var containerStyle = null;
@@ -14,6 +15,7 @@ export var ReactionParticleEffect = function ReactionParticleEffect(_ref) {
14
15
  emojiId = _ref.emojiId,
15
16
  optimisticImageURL = _ref.optimisticImageURL;
16
17
  return /*#__PURE__*/React.createElement("div", {
18
+ "aria-hidden": fg('platform_a11y_fixes_reaction_emoji') ? true : undefined,
17
19
  className: ax(["_kqswh2mm _1ltvftgi _1pbyifev _m602idpf"])
18
20
  }, _toConsumableArray(Array(PARTICLE_COUNT)).map(function (_, index) {
19
21
  return /*#__PURE__*/React.createElement("div", {
@@ -103,19 +103,19 @@ export var ReactionsDialogHeader = function ReactionsDialogHeader(_ref3) {
103
103
  }
104
104
  _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
105
105
  var provider, emoji, capitalizedName;
106
- return _regeneratorRuntime.wrap(function _callee$(_context) {
106
+ return _regeneratorRuntime.wrap(function (_context) {
107
107
  while (1) switch (_context.prev = _context.next) {
108
108
  case 0:
109
- _context.next = 2;
109
+ _context.next = 1;
110
110
  return emojiProvider;
111
- case 2:
111
+ case 1:
112
112
  provider = _context.sent;
113
- _context.next = 5;
113
+ _context.next = 2;
114
114
  return provider.findByEmojiId({
115
115
  shortName: '',
116
116
  id: emojiId
117
117
  });
118
- case 5:
118
+ case 2:
119
119
  emoji = _context.sent;
120
120
  if (emoji !== null && emoji !== void 0 && emoji.name) {
121
121
  // capitalize first letter of each string
@@ -126,7 +126,7 @@ export var ReactionsDialogHeader = function ReactionsDialogHeader(_ref3) {
126
126
  return _objectSpread(_objectSpread({}, prevCache), {}, _defineProperty({}, emojiId, capitalizedName));
127
127
  });
128
128
  }
129
- case 7:
129
+ case 3:
130
130
  case "end":
131
131
  return _context.stop();
132
132
  }
@@ -19,15 +19,15 @@ export var ConnectedReactionPicker = function ConnectedReactionPicker(props) {
19
19
  var onSelection = function onSelection(emojiId) {
20
20
  _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
21
21
  var _store;
22
- return _regeneratorRuntime.wrap(function _callee$(_context) {
22
+ return _regeneratorRuntime.wrap(function (_context) {
23
23
  while (1) switch (_context.prev = _context.next) {
24
24
  case 0:
25
- _context.next = 2;
25
+ _context.next = 1;
26
26
  return Promise.resolve(store);
27
- case 2:
27
+ case 1:
28
28
  _store = _context.sent;
29
29
  _store.addReaction(containerAri, ari, emojiId);
30
- case 4:
30
+ case 2:
31
31
  case "end":
32
32
  return _context.stop();
33
33
  }
@@ -153,19 +153,19 @@ export var ConnectedReactionsView = function ConnectedReactionsView(props) {
153
153
  useEffect(function () {
154
154
  _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
155
155
  var _store;
156
- return _regeneratorRuntime.wrap(function _callee$(_context) {
156
+ return _regeneratorRuntime.wrap(function (_context) {
157
157
  while (1) switch (_context.prev = _context.next) {
158
158
  case 0:
159
159
  if (!('then' in store)) {
160
- _context.next = 5;
160
+ _context.next = 2;
161
161
  break;
162
162
  }
163
- _context.next = 3;
163
+ _context.next = 1;
164
164
  return Promise.resolve(store);
165
- case 3:
165
+ case 1:
166
166
  _store = _context.sent;
167
167
  resolveStore(_store);
168
- case 5:
168
+ case 2:
169
169
  case "end":
170
170
  return _context.stop();
171
171
  }
@@ -185,15 +185,15 @@ export var ConnectedReactionsView = function ConnectedReactionsView(props) {
185
185
  };
186
186
  _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
187
187
  var _store;
188
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
188
+ return _regeneratorRuntime.wrap(function (_context2) {
189
189
  while (1) switch (_context2.prev = _context2.next) {
190
190
  case 0:
191
- _context2.next = 2;
191
+ _context2.next = 1;
192
192
  return Promise.resolve(store);
193
- case 2:
193
+ case 1:
194
194
  _store = _context2.sent;
195
195
  _store.onChange(onChangeCallback);
196
- case 4:
196
+ case 2:
197
197
  case "end":
198
198
  return _context2.stop();
199
199
  }
@@ -202,15 +202,15 @@ export var ConnectedReactionsView = function ConnectedReactionsView(props) {
202
202
  return function cleanup() {
203
203
  _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
204
204
  var _store;
205
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
205
+ return _regeneratorRuntime.wrap(function (_context3) {
206
206
  while (1) switch (_context3.prev = _context3.next) {
207
207
  case 0:
208
- _context3.next = 2;
208
+ _context3.next = 1;
209
209
  return Promise.resolve(store);
210
- case 2:
210
+ case 1:
211
211
  _store = _context3.sent;
212
212
  _store.removeOnChangeListener(onChangeCallback);
213
- case 4:
213
+ case 2:
214
214
  case "end":
215
215
  return _context3.stop();
216
216
  }
@@ -76,7 +76,7 @@ export var ReactionConsumer = /*#__PURE__*/function (_React$PureComponent) {
76
76
  key: "componentWillUnmount",
77
77
  value: function () {
78
78
  var _componentWillUnmount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
79
- return _regeneratorRuntime.wrap(function _callee$(_context) {
79
+ return _regeneratorRuntime.wrap(function (_context) {
80
80
  while (1) switch (_context.prev = _context.next) {
81
81
  case 0:
82
82
  if (this.state.store) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "34.2.7",
3
+ "version": "34.2.8",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -47,16 +47,16 @@
47
47
  "@atlaskit/css": "^0.19.0",
48
48
  "@atlaskit/emoji": "^70.10.0",
49
49
  "@atlaskit/heading": "^5.4.0",
50
- "@atlaskit/icon": "^35.1.0",
50
+ "@atlaskit/icon": "^35.3.0",
51
51
  "@atlaskit/link": "^3.4.0",
52
52
  "@atlaskit/modal-dialog": "^15.2.0",
53
53
  "@atlaskit/motion": "^6.2.0",
54
54
  "@atlaskit/platform-feature-flags": "^1.1.0",
55
55
  "@atlaskit/popper": "^7.2.0",
56
- "@atlaskit/popup": "^4.21.0",
56
+ "@atlaskit/popup": "^4.22.0",
57
57
  "@atlaskit/portal": "^5.5.0",
58
58
  "@atlaskit/primitives": "^19.0.0",
59
- "@atlaskit/react-ufo": "^6.1.0",
59
+ "@atlaskit/react-ufo": "^6.2.0",
60
60
  "@atlaskit/spinner": "^19.1.0",
61
61
  "@atlaskit/tabs": "^19.1.0",
62
62
  "@atlaskit/theme": "^25.0.0",