@atlaskit/reactions 34.2.2 → 34.2.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,18 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 34.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0b0def82562f3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0b0def82562f3) -
8
+ Fix unnecessary textual description for decorative images
9
+
10
+ ## 34.2.3
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 34.2.2
4
17
 
5
18
  ### 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 = "0.0.0-development";
14
+ var packageVersion = "34.2.3";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -99,12 +99,15 @@ var Trigger = exports.Trigger = /*#__PURE__*/_react2.default.forwardRef(function
99
99
  }, ariaAttributes), !!reactionPickerTriggerIcon ? reactionPickerTriggerIcon :
100
100
  /*#__PURE__*/
101
101
  // TODO: https://product-fabric.atlassian.net/browse/DSP-21007
102
- _react2.default.createElement(_emojiAdd.default, {
102
+ _react2.default.createElement(_emojiAdd.default, (0, _extends2.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: "Add reaction"
106
+ }, (0, _platformFeatureFlags.fg)('platform_a11y_fixes_reaction_emoji') ? {
107
+ 'aria-hidden': true
108
+ } : {}, {
106
109
  size: emojiPickerSize === 'small' ? 'small' : 'medium'
107
- }), showAddReactionText && /*#__PURE__*/_react2.default.createElement(_compiled.Box, {
110
+ })), showAddReactionText && /*#__PURE__*/_react2.default.createElement(_compiled.Box, {
108
111
  xcss: (0, _react.cx)(addReactionStyles.addReactionMessage)
109
112
  }, reactionPickerTriggerText));
110
113
  };
@@ -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 = "0.0.0-development";
5
+ const packageVersion = "34.2.3";
6
6
  /**
7
7
  * TODO: move to utility package?
8
8
  * A random sampling function
@@ -85,12 +85,15 @@ export const Trigger = /*#__PURE__*/React.forwardRef((props, ref) => {
85
85
  }, ariaAttributes), !!reactionPickerTriggerIcon ? reactionPickerTriggerIcon :
86
86
  /*#__PURE__*/
87
87
  // TODO: https://product-fabric.atlassian.net/browse/DSP-21007
88
- React.createElement(EmojiAddIcon, {
88
+ React.createElement(EmojiAddIcon, _extends({
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: "Add reaction"
92
+ }, fg('platform_a11y_fixes_reaction_emoji') ? {
93
+ 'aria-hidden': true
94
+ } : {}, {
92
95
  size: emojiPickerSize === 'small' ? 'small' : 'medium'
93
- }), showAddReactionText && /*#__PURE__*/React.createElement(Box, {
96
+ })), showAddReactionText && /*#__PURE__*/React.createElement(Box, {
94
97
  xcss: cx(addReactionStyles.addReactionMessage)
95
98
  }, reactionPickerTriggerText));
96
99
  return /*#__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 = "0.0.0-development";
8
+ var packageVersion = "34.2.3";
9
9
  /**
10
10
  * TODO: move to utility package?
11
11
  * A random sampling function
@@ -92,12 +92,15 @@ export var Trigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
92
92
  }, ariaAttributes), !!reactionPickerTriggerIcon ? reactionPickerTriggerIcon :
93
93
  /*#__PURE__*/
94
94
  // TODO: https://product-fabric.atlassian.net/browse/DSP-21007
95
- React.createElement(EmojiAddIcon, {
95
+ React.createElement(EmojiAddIcon, _extends({
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: "Add reaction"
99
+ }, fg('platform_a11y_fixes_reaction_emoji') ? {
100
+ 'aria-hidden': true
101
+ } : {}, {
99
102
  size: emojiPickerSize === 'small' ? 'small' : 'medium'
100
- }), showAddReactionText && /*#__PURE__*/React.createElement(Box, {
103
+ })), showAddReactionText && /*#__PURE__*/React.createElement(Box, {
101
104
  xcss: cx(addReactionStyles.addReactionMessage)
102
105
  }, reactionPickerTriggerText));
103
106
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "34.2.2",
3
+ "version": "34.2.4",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,10 +42,10 @@
42
42
  "@atlaskit/analytics-gas-types": "^5.1.0",
43
43
  "@atlaskit/analytics-namespaced-context": "^7.3.0",
44
44
  "@atlaskit/analytics-next": "^11.2.0",
45
- "@atlaskit/avatar": "^25.14.0",
45
+ "@atlaskit/avatar": "^25.15.0",
46
46
  "@atlaskit/button": "^23.11.0",
47
47
  "@atlaskit/css": "^0.19.0",
48
- "@atlaskit/emoji": "^70.9.0",
48
+ "@atlaskit/emoji": "^70.10.0",
49
49
  "@atlaskit/heading": "^5.4.0",
50
50
  "@atlaskit/icon": "^35.0.0",
51
51
  "@atlaskit/link": "^3.4.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/popup": "^4.20.0",
57
57
  "@atlaskit/portal": "^5.5.0",
58
58
  "@atlaskit/primitives": "^19.0.0",
59
- "@atlaskit/react-ufo": "^5.21.0",
59
+ "@atlaskit/react-ufo": "^6.0.0",
60
60
  "@atlaskit/spinner": "^19.1.0",
61
61
  "@atlaskit/tabs": "^19.1.0",
62
62
  "@atlaskit/theme": "^23.2.0",
@@ -77,7 +77,7 @@
77
77
  "@af/visual-regression": "workspace:^",
78
78
  "@atlaskit/editor-test-helpers": "workspace:^",
79
79
  "@atlaskit/elements-test-helpers": "workspace:^",
80
- "@atlaskit/util-data-test": "^18.5.0",
80
+ "@atlaskit/util-data-test": "^18.6.0",
81
81
  "@atlassian/a11y-jest-testing": "^0.11.0",
82
82
  "@atlassian/feature-flags-test-utils": "^1.1.0",
83
83
  "@atlassian/react-compiler-gating": "workspace:^",
@@ -142,6 +142,9 @@
142
142
  },
143
143
  "platform_reactions_view_more_styling_fix": {
144
144
  "type": "boolean"
145
+ },
146
+ "platform_a11y_fixes_reaction_emoji": {
147
+ "type": "boolean"
145
148
  }
146
149
  },
147
150
  "sideEffects": [