@atlaskit/profilecard 19.11.6 → 19.11.7

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,11 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 19.11.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#94338](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94338) [`4da2886fcb36`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4da2886fcb36) - JCA11Y-1390 Fix Non-modal dialog programmatically identified issue, add role and aria-labelledby to profilecard wrapper
8
+
3
9
  ## 19.11.6
4
10
 
5
11
  ### Patch Changes
@@ -57,7 +57,7 @@ var addHeaders = exports.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', "19.11.6");
60
+ headers.append('atl-client-version', "19.11.7");
61
61
  return headers;
62
62
  };
63
63
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -57,7 +57,9 @@ var useKudos = function useKudos(cloudId, userId, teamCentralBaseUrl, openKudosD
57
57
  };
58
58
  var Wrapper = function Wrapper(props) {
59
59
  return /*#__PURE__*/_react.default.createElement(_Card.CardWrapper, {
60
- "data-testid": "profilecard"
60
+ "data-testid": "profilecard",
61
+ role: "dialog",
62
+ "aria-labelledby": "profilecard-name-label"
61
63
  }, props.children);
62
64
  };
63
65
  var ProfilecardInternal = exports.ProfilecardInternal = function ProfilecardInternal(props) {
@@ -25,7 +25,8 @@ var renderName = function renderName(nickname, fullName, meta) {
25
25
  var displayName = isNicknameRedundant ? fullName : "".concat(fullName).concat(shownNickname);
26
26
  return /*#__PURE__*/_react.default.createElement(_Card.FullNameLabel, {
27
27
  noMeta: !meta,
28
- "data-testid": "profilecard-name"
28
+ "data-testid": "profilecard-name",
29
+ id: "profilecard-name-label"
29
30
  }, displayName);
30
31
  };
31
32
  var disabledAccountDesc = function disabledAccountDesc(statusModifiedDate, disabledAccountMessage) {
@@ -74,7 +75,8 @@ var DisabledProfileCardDetails = function DisabledProfileCardDetails(props) {
74
75
  return /*#__PURE__*/_react.default.createElement(_Card.DetailsGroup, null, /*#__PURE__*/_react.default.createElement(_Card.FullNameLabel, {
75
76
  noMeta: true,
76
77
  isDisabledAccount: true,
77
- "data-testid": "profilecard-name"
78
+ "data-testid": "profilecard-name",
79
+ id: "profilecard-name-label"
78
80
  }, name), hasDisabledAccountLozenge && /*#__PURE__*/_react.default.createElement(_Card.LozengeWrapper, null, /*#__PURE__*/_react.default.createElement(_lozenge.default, {
79
81
  appearance: "default",
80
82
  isBold: true
@@ -44,7 +44,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
44
44
  actionSubjectId: actionSubjectId,
45
45
  attributes: _objectSpread(_objectSpread({
46
46
  packageName: "@atlaskit/profilecard",
47
- packageVersion: "19.11.6"
47
+ packageVersion: "19.11.7"
48
48
  }, attributes), {}, {
49
49
  firedAt: Math.round((0, _performance.getPageTime)())
50
50
  })
@@ -67,7 +67,7 @@ export const addHeaders = headers => {
67
67
  headers.append('X-ExperimentalApi', 'teams-beta');
68
68
  headers.append('X-ExperimentalApi', 'team-members-beta');
69
69
  headers.append('atl-client-name', "@atlaskit/profilecard");
70
- headers.append('atl-client-version', "19.11.6");
70
+ headers.append('atl-client-version', "19.11.7");
71
71
  return headers;
72
72
  };
73
73
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -44,7 +44,9 @@ const useKudos = (cloudId, userId, teamCentralBaseUrl, openKudosDrawer) => {
44
44
  };
45
45
  };
46
46
  const Wrapper = props => /*#__PURE__*/React.createElement(CardWrapper, {
47
- "data-testid": "profilecard"
47
+ "data-testid": "profilecard",
48
+ role: "dialog",
49
+ "aria-labelledby": "profilecard-name-label"
48
50
  }, props.children);
49
51
  export const ProfilecardInternal = props => {
50
52
  const [openTime] = useState(getPageTime());
@@ -16,7 +16,8 @@ const renderName = (nickname, fullName, meta) => {
16
16
  const displayName = isNicknameRedundant ? fullName : `${fullName}${shownNickname}`;
17
17
  return /*#__PURE__*/React.createElement(FullNameLabel, {
18
18
  noMeta: !meta,
19
- "data-testid": "profilecard-name"
19
+ "data-testid": "profilecard-name",
20
+ id: "profilecard-name-label"
20
21
  }, displayName);
21
22
  };
22
23
  const disabledAccountDesc = (statusModifiedDate, disabledAccountMessage, status = 'closed') => {
@@ -66,7 +67,8 @@ const DisabledProfileCardDetails = props => {
66
67
  return /*#__PURE__*/React.createElement(DetailsGroup, null, /*#__PURE__*/React.createElement(FullNameLabel, {
67
68
  noMeta: true,
68
69
  isDisabledAccount: true,
69
- "data-testid": "profilecard-name"
70
+ "data-testid": "profilecard-name",
71
+ id: "profilecard-name-label"
70
72
  }, name), hasDisabledAccountLozenge && /*#__PURE__*/React.createElement(LozengeWrapper, null, /*#__PURE__*/React.createElement(Lozenge, {
71
73
  appearance: "default",
72
74
  isBold: true
@@ -31,7 +31,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
31
31
  actionSubjectId,
32
32
  attributes: {
33
33
  packageName: "@atlaskit/profilecard",
34
- packageVersion: "19.11.6",
34
+ packageVersion: "19.11.7",
35
35
  ...attributes,
36
36
  firedAt: Math.round(getPageTime())
37
37
  }
@@ -48,7 +48,7 @@ export var addHeaders = function addHeaders(headers) {
48
48
  headers.append('X-ExperimentalApi', 'teams-beta');
49
49
  headers.append('X-ExperimentalApi', 'team-members-beta');
50
50
  headers.append('atl-client-name', "@atlaskit/profilecard");
51
- headers.append('atl-client-version', "19.11.6");
51
+ headers.append('atl-client-version', "19.11.7");
52
52
  return headers;
53
53
  };
54
54
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -47,7 +47,9 @@ var useKudos = function useKudos(cloudId, userId, teamCentralBaseUrl, openKudosD
47
47
  };
48
48
  var Wrapper = function Wrapper(props) {
49
49
  return /*#__PURE__*/React.createElement(CardWrapper, {
50
- "data-testid": "profilecard"
50
+ "data-testid": "profilecard",
51
+ role: "dialog",
52
+ "aria-labelledby": "profilecard-name-label"
51
53
  }, props.children);
52
54
  };
53
55
  export var ProfilecardInternal = function ProfilecardInternal(props) {
@@ -18,7 +18,8 @@ var renderName = function renderName(nickname, fullName, meta) {
18
18
  var displayName = isNicknameRedundant ? fullName : "".concat(fullName).concat(shownNickname);
19
19
  return /*#__PURE__*/React.createElement(FullNameLabel, {
20
20
  noMeta: !meta,
21
- "data-testid": "profilecard-name"
21
+ "data-testid": "profilecard-name",
22
+ id: "profilecard-name-label"
22
23
  }, displayName);
23
24
  };
24
25
  var disabledAccountDesc = function disabledAccountDesc(statusModifiedDate, disabledAccountMessage) {
@@ -67,7 +68,8 @@ var DisabledProfileCardDetails = function DisabledProfileCardDetails(props) {
67
68
  return /*#__PURE__*/React.createElement(DetailsGroup, null, /*#__PURE__*/React.createElement(FullNameLabel, {
68
69
  noMeta: true,
69
70
  isDisabledAccount: true,
70
- "data-testid": "profilecard-name"
71
+ "data-testid": "profilecard-name",
72
+ id: "profilecard-name-label"
71
73
  }, name), hasDisabledAccountLozenge && /*#__PURE__*/React.createElement(LozengeWrapper, null, /*#__PURE__*/React.createElement(Lozenge, {
72
74
  appearance: "default",
73
75
  isBold: true
@@ -38,7 +38,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
38
38
  actionSubjectId: actionSubjectId,
39
39
  attributes: _objectSpread(_objectSpread({
40
40
  packageName: "@atlaskit/profilecard",
41
- packageVersion: "19.11.6"
41
+ packageVersion: "19.11.7"
42
42
  }, attributes), {}, {
43
43
  firedAt: Math.round(getPageTime())
44
44
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "19.11.6",
3
+ "version": "19.11.7",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"