@atlaskit/profilecard 27.7.0 → 27.8.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 +20 -0
- package/dist/cjs/client/addHeaders.js +1 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCardResourced.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCardTrigger.js +1 -1
- package/dist/cjs/components/Agent/hooks/useAgentUrlActions.js +1 -5
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/createEvent.js +1 -1
- package/dist/es2019/client/addHeaders.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCardResourced.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCardTrigger.js +1 -1
- package/dist/es2019/components/Agent/hooks/useAgentUrlActions.js +1 -5
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/createEvent.js +1 -1
- package/dist/esm/client/addHeaders.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCardResourced.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCardTrigger.js +1 -1
- package/dist/esm/components/Agent/hooks/useAgentUrlActions.js +1 -5
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/createEvent.js +1 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 27.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`42ab874a99948`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/42ab874a99948) -
|
|
8
|
+
Update i18n NPM package versions for people-and-teams,identity (Group 8)
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 27.7.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`d0bb2f32f3025`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d0bb2f32f3025) -
|
|
19
|
+
Cleanup `feature_gate` `platform-adopt-teams-nav-config`. Profile, team, and directory links now
|
|
20
|
+
always use the shared `@atlaskit/teams-app-config` navigation.
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 27.7.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -11,6 +11,6 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
11
11
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
12
12
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "27.
|
|
14
|
+
headers.append('atl-client-version', "27.7.1");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
@@ -11,7 +11,7 @@ var _AGGQuery = require("./AGGQuery");
|
|
|
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', "27.
|
|
14
|
+
headers.append('atl-client-version', "27.7.1");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -86,7 +86,7 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
|
|
|
86
86
|
} : undefined,
|
|
87
87
|
userCreator: userCreatorInfo ? {
|
|
88
88
|
name: (_userCreatorInfo$full = userCreatorInfo.fullName) !== null && _userCreatorInfo$full !== void 0 ? _userCreatorInfo$full : '',
|
|
89
|
-
profileLink:
|
|
89
|
+
profileLink: profileHref
|
|
90
90
|
} : undefined,
|
|
91
91
|
forgeCreator: creator !== null && creator !== void 0 ? creator : undefined
|
|
92
92
|
});
|
|
@@ -113,7 +113,7 @@ var AgentProfileCardTrigger = exports.AgentProfileCardTrigger = /*#__PURE__*/(0,
|
|
|
113
113
|
return _context.abrupt("return", {
|
|
114
114
|
type: 'CUSTOMER',
|
|
115
115
|
name: creatorInfo.fullName,
|
|
116
|
-
profileLink:
|
|
116
|
+
profileLink: profileHref,
|
|
117
117
|
id: _userId
|
|
118
118
|
});
|
|
119
119
|
case 11:
|
|
@@ -198,11 +198,7 @@ var useAgentUrlActions = exports.useAgentUrlActions = function useAgentUrlAction
|
|
|
198
198
|
shouldOpenInSameTab: false
|
|
199
199
|
}),
|
|
200
200
|
onNavigate = _navigateToTeamsApp.onNavigate;
|
|
201
|
-
|
|
202
|
-
onNavigate();
|
|
203
|
-
} else {
|
|
204
|
-
window.open("".concat(window.location.origin, "/people/agent/").concat(agentId), '_blank', 'noopener, noreferrer');
|
|
205
|
-
}
|
|
201
|
+
onNavigate();
|
|
206
202
|
fireEvent('ui.button.clicked.viewAgentFullProfileButton', {
|
|
207
203
|
agentId: agentId,
|
|
208
204
|
source: source
|
|
@@ -7,7 +7,7 @@ exports.USER_SUBJECT = exports.TEAM_SUBJECT = exports.PACKAGE_META_DATA = export
|
|
|
7
7
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
8
8
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
9
9
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
10
|
-
packageVersion: (_process$env$_PACKAGE2 = "27.
|
|
10
|
+
packageVersion: (_process$env$_PACKAGE2 = "27.7.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
11
11
|
};
|
|
12
12
|
var TEAM_SUBJECT = exports.TEAM_SUBJECT = 'teamProfileCard';
|
|
13
13
|
var USER_SUBJECT = exports.USER_SUBJECT = 'profilecard';
|
|
@@ -22,7 +22,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
|
|
|
22
22
|
actionSubjectId: actionSubjectId,
|
|
23
23
|
attributes: _objectSpread(_objectSpread({
|
|
24
24
|
packageName: "@atlaskit/profilecard",
|
|
25
|
-
packageVersion: "27.
|
|
25
|
+
packageVersion: "27.7.1"
|
|
26
26
|
}, attributes), {}, {
|
|
27
27
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
28
28
|
})
|
|
@@ -5,6 +5,6 @@ export const addHeaders = headers => {
|
|
|
5
5
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
6
6
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
7
7
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
8
|
-
headers.append('atl-client-version', "27.
|
|
8
|
+
headers.append('atl-client-version', "27.7.1");
|
|
9
9
|
return headers;
|
|
10
10
|
};
|
|
@@ -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', "27.
|
|
9
|
+
headers.append('atl-client-version', "27.7.1");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -52,7 +52,7 @@ export const AgentProfileCardResourced = props => {
|
|
|
52
52
|
} : undefined,
|
|
53
53
|
userCreator: userCreatorInfo ? {
|
|
54
54
|
name: (_userCreatorInfo$full = userCreatorInfo.fullName) !== null && _userCreatorInfo$full !== void 0 ? _userCreatorInfo$full : '',
|
|
55
|
-
profileLink:
|
|
55
|
+
profileLink: profileHref
|
|
56
56
|
} : undefined,
|
|
57
57
|
forgeCreator: creator !== null && creator !== void 0 ? creator : undefined
|
|
58
58
|
});
|
|
@@ -85,7 +85,7 @@ export const AgentProfileCardTrigger = /*#__PURE__*/forwardRef(({
|
|
|
85
85
|
return {
|
|
86
86
|
type: 'CUSTOMER',
|
|
87
87
|
name: creatorInfo.fullName,
|
|
88
|
-
profileLink:
|
|
88
|
+
profileLink: profileHref,
|
|
89
89
|
id: userId
|
|
90
90
|
};
|
|
91
91
|
} catch {
|
|
@@ -165,11 +165,7 @@ export const useAgentUrlActions = ({
|
|
|
165
165
|
cloudId,
|
|
166
166
|
shouldOpenInSameTab: false
|
|
167
167
|
});
|
|
168
|
-
|
|
169
|
-
onNavigate();
|
|
170
|
-
} else {
|
|
171
|
-
window.open(`${window.location.origin}/people/agent/${agentId}`, '_blank', 'noopener, noreferrer');
|
|
172
|
-
}
|
|
168
|
+
onNavigate();
|
|
173
169
|
fireEvent('ui.button.clicked.viewAgentFullProfileButton', {
|
|
174
170
|
agentId,
|
|
175
171
|
source
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
2
2
|
export const PACKAGE_META_DATA = {
|
|
3
3
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
4
|
-
packageVersion: (_process$env$_PACKAGE2 = "27.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "27.7.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
5
5
|
};
|
|
6
6
|
export const TEAM_SUBJECT = 'teamProfileCard';
|
|
7
7
|
export const USER_SUBJECT = 'profilecard';
|
|
@@ -11,7 +11,7 @@ export const createEvent = (eventType, action, actionSubject, actionSubjectId, a
|
|
|
11
11
|
actionSubjectId,
|
|
12
12
|
attributes: {
|
|
13
13
|
packageName: "@atlaskit/profilecard",
|
|
14
|
-
packageVersion: "27.
|
|
14
|
+
packageVersion: "27.7.1",
|
|
15
15
|
...attributes,
|
|
16
16
|
firedAt: Math.round(getPageTime())
|
|
17
17
|
}
|
|
@@ -5,6 +5,6 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
5
5
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
6
6
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
7
7
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
8
|
-
headers.append('atl-client-version', "27.
|
|
8
|
+
headers.append('atl-client-version', "27.7.1");
|
|
9
9
|
return headers;
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './AGGQuery';
|
|
|
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', "27.
|
|
7
|
+
headers.append('atl-client-version', "27.7.1");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -77,7 +77,7 @@ export var AgentProfileCardResourced = function AgentProfileCardResourced(props)
|
|
|
77
77
|
} : undefined,
|
|
78
78
|
userCreator: userCreatorInfo ? {
|
|
79
79
|
name: (_userCreatorInfo$full = userCreatorInfo.fullName) !== null && _userCreatorInfo$full !== void 0 ? _userCreatorInfo$full : '',
|
|
80
|
-
profileLink:
|
|
80
|
+
profileLink: profileHref
|
|
81
81
|
} : undefined,
|
|
82
82
|
forgeCreator: creator !== null && creator !== void 0 ? creator : undefined
|
|
83
83
|
});
|
|
@@ -104,7 +104,7 @@ export var AgentProfileCardTrigger = /*#__PURE__*/forwardRef(function (_ref, ref
|
|
|
104
104
|
return _context.abrupt("return", {
|
|
105
105
|
type: 'CUSTOMER',
|
|
106
106
|
name: creatorInfo.fullName,
|
|
107
|
-
profileLink:
|
|
107
|
+
profileLink: profileHref,
|
|
108
108
|
id: _userId
|
|
109
109
|
});
|
|
110
110
|
case 11:
|
|
@@ -191,11 +191,7 @@ export var useAgentUrlActions = function useAgentUrlActions(_ref3) {
|
|
|
191
191
|
shouldOpenInSameTab: false
|
|
192
192
|
}),
|
|
193
193
|
onNavigate = _navigateToTeamsApp.onNavigate;
|
|
194
|
-
|
|
195
|
-
onNavigate();
|
|
196
|
-
} else {
|
|
197
|
-
window.open("".concat(window.location.origin, "/people/agent/").concat(agentId), '_blank', 'noopener, noreferrer');
|
|
198
|
-
}
|
|
194
|
+
onNavigate();
|
|
199
195
|
fireEvent('ui.button.clicked.viewAgentFullProfileButton', {
|
|
200
196
|
agentId: agentId,
|
|
201
197
|
source: source
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
2
2
|
export var PACKAGE_META_DATA = {
|
|
3
3
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
4
|
-
packageVersion: (_process$env$_PACKAGE2 = "27.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "27.7.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
5
5
|
};
|
|
6
6
|
export var TEAM_SUBJECT = 'teamProfileCard';
|
|
7
7
|
export var USER_SUBJECT = 'profilecard';
|
|
@@ -16,7 +16,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
|
|
|
16
16
|
actionSubjectId: actionSubjectId,
|
|
17
17
|
attributes: _objectSpread(_objectSpread({
|
|
18
18
|
packageName: "@atlaskit/profilecard",
|
|
19
|
-
packageVersion: "27.
|
|
19
|
+
packageVersion: "27.7.1"
|
|
20
20
|
}, attributes), {}, {
|
|
21
21
|
firedAt: Math.round(getPageTime())
|
|
22
22
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.8.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.
|
|
44
|
+
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.307.0",
|
|
45
45
|
"@atlaskit/atlassian-context": "^2.0.0",
|
|
46
46
|
"@atlaskit/avatar": "^30.1.0",
|
|
47
47
|
"@atlaskit/avatar-group": "^14.4.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/dropdown-menu": "^21.3.0",
|
|
51
51
|
"@atlaskit/empty-state": "^12.2.0",
|
|
52
52
|
"@atlaskit/feature-gate-js-client": "^8.0.0",
|
|
53
|
-
"@atlaskit/give-kudos": "^7.
|
|
53
|
+
"@atlaskit/give-kudos": "^7.9.0",
|
|
54
54
|
"@atlaskit/heading": "^8.0.0",
|
|
55
55
|
"@atlaskit/icon": "^38.0.0",
|
|
56
56
|
"@atlaskit/link": "5.1.7",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/teams-app-internal-analytics": "^2.5.0",
|
|
70
70
|
"@atlaskit/teams-app-internal-navigation": "^3.1.0",
|
|
71
71
|
"@atlaskit/teams-avatar": "^4.2.0",
|
|
72
|
-
"@atlaskit/teams-public": "^3.
|
|
72
|
+
"@atlaskit/teams-public": "^3.11.0",
|
|
73
73
|
"@atlaskit/theme": "^28.2.0",
|
|
74
74
|
"@atlaskit/tmp-editor-statsig": "^260.0.0",
|
|
75
75
|
"@atlaskit/tokens": "^20.11.0",
|
|
@@ -129,9 +129,6 @@
|
|
|
129
129
|
"atlas_profilecard_skip_workspace_type_fetch": {
|
|
130
130
|
"type": "boolean"
|
|
131
131
|
},
|
|
132
|
-
"platform-adopt-teams-nav-config": {
|
|
133
|
-
"type": "boolean"
|
|
134
|
-
},
|
|
135
132
|
"jfp_a11y_team_profile_card_actions_label": {
|
|
136
133
|
"type": "boolean"
|
|
137
134
|
},
|