@atlaskit/profilecard 19.7.8 → 19.7.10
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 +12 -0
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamProfileCard.js +4 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +4 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Team/TeamProfileCard.js +4 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 19.7.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#63681](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63681) [`0a62538b713e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0a62538b713e) - role attribute updated for profile card. Previously we are not providing any role attribute for hover state. Now, we are providing dialog as role since it will open popup and show user's detail in popup. Also atlaskit component that we used for openning popup is providing popup aria attributes so just providing dialog is enough to pass a11y checks.
|
|
8
|
+
|
|
9
|
+
## 19.7.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#62980](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62980) [`d85be9b35a7b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d85be9b35a7b) - [ux] PTC-8115 add tooltip to the team name in team profile card
|
|
14
|
+
|
|
3
15
|
## 19.7.8
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -60,7 +60,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
60
60
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
61
61
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
62
62
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
63
|
-
headers.append('atl-client-version', "19.7.
|
|
63
|
+
headers.append('atl-client-version', "19.7.10");
|
|
64
64
|
return headers;
|
|
65
65
|
};
|
|
66
66
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -20,6 +20,7 @@ var _more = _interopRequireDefault(require("@atlaskit/icon/glyph/more"));
|
|
|
20
20
|
var _menu = require("@atlaskit/menu");
|
|
21
21
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
22
22
|
var _constants = require("@atlaskit/theme/constants");
|
|
23
|
+
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
23
24
|
var _messages = _interopRequireDefault(require("../../messages"));
|
|
24
25
|
var _Card = require("../../styled/Card");
|
|
25
26
|
var _Error = require("../../styled/Error");
|
|
@@ -246,7 +247,9 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
|
|
|
246
247
|
"data-testid": "team-profilecard"
|
|
247
248
|
}, /*#__PURE__*/_react.default.createElement(_TeamCard.CardHeader, {
|
|
248
249
|
image: team.largeHeaderImageUrl || team.smallHeaderImageUrl
|
|
249
|
-
}), /*#__PURE__*/_react.default.createElement(_TeamCard.CardContent, null, /*#__PURE__*/_react.default.createElement(
|
|
250
|
+
}), /*#__PURE__*/_react.default.createElement(_TeamCard.CardContent, null, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
251
|
+
content: team.displayName
|
|
252
|
+
}, /*#__PURE__*/_react.default.createElement(_TeamCard.TeamName, null, team.displayName)), /*#__PURE__*/_react.default.createElement(TeamMembers, {
|
|
250
253
|
analytics: analytics,
|
|
251
254
|
members: team.members,
|
|
252
255
|
generateUserLink: generateUserLink,
|
|
@@ -286,7 +286,7 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
286
286
|
return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({}, innerProps, _this3.containerListeners, {
|
|
287
287
|
ref: ref,
|
|
288
288
|
"data-testid": _this3.props.testId,
|
|
289
|
-
role: _this3.props.trigger
|
|
289
|
+
role: _this3.props.trigger === 'click' ? 'button' : 'dialog',
|
|
290
290
|
tabIndex: 0
|
|
291
291
|
}), _this3.props.children);
|
|
292
292
|
},
|
|
@@ -44,7 +44,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
44
44
|
actionSubjectId: actionSubjectId,
|
|
45
45
|
attributes: _objectSpread(_objectSpread({
|
|
46
46
|
packageName: "@atlaskit/profilecard",
|
|
47
|
-
packageVersion: "19.7.
|
|
47
|
+
packageVersion: "19.7.10"
|
|
48
48
|
}, attributes), {}, {
|
|
49
49
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
50
50
|
})
|
|
@@ -77,7 +77,7 @@ export const addHeaders = headers => {
|
|
|
77
77
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
78
78
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
79
79
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
80
|
-
headers.append('atl-client-version', "19.7.
|
|
80
|
+
headers.append('atl-client-version', "19.7.10");
|
|
81
81
|
return headers;
|
|
82
82
|
};
|
|
83
83
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -9,6 +9,7 @@ import MoreIcon from '@atlaskit/icon/glyph/more';
|
|
|
9
9
|
import { LinkItem, MenuGroup } from '@atlaskit/menu';
|
|
10
10
|
import Popup from '@atlaskit/popup';
|
|
11
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
12
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
12
13
|
import messages from '../../messages';
|
|
13
14
|
import { AnimatedKudosButton, AnimationWrapper, KudosBlobAnimation } from '../../styled/Card';
|
|
14
15
|
import { ErrorWrapper, TeamErrorText, TeamErrorTitle } from '../../styled/Error';
|
|
@@ -210,7 +211,9 @@ const TeamProfilecardContent = ({
|
|
|
210
211
|
"data-testid": "team-profilecard"
|
|
211
212
|
}, /*#__PURE__*/React.createElement(CardHeader, {
|
|
212
213
|
image: team.largeHeaderImageUrl || team.smallHeaderImageUrl
|
|
213
|
-
}), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(
|
|
214
|
+
}), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
215
|
+
content: team.displayName
|
|
216
|
+
}, /*#__PURE__*/React.createElement(TeamName, null, team.displayName)), /*#__PURE__*/React.createElement(TeamMembers, {
|
|
214
217
|
analytics: analytics,
|
|
215
218
|
members: team.members,
|
|
216
219
|
generateUserLink: generateUserLink,
|
|
@@ -241,7 +241,7 @@ class ProfilecardTrigger extends React.PureComponent {
|
|
|
241
241
|
return /*#__PURE__*/React.createElement("span", _extends({}, innerProps, this.containerListeners, {
|
|
242
242
|
ref: ref,
|
|
243
243
|
"data-testid": this.props.testId,
|
|
244
|
-
role: this.props.trigger
|
|
244
|
+
role: this.props.trigger === 'click' ? 'button' : 'dialog',
|
|
245
245
|
tabIndex: 0
|
|
246
246
|
}), this.props.children);
|
|
247
247
|
},
|
|
@@ -31,7 +31,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
31
31
|
actionSubjectId,
|
|
32
32
|
attributes: {
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "19.7.
|
|
34
|
+
packageVersion: "19.7.10",
|
|
35
35
|
...attributes,
|
|
36
36
|
firedAt: Math.round(getPageTime())
|
|
37
37
|
}
|
|
@@ -51,7 +51,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
51
51
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
52
52
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
53
53
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
54
|
-
headers.append('atl-client-version', "19.7.
|
|
54
|
+
headers.append('atl-client-version', "19.7.10");
|
|
55
55
|
return headers;
|
|
56
56
|
};
|
|
57
57
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -14,6 +14,7 @@ import MoreIcon from '@atlaskit/icon/glyph/more';
|
|
|
14
14
|
import { LinkItem, MenuGroup } from '@atlaskit/menu';
|
|
15
15
|
import Popup from '@atlaskit/popup';
|
|
16
16
|
import { layers } from '@atlaskit/theme/constants';
|
|
17
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
17
18
|
import messages from '../../messages';
|
|
18
19
|
import { AnimatedKudosButton, AnimationWrapper, KudosBlobAnimation } from '../../styled/Card';
|
|
19
20
|
import { ErrorWrapper, TeamErrorText, TeamErrorTitle } from '../../styled/Error';
|
|
@@ -236,7 +237,9 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
|
|
|
236
237
|
"data-testid": "team-profilecard"
|
|
237
238
|
}, /*#__PURE__*/React.createElement(CardHeader, {
|
|
238
239
|
image: team.largeHeaderImageUrl || team.smallHeaderImageUrl
|
|
239
|
-
}), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(
|
|
240
|
+
}), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
241
|
+
content: team.displayName
|
|
242
|
+
}, /*#__PURE__*/React.createElement(TeamName, null, team.displayName)), /*#__PURE__*/React.createElement(TeamMembers, {
|
|
240
243
|
analytics: analytics,
|
|
241
244
|
members: team.members,
|
|
242
245
|
generateUserLink: generateUserLink,
|
|
@@ -276,7 +276,7 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
276
276
|
return /*#__PURE__*/React.createElement("span", _extends({}, innerProps, _this3.containerListeners, {
|
|
277
277
|
ref: ref,
|
|
278
278
|
"data-testid": _this3.props.testId,
|
|
279
|
-
role: _this3.props.trigger
|
|
279
|
+
role: _this3.props.trigger === 'click' ? 'button' : 'dialog',
|
|
280
280
|
tabIndex: 0
|
|
281
281
|
}), _this3.props.children);
|
|
282
282
|
},
|
|
@@ -38,7 +38,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
38
38
|
actionSubjectId: actionSubjectId,
|
|
39
39
|
attributes: _objectSpread(_objectSpread({
|
|
40
40
|
packageName: "@atlaskit/profilecard",
|
|
41
|
-
packageVersion: "19.7.
|
|
41
|
+
packageVersion: "19.7.10"
|
|
42
42
|
}, attributes), {}, {
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "19.7.
|
|
3
|
+
"version": "19.7.10",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
56
56
|
"@atlaskit/avatar": "^21.4.0",
|
|
57
|
-
"@atlaskit/avatar-group": "^9.
|
|
58
|
-
"@atlaskit/button": "^17.
|
|
57
|
+
"@atlaskit/avatar-group": "^9.5.0",
|
|
58
|
+
"@atlaskit/button": "^17.1.0",
|
|
59
59
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
60
60
|
"@atlaskit/empty-state": "^7.6.0",
|
|
61
61
|
"@atlaskit/focus-ring": "^1.3.4",
|
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
"@atlaskit/popup": "^1.11.0",
|
|
68
68
|
"@atlaskit/spinner": "^16.0.0",
|
|
69
69
|
"@atlaskit/theme": "^12.6.0",
|
|
70
|
-
"@atlaskit/tokens": "^1.
|
|
70
|
+
"@atlaskit/tokens": "^1.32.0",
|
|
71
|
+
"@atlaskit/tooltip": "^18.1.0",
|
|
71
72
|
"@babel/runtime": "^7.0.0",
|
|
72
73
|
"@emotion/react": "^11.7.1",
|
|
73
74
|
"@emotion/styled": "^11.0.0",
|