@atlaskit/profilecard 27.13.1 → 27.14.1
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 +22 -0
- package/dist/cjs/client/addHeaders.js +1 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +4 -1
- package/dist/cjs/components/team-profile-card/main.js +1 -2
- 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/User/ProfileCardTrigger.js +4 -1
- package/dist/es2019/components/team-profile-card/main.js +1 -2
- 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/User/ProfileCardTrigger.js +4 -1
- package/dist/esm/components/team-profile-card/main.js +1 -2
- 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,27 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 27.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`960935742a396`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/960935742a396) -
|
|
8
|
+
Cleanup `feature_gate` `create_modernization_ga_fixes_drop_2`. The fullscreen media viewer button
|
|
9
|
+
always has a descriptive aria-label, and decorative team icons and header images always have empty
|
|
10
|
+
accessible names.
|
|
11
|
+
|
|
12
|
+
## 27.14.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`46292e94d6993`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/46292e94d6993) -
|
|
17
|
+
Update i18n NPM package versions for people-and-teams,identity (Group 8)
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [`c87c250b16958`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c87c250b16958) -
|
|
22
|
+
Behind `platform-dst-top-layer`, the profile card trigger leaves focus return to the popup.
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 27.13.1
|
|
4
26
|
|
|
5
27
|
### Patch 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.14.0");
|
|
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.14.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -17,6 +17,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
var _reactIntl = require("react-intl");
|
|
18
18
|
var _giveKudosLauncher = require("@atlaskit/give-kudos/give-kudos-launcher");
|
|
19
19
|
var _types = require("@atlaskit/give-kudos/types");
|
|
20
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
20
21
|
var _popup = require("@atlaskit/popup/popup");
|
|
21
22
|
var _useAnalyticsEvents2 = require("@atlaskit/teams-app-internal-analytics/use-analytics-events");
|
|
22
23
|
var _constants = require("@atlaskit/theme/constants");
|
|
@@ -213,7 +214,9 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
213
214
|
if (event.key && event.key !== 'Escape') {
|
|
214
215
|
return;
|
|
215
216
|
}
|
|
216
|
-
|
|
217
|
+
// On the top-layer path the popup returns focus to the trigger itself on Escape, and keeps
|
|
218
|
+
// focus where the user pressed on an outside press.
|
|
219
|
+
if (triggerRef.current && !(0, _fg.fg)('platform-dst-top-layer')) {
|
|
217
220
|
triggerRef.current.focus();
|
|
218
221
|
}
|
|
219
222
|
setTriggeredUsingKeyboard(false);
|
|
@@ -18,7 +18,6 @@ var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group/avatar
|
|
|
18
18
|
var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
|
|
19
19
|
var _linkItem = _interopRequireDefault(require("@atlaskit/menu/link-item"));
|
|
20
20
|
var _main = require("@atlaskit/people-teams-ui-public/verified-team-icon/main");
|
|
21
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
22
21
|
var _box = require("@atlaskit/primitives/compiled/box");
|
|
23
22
|
var _flex = require("@atlaskit/primitives/compiled/flex");
|
|
24
23
|
var _inline = require("@atlaskit/primitives/compiled/inline");
|
|
@@ -82,7 +81,7 @@ var TeamProfileCard = exports.TeamProfileCardWithContainer = exports.TeamProfile
|
|
|
82
81
|
src: headerImageUrl,
|
|
83
82
|
xcss: styles.headerImageStyles,
|
|
84
83
|
testId: "profile-header-image",
|
|
85
|
-
alt:
|
|
84
|
+
alt: ""
|
|
86
85
|
}), /*#__PURE__*/React.createElement(_stack.Stack, {
|
|
87
86
|
space: "space.200",
|
|
88
87
|
xcss: styles.containerStyles
|
|
@@ -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.14.0") !== 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.14.0"
|
|
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.14.0");
|
|
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.14.0");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -3,6 +3,7 @@ import React, { Suspense, useCallback, useEffect, useMemo, useRef, useState } fr
|
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { GiveKudosLauncherLazy } from '@atlaskit/give-kudos/give-kudos-launcher';
|
|
5
5
|
import { KudosType } from '@atlaskit/give-kudos/types';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
7
|
import { Popup } from '@atlaskit/popup/popup';
|
|
7
8
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
|
|
8
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-atlaskit-theme
|
|
@@ -162,7 +163,9 @@ export default function ProfilecardTriggerNext({
|
|
|
162
163
|
if (event.key && event.key !== 'Escape') {
|
|
163
164
|
return;
|
|
164
165
|
}
|
|
165
|
-
|
|
166
|
+
// On the top-layer path the popup returns focus to the trigger itself on Escape, and keeps
|
|
167
|
+
// focus where the user pressed on an outside press.
|
|
168
|
+
if (triggerRef.current && !fg('platform-dst-top-layer')) {
|
|
166
169
|
triggerRef.current.focus();
|
|
167
170
|
}
|
|
168
171
|
setTriggeredUsingKeyboard(false);
|
|
@@ -9,7 +9,6 @@ import AvatarGroup from '@atlaskit/avatar-group/avatar-group';
|
|
|
9
9
|
import Heading from '@atlaskit/heading/heading';
|
|
10
10
|
import LinkItem from '@atlaskit/menu/link-item';
|
|
11
11
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon/main';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
12
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
14
13
|
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
15
14
|
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
@@ -70,7 +69,7 @@ export const TeamProfileCard = ({
|
|
|
70
69
|
src: headerImageUrl,
|
|
71
70
|
xcss: styles.headerImageStyles,
|
|
72
71
|
testId: "profile-header-image",
|
|
73
|
-
alt:
|
|
72
|
+
alt: ""
|
|
74
73
|
}), /*#__PURE__*/React.createElement(Stack, {
|
|
75
74
|
space: "space.200",
|
|
76
75
|
xcss: styles.containerStyles
|
|
@@ -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.14.0") !== 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.14.0",
|
|
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.14.0");
|
|
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.14.0");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -13,6 +13,7 @@ import React, { Suspense, useCallback, useEffect, useMemo, useRef, useState } fr
|
|
|
13
13
|
import { useIntl } from 'react-intl';
|
|
14
14
|
import { GiveKudosLauncherLazy } from '@atlaskit/give-kudos/give-kudos-launcher';
|
|
15
15
|
import { KudosType } from '@atlaskit/give-kudos/types';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
17
|
import { Popup } from '@atlaskit/popup/popup';
|
|
17
18
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
|
|
18
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-atlaskit-theme
|
|
@@ -205,7 +206,9 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
205
206
|
if (event.key && event.key !== 'Escape') {
|
|
206
207
|
return;
|
|
207
208
|
}
|
|
208
|
-
|
|
209
|
+
// On the top-layer path the popup returns focus to the trigger itself on Escape, and keeps
|
|
210
|
+
// focus where the user pressed on an outside press.
|
|
211
|
+
if (triggerRef.current && !fg('platform-dst-top-layer')) {
|
|
209
212
|
triggerRef.current.focus();
|
|
210
213
|
}
|
|
211
214
|
setTriggeredUsingKeyboard(false);
|
|
@@ -11,7 +11,6 @@ import AvatarGroup from '@atlaskit/avatar-group/avatar-group';
|
|
|
11
11
|
import Heading from '@atlaskit/heading/heading';
|
|
12
12
|
import LinkItem from '@atlaskit/menu/link-item';
|
|
13
13
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon/main';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
14
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
16
15
|
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
17
16
|
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
@@ -73,7 +72,7 @@ export var TeamProfileCard = function TeamProfileCard(_ref) {
|
|
|
73
72
|
src: headerImageUrl,
|
|
74
73
|
xcss: styles.headerImageStyles,
|
|
75
74
|
testId: "profile-header-image",
|
|
76
|
-
alt:
|
|
75
|
+
alt: ""
|
|
77
76
|
}), /*#__PURE__*/React.createElement(Stack, {
|
|
78
77
|
space: "space.200",
|
|
79
78
|
xcss: styles.containerStyles
|
|
@@ -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.14.0") !== 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.14.0"
|
|
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.14.1",
|
|
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.320.0",
|
|
45
45
|
"@atlaskit/atlassian-context": "^2.0.0",
|
|
46
46
|
"@atlaskit/avatar": "^31.0.0",
|
|
47
47
|
"@atlaskit/avatar-group": "^14.4.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/icon": "^38.2.0",
|
|
56
56
|
"@atlaskit/link": "5.1.7",
|
|
57
57
|
"@atlaskit/lozenge": "^17.0.0",
|
|
58
|
-
"@atlaskit/menu": "^11.
|
|
58
|
+
"@atlaskit/menu": "^11.1.0",
|
|
59
59
|
"@atlaskit/modal-dialog": "^17.3.0",
|
|
60
60
|
"@atlaskit/people-teams-ui-public": "^5.2.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
@@ -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.16.0",
|
|
73
73
|
"@atlaskit/theme": "^28.2.0",
|
|
74
74
|
"@atlaskit/tmp-editor-statsig": "^270.0.0",
|
|
75
75
|
"@atlaskit/tokens": "^20.14.0",
|
|
@@ -142,9 +142,6 @@
|
|
|
142
142
|
"jira_improve_agent_profile_for_a2a": {
|
|
143
143
|
"type": "boolean"
|
|
144
144
|
},
|
|
145
|
-
"create_modernization_ga_fixes_drop_2": {
|
|
146
|
-
"type": "boolean"
|
|
147
|
-
},
|
|
148
145
|
"platform_editor_agent_mentions_drop_one_fixes": {
|
|
149
146
|
"type": "boolean"
|
|
150
147
|
},
|