@atlaskit/reactions 21.2.5 → 21.3.0

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,15 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 21.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8db47b60a8f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8db47b60a8f) - [ux] Updated reactions count color to be accessible, pluralize the more emojis tooltip, and stopped the reactions button click event from propagating into the reactions tooltip.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 21.2.5
4
14
 
5
15
  ### Patch Changes
@@ -31,7 +31,7 @@ exports.counterTestId = counterTestId;
31
31
  var countStyle = (0, _core.css)({
32
32
  fontSize: 11,
33
33
  // TODO: nice to have a theme level token for fontSize
34
- color: (0, _tokens.token)('color.text.subtlest', _colors.N90),
34
+ color: (0, _tokens.token)('color.text.subtlest', _colors.N500),
35
35
  overflow: 'hidden',
36
36
  position: 'relative',
37
37
  padding: '4px 8px 4px 0',
@@ -112,6 +112,7 @@ var ReactionWithoutAnalytics = /*#__PURE__*/function (_PureComponent) {
112
112
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mounted", false);
113
113
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleMouseDown", function (event) {
114
114
  event.preventDefault();
115
+ event.stopPropagation();
115
116
 
116
117
  if (_this.props.onClick && (0, _utils.isLeftClick)(event)) {
117
118
  var _this$props = _this.props,
@@ -14,8 +14,8 @@ var messages = (0, _reactIntlNext.defineMessages)({
14
14
  description: 'Message while reactions are being loaded'
15
15
  },
16
16
  moreEmoji: {
17
- id: 'fabric.reactions.more.emoji',
18
- defaultMessage: 'More emoji',
17
+ id: 'fabric.reactions.more.emojis',
18
+ defaultMessage: 'More emojis',
19
19
  description: 'Tooltip of the "show more" button in the quick reaction selector. The full emoji selector is displayed when the user clicks on it.'
20
20
  },
21
21
  unexpectedError: {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "21.2.5"
3
+ "version": "21.3.0"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx, css } from '@emotion/core';
3
- import { N90, B400 } from '@atlaskit/theme/colors';
3
+ import { N500, B400 } from '@atlaskit/theme/colors';
4
4
  import { token } from '@atlaskit/tokens';
5
5
  import React, { memo } from 'react';
6
6
  import { SlideIn, ExitingPersistence, mediumDurationMs } from '@atlaskit/motion';
@@ -9,7 +9,7 @@ export const counterTestId = 'counter-container';
9
9
  export const countStyle = css({
10
10
  fontSize: 11,
11
11
  // TODO: nice to have a theme level token for fontSize
12
- color: token('color.text.subtlest', N90),
12
+ color: token('color.text.subtlest', N500),
13
13
  overflow: 'hidden',
14
14
  position: 'relative',
15
15
  padding: '4px 8px 4px 0',
@@ -68,6 +68,7 @@ class ReactionWithoutAnalytics extends PureComponent {
68
68
 
69
69
  _defineProperty(this, "handleMouseDown", event => {
70
70
  event.preventDefault();
71
+ event.stopPropagation();
71
72
 
72
73
  if (this.props.onClick && isLeftClick(event)) {
73
74
  const {
@@ -6,8 +6,8 @@ export const messages = defineMessages({
6
6
  description: 'Message while reactions are being loaded'
7
7
  },
8
8
  moreEmoji: {
9
- id: 'fabric.reactions.more.emoji',
10
- defaultMessage: 'More emoji',
9
+ id: 'fabric.reactions.more.emojis',
10
+ defaultMessage: 'More emojis',
11
11
  description: 'Tooltip of the "show more" button in the quick reaction selector. The full emoji selector is displayed when the user clicks on it.'
12
12
  },
13
13
  unexpectedError: {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "21.2.5"
3
+ "version": "21.3.0"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx, css } from '@emotion/core';
3
- import { N90, B400 } from '@atlaskit/theme/colors';
3
+ import { N500, B400 } from '@atlaskit/theme/colors';
4
4
  import { token } from '@atlaskit/tokens';
5
5
  import React, { memo } from 'react';
6
6
  import { SlideIn, ExitingPersistence, mediumDurationMs } from '@atlaskit/motion';
@@ -9,7 +9,7 @@ export var counterTestId = 'counter-container';
9
9
  export var countStyle = css({
10
10
  fontSize: 11,
11
11
  // TODO: nice to have a theme level token for fontSize
12
- color: token('color.text.subtlest', N90),
12
+ color: token('color.text.subtlest', N500),
13
13
  overflow: 'hidden',
14
14
  position: 'relative',
15
15
  padding: '4px 8px 4px 0',
@@ -86,6 +86,7 @@ var ReactionWithoutAnalytics = /*#__PURE__*/function (_PureComponent) {
86
86
 
87
87
  _defineProperty(_assertThisInitialized(_this), "handleMouseDown", function (event) {
88
88
  event.preventDefault();
89
+ event.stopPropagation();
89
90
 
90
91
  if (_this.props.onClick && isLeftClick(event)) {
91
92
  var _this$props = _this.props,
@@ -6,8 +6,8 @@ export var messages = defineMessages({
6
6
  description: 'Message while reactions are being loaded'
7
7
  },
8
8
  moreEmoji: {
9
- id: 'fabric.reactions.more.emoji',
10
- defaultMessage: 'More emoji',
9
+ id: 'fabric.reactions.more.emojis',
10
+ defaultMessage: 'More emojis',
11
11
  description: 'Tooltip of the "show more" button in the quick reaction selector. The full emoji selector is displayed when the user clicks on it.'
12
12
  },
13
13
  unexpectedError: {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "21.2.5"
3
+ "version": "21.3.0"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "21.2.5",
3
+ "version": "21.3.0",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,7 +30,7 @@
30
30
  "@atlaskit/analytics-next": "^8.2.0",
31
31
  "@atlaskit/button": "^16.3.0",
32
32
  "@atlaskit/ds-lib": "^1.4.0",
33
- "@atlaskit/emoji": "^64.5.0",
33
+ "@atlaskit/emoji": "^64.6.0",
34
34
  "@atlaskit/icon": "^21.10.0",
35
35
  "@atlaskit/motion": "^1.0.3",
36
36
  "@atlaskit/popper": "^5.0.0",