@atlaskit/profilecard 24.3.2 → 24.4.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 +12 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamProfileCard.js +1 -0
- package/dist/cjs/components/User/OverflowProfileCardButtons.js +2 -1
- package/dist/cjs/components/User/ProfileCard.js +1 -0
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +1 -0
- package/dist/es2019/components/User/OverflowProfileCardButtons.js +2 -1
- package/dist/es2019/components/User/ProfileCard.js +1 -0
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Team/TeamProfileCard.js +1 -0
- package/dist/esm/components/User/OverflowProfileCardButtons.js +2 -1
- package/dist/esm/components/User/ProfileCard.js +1 -0
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/types-ts4.5/types.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 24.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#200712](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/200712)
|
|
8
|
+
[`79f68c9a9ad77`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/79f68c9a9ad77) -
|
|
9
|
+
Allow target to be passed to action
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 24.3.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -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', "24.3.
|
|
14
|
+
headers.append('atl-client-version', "24.3.2");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -65,7 +65,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
65
65
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
66
66
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
67
67
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
68
|
-
headers.append('atl-client-version', "24.3.
|
|
68
|
+
headers.append('atl-client-version', "24.3.2");
|
|
69
69
|
return headers;
|
|
70
70
|
};
|
|
71
71
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -157,6 +157,7 @@ var ActionButton = function ActionButton(_ref2) {
|
|
|
157
157
|
key: action.id || index,
|
|
158
158
|
onClick: onActionClick(action, analytics, index),
|
|
159
159
|
href: action.link || '',
|
|
160
|
+
target: action.target,
|
|
160
161
|
shouldFitContainer: true
|
|
161
162
|
}, action.label, isGiveKudosActionButton && /*#__PURE__*/_react.default.createElement(_Card.AnimationWrapper, null, /*#__PURE__*/_react.default.createElement(_Card.KudosBlobAnimation, null)));
|
|
162
163
|
if (isGiveKudosActionButton) {
|
|
@@ -179,6 +179,7 @@ var Actions = function Actions(_ref) {
|
|
|
179
179
|
return onActionClick(action, args, event, index);
|
|
180
180
|
},
|
|
181
181
|
href: action.link || '',
|
|
182
|
+
target: action.target,
|
|
182
183
|
autoFocus: index === 0 && isTriggeredUsingKeyboard,
|
|
183
184
|
id: "action-button-".concat(action.id),
|
|
184
185
|
"aria-labelledby": (0, _platformFeatureFlags.fg)('enable_userprofilecard_arialabelfix') ? "action-button-".concat(action.id, " profilecard-name-label") : ''
|
|
@@ -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: "24.3.
|
|
48
|
+
packageVersion: "24.3.2"
|
|
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', "24.3.
|
|
9
|
+
headers.append('atl-client-version', "24.3.2");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -74,7 +74,7 @@ export const addHeaders = headers => {
|
|
|
74
74
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
75
75
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
76
76
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
77
|
-
headers.append('atl-client-version', "24.3.
|
|
77
|
+
headers.append('atl-client-version', "24.3.2");
|
|
78
78
|
return headers;
|
|
79
79
|
};
|
|
80
80
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -137,6 +137,7 @@ const ActionButton = ({
|
|
|
137
137
|
key: action.id || index,
|
|
138
138
|
onClick: onActionClick(action, analytics, index),
|
|
139
139
|
href: action.link || '',
|
|
140
|
+
target: action.target,
|
|
140
141
|
shouldFitContainer: true
|
|
141
142
|
}, action.label, isGiveKudosActionButton && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null)));
|
|
142
143
|
if (isGiveKudosActionButton) {
|
|
@@ -161,6 +161,7 @@ const Actions = ({
|
|
|
161
161
|
key: action.id || index,
|
|
162
162
|
onClick: (event, ...args) => onActionClick(action, args, event, index),
|
|
163
163
|
href: action.link || '',
|
|
164
|
+
target: action.target,
|
|
164
165
|
autoFocus: index === 0 && isTriggeredUsingKeyboard,
|
|
165
166
|
id: `action-button-${action.id}`,
|
|
166
167
|
"aria-labelledby": fg('enable_userprofilecard_arialabelfix') ? `action-button-${action.id} profilecard-name-label` : ''
|
|
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
32
32
|
actionSubjectId,
|
|
33
33
|
attributes: {
|
|
34
34
|
packageName: "@atlaskit/profilecard",
|
|
35
|
-
packageVersion: "24.3.
|
|
35
|
+
packageVersion: "24.3.2",
|
|
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', "24.3.
|
|
7
|
+
headers.append('atl-client-version', "24.3.2");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -56,7 +56,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
56
56
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
57
57
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
58
58
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
59
|
-
headers.append('atl-client-version', "24.3.
|
|
59
|
+
headers.append('atl-client-version', "24.3.2");
|
|
60
60
|
return headers;
|
|
61
61
|
};
|
|
62
62
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -148,6 +148,7 @@ var ActionButton = function ActionButton(_ref2) {
|
|
|
148
148
|
key: action.id || index,
|
|
149
149
|
onClick: onActionClick(action, analytics, index),
|
|
150
150
|
href: action.link || '',
|
|
151
|
+
target: action.target,
|
|
151
152
|
shouldFitContainer: true
|
|
152
153
|
}, action.label, isGiveKudosActionButton && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null)));
|
|
153
154
|
if (isGiveKudosActionButton) {
|
|
@@ -170,6 +170,7 @@ var Actions = function Actions(_ref) {
|
|
|
170
170
|
return onActionClick(action, args, event, index);
|
|
171
171
|
},
|
|
172
172
|
href: action.link || '',
|
|
173
|
+
target: action.target,
|
|
173
174
|
autoFocus: index === 0 && isTriggeredUsingKeyboard,
|
|
174
175
|
id: "action-button-".concat(action.id),
|
|
175
176
|
"aria-labelledby": fg('enable_userprofilecard_arialabelfix') ? "action-button-".concat(action.id, " profilecard-name-label") : ''
|
|
@@ -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: "24.3.
|
|
42
|
+
packageVersion: "24.3.2"
|
|
43
43
|
}, attributes), {}, {
|
|
44
44
|
firedAt: Math.round(getPageTime())
|
|
45
45
|
})
|
package/dist/types/types.d.ts
CHANGED
|
@@ -370,6 +370,7 @@ export interface ProfileCardAction {
|
|
|
370
370
|
id?: string;
|
|
371
371
|
label: React.ReactNode;
|
|
372
372
|
link?: string;
|
|
373
|
+
target?: string;
|
|
373
374
|
}
|
|
374
375
|
export type LozengeColor = 'default' | 'success' | 'removed' | 'inprogress' | 'new' | 'moved';
|
|
375
376
|
export interface LozengeProps {
|
|
@@ -376,6 +376,7 @@ export interface ProfileCardAction {
|
|
|
376
376
|
id?: string;
|
|
377
377
|
label: React.ReactNode;
|
|
378
378
|
link?: string;
|
|
379
|
+
target?: string;
|
|
379
380
|
}
|
|
380
381
|
export type LozengeColor = 'default' | 'success' | 'removed' | 'inprogress' | 'new' | 'moved';
|
|
381
382
|
export interface LozengeProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.4.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
62
62
|
"@atlaskit/give-kudos": "^4.3.0",
|
|
63
63
|
"@atlaskit/heading": "^5.2.0",
|
|
64
|
-
"@atlaskit/icon": "^27.
|
|
64
|
+
"@atlaskit/icon": "^27.12.0",
|
|
65
65
|
"@atlaskit/link": "^3.2.0",
|
|
66
66
|
"@atlaskit/logo": "^19.6.0",
|
|
67
67
|
"@atlaskit/lozenge": "^13.0.0",
|
|
68
|
-
"@atlaskit/menu": "^8.
|
|
68
|
+
"@atlaskit/menu": "^8.3.0",
|
|
69
69
|
"@atlaskit/modal-dialog": "^14.3.0",
|
|
70
70
|
"@atlaskit/people-teams-ui-public": "^3.1.0",
|
|
71
71
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|