@atlaskit/profilecard 16.10.1 → 16.12.1
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 +22 -0
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +4 -1
- package/dist/cjs/components/User/ProfileCard.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +5 -1
- package/dist/es2019/components/User/ProfileCard.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +5 -1
- package/dist/esm/components/User/ProfileCard.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +1 -0
- package/package.json +6 -6
- package/report.api.md +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 16.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
8
|
+
|
|
9
|
+
## 16.12.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`12835d685b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12835d685b4) - [ux] Only show give kudos button on active profiles
|
|
14
|
+
|
|
15
|
+
## 16.11.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [`01d80d395bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/01d80d395bc) - pass event to onOpenChange consistently
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 16.10.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -173,6 +173,9 @@ var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
173
173
|
_this.hideProfilecard(_config.DELAY_MS_HIDE);
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onClose", function () {
|
|
177
|
+
_this.hideProfilecard();
|
|
178
|
+
});
|
|
176
179
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "openKudosDrawer", function () {
|
|
177
180
|
_this.hideProfilecard(_config.DELAY_MS_HIDE);
|
|
178
181
|
|
|
@@ -419,7 +422,7 @@ var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
419
422
|
onError: this.onErrorBoundary
|
|
420
423
|
}, /*#__PURE__*/_react.default.createElement(_popup.default, {
|
|
421
424
|
isOpen: !!this.state.visible,
|
|
422
|
-
onClose: this.
|
|
425
|
+
onClose: this.onClose,
|
|
423
426
|
placement: this.props.position,
|
|
424
427
|
content: this.renderProfileCard,
|
|
425
428
|
trigger: function trigger(triggerProps) {
|
|
@@ -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.
|
|
59
|
+
packageVersion: "16.12.1"
|
|
60
60
|
}, attributes), {}, {
|
|
61
61
|
firedAt: (0, _performance.getPageTime)()
|
|
62
62
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -117,6 +117,10 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
|
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
|
|
120
|
+
_defineProperty(this, "onClose", () => {
|
|
121
|
+
this.hideProfilecard();
|
|
122
|
+
});
|
|
123
|
+
|
|
120
124
|
_defineProperty(this, "openKudosDrawer", () => {
|
|
121
125
|
this.hideProfilecard(DELAY_MS_HIDE);
|
|
122
126
|
this.setState({
|
|
@@ -360,7 +364,7 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
|
|
|
360
364
|
onError: this.onErrorBoundary
|
|
361
365
|
}, /*#__PURE__*/React.createElement(Popup, {
|
|
362
366
|
isOpen: !!this.state.visible,
|
|
363
|
-
onClose: this.
|
|
367
|
+
onClose: this.onClose,
|
|
364
368
|
placement: this.props.position,
|
|
365
369
|
content: this.renderProfileCard,
|
|
366
370
|
trigger: triggerProps => this.renderTrigger(triggerProps),
|
|
@@ -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.
|
|
38
|
+
packageVersion: "16.12.1",
|
|
39
39
|
...attributes,
|
|
40
40
|
firedAt: getPageTime()
|
|
41
41
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -148,6 +148,10 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
+
_defineProperty(_assertThisInitialized(_this), "onClose", function () {
|
|
152
|
+
_this.hideProfilecard();
|
|
153
|
+
});
|
|
154
|
+
|
|
151
155
|
_defineProperty(_assertThisInitialized(_this), "openKudosDrawer", function () {
|
|
152
156
|
_this.hideProfilecard(DELAY_MS_HIDE);
|
|
153
157
|
|
|
@@ -406,7 +410,7 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
406
410
|
onError: this.onErrorBoundary
|
|
407
411
|
}, /*#__PURE__*/React.createElement(Popup, {
|
|
408
412
|
isOpen: !!this.state.visible,
|
|
409
|
-
onClose: this.
|
|
413
|
+
onClose: this.onClose,
|
|
410
414
|
placement: this.props.position,
|
|
411
415
|
content: this.renderProfileCard,
|
|
412
416
|
trigger: function trigger(triggerProps) {
|
|
@@ -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.
|
|
48
|
+
packageVersion: "16.12.1"
|
|
49
49
|
}, attributes), {}, {
|
|
50
50
|
firedAt: getPageTime()
|
|
51
51
|
})
|
package/dist/esm/version.json
CHANGED
|
@@ -18,6 +18,7 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
|
|
|
18
18
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
19
19
|
onMouseEnter: () => void;
|
|
20
20
|
onMouseLeave: () => void;
|
|
21
|
+
onClose: () => void;
|
|
21
22
|
openKudosDrawer: () => void;
|
|
22
23
|
closeKudosDrawer: () => void;
|
|
23
24
|
kudosUrl: () => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.12.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"@atlaskit/avatar": "^21.0.0",
|
|
43
43
|
"@atlaskit/avatar-group": "^9.0.0",
|
|
44
44
|
"@atlaskit/button": "^16.3.0",
|
|
45
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
45
|
+
"@atlaskit/dropdown-menu": "^11.3.0",
|
|
46
46
|
"@atlaskit/give-kudos": "^0.6.0",
|
|
47
47
|
"@atlaskit/icon": "^21.10.0",
|
|
48
48
|
"@atlaskit/lozenge": "^11.0.0",
|
|
49
49
|
"@atlaskit/menu": "^1.3.0",
|
|
50
|
-
"@atlaskit/popup": "^1.
|
|
50
|
+
"@atlaskit/popup": "^1.4.0",
|
|
51
51
|
"@atlaskit/spinner": "^15.0.0",
|
|
52
52
|
"@atlaskit/theme": "^12.1.0",
|
|
53
53
|
"@atlaskit/tokens": "^0.10.0",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@atlaskit/docs": "*",
|
|
67
|
-
"@atlaskit/dynamic-table": "^14.
|
|
67
|
+
"@atlaskit/dynamic-table": "^14.7.0",
|
|
68
68
|
"@atlaskit/flag": "^14.5.0",
|
|
69
69
|
"@atlaskit/inline-edit": "^12.0.0",
|
|
70
|
-
"@atlaskit/select": "^15.
|
|
70
|
+
"@atlaskit/select": "^15.6.0",
|
|
71
71
|
"@atlaskit/util-data-test": "^17.5.0",
|
|
72
72
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
73
73
|
"@testing-library/react": "^8.0.1",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"loader-utils": "^1.1.0",
|
|
78
78
|
"react-router-dom": "^4.2.2",
|
|
79
79
|
"sinon": "^2.2.0",
|
|
80
|
-
"typescript": "4.
|
|
80
|
+
"typescript": "4.3.5",
|
|
81
81
|
"uid": "^0.0.2"
|
|
82
82
|
},
|
|
83
83
|
"keywords": [
|
package/report.api.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/profilecard"
|
|
1
|
+
## API Report File for "@atlaskit/profilecard".
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
8
|
/// <reference types="react" />
|