@atlaskit/profilecard 19.5.3 → 19.5.4
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 +6 -0
- package/dist/cjs/client/getTeamFromAGG.js +4 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +3 -3
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/client/getTeamFromAGG.js +2 -2
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/client/getTeamFromAGG.d.ts +2 -0
- package/dist/types-ts4.5/client/getTeamFromAGG.d.ts +2 -0
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.extractIdFromAri = exports.convertTeam = exports.buildGatewayQuery = exports.addHeaders = void 0;
|
|
7
|
+
exports.extractIdFromAri = exports.convertTeam = exports.buildGatewayQuery = exports.addHeaders = exports.GATEWAY_QUERY_V2 = exports.GATEWAY_QUERY = void 0;
|
|
8
8
|
exports.getTeamFromAGG = getTeamFromAGG;
|
|
9
9
|
exports.idToAri = void 0;
|
|
10
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
@@ -46,8 +46,10 @@ exports.convertTeam = convertTeam;
|
|
|
46
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!, $
|
|
49
|
+
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}");
|
|
50
|
+
exports.GATEWAY_QUERY_V2 = GATEWAY_QUERY_V2;
|
|
50
51
|
var GATEWAY_QUERY = "query TeamCard($teamId: ID!) {\n Team: team {\n team(id: $teamId) {\n ".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
52
|
+
exports.GATEWAY_QUERY = GATEWAY_QUERY;
|
|
51
53
|
var buildGatewayQuery = function buildGatewayQuery(_ref2) {
|
|
52
54
|
var teamId = _ref2.teamId,
|
|
53
55
|
siteId = _ref2.siteId;
|
|
@@ -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.4"
|
|
48
48
|
}, attributes), {}, {
|
|
49
49
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
50
50
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -48,14 +48,14 @@ const TEAM_FRAGMENT = `
|
|
|
48
48
|
`;
|
|
49
49
|
|
|
50
50
|
// We alias the team node to always be team
|
|
51
|
-
const GATEWAY_QUERY_V2 = `query TeamCard($teamId: ID!, $
|
|
51
|
+
export const GATEWAY_QUERY_V2 = `query TeamCard($teamId: ID!, $siteId: String!) {
|
|
52
52
|
Team: team {
|
|
53
|
-
team: teamV2(id: $teamId, siteId: $siteId) {
|
|
53
|
+
team: teamV2(id: $teamId, siteId: $siteId) @optIn(to: "Team-v2") {
|
|
54
54
|
${TEAM_FRAGMENT}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}`;
|
|
58
|
-
const GATEWAY_QUERY = `query TeamCard($teamId: ID!) {
|
|
58
|
+
export const GATEWAY_QUERY = `query TeamCard($teamId: ID!) {
|
|
59
59
|
Team: team {
|
|
60
60
|
team(id: $teamId) {
|
|
61
61
|
${TEAM_FRAGMENT}
|
|
@@ -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.4",
|
|
35
35
|
...attributes,
|
|
36
36
|
firedAt: Math.round(getPageTime())
|
|
37
37
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -34,8 +34,8 @@ export var convertTeam = function convertTeam(result) {
|
|
|
34
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!, $
|
|
38
|
-
var GATEWAY_QUERY = "query TeamCard($teamId: ID!) {\n Team: team {\n team(id: $teamId) {\n ".concat(TEAM_FRAGMENT, "\n }\n }\n}");
|
|
37
|
+
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}");
|
|
38
|
+
export 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;
|
|
@@ -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.4"
|
|
42
42
|
}, attributes), {}, {
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
})
|
package/dist/esm/version.json
CHANGED
|
@@ -17,6 +17,8 @@ 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: string;
|
|
21
|
+
export declare const GATEWAY_QUERY: string;
|
|
20
22
|
type TeamQueryVariables = {
|
|
21
23
|
teamId: string;
|
|
22
24
|
siteId?: string;
|
|
@@ -17,6 +17,8 @@ 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: string;
|
|
21
|
+
export declare const GATEWAY_QUERY: string;
|
|
20
22
|
type TeamQueryVariables = {
|
|
21
23
|
teamId: string;
|
|
22
24
|
siteId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "19.5.
|
|
3
|
+
"version": "19.5.4",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
"@atlaskit/avatar": "^21.3.0",
|
|
54
54
|
"@atlaskit/avatar-group": "^9.3.0",
|
|
55
55
|
"@atlaskit/button": "^16.8.0",
|
|
56
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
56
|
+
"@atlaskit/dropdown-menu": "^11.11.0",
|
|
57
57
|
"@atlaskit/empty-state": "^7.6.0",
|
|
58
58
|
"@atlaskit/give-kudos": "^2.0.0",
|
|
59
59
|
"@atlaskit/icon": "^21.12.0",
|
|
60
60
|
"@atlaskit/lozenge": "^11.4.0",
|
|
61
61
|
"@atlaskit/menu": "^1.9.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags": "^0.2.4",
|
|
63
|
-
"@atlaskit/popup": "^1.
|
|
63
|
+
"@atlaskit/popup": "^1.9.0",
|
|
64
64
|
"@atlaskit/spinner": "^15.5.0",
|
|
65
65
|
"@atlaskit/theme": "^12.5.0",
|
|
66
|
-
"@atlaskit/tokens": "^1.
|
|
66
|
+
"@atlaskit/tokens": "^1.14.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
69
69
|
"@emotion/styled": "^11.0.0",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
81
|
+
"@atlassian/ptc-test-utils": "^0.6.3",
|
|
81
82
|
"@testing-library/react": "^12.1.5",
|
|
82
83
|
"enzyme": "^3.10.0",
|
|
83
84
|
"es6-promise": "^4.0.5",
|