@atlaskit/profilecard 23.7.6 → 23.7.8

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,20 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 23.7.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 23.7.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#131544](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/131544)
14
+ [`302f011a91ef3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/302f011a91ef3) -
15
+ a11y fix added labels to profile card buttons
16
+ - Updated dependencies
17
+
3
18
  ## 23.7.6
4
19
 
5
20
  ### 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', "23.7.6");
14
+ headers.append('atl-client-version', "23.7.8");
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', "23.7.6");
69
+ headers.append('atl-client-version', "23.7.8");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -180,7 +180,9 @@ var Actions = function Actions(_ref) {
180
180
  return onActionClick(action, args, event, index);
181
181
  },
182
182
  href: action.link || '',
183
- autoFocus: index === 0 && isTriggeredUsingKeyboard
183
+ autoFocus: index === 0 && isTriggeredUsingKeyboard,
184
+ id: "action-button-".concat(action.id),
185
+ "aria-labelledby": (0, _platformFeatureFlags.fg)('enable_userprofilecard_arialabelfix') ? "action-button-".concat(action.id, " profilecard-name-label") : ''
184
186
  }, action.label, isKudos && /*#__PURE__*/_react.default.createElement(_Card.AnimationWrapper, null, /*#__PURE__*/_react.default.createElement(_Card.KudosBlobAnimation, null))) : /*#__PURE__*/_react.default.createElement(_button.default, {
185
187
  appearance: "default",
186
188
  key: action.id || index,
@@ -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: "23.7.6"
48
+ packageVersion: "23.7.8"
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', "23.7.6");
9
+ headers.append('atl-client-version', "23.7.8");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -75,7 +75,7 @@ export const addHeaders = headers => {
75
75
  headers.append('X-ExperimentalApi', 'teams-beta');
76
76
  headers.append('X-ExperimentalApi', 'team-members-beta');
77
77
  headers.append('atl-client-name', "@atlaskit/profilecard");
78
- headers.append('atl-client-version', "23.7.6");
78
+ headers.append('atl-client-version', "23.7.8");
79
79
  return headers;
80
80
  };
81
81
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -161,7 +161,9 @@ const Actions = ({
161
161
  key: action.id || index,
162
162
  onClick: (event, ...args) => onActionClick(action, args, event, index),
163
163
  href: action.link || '',
164
- autoFocus: index === 0 && isTriggeredUsingKeyboard
164
+ autoFocus: index === 0 && isTriggeredUsingKeyboard,
165
+ id: `action-button-${action.id}`,
166
+ "aria-labelledby": fg('enable_userprofilecard_arialabelfix') ? `action-button-${action.id} profilecard-name-label` : ''
165
167
  }, action.label, isKudos && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null))) : /*#__PURE__*/React.createElement(ButtonLegacy, {
166
168
  appearance: "default",
167
169
  key: action.id || index,
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
32
32
  actionSubjectId,
33
33
  attributes: {
34
34
  packageName: "@atlaskit/profilecard",
35
- packageVersion: "23.7.6",
35
+ packageVersion: "23.7.8",
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', "23.7.6");
7
+ headers.append('atl-client-version', "23.7.8");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -57,7 +57,7 @@ export var addHeaders = function addHeaders(headers) {
57
57
  headers.append('X-ExperimentalApi', 'teams-beta');
58
58
  headers.append('X-ExperimentalApi', 'team-members-beta');
59
59
  headers.append('atl-client-name', "@atlaskit/profilecard");
60
- headers.append('atl-client-version', "23.7.6");
60
+ headers.append('atl-client-version', "23.7.8");
61
61
  return headers;
62
62
  };
63
63
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -170,7 +170,9 @@ var Actions = function Actions(_ref) {
170
170
  return onActionClick(action, args, event, index);
171
171
  },
172
172
  href: action.link || '',
173
- autoFocus: index === 0 && isTriggeredUsingKeyboard
173
+ autoFocus: index === 0 && isTriggeredUsingKeyboard,
174
+ id: "action-button-".concat(action.id),
175
+ "aria-labelledby": fg('enable_userprofilecard_arialabelfix') ? "action-button-".concat(action.id, " profilecard-name-label") : ''
174
176
  }, action.label, isKudos && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null))) : /*#__PURE__*/React.createElement(ButtonLegacy, {
175
177
  appearance: "default",
176
178
  key: action.id || index,
@@ -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: "23.7.6"
42
+ packageVersion: "23.7.8"
43
43
  }, attributes), {}, {
44
44
  firedAt: Math.round(getPageTime())
45
45
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "23.7.6",
3
+ "version": "23.7.8",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -61,22 +61,22 @@
61
61
  "@atlaskit/focus-ring": "^3.0.0",
62
62
  "@atlaskit/give-kudos": "^4.0.0",
63
63
  "@atlaskit/heading": "^5.1.0",
64
- "@atlaskit/icon": "^25.4.0",
64
+ "@atlaskit/icon": "^25.5.0",
65
65
  "@atlaskit/logo": "^16.0.0",
66
66
  "@atlaskit/lozenge": "^12.2.0",
67
67
  "@atlaskit/menu": "^3.2.0",
68
68
  "@atlaskit/modal-dialog": "^14.1.0",
69
69
  "@atlaskit/people-teams-ui-public": "^3.1.0",
70
70
  "@atlaskit/platform-feature-flags": "^1.1.0",
71
- "@atlaskit/popup": "^3.0.0",
72
- "@atlaskit/primitives": "^14.2.0",
73
- "@atlaskit/rovo-agent-components": "^2.3.0",
74
- "@atlaskit/rovo-triggers": "^2.9.0",
71
+ "@atlaskit/popup": "^4.0.0",
72
+ "@atlaskit/primitives": "^14.3.0",
73
+ "@atlaskit/rovo-agent-components": "^2.6.0",
74
+ "@atlaskit/rovo-triggers": "^2.10.0",
75
75
  "@atlaskit/spinner": "^18.0.0",
76
76
  "@atlaskit/teams-avatar": "^2.3.0",
77
77
  "@atlaskit/teams-public": "^0.23.0",
78
78
  "@atlaskit/theme": "^18.0.0",
79
- "@atlaskit/tokens": "^4.5.0",
79
+ "@atlaskit/tokens": "^4.7.0",
80
80
  "@atlaskit/tooltip": "^20.0.0",
81
81
  "@babel/runtime": "^7.0.0",
82
82
  "@compiled/react": "^0.18.3",
@@ -162,6 +162,9 @@
162
162
  },
163
163
  "enable_profilecard_h2tag_a11y_fix": {
164
164
  "type": "boolean"
165
+ },
166
+ "enable_userprofilecard_arialabelfix": {
167
+ "type": "boolean"
165
168
  }
166
169
  },
167
170
  "sideEffects": [