@atlaskit/profilecard 16.11.0 → 16.12.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,11 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 16.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`12835d685b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12835d685b4) - [ux] Only show give kudos button on active profiles
8
+
3
9
  ## 16.11.0
4
10
 
5
11
  ### Minor Changes
@@ -162,7 +162,7 @@ var Profilecard = /*#__PURE__*/function (_React$PureComponent) {
162
162
 
163
163
  var actions = this.props.actions || [];
164
164
 
165
- if (!this.props.isCurrentUser && this.props.isKudosEnabled) {
165
+ if (!this.props.isCurrentUser && this.props.status === 'active' && this.props.isKudosEnabled) {
166
166
  var kudosAction = {
167
167
  label: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.giveKudosButton),
168
168
  id: this.GIVE_KUDOS_ACTION_ID,
@@ -56,7 +56,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
56
56
  actionSubjectId: actionSubjectId,
57
57
  attributes: _objectSpread(_objectSpread({
58
58
  packageName: "@atlaskit/profilecard",
59
- packageVersion: "16.11.0"
59
+ packageVersion: "16.12.0"
60
60
  }, attributes), {}, {
61
61
  firedAt: (0, _performance.getPageTime)()
62
62
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.11.0"
3
+ "version": "16.12.0"
4
4
  }
@@ -93,7 +93,7 @@ export default class Profilecard extends React.PureComponent {
93
93
  getActions() {
94
94
  const actions = this.props.actions || [];
95
95
 
96
- if (!this.props.isCurrentUser && this.props.isKudosEnabled) {
96
+ if (!this.props.isCurrentUser && this.props.status === 'active' && this.props.isKudosEnabled) {
97
97
  const kudosAction = {
98
98
  label: /*#__PURE__*/React.createElement(FormattedMessage, messages.giveKudosButton),
99
99
  id: this.GIVE_KUDOS_ACTION_ID,
@@ -35,7 +35,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
35
35
  actionSubjectId,
36
36
  attributes: {
37
37
  packageName: "@atlaskit/profilecard",
38
- packageVersion: "16.11.0",
38
+ packageVersion: "16.12.0",
39
39
  ...attributes,
40
40
  firedAt: getPageTime()
41
41
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.11.0"
3
+ "version": "16.12.0"
4
4
  }
@@ -135,7 +135,7 @@ var Profilecard = /*#__PURE__*/function (_React$PureComponent) {
135
135
 
136
136
  var actions = this.props.actions || [];
137
137
 
138
- if (!this.props.isCurrentUser && this.props.isKudosEnabled) {
138
+ if (!this.props.isCurrentUser && this.props.status === 'active' && this.props.isKudosEnabled) {
139
139
  var kudosAction = {
140
140
  label: /*#__PURE__*/React.createElement(FormattedMessage, messages.giveKudosButton),
141
141
  id: this.GIVE_KUDOS_ACTION_ID,
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
45
45
  actionSubjectId: actionSubjectId,
46
46
  attributes: _objectSpread(_objectSpread({
47
47
  packageName: "@atlaskit/profilecard",
48
- packageVersion: "16.11.0"
48
+ packageVersion: "16.12.0"
49
49
  }, attributes), {}, {
50
50
  firedAt: getPageTime()
51
51
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.11.0"
3
+ "version": "16.12.0"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.11.0",
3
+ "version": "16.12.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"