@atlaskit/reactions 35.13.2 → 35.13.4

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,20 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 35.13.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2fe4e7cff5cb8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2fe4e7cff5cb8) -
8
+ Localize the "Add reaction" icon's accessible label so assistive technologies use the selected
9
+ language. Gated behind the `tef_fix_a11y_add_reaction_button_language_support` feature gate.
10
+ - Updated dependencies
11
+
12
+ ## 35.13.3
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 35.13.2
4
19
 
5
20
  ### 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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
13
13
  var packageName = "@atlaskit/reactions";
14
- var packageVersion = "35.13.1";
14
+ var packageVersion = "35.13.3";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -102,7 +102,7 @@ var Trigger = exports.Trigger = /*#__PURE__*/_react2.default.forwardRef(function
102
102
  _react2.default.createElement(_emojiAdd.default, {
103
103
  testId: "emoji-add-icon",
104
104
  color: disabled ? "var(--ds-icon-disabled, #080F214A)" : "var(--ds-icon, #292A2E)",
105
- label: "Add reaction",
105
+ label: (0, _platformFeatureFlags.fg)('tef_fix_a11y_add_reaction_button_language_support') ? formatMessage(i18n.addReaction) : 'Add reaction',
106
106
  "aria-hidden": true,
107
107
  size: emojiPickerSize === 'small' ? 'small' : 'medium'
108
108
  }), showAddReactionText && /*#__PURE__*/_react2.default.createElement(_compiled.Box, {
@@ -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 = "35.13.1";
5
+ const packageVersion = "35.13.3";
6
6
  /**
7
7
  * TODO: move to utility package?
8
8
  * A random sampling function
@@ -88,7 +88,7 @@ export const Trigger = /*#__PURE__*/React.forwardRef((props, ref) => {
88
88
  React.createElement(EmojiAddIcon, {
89
89
  testId: "emoji-add-icon",
90
90
  color: disabled ? "var(--ds-icon-disabled, #080F214A)" : "var(--ds-icon, #292A2E)",
91
- label: "Add reaction",
91
+ label: fg('tef_fix_a11y_add_reaction_button_language_support') ? formatMessage(i18n.addReaction) : 'Add reaction',
92
92
  "aria-hidden": true,
93
93
  size: emojiPickerSize === 'small' ? 'small' : 'medium'
94
94
  }), showAddReactionText && /*#__PURE__*/React.createElement(Box, {
@@ -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 = "35.13.1";
8
+ var packageVersion = "35.13.3";
9
9
  /**
10
10
  * TODO: move to utility package?
11
11
  * A random sampling function
@@ -95,7 +95,7 @@ export var Trigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
95
95
  React.createElement(EmojiAddIcon, {
96
96
  testId: "emoji-add-icon",
97
97
  color: disabled ? "var(--ds-icon-disabled, #080F214A)" : "var(--ds-icon, #292A2E)",
98
- label: "Add reaction",
98
+ label: fg('tef_fix_a11y_add_reaction_button_language_support') ? formatMessage(i18n.addReaction) : 'Add reaction',
99
99
  "aria-hidden": true,
100
100
  size: emojiPickerSize === 'small' ? 'small' : 'medium'
101
101
  }), showAddReactionText && /*#__PURE__*/React.createElement(Box, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "35.13.2",
3
+ "version": "35.13.4",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,30 +34,30 @@
34
34
  "@atlaskit/analytics-gas-types": "^6.0.0",
35
35
  "@atlaskit/analytics-namespaced-context": "^8.1.0",
36
36
  "@atlaskit/analytics-next": "^12.3.0",
37
- "@atlaskit/avatar": "^27.0.0",
38
- "@atlaskit/button": "^25.1.0",
37
+ "@atlaskit/avatar": "^27.2.0",
38
+ "@atlaskit/button": "^25.2.0",
39
39
  "@atlaskit/css": "^1.0.0",
40
- "@atlaskit/emoji": "^72.0.0",
40
+ "@atlaskit/emoji": "^72.1.0",
41
41
  "@atlaskit/feature-gate-js-client": "^6.0.0",
42
- "@atlaskit/heading": "^7.0.0",
43
- "@atlaskit/icon": "^37.4.0",
44
- "@atlaskit/link": "^5.0.0",
45
- "@atlaskit/modal-dialog": "^16.4.0",
46
- "@atlaskit/motion": "^8.2.0",
42
+ "@atlaskit/heading": "^7.1.0",
43
+ "@atlaskit/icon": "^37.5.0",
44
+ "@atlaskit/link": "^5.1.0",
45
+ "@atlaskit/modal-dialog": "^16.5.0",
46
+ "@atlaskit/motion": "^8.3.0",
47
47
  "@atlaskit/platform-feature-experiments": "^0.3.0",
48
48
  "@atlaskit/platform-feature-flags": "^2.1.0",
49
- "@atlaskit/popper": "^9.2.0",
50
- "@atlaskit/popup": "^6.1.0",
51
- "@atlaskit/portal": "^6.2.0",
52
- "@atlaskit/primitives": "^22.3.0",
49
+ "@atlaskit/popper": "^9.3.0",
50
+ "@atlaskit/popup": "^6.2.0",
51
+ "@atlaskit/portal": "^6.3.0",
52
+ "@atlaskit/primitives": "^22.4.0",
53
53
  "@atlaskit/react-compiler-gating": "^0.2.0",
54
- "@atlaskit/react-ufo": "^7.6.0",
55
- "@atlaskit/spinner": "^20.2.0",
56
- "@atlaskit/tabs": "^21.0.0",
57
- "@atlaskit/theme": "^28.0.0",
58
- "@atlaskit/tmp-editor-statsig": "^155.0.0",
59
- "@atlaskit/tokens": "^16.7.0",
60
- "@atlaskit/tooltip": "^24.1.0",
54
+ "@atlaskit/react-ufo": "^7.7.0",
55
+ "@atlaskit/spinner": "^20.3.0",
56
+ "@atlaskit/tabs": "^21.1.0",
57
+ "@atlaskit/theme": "^28.1.0",
58
+ "@atlaskit/tmp-editor-statsig": "^157.0.0",
59
+ "@atlaskit/tokens": "^16.8.0",
60
+ "@atlaskit/tooltip": "^24.2.0",
61
61
  "@atlaskit/ufo": "^1.0.0",
62
62
  "@atlaskit/util-service-support": "^7.2.0",
63
63
  "@babel/runtime": "^7.0.0",
@@ -138,6 +138,9 @@
138
138
  },
139
139
  "platform_reactions_a11y_group_added_reactions": {
140
140
  "type": "boolean"
141
+ },
142
+ "tef_fix_a11y_add_reaction_button_language_support": {
143
+ "type": "boolean"
141
144
  }
142
145
  },
143
146
  "platform-experiments": {