@atlaskit/profilecard 20.12.2 → 20.13.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 +14 -0
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +2 -2
- package/dist/cjs/components/Team/TeamProfileCard.js +5 -1
- package/dist/cjs/mocks/team-data.js +10 -4
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +2 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +5 -1
- package/dist/es2019/mocks/team-data.js +8 -4
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +2 -2
- package/dist/esm/components/Team/TeamProfileCard.js +5 -1
- package/dist/esm/mocks/team-data.js +10 -4
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/client/getTeamFromAGG.d.ts +1 -1
- package/dist/types/mocks/team-data.d.ts +4 -2
- package/dist/types/types.d.ts +1 -0
- package/dist/types-ts4.5/client/getTeamFromAGG.d.ts +1 -1
- package/dist/types-ts4.5/mocks/team-data.d.ts +4 -2
- package/dist/types-ts4.5/types.d.ts +1 -0
- package/package.json +9 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 20.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#168492](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/168492)
|
|
8
|
+
[`17a403de4132a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/17a403de4132a) -
|
|
9
|
+
[ux] Show manged team icon in team profile card
|
|
10
|
+
|
|
11
|
+
## 20.12.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 20.12.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
|
|
|
11
11
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
12
12
|
var addHeaders = function addHeaders(headers) {
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "20.
|
|
14
|
+
headers.append('atl-client-version', "20.13.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -38,7 +38,7 @@ var convertTeam = exports.convertTeam = function convertTeam(result) {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
// indented so it's
|
|
41
|
-
var TEAM_FRAGMENT = "\n id\n displayName\n description\n smallHeaderImageUrl\n largeHeaderImageUrl\n smallAvatarImageUrl\n largeAvatarImageUrl\n members {\n nodes {\n member {\n accountId\n name\n picture\n }\n }\n }\n";
|
|
41
|
+
var TEAM_FRAGMENT = "\n id\n displayName\n description\n smallHeaderImageUrl\n largeHeaderImageUrl\n smallAvatarImageUrl\n largeAvatarImageUrl\n\t isVerified\n members {\n nodes {\n member {\n accountId\n name\n picture\n }\n }\n }\n";
|
|
42
42
|
|
|
43
43
|
// We alias the team node to always be team
|
|
44
44
|
var GATEWAY_QUERY_V2 = exports.GATEWAY_QUERY_V2 = "query TeamCard($teamId: ID!, $siteId: String!) {\n Team: team {\n team: teamV2(id: $teamId, siteId: $siteId) @optIn(to: \"Team-v2\") {\n ".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
@@ -57,7 +57,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
57
57
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
58
58
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
59
59
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
60
|
-
headers.append('atl-client-version', "20.
|
|
60
|
+
headers.append('atl-client-version', "20.13.0");
|
|
61
61
|
return headers;
|
|
62
62
|
};
|
|
63
63
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -18,8 +18,10 @@ var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-
|
|
|
18
18
|
var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
|
|
19
19
|
var _showMoreHorizontalMore = _interopRequireDefault(require("@atlaskit/icon/core/migration/show-more-horizontal--more"));
|
|
20
20
|
var _menu = require("@atlaskit/menu");
|
|
21
|
+
var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
|
|
21
22
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
23
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
24
|
+
var _primitives = require("@atlaskit/primitives");
|
|
23
25
|
var _constants = require("@atlaskit/theme/constants");
|
|
24
26
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
25
27
|
var _messages = _interopRequireDefault(require("../../messages"));
|
|
@@ -253,7 +255,9 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
|
|
|
253
255
|
image: team.largeHeaderImageUrl || team.smallHeaderImageUrl
|
|
254
256
|
}), /*#__PURE__*/_react.default.createElement(_TeamCard.CardContent, null, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
255
257
|
content: team.displayName
|
|
256
|
-
}, /*#__PURE__*/_react.default.createElement(_TeamCard.TeamName, null, team.displayName)
|
|
258
|
+
}, /*#__PURE__*/_react.default.createElement(_primitives.Inline, null, /*#__PURE__*/_react.default.createElement(_TeamCard.TeamName, null, team.displayName), team.isVerified && (0, _platformFeatureFlags.fg)('show_verified_team_icon_in_profile_card') && /*#__PURE__*/_react.default.createElement(_verifiedTeamIcon.VerifiedTeamIcon, {
|
|
259
|
+
size: "medium"
|
|
260
|
+
}))), /*#__PURE__*/_react.default.createElement(TeamMembers, {
|
|
257
261
|
analytics: analytics,
|
|
258
262
|
members: team.members,
|
|
259
263
|
generateUserLink: generateUserLink,
|
|
@@ -43,13 +43,16 @@ function teamData(_ref) {
|
|
|
43
43
|
_ref$members = _ref.members,
|
|
44
44
|
memberCount = _ref$members === void 0 ? 1 : _ref$members,
|
|
45
45
|
_ref$description = _ref.description,
|
|
46
|
-
description = _ref$description === void 0 ? 'Long' : _ref$description
|
|
46
|
+
description = _ref$description === void 0 ? 'Long' : _ref$description,
|
|
47
|
+
_ref$isVerified = _ref.isVerified,
|
|
48
|
+
isVerified = _ref$isVerified === void 0 ? false : _ref$isVerified;
|
|
47
49
|
return {
|
|
48
50
|
id: 'team-id',
|
|
49
51
|
largeHeaderImageUrl: headerImage === 'Picture' ? sampleImage : undefined,
|
|
50
52
|
displayName: names[displayName] || names.Short,
|
|
51
53
|
members: members.slice(0, memberCount),
|
|
52
|
-
description: description ? descriptions[description] : descriptions.Long
|
|
54
|
+
description: description ? descriptions[description] : descriptions.Long,
|
|
55
|
+
isVerified: isVerified
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
function staticTeamData(_ref2) {
|
|
@@ -60,7 +63,9 @@ function staticTeamData(_ref2) {
|
|
|
60
63
|
_ref2$members = _ref2.members,
|
|
61
64
|
memberCount = _ref2$members === void 0 ? 1 : _ref2$members,
|
|
62
65
|
_ref2$description = _ref2.description,
|
|
63
|
-
description = _ref2$description === void 0 ? 'Long' : _ref2$description
|
|
66
|
+
description = _ref2$description === void 0 ? 'Long' : _ref2$description,
|
|
67
|
+
_ref2$isVerified = _ref2.isVerified,
|
|
68
|
+
isVerified = _ref2$isVerified === void 0 ? false : _ref2$isVerified;
|
|
64
69
|
return {
|
|
65
70
|
id: 'team-id',
|
|
66
71
|
largeHeaderImageUrl: headerImage === 'Picture' ? sampleImage : undefined,
|
|
@@ -72,6 +77,7 @@ function staticTeamData(_ref2) {
|
|
|
72
77
|
fullName: name
|
|
73
78
|
};
|
|
74
79
|
}).slice(0, memberCount),
|
|
75
|
-
description: description ? descriptions[description] : descriptions.Long
|
|
80
|
+
description: description ? descriptions[description] : descriptions.Long,
|
|
81
|
+
isVerified: isVerified
|
|
76
82
|
};
|
|
77
83
|
}
|
|
@@ -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: "20.
|
|
48
|
+
packageVersion: "20.13.0"
|
|
49
49
|
}, attributes), {}, {
|
|
50
50
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
51
51
|
})
|
|
@@ -6,7 +6,7 @@ const ORG_ID_FROM_CLOUD_ID_QUERY = `query OrgIdFromCloudId($cloudId: ID!) {
|
|
|
6
6
|
}`;
|
|
7
7
|
const addHeaders = headers => {
|
|
8
8
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
9
|
-
headers.append('atl-client-version', "20.
|
|
9
|
+
headers.append('atl-client-version', "20.13.0");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -34,6 +34,7 @@ const TEAM_FRAGMENT = `
|
|
|
34
34
|
largeHeaderImageUrl
|
|
35
35
|
smallAvatarImageUrl
|
|
36
36
|
largeAvatarImageUrl
|
|
37
|
+
isVerified
|
|
37
38
|
members {
|
|
38
39
|
nodes {
|
|
39
40
|
member {
|
|
@@ -67,7 +68,7 @@ export const addHeaders = headers => {
|
|
|
67
68
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
68
69
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
69
70
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
70
|
-
headers.append('atl-client-version', "20.
|
|
71
|
+
headers.append('atl-client-version', "20.13.0");
|
|
71
72
|
return headers;
|
|
72
73
|
};
|
|
73
74
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -7,8 +7,10 @@ import Button from '@atlaskit/button/standard-button';
|
|
|
7
7
|
import FocusRing from '@atlaskit/focus-ring';
|
|
8
8
|
import MoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--more';
|
|
9
9
|
import { LinkItem, MenuGroup } from '@atlaskit/menu';
|
|
10
|
+
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
10
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import Popup from '@atlaskit/popup';
|
|
13
|
+
import { Inline } from '@atlaskit/primitives';
|
|
12
14
|
import { layers } from '@atlaskit/theme/constants';
|
|
13
15
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
16
|
import messages from '../../messages';
|
|
@@ -217,7 +219,9 @@ const TeamProfilecardContent = ({
|
|
|
217
219
|
image: team.largeHeaderImageUrl || team.smallHeaderImageUrl
|
|
218
220
|
}), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
219
221
|
content: team.displayName
|
|
220
|
-
}, /*#__PURE__*/React.createElement(TeamName, null, team.displayName)
|
|
222
|
+
}, /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement(TeamName, null, team.displayName), team.isVerified && fg('show_verified_team_icon_in_profile_card') && /*#__PURE__*/React.createElement(VerifiedTeamIcon, {
|
|
223
|
+
size: "medium"
|
|
224
|
+
}))), /*#__PURE__*/React.createElement(TeamMembers, {
|
|
221
225
|
analytics: analytics,
|
|
222
226
|
members: team.members,
|
|
223
227
|
generateUserLink: generateUserLink,
|
|
@@ -27,21 +27,24 @@ export default function teamData({
|
|
|
27
27
|
headerImage = 'None',
|
|
28
28
|
displayName = 'Short',
|
|
29
29
|
members: memberCount = 1,
|
|
30
|
-
description = 'Long'
|
|
30
|
+
description = 'Long',
|
|
31
|
+
isVerified = false
|
|
31
32
|
}) {
|
|
32
33
|
return {
|
|
33
34
|
id: 'team-id',
|
|
34
35
|
largeHeaderImageUrl: headerImage === 'Picture' ? sampleImage : undefined,
|
|
35
36
|
displayName: names[displayName] || names.Short,
|
|
36
37
|
members: members.slice(0, memberCount),
|
|
37
|
-
description: description ? descriptions[description] : descriptions.Long
|
|
38
|
+
description: description ? descriptions[description] : descriptions.Long,
|
|
39
|
+
isVerified
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
export function staticTeamData({
|
|
41
43
|
headerImage = 'None',
|
|
42
44
|
displayName = 'Short',
|
|
43
45
|
members: memberCount = 1,
|
|
44
|
-
description = 'Long'
|
|
46
|
+
description = 'Long',
|
|
47
|
+
isVerified = false
|
|
45
48
|
}) {
|
|
46
49
|
return {
|
|
47
50
|
id: 'team-id',
|
|
@@ -52,6 +55,7 @@ export function staticTeamData({
|
|
|
52
55
|
avatarUrl: avatarImages[index % avatarImages.length],
|
|
53
56
|
fullName: name
|
|
54
57
|
})).slice(0, memberCount),
|
|
55
|
-
description: description ? descriptions[description] : descriptions.Long
|
|
58
|
+
description: description ? descriptions[description] : descriptions.Long,
|
|
59
|
+
isVerified
|
|
56
60
|
};
|
|
57
61
|
}
|
|
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
32
32
|
actionSubjectId,
|
|
33
33
|
attributes: {
|
|
34
34
|
packageName: "@atlaskit/profilecard",
|
|
35
|
-
packageVersion: "20.
|
|
35
|
+
packageVersion: "20.13.0",
|
|
36
36
|
...attributes,
|
|
37
37
|
firedAt: Math.round(getPageTime())
|
|
38
38
|
}
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
|
|
|
4
4
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
5
5
|
var addHeaders = function addHeaders(headers) {
|
|
6
6
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
7
|
-
headers.append('atl-client-version', "20.
|
|
7
|
+
headers.append('atl-client-version', "20.13.0");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -29,7 +29,7 @@ export var convertTeam = function convertTeam(result) {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
// indented so it's
|
|
32
|
-
var TEAM_FRAGMENT = "\n id\n displayName\n description\n smallHeaderImageUrl\n largeHeaderImageUrl\n smallAvatarImageUrl\n largeAvatarImageUrl\n members {\n nodes {\n member {\n accountId\n name\n picture\n }\n }\n }\n";
|
|
32
|
+
var TEAM_FRAGMENT = "\n id\n displayName\n description\n smallHeaderImageUrl\n largeHeaderImageUrl\n smallAvatarImageUrl\n largeAvatarImageUrl\n\t isVerified\n members {\n nodes {\n member {\n accountId\n name\n picture\n }\n }\n }\n";
|
|
33
33
|
|
|
34
34
|
// We alias the team node to always be team
|
|
35
35
|
export var GATEWAY_QUERY_V2 = "query TeamCard($teamId: ID!, $siteId: String!) {\n Team: team {\n team: teamV2(id: $teamId, siteId: $siteId) @optIn(to: \"Team-v2\") {\n ".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
@@ -48,7 +48,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
48
48
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
49
49
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
50
50
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
51
|
-
headers.append('atl-client-version', "20.
|
|
51
|
+
headers.append('atl-client-version', "20.13.0");
|
|
52
52
|
return headers;
|
|
53
53
|
};
|
|
54
54
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -12,8 +12,10 @@ import Button from '@atlaskit/button/standard-button';
|
|
|
12
12
|
import FocusRing from '@atlaskit/focus-ring';
|
|
13
13
|
import MoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--more';
|
|
14
14
|
import { LinkItem, MenuGroup } from '@atlaskit/menu';
|
|
15
|
+
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
15
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
import Popup from '@atlaskit/popup';
|
|
18
|
+
import { Inline } from '@atlaskit/primitives';
|
|
17
19
|
import { layers } from '@atlaskit/theme/constants';
|
|
18
20
|
import Tooltip from '@atlaskit/tooltip';
|
|
19
21
|
import messages from '../../messages';
|
|
@@ -243,7 +245,9 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
|
|
|
243
245
|
image: team.largeHeaderImageUrl || team.smallHeaderImageUrl
|
|
244
246
|
}), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
245
247
|
content: team.displayName
|
|
246
|
-
}, /*#__PURE__*/React.createElement(TeamName, null, team.displayName)
|
|
248
|
+
}, /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement(TeamName, null, team.displayName), team.isVerified && fg('show_verified_team_icon_in_profile_card') && /*#__PURE__*/React.createElement(VerifiedTeamIcon, {
|
|
249
|
+
size: "medium"
|
|
250
|
+
}))), /*#__PURE__*/React.createElement(TeamMembers, {
|
|
247
251
|
analytics: analytics,
|
|
248
252
|
members: team.members,
|
|
249
253
|
generateUserLink: generateUserLink,
|
|
@@ -35,13 +35,16 @@ export default function teamData(_ref) {
|
|
|
35
35
|
_ref$members = _ref.members,
|
|
36
36
|
memberCount = _ref$members === void 0 ? 1 : _ref$members,
|
|
37
37
|
_ref$description = _ref.description,
|
|
38
|
-
description = _ref$description === void 0 ? 'Long' : _ref$description
|
|
38
|
+
description = _ref$description === void 0 ? 'Long' : _ref$description,
|
|
39
|
+
_ref$isVerified = _ref.isVerified,
|
|
40
|
+
isVerified = _ref$isVerified === void 0 ? false : _ref$isVerified;
|
|
39
41
|
return {
|
|
40
42
|
id: 'team-id',
|
|
41
43
|
largeHeaderImageUrl: headerImage === 'Picture' ? sampleImage : undefined,
|
|
42
44
|
displayName: names[displayName] || names.Short,
|
|
43
45
|
members: members.slice(0, memberCount),
|
|
44
|
-
description: description ? descriptions[description] : descriptions.Long
|
|
46
|
+
description: description ? descriptions[description] : descriptions.Long,
|
|
47
|
+
isVerified: isVerified
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
export function staticTeamData(_ref2) {
|
|
@@ -52,7 +55,9 @@ export function staticTeamData(_ref2) {
|
|
|
52
55
|
_ref2$members = _ref2.members,
|
|
53
56
|
memberCount = _ref2$members === void 0 ? 1 : _ref2$members,
|
|
54
57
|
_ref2$description = _ref2.description,
|
|
55
|
-
description = _ref2$description === void 0 ? 'Long' : _ref2$description
|
|
58
|
+
description = _ref2$description === void 0 ? 'Long' : _ref2$description,
|
|
59
|
+
_ref2$isVerified = _ref2.isVerified,
|
|
60
|
+
isVerified = _ref2$isVerified === void 0 ? false : _ref2$isVerified;
|
|
56
61
|
return {
|
|
57
62
|
id: 'team-id',
|
|
58
63
|
largeHeaderImageUrl: headerImage === 'Picture' ? sampleImage : undefined,
|
|
@@ -64,6 +69,7 @@ export function staticTeamData(_ref2) {
|
|
|
64
69
|
fullName: name
|
|
65
70
|
};
|
|
66
71
|
}).slice(0, memberCount),
|
|
67
|
-
description: description ? descriptions[description] : descriptions.Long
|
|
72
|
+
description: description ? descriptions[description] : descriptions.Long,
|
|
73
|
+
isVerified: isVerified
|
|
68
74
|
};
|
|
69
75
|
}
|
|
@@ -39,7 +39,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
39
39
|
actionSubjectId: actionSubjectId,
|
|
40
40
|
attributes: _objectSpread(_objectSpread({
|
|
41
41
|
packageName: "@atlaskit/profilecard",
|
|
42
|
-
packageVersion: "20.
|
|
42
|
+
packageVersion: "20.13.0"
|
|
43
43
|
}, attributes), {}, {
|
|
44
44
|
firedAt: Math.round(getPageTime())
|
|
45
45
|
})
|
|
@@ -17,7 +17,7 @@ interface AGGResult {
|
|
|
17
17
|
export declare const extractIdFromAri: (ari: string) => string;
|
|
18
18
|
export declare const idToAri: (teamId: string) => string;
|
|
19
19
|
export declare const convertTeam: (result: AGGResult) => Team;
|
|
20
|
-
export declare const GATEWAY_QUERY_V2 = "query TeamCard($teamId: ID!, $siteId: String!) {\n Team: team {\n team: teamV2(id: $teamId, siteId: $siteId) @optIn(to: \"Team-v2\") {\n \n id\n displayName\n description\n smallHeaderImageUrl\n largeHeaderImageUrl\n smallAvatarImageUrl\n largeAvatarImageUrl\n members {\n nodes {\n member {\n accountId\n name\n picture\n }\n }\n }\n\n }\n }\n}";
|
|
20
|
+
export declare const GATEWAY_QUERY_V2 = "query TeamCard($teamId: ID!, $siteId: String!) {\n Team: team {\n team: teamV2(id: $teamId, siteId: $siteId) @optIn(to: \"Team-v2\") {\n \n id\n displayName\n description\n smallHeaderImageUrl\n largeHeaderImageUrl\n smallAvatarImageUrl\n largeAvatarImageUrl\n\t isVerified\n members {\n nodes {\n member {\n accountId\n name\n picture\n }\n }\n }\n\n }\n }\n}";
|
|
21
21
|
type TeamQueryVariables = {
|
|
22
22
|
teamId: string;
|
|
23
23
|
siteId?: string;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { type Team } from '../types';
|
|
2
|
-
export default function teamData({ headerImage, displayName, members: memberCount, description, }: {
|
|
2
|
+
export default function teamData({ headerImage, displayName, members: memberCount, description, isVerified, }: {
|
|
3
3
|
headerImage?: 'None' | 'Picture';
|
|
4
4
|
displayName?: 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
5
5
|
members?: number;
|
|
6
6
|
description?: 'None' | 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
7
|
+
isVerified?: boolean;
|
|
7
8
|
}): Team;
|
|
8
|
-
export declare function staticTeamData({ headerImage, displayName, members: memberCount, description, }: {
|
|
9
|
+
export declare function staticTeamData({ headerImage, displayName, members: memberCount, description, isVerified, }: {
|
|
9
10
|
headerImage?: 'None' | 'Picture';
|
|
10
11
|
displayName?: 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
11
12
|
members?: number;
|
|
12
13
|
description?: 'None' | 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
14
|
+
isVerified?: boolean;
|
|
13
15
|
}): Team;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ interface AGGResult {
|
|
|
17
17
|
export declare const extractIdFromAri: (ari: string) => string;
|
|
18
18
|
export declare const idToAri: (teamId: string) => string;
|
|
19
19
|
export declare const convertTeam: (result: AGGResult) => Team;
|
|
20
|
-
export declare const GATEWAY_QUERY_V2 = "query TeamCard($teamId: ID!, $siteId: String!) {\n Team: team {\n team: teamV2(id: $teamId, siteId: $siteId) @optIn(to: \"Team-v2\") {\n \n id\n displayName\n description\n smallHeaderImageUrl\n largeHeaderImageUrl\n smallAvatarImageUrl\n largeAvatarImageUrl\n members {\n nodes {\n member {\n accountId\n name\n picture\n }\n }\n }\n\n }\n }\n}";
|
|
20
|
+
export declare const GATEWAY_QUERY_V2 = "query TeamCard($teamId: ID!, $siteId: String!) {\n Team: team {\n team: teamV2(id: $teamId, siteId: $siteId) @optIn(to: \"Team-v2\") {\n \n id\n displayName\n description\n smallHeaderImageUrl\n largeHeaderImageUrl\n smallAvatarImageUrl\n largeAvatarImageUrl\n\t isVerified\n members {\n nodes {\n member {\n accountId\n name\n picture\n }\n }\n }\n\n }\n }\n}";
|
|
21
21
|
type TeamQueryVariables = {
|
|
22
22
|
teamId: string;
|
|
23
23
|
siteId?: string;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { type Team } from '../types';
|
|
2
|
-
export default function teamData({ headerImage, displayName, members: memberCount, description, }: {
|
|
2
|
+
export default function teamData({ headerImage, displayName, members: memberCount, description, isVerified, }: {
|
|
3
3
|
headerImage?: 'None' | 'Picture';
|
|
4
4
|
displayName?: 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
5
5
|
members?: number;
|
|
6
6
|
description?: 'None' | 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
7
|
+
isVerified?: boolean;
|
|
7
8
|
}): Team;
|
|
8
|
-
export declare function staticTeamData({ headerImage, displayName, members: memberCount, description, }: {
|
|
9
|
+
export declare function staticTeamData({ headerImage, displayName, members: memberCount, description, isVerified, }: {
|
|
9
10
|
headerImage?: 'None' | 'Picture';
|
|
10
11
|
displayName?: 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
11
12
|
members?: number;
|
|
12
13
|
description?: 'None' | 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
14
|
+
isVerified?: boolean;
|
|
13
15
|
}): Team;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.13.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,13 +56,14 @@
|
|
|
56
56
|
"@atlaskit/avatar-group": "^10.0.0",
|
|
57
57
|
"@atlaskit/button": "^20.3.0",
|
|
58
58
|
"@atlaskit/dropdown-menu": "^12.23.0",
|
|
59
|
-
"@atlaskit/empty-state": "^
|
|
59
|
+
"@atlaskit/empty-state": "^8.0.0",
|
|
60
60
|
"@atlaskit/focus-ring": "^2.0.0",
|
|
61
61
|
"@atlaskit/give-kudos": "^2.3.0",
|
|
62
|
-
"@atlaskit/icon": "^22.
|
|
62
|
+
"@atlaskit/icon": "^22.28.0",
|
|
63
63
|
"@atlaskit/lozenge": "^11.12.0",
|
|
64
64
|
"@atlaskit/menu": "^2.13.0",
|
|
65
|
-
"@atlaskit/modal-dialog": "^12.
|
|
65
|
+
"@atlaskit/modal-dialog": "^12.18.0",
|
|
66
|
+
"@atlaskit/people-teams-ui-public": "^1.6.0",
|
|
66
67
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
67
68
|
"@atlaskit/popup": "^1.29.0",
|
|
68
69
|
"@atlaskit/primitives": "^13.3.0",
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"@atlaskit/rovo-triggers": "^1.4.0",
|
|
71
72
|
"@atlaskit/spinner": "^16.3.0",
|
|
72
73
|
"@atlaskit/theme": "^14.0.0",
|
|
73
|
-
"@atlaskit/tokens": "^2.
|
|
74
|
+
"@atlaskit/tokens": "^2.4.0",
|
|
74
75
|
"@atlaskit/tooltip": "^18.9.0",
|
|
75
76
|
"@babel/runtime": "^7.0.0",
|
|
76
77
|
"@emotion/react": "^11.7.1",
|
|
@@ -135,6 +136,9 @@
|
|
|
135
136
|
},
|
|
136
137
|
"rovo_profile_card_open_chat_sidebar": {
|
|
137
138
|
"type": "boolean"
|
|
139
|
+
},
|
|
140
|
+
"show_verified_team_icon_in_profile_card": {
|
|
141
|
+
"type": "boolean"
|
|
138
142
|
}
|
|
139
143
|
}
|
|
140
144
|
}
|