@atlaskit/reactions 33.6.6 → 33.6.7

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
+ ## 33.6.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bdec29dd5a417`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bdec29dd5a417) -
8
+ Clean up platform_emoji_picker_focus_on_button FG
9
+ - Updated dependencies
10
+
3
11
  ## 33.6.6
4
12
 
5
13
  ### Patch Changes
@@ -209,13 +209,11 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
209
209
  }
210
210
  onSelection(item.id, settings.showFullPicker || hoverableReactionPicker && isHoverableReactionPickerEmojiPickerOpen ? 'emojiPicker' : 'quickSelector');
211
211
  close(item.id);
212
- if ((0, _platformFeatureFlags.fg)('platform_emoji_picker_focus_on_button')) {
213
- // After selecting an emoji, we would like focus to be returned to the trigger button
214
- // This is for the purposes of navigation for keyboard users
215
- requestAnimationFrame(function () {
216
- return triggerRef === null || triggerRef === void 0 ? void 0 : triggerRef.focus();
217
- });
218
- }
212
+ // After selecting an emoji, we would like focus to be returned to the trigger button
213
+ // This is for the purposes of navigation for keyboard users
214
+ requestAnimationFrame(function () {
215
+ return triggerRef === null || triggerRef === void 0 ? void 0 : triggerRef.focus();
216
+ });
219
217
  }, [close, onSelection, settings.showFullPicker, hoverableReactionPicker, isHoverableReactionPickerEmojiPickerOpen, triggerRef]);
220
218
 
221
219
  /**
@@ -167,11 +167,9 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
167
167
  }
168
168
  onSelection(item.id, settings.showFullPicker || hoverableReactionPicker && isHoverableReactionPickerEmojiPickerOpen ? 'emojiPicker' : 'quickSelector');
169
169
  close(item.id);
170
- if (fg('platform_emoji_picker_focus_on_button')) {
171
- // After selecting an emoji, we would like focus to be returned to the trigger button
172
- // This is for the purposes of navigation for keyboard users
173
- requestAnimationFrame(() => triggerRef === null || triggerRef === void 0 ? void 0 : triggerRef.focus());
174
- }
170
+ // After selecting an emoji, we would like focus to be returned to the trigger button
171
+ // This is for the purposes of navigation for keyboard users
172
+ requestAnimationFrame(() => triggerRef === null || triggerRef === void 0 ? void 0 : triggerRef.focus());
175
173
  }, [close, onSelection, settings.showFullPicker, hoverableReactionPicker, isHoverableReactionPickerEmojiPickerOpen, triggerRef]);
176
174
 
177
175
  /**
@@ -200,13 +200,11 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
200
200
  }
201
201
  onSelection(item.id, settings.showFullPicker || hoverableReactionPicker && isHoverableReactionPickerEmojiPickerOpen ? 'emojiPicker' : 'quickSelector');
202
202
  close(item.id);
203
- if (fg('platform_emoji_picker_focus_on_button')) {
204
- // After selecting an emoji, we would like focus to be returned to the trigger button
205
- // This is for the purposes of navigation for keyboard users
206
- requestAnimationFrame(function () {
207
- return triggerRef === null || triggerRef === void 0 ? void 0 : triggerRef.focus();
208
- });
209
- }
203
+ // After selecting an emoji, we would like focus to be returned to the trigger button
204
+ // This is for the purposes of navigation for keyboard users
205
+ requestAnimationFrame(function () {
206
+ return triggerRef === null || triggerRef === void 0 ? void 0 : triggerRef.focus();
207
+ });
210
208
  }, [close, onSelection, settings.showFullPicker, hoverableReactionPicker, isHoverableReactionPickerEmojiPickerOpen, triggerRef]);
211
209
 
212
210
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "33.6.6",
3
+ "version": "33.6.7",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/analytics-next": "^11.1.0",
38
38
  "@atlaskit/avatar": "^25.5.0",
39
39
  "@atlaskit/button": "^23.6.0",
40
- "@atlaskit/css": "^0.16.0",
40
+ "@atlaskit/css": "^0.17.0",
41
41
  "@atlaskit/emoji": "^69.8.0",
42
42
  "@atlaskit/heading": "^5.2.0",
43
43
  "@atlaskit/icon": "^29.0.0",
@@ -49,12 +49,12 @@
49
49
  "@atlaskit/popper": "^7.1.0",
50
50
  "@atlaskit/popup": "^4.6.0",
51
51
  "@atlaskit/portal": "^5.1.0",
52
- "@atlaskit/primitives": "^16.2.0",
52
+ "@atlaskit/primitives": "^16.3.0",
53
53
  "@atlaskit/react-ufo": "^4.15.0",
54
54
  "@atlaskit/spinner": "^19.0.0",
55
55
  "@atlaskit/tabs": "^18.2.0",
56
56
  "@atlaskit/theme": "^21.0.0",
57
- "@atlaskit/tokens": "^8.1.0",
57
+ "@atlaskit/tokens": "^8.3.0",
58
58
  "@atlaskit/tooltip": "^20.10.0",
59
59
  "@atlaskit/ufo": "^0.4.0",
60
60
  "@atlaskit/util-service-support": "^6.3.0",
@@ -115,9 +115,6 @@
115
115
  "start:edge": "cd ../../ && PROXY_TARGET_ENV=edge yarn start:webpack reactions --proxy ./packages/elements/reactions/proxy.ts"
116
116
  },
117
117
  "platform-feature-flags": {
118
- "platform_emoji_picker_focus_on_button": {
119
- "type": "boolean"
120
- },
121
118
  "platform-component-visual-refresh": {
122
119
  "type": "boolean"
123
120
  },