@atlaskit/profilecard 19.5.1 → 19.5.3
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/compass.yml +44 -0
- package/dist/cjs/client/getTeamFromAGG.js +3 -3
- package/dist/cjs/styled/Card.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +3 -2
- package/dist/es2019/styled/Card.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/client/getTeamFromAGG.js +3 -3
- package/dist/esm/styled/Card.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +4 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 19.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.5.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`0c6a7acba8d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c6a7acba8d) - Resolved an issue with the team profile card query having invalid formatting
|
|
14
|
+
|
|
3
15
|
## 19.5.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/compass.yml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
name: People and Teams - Profile Cards
|
|
3
|
+
id: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/f12dd953-cb83-45a4-a2c1-828463209fc5'
|
|
4
|
+
description: A React component to display a card with user information.
|
|
5
|
+
configVersion: 1
|
|
6
|
+
typeId: UI_ELEMENT
|
|
7
|
+
ownerId: 'ari:cloud:teams::team/229da7a2-bf93-4813-9e24-a6efbd2d445e'
|
|
8
|
+
fields:
|
|
9
|
+
tier: 2
|
|
10
|
+
links:
|
|
11
|
+
- name: null
|
|
12
|
+
type: REPOSITORY
|
|
13
|
+
url: 'https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/people-and-teams/profilecard/'
|
|
14
|
+
- name: '#pt-team-collective'
|
|
15
|
+
type: CHAT_CHANNEL
|
|
16
|
+
url: 'https://atlassian.slack.com/app_redirect?channel=pt-team-collective'
|
|
17
|
+
- name: ''
|
|
18
|
+
type: ON_CALL
|
|
19
|
+
url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/5c7ec80e-eb7e-421c-9583-8dc1494853e9'
|
|
20
|
+
- name: ''
|
|
21
|
+
type: PROJECT
|
|
22
|
+
url: 'https://product-fabric.atlassian.net/jira/software/c/projects/PTC/boards/2076'
|
|
23
|
+
- name: ''
|
|
24
|
+
type: DOCUMENT
|
|
25
|
+
url: 'https://hello.atlassian.net/wiki/spaces/PTC/overview?homepageId=137483481'
|
|
26
|
+
- name: ''
|
|
27
|
+
type: DASHBOARD
|
|
28
|
+
url: 'https://atlassian.signalfx.com/#/dashboard/Fb4ITLpA0AA?groupId=Fb4INPgA4AQ&configId=Fb4ITcPAwAA'
|
|
29
|
+
relationships: {}
|
|
30
|
+
labels:
|
|
31
|
+
- atlassian-platform
|
|
32
|
+
customFields:
|
|
33
|
+
- name: Dev Owner
|
|
34
|
+
type: user
|
|
35
|
+
value: null
|
|
36
|
+
- name: Product
|
|
37
|
+
type: text
|
|
38
|
+
value: null
|
|
39
|
+
- name: Test
|
|
40
|
+
type: text
|
|
41
|
+
value: null
|
|
42
|
+
|
|
43
|
+
# Learn more about formatting compass.yml:
|
|
44
|
+
# https://go.atlassian.com/compass-yml-format
|
|
@@ -43,11 +43,11 @@ var convertTeam = function convertTeam(result) {
|
|
|
43
43
|
|
|
44
44
|
// indented so it's
|
|
45
45
|
exports.convertTeam = convertTeam;
|
|
46
|
-
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";
|
|
46
|
+
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";
|
|
47
47
|
|
|
48
48
|
// We alias the team node to always be team
|
|
49
|
-
var GATEWAY_QUERY_V2 = "query TeamCard($teamId: ID!, $siteID: ID!) {\n Team: team {\n team: teamV2(id: $teamId, siteId: $siteId) {\n".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
50
|
-
var GATEWAY_QUERY = "query TeamCard($teamId: ID!) {\n Team: team {\n team(id: $teamId) {\n".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
49
|
+
var GATEWAY_QUERY_V2 = "query TeamCard($teamId: ID!, $siteID: ID!) {\n Team: team {\n team: teamV2(id: $teamId, siteId: $siteId) {\n ".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
50
|
+
var GATEWAY_QUERY = "query TeamCard($teamId: ID!) {\n Team: team {\n team(id: $teamId) {\n ".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
51
51
|
var buildGatewayQuery = function buildGatewayQuery(_ref2) {
|
|
52
52
|
var teamId = _ref2.teamId,
|
|
53
53
|
siteId = _ref2.siteId;
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -42,7 +42,7 @@ var OverflowActionButtonsWrapper = _styled.default.div(_templateObject9 || (_tem
|
|
|
42
42
|
exports.OverflowActionButtonsWrapper = OverflowActionButtonsWrapper;
|
|
43
43
|
var CardContent = _styled.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n min-height: ", "px;\n"])), (0, _constants.gridSize)() * 17);
|
|
44
44
|
|
|
45
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
46
46
|
exports.CardContent = CardContent;
|
|
47
47
|
var DetailsGroup = _styled.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n margin-left: ", "px;\n width: ", "px;\n"])), (0, _constants.gridSize)() * 14.5, (0, _constants.gridSize)() * 24.5);
|
|
48
48
|
exports.DetailsGroup = DetailsGroup;
|
|
@@ -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.5.
|
|
47
|
+
packageVersion: "19.5.3"
|
|
48
48
|
}, attributes), {}, {
|
|
49
49
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
50
50
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -44,20 +44,21 @@ const TEAM_FRAGMENT = `
|
|
|
44
44
|
picture
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
+
}
|
|
47
48
|
`;
|
|
48
49
|
|
|
49
50
|
// We alias the team node to always be team
|
|
50
51
|
const GATEWAY_QUERY_V2 = `query TeamCard($teamId: ID!, $siteID: ID!) {
|
|
51
52
|
Team: team {
|
|
52
53
|
team: teamV2(id: $teamId, siteId: $siteId) {
|
|
53
|
-
${TEAM_FRAGMENT}
|
|
54
|
+
${TEAM_FRAGMENT}
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
}`;
|
|
57
58
|
const GATEWAY_QUERY = `query TeamCard($teamId: ID!) {
|
|
58
59
|
Team: team {
|
|
59
60
|
team(id: $teamId) {
|
|
60
|
-
${TEAM_FRAGMENT}
|
|
61
|
+
${TEAM_FRAGMENT}
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
}`;
|
|
@@ -88,7 +88,7 @@ export const CardContent = styled.div`
|
|
|
88
88
|
min-height: ${gridSize() * 17}px;
|
|
89
89
|
`;
|
|
90
90
|
|
|
91
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
91
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
92
92
|
export const DetailsGroup = styled.div`
|
|
93
93
|
display: flex;
|
|
94
94
|
flex-direction: column;
|
|
@@ -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.5.
|
|
34
|
+
packageVersion: "19.5.3",
|
|
35
35
|
...attributes,
|
|
36
36
|
firedAt: Math.round(getPageTime())
|
|
37
37
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -31,11 +31,11 @@ export var convertTeam = function convertTeam(result) {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
// indented so it's
|
|
34
|
-
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";
|
|
34
|
+
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";
|
|
35
35
|
|
|
36
36
|
// We alias the team node to always be team
|
|
37
|
-
var GATEWAY_QUERY_V2 = "query TeamCard($teamId: ID!, $siteID: ID!) {\n Team: team {\n team: teamV2(id: $teamId, siteId: $siteId) {\n".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
38
|
-
var GATEWAY_QUERY = "query TeamCard($teamId: ID!) {\n Team: team {\n team(id: $teamId) {\n".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
37
|
+
var GATEWAY_QUERY_V2 = "query TeamCard($teamId: ID!, $siteID: ID!) {\n Team: team {\n team: teamV2(id: $teamId, siteId: $siteId) {\n ".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
38
|
+
var GATEWAY_QUERY = "query TeamCard($teamId: ID!) {\n Team: team {\n team(id: $teamId) {\n ".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
39
39
|
export var buildGatewayQuery = function buildGatewayQuery(_ref2) {
|
|
40
40
|
var teamId = _ref2.teamId,
|
|
41
41
|
siteId = _ref2.siteId;
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -26,7 +26,7 @@ export var ActionButtonGroup = styled.div(_templateObject8 || (_templateObject8
|
|
|
26
26
|
export var OverflowActionButtonsWrapper = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: inline-block;\n width: 32px;\n height: 32px;\n margin-left: ", ";\n"])), "var(--ds-space-100, 8px)");
|
|
27
27
|
export var CardContent = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n min-height: ", "px;\n"])), gridSize() * 17);
|
|
28
28
|
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
30
30
|
export var DetailsGroup = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n margin-left: ", "px;\n width: ", "px;\n"])), gridSize() * 14.5, gridSize() * 24.5);
|
|
31
31
|
export var DisabledInfo = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n font-size: ", "px;\n color: ", ";\n margin: ", " 0 0 0;\n line-height: ", ";\n"])), fontSizeSmall, labelTextColor, "var(--ds-space-150, 12px)", "var(--ds-font-lineHeight-100, 16px)");
|
|
32
32
|
export var FullNameLabel = styled.span(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n font-size: 18px;\n color: ", ";\n margin: ", ";\n line-height: ", "em;\n"])), function (props) {
|
|
@@ -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.5.
|
|
41
|
+
packageVersion: "19.5.3"
|
|
42
42
|
}, attributes), {}, {
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
})
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "19.5.
|
|
3
|
+
"version": "19.5.3",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
"@atlaskit/button": "^16.8.0",
|
|
56
56
|
"@atlaskit/dropdown-menu": "^11.10.0",
|
|
57
57
|
"@atlaskit/empty-state": "^7.6.0",
|
|
58
|
-
"@atlaskit/give-kudos": "^
|
|
58
|
+
"@atlaskit/give-kudos": "^2.0.0",
|
|
59
59
|
"@atlaskit/icon": "^21.12.0",
|
|
60
60
|
"@atlaskit/lozenge": "^11.4.0",
|
|
61
|
-
"@atlaskit/menu": "^1.
|
|
61
|
+
"@atlaskit/menu": "^1.9.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags": "^0.2.4",
|
|
63
63
|
"@atlaskit/popup": "^1.8.0",
|
|
64
64
|
"@atlaskit/spinner": "^15.5.0",
|
|
65
65
|
"@atlaskit/theme": "^12.5.0",
|
|
66
|
-
"@atlaskit/tokens": "^1.
|
|
66
|
+
"@atlaskit/tokens": "^1.12.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
69
69
|
"@emotion/styled": "^11.0.0",
|
|
@@ -77,10 +77,6 @@
|
|
|
77
77
|
"react-dom": "^16.8.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@atlaskit/docs": "*",
|
|
81
|
-
"@atlaskit/flag": "^15.2.0",
|
|
82
|
-
"@atlaskit/inline-edit": "^12.3.0",
|
|
83
|
-
"@atlaskit/select": "^16.5.0",
|
|
84
80
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
85
81
|
"@testing-library/react": "^12.1.5",
|
|
86
82
|
"enzyme": "^3.10.0",
|