@atlaskit/profilecard 24.34.4 → 24.34.6

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 24.34.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`78e5eb6e30716`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/78e5eb6e30716) -
8
+ Add aria-label to manager section wrapper
9
+
10
+ ## 24.34.5
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 24.34.4
4
17
 
5
18
  ### 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.34.3");
14
+ headers.append('atl-client-version', "0.0.0-development");
15
15
  return headers;
16
16
  };
17
17
  function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
66
66
  headers.append('X-ExperimentalApi', 'teams-beta');
67
67
  headers.append('X-ExperimentalApi', 'team-members-beta');
68
68
  headers.append('atl-client-name', "@atlaskit/profilecard");
69
- headers.append('atl-client-version', "24.34.3");
69
+ headers.append('atl-client-version', "0.0.0-development");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -32,7 +32,7 @@ var styles = {
32
32
  };
33
33
  var avatarGroupMaxCount = 5;
34
34
  var ReportingLinesDetails = function ReportingLinesDetails(props) {
35
- var _manager$pii, _manager$pii2;
35
+ var _manager$pii, _manager$pii2, _manager$pii3;
36
36
  var _useIntl = (0, _reactIntlNext.useIntl)(),
37
37
  formatMessage = _useIntl.formatMessage;
38
38
  var fireAnalyticsWithDuration = props.fireAnalyticsWithDuration,
@@ -108,11 +108,14 @@ var ReportingLinesDetails = function ReportingLinesDetails(props) {
108
108
  return onReportingLinksClick(manager, 'manager', getProfileHref(manager.accountIdentifier, reportingLinesProfileUrl));
109
109
  },
110
110
  isDisabled: !onReportingLinesClick,
111
- xcss: styles.reportingLinesButton
111
+ xcss: styles.reportingLinesButton,
112
+ "aria-label": formatMessage(_messages.default.viewManagerProfile, {
113
+ name: (_manager$pii = manager.pii) === null || _manager$pii === void 0 ? void 0 : _manager$pii.name
114
+ })
112
115
  }, /*#__PURE__*/_react.default.createElement(_ReportingLines.ManagerSection, null, /*#__PURE__*/_react.default.createElement(_avatar.default, {
113
116
  size: "xsmall",
114
- src: (_manager$pii = manager.pii) === null || _manager$pii === void 0 ? void 0 : _manager$pii.picture
115
- }), /*#__PURE__*/_react.default.createElement(_ReportingLines.ManagerName, null, (_manager$pii2 = manager.pii) === null || _manager$pii2 === void 0 ? void 0 : _manager$pii2.name))))), hasReports && /*#__PURE__*/_react.default.createElement(_ReportingLines.ReportingLinesSection, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
117
+ src: (_manager$pii2 = manager.pii) === null || _manager$pii2 === void 0 ? void 0 : _manager$pii2.picture
118
+ }), /*#__PURE__*/_react.default.createElement(_ReportingLines.ManagerName, null, (_manager$pii3 = manager.pii) === null || _manager$pii3 === void 0 ? void 0 : _manager$pii3.name))))), hasReports && /*#__PURE__*/_react.default.createElement(_ReportingLines.ReportingLinesSection, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
116
119
  xcss: styles.reportingLinesHeadingDefaultStyles
117
120
  }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.directReportsSectionHeading)), /*#__PURE__*/_react.default.createElement(_avatarGroup.default, {
118
121
  appearance: "stack",
@@ -231,6 +231,11 @@ var messages = (0, _reactIntlNext.defineMessages)({
231
231
  id: 'pt.profile-card.bot-account.label',
232
232
  defaultMessage: 'APP',
233
233
  description: 'Label to indicate that the user is a bot account'
234
+ },
235
+ viewManagerProfile: {
236
+ id: 'pt.profile-card.view-manager-profile',
237
+ defaultMessage: 'View {name} profile',
238
+ description: "Accessible label for the button to view the manager's profile"
234
239
  }
235
240
  });
236
241
  var _default = exports.default = messages;
@@ -13,7 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
13
13
  var ANALYTICS_CHANNEL = 'peopleTeams';
14
14
  var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
15
15
  packageName: "@atlaskit/profilecard",
16
- packageVersion: "24.34.3"
16
+ packageVersion: "0.0.0-development"
17
17
  };
18
18
  var runItLater = function runItLater(cb) {
19
19
  var requestIdleCallback = window.requestIdleCallback;
@@ -58,7 +58,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
58
58
  actionSubjectId: actionSubjectId,
59
59
  attributes: _objectSpread(_objectSpread({
60
60
  packageName: "@atlaskit/profilecard",
61
- packageVersion: "24.34.3"
61
+ packageVersion: "0.0.0-development"
62
62
  }, attributes), {}, {
63
63
  firedAt: Math.round((0, _performance.getPageTime)())
64
64
  })
@@ -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.34.3");
9
+ headers.append('atl-client-version', "0.0.0-development");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
78
78
  headers.append('X-ExperimentalApi', 'teams-beta');
79
79
  headers.append('X-ExperimentalApi', 'team-members-beta');
80
80
  headers.append('atl-client-name', "@atlaskit/profilecard");
81
- headers.append('atl-client-version', "24.34.3");
81
+ headers.append('atl-client-version', "0.0.0-development");
82
82
  return headers;
83
83
  };
84
84
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -22,7 +22,7 @@ const styles = {
22
22
  };
23
23
  const avatarGroupMaxCount = 5;
24
24
  const ReportingLinesDetails = props => {
25
- var _manager$pii, _manager$pii2;
25
+ var _manager$pii, _manager$pii2, _manager$pii3;
26
26
  const {
27
27
  formatMessage
28
28
  } = useIntl();
@@ -90,11 +90,14 @@ const ReportingLinesDetails = props => {
90
90
  }, /*#__PURE__*/React.createElement(FormattedMessage, messages.managerSectionHeading)), /*#__PURE__*/React.createElement(OffsetWrapper, null, /*#__PURE__*/React.createElement(Pressable, {
91
91
  onClick: () => onReportingLinksClick(manager, 'manager', getProfileHref(manager.accountIdentifier, reportingLinesProfileUrl)),
92
92
  isDisabled: !onReportingLinesClick,
93
- xcss: styles.reportingLinesButton
93
+ xcss: styles.reportingLinesButton,
94
+ "aria-label": formatMessage(messages.viewManagerProfile, {
95
+ name: (_manager$pii = manager.pii) === null || _manager$pii === void 0 ? void 0 : _manager$pii.name
96
+ })
94
97
  }, /*#__PURE__*/React.createElement(ManagerSection, null, /*#__PURE__*/React.createElement(Avatar, {
95
98
  size: "xsmall",
96
- src: (_manager$pii = manager.pii) === null || _manager$pii === void 0 ? void 0 : _manager$pii.picture
97
- }), /*#__PURE__*/React.createElement(ManagerName, null, (_manager$pii2 = manager.pii) === null || _manager$pii2 === void 0 ? void 0 : _manager$pii2.name))))), hasReports && /*#__PURE__*/React.createElement(ReportingLinesSection, null, /*#__PURE__*/React.createElement(Box, {
99
+ src: (_manager$pii2 = manager.pii) === null || _manager$pii2 === void 0 ? void 0 : _manager$pii2.picture
100
+ }), /*#__PURE__*/React.createElement(ManagerName, null, (_manager$pii3 = manager.pii) === null || _manager$pii3 === void 0 ? void 0 : _manager$pii3.name))))), hasReports && /*#__PURE__*/React.createElement(ReportingLinesSection, null, /*#__PURE__*/React.createElement(Box, {
98
101
  xcss: styles.reportingLinesHeadingDefaultStyles
99
102
  }, /*#__PURE__*/React.createElement(FormattedMessage, messages.directReportsSectionHeading)), /*#__PURE__*/React.createElement(AvatarGroup, {
100
103
  appearance: "stack",
@@ -225,6 +225,11 @@ const messages = defineMessages({
225
225
  id: 'pt.profile-card.bot-account.label',
226
226
  defaultMessage: 'APP',
227
227
  description: 'Label to indicate that the user is a bot account'
228
+ },
229
+ viewManagerProfile: {
230
+ id: 'pt.profile-card.view-manager-profile',
231
+ defaultMessage: 'View {name} profile',
232
+ description: "Accessible label for the button to view the manager's profile"
228
233
  }
229
234
  });
230
235
  export default messages;
@@ -4,7 +4,7 @@ import { getPageTime } from './performance';
4
4
  const ANALYTICS_CHANNEL = 'peopleTeams';
5
5
  export const PACKAGE_META_DATA = {
6
6
  packageName: "@atlaskit/profilecard",
7
- packageVersion: "24.34.3"
7
+ packageVersion: "0.0.0-development"
8
8
  };
9
9
  const runItLater = cb => {
10
10
  const requestIdleCallback = window.requestIdleCallback;
@@ -45,7 +45,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
45
45
  actionSubjectId,
46
46
  attributes: {
47
47
  packageName: "@atlaskit/profilecard",
48
- packageVersion: "24.34.3",
48
+ packageVersion: "0.0.0-development",
49
49
  ...attributes,
50
50
  firedAt: Math.round(getPageTime())
51
51
  }
@@ -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.34.3");
7
+ headers.append('atl-client-version', "0.0.0-development");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
59
59
  headers.append('X-ExperimentalApi', 'teams-beta');
60
60
  headers.append('X-ExperimentalApi', 'team-members-beta');
61
61
  headers.append('atl-client-name', "@atlaskit/profilecard");
62
- headers.append('atl-client-version', "24.34.3");
62
+ headers.append('atl-client-version', "0.0.0-development");
63
63
  return headers;
64
64
  };
65
65
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -25,7 +25,7 @@ var styles = {
25
25
  };
26
26
  var avatarGroupMaxCount = 5;
27
27
  var ReportingLinesDetails = function ReportingLinesDetails(props) {
28
- var _manager$pii, _manager$pii2;
28
+ var _manager$pii, _manager$pii2, _manager$pii3;
29
29
  var _useIntl = useIntl(),
30
30
  formatMessage = _useIntl.formatMessage;
31
31
  var fireAnalyticsWithDuration = props.fireAnalyticsWithDuration,
@@ -101,11 +101,14 @@ var ReportingLinesDetails = function ReportingLinesDetails(props) {
101
101
  return onReportingLinksClick(manager, 'manager', getProfileHref(manager.accountIdentifier, reportingLinesProfileUrl));
102
102
  },
103
103
  isDisabled: !onReportingLinesClick,
104
- xcss: styles.reportingLinesButton
104
+ xcss: styles.reportingLinesButton,
105
+ "aria-label": formatMessage(messages.viewManagerProfile, {
106
+ name: (_manager$pii = manager.pii) === null || _manager$pii === void 0 ? void 0 : _manager$pii.name
107
+ })
105
108
  }, /*#__PURE__*/React.createElement(ManagerSection, null, /*#__PURE__*/React.createElement(Avatar, {
106
109
  size: "xsmall",
107
- src: (_manager$pii = manager.pii) === null || _manager$pii === void 0 ? void 0 : _manager$pii.picture
108
- }), /*#__PURE__*/React.createElement(ManagerName, null, (_manager$pii2 = manager.pii) === null || _manager$pii2 === void 0 ? void 0 : _manager$pii2.name))))), hasReports && /*#__PURE__*/React.createElement(ReportingLinesSection, null, /*#__PURE__*/React.createElement(Box, {
110
+ src: (_manager$pii2 = manager.pii) === null || _manager$pii2 === void 0 ? void 0 : _manager$pii2.picture
111
+ }), /*#__PURE__*/React.createElement(ManagerName, null, (_manager$pii3 = manager.pii) === null || _manager$pii3 === void 0 ? void 0 : _manager$pii3.name))))), hasReports && /*#__PURE__*/React.createElement(ReportingLinesSection, null, /*#__PURE__*/React.createElement(Box, {
109
112
  xcss: styles.reportingLinesHeadingDefaultStyles
110
113
  }, /*#__PURE__*/React.createElement(FormattedMessage, messages.directReportsSectionHeading)), /*#__PURE__*/React.createElement(AvatarGroup, {
111
114
  appearance: "stack",
@@ -225,6 +225,11 @@ var messages = defineMessages({
225
225
  id: 'pt.profile-card.bot-account.label',
226
226
  defaultMessage: 'APP',
227
227
  description: 'Label to indicate that the user is a bot account'
228
+ },
229
+ viewManagerProfile: {
230
+ id: 'pt.profile-card.view-manager-profile',
231
+ defaultMessage: 'View {name} profile',
232
+ description: "Accessible label for the button to view the manager's profile"
228
233
  }
229
234
  });
230
235
  export default messages;
@@ -7,7 +7,7 @@ import { getPageTime } from './performance';
7
7
  var ANALYTICS_CHANNEL = 'peopleTeams';
8
8
  export var PACKAGE_META_DATA = {
9
9
  packageName: "@atlaskit/profilecard",
10
- packageVersion: "24.34.3"
10
+ packageVersion: "0.0.0-development"
11
11
  };
12
12
  var runItLater = function runItLater(cb) {
13
13
  var requestIdleCallback = window.requestIdleCallback;
@@ -52,7 +52,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
52
52
  actionSubjectId: actionSubjectId,
53
53
  attributes: _objectSpread(_objectSpread({
54
54
  packageName: "@atlaskit/profilecard",
55
- packageVersion: "24.34.3"
55
+ packageVersion: "0.0.0-development"
56
56
  }, attributes), {}, {
57
57
  firedAt: Math.round(getPageTime())
58
58
  })
@@ -16,7 +16,7 @@ declare class ProfileCardClient implements ProfileClient {
16
16
  constructor(config: ProfileClientOptions, clients?: ClientOverrides);
17
17
  flushCache(): void;
18
18
  getProfile(cloudId: string, userId: string, analytics?: FireEventType): Promise<any>;
19
- getTeamProfile(teamId: string, orgId?: string, analytics?: FireEventType): Promise<import("../types").Team>;
19
+ getTeamProfile(teamId: string, orgId?: string, analytics?: FireEventType): Promise<import("..").Team>;
20
20
  getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
21
21
  getTeamCentralBaseUrl(teamCentralScopes?: TeamCentralScopes): Promise<string | undefined>;
22
22
  shouldShowGiveKudos(): Promise<boolean>;
@@ -224,5 +224,10 @@ declare const messages: {
224
224
  defaultMessage: string;
225
225
  description: string;
226
226
  };
227
+ viewManagerProfile: {
228
+ id: string;
229
+ defaultMessage: string;
230
+ description: string;
231
+ };
227
232
  };
228
233
  export default messages;
@@ -20,7 +20,7 @@ interface AnalyticsEvent {
20
20
  * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
21
21
  */
22
22
  export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
23
- export declare const getActionSubject: (type: string) => "teamProfileCard" | "profilecard" | "rovoAgentProfilecard" | "user";
23
+ export declare const getActionSubject: (type: string) => "user" | "teamProfileCard" | "profilecard" | "rovoAgentProfilecard";
24
24
  /**
25
25
  * @private
26
26
  * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
@@ -16,7 +16,7 @@ declare class ProfileCardClient implements ProfileClient {
16
16
  constructor(config: ProfileClientOptions, clients?: ClientOverrides);
17
17
  flushCache(): void;
18
18
  getProfile(cloudId: string, userId: string, analytics?: FireEventType): Promise<any>;
19
- getTeamProfile(teamId: string, orgId?: string, analytics?: FireEventType): Promise<import("../types").Team>;
19
+ getTeamProfile(teamId: string, orgId?: string, analytics?: FireEventType): Promise<import("..").Team>;
20
20
  getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
21
21
  getTeamCentralBaseUrl(teamCentralScopes?: TeamCentralScopes): Promise<string | undefined>;
22
22
  shouldShowGiveKudos(): Promise<boolean>;
@@ -224,5 +224,10 @@ declare const messages: {
224
224
  defaultMessage: string;
225
225
  description: string;
226
226
  };
227
+ viewManagerProfile: {
228
+ id: string;
229
+ defaultMessage: string;
230
+ description: string;
231
+ };
227
232
  };
228
233
  export default messages;
@@ -20,7 +20,7 @@ interface AnalyticsEvent {
20
20
  * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
21
21
  */
22
22
  export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
23
- export declare const getActionSubject: (type: string) => "teamProfileCard" | "profilecard" | "rovoAgentProfilecard" | "user";
23
+ export declare const getActionSubject: (type: string) => "user" | "teamProfileCard" | "profilecard" | "rovoAgentProfilecard";
24
24
  /**
25
25
  * @private
26
26
  * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "24.34.4",
3
+ "version": "24.34.6",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,11 +49,11 @@
49
49
  "@atlaskit/dropdown-menu": "^16.4.0",
50
50
  "@atlaskit/empty-state": "^10.1.0",
51
51
  "@atlaskit/feature-gate-js-client": "^5.5.0",
52
- "@atlaskit/give-kudos": "^4.5.0",
52
+ "@atlaskit/give-kudos": "^4.7.0",
53
53
  "@atlaskit/heading": "^5.2.0",
54
54
  "@atlaskit/icon": "^30.0.0",
55
- "@atlaskit/link": "3.3.2",
56
- "@atlaskit/lozenge": "^13.3.0",
55
+ "@atlaskit/link": "3.3.3",
56
+ "@atlaskit/lozenge": "^13.4.0",
57
57
  "@atlaskit/menu": "^8.4.0",
58
58
  "@atlaskit/modal-dialog": "^14.10.0",
59
59
  "@atlaskit/people-teams-ui-public": "^3.7.0",
@@ -61,8 +61,8 @@
61
61
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
62
62
  "@atlaskit/popup": "^4.13.0",
63
63
  "@atlaskit/primitives": "^18.0.0",
64
- "@atlaskit/rovo-agent-components": "^3.27.0",
65
- "@atlaskit/rovo-triggers": "^5.8.0",
64
+ "@atlaskit/rovo-agent-components": "^3.28.0",
65
+ "@atlaskit/rovo-triggers": "^5.9.0",
66
66
  "@atlaskit/spinner": "^19.0.0",
67
67
  "@atlaskit/teams-app-config": "^1.12.0",
68
68
  "@atlaskit/teams-app-internal-analytics": "^1.24.0",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  "devDependencies": {
89
89
  "@af/visual-regression": "workspace:^",
90
- "@atlassian/a11y-jest-testing": "^0.8.0",
90
+ "@atlassian/a11y-jest-testing": "^0.9.0",
91
91
  "@atlassian/feature-flags-storybook-utils": "^0.3.0",
92
92
  "@atlassian/feature-flags-test-utils": "^1.0.0",
93
93
  "@atlassian/platform-storybook-helpers": "^0.1.0",