@atlaskit/profilecard 24.3.0 → 24.3.2

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/afm-passionfruit/tsconfig.json +117 -0
  3. package/afm-volt/tsconfig.json +7 -4
  4. package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
  5. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  6. package/dist/cjs/components/User/OverflowProfileCardButtons.js +4 -1
  7. package/dist/cjs/components/User/ProfileCard.js +11 -5
  8. package/dist/cjs/messages.js +6 -0
  9. package/dist/cjs/util/analytics.js +1 -1
  10. package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
  11. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  12. package/dist/es2019/components/User/OverflowProfileCardButtons.js +4 -1
  13. package/dist/es2019/components/User/ProfileCard.js +11 -5
  14. package/dist/es2019/messages.js +6 -0
  15. package/dist/es2019/util/analytics.js +1 -1
  16. package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
  17. package/dist/esm/client/getTeamFromAGG.js +1 -1
  18. package/dist/esm/components/User/OverflowProfileCardButtons.js +4 -1
  19. package/dist/esm/components/User/ProfileCard.js +11 -5
  20. package/dist/esm/messages.js +6 -0
  21. package/dist/esm/util/analytics.js +1 -1
  22. package/dist/types/components/Agent/lazyAgentProfileCard.d.ts +0 -1
  23. package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +1 -1
  24. package/dist/types/components/Team/lazyTeamProfileCard.d.ts +0 -1
  25. package/dist/types/components/User/OverflowProfileCardButtons.d.ts +1 -0
  26. package/dist/types/components/User/ProfileCardResourced.d.ts +1 -1
  27. package/dist/types/components/User/lazyProfileCard.d.ts +0 -1
  28. package/dist/types/components/common/PopupTrigger.d.ts +1 -1
  29. package/dist/types/components/common/types.d.ts +0 -1
  30. package/dist/types/components/team-profile-card/main.d.ts +0 -1
  31. package/dist/types/messages.d.ts +5 -0
  32. package/dist/types/styled/Card.d.ts +3 -3
  33. package/dist/types/styled/TeamTrigger.d.ts +4 -4
  34. package/dist/types/styled/UserTrigger.d.ts +4 -4
  35. package/dist/types/util/analytics.d.ts +7 -7
  36. package/dist/types/util/useProfileInfo.d.ts +1 -1
  37. package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +0 -1
  38. package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +1 -1
  39. package/dist/types-ts4.5/components/Team/lazyTeamProfileCard.d.ts +0 -1
  40. package/dist/types-ts4.5/components/User/OverflowProfileCardButtons.d.ts +1 -0
  41. package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +1 -1
  42. package/dist/types-ts4.5/components/User/lazyProfileCard.d.ts +0 -1
  43. package/dist/types-ts4.5/components/common/PopupTrigger.d.ts +1 -1
  44. package/dist/types-ts4.5/components/common/types.d.ts +0 -1
  45. package/dist/types-ts4.5/components/team-profile-card/main.d.ts +0 -1
  46. package/dist/types-ts4.5/messages.d.ts +5 -0
  47. package/dist/types-ts4.5/styled/Card.d.ts +3 -3
  48. package/dist/types-ts4.5/styled/TeamTrigger.d.ts +4 -4
  49. package/dist/types-ts4.5/styled/UserTrigger.d.ts +4 -4
  50. package/dist/types-ts4.5/util/analytics.d.ts +7 -7
  51. package/dist/types-ts4.5/util/useProfileInfo.d.ts +1 -1
  52. package/package.json +9 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 24.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ddbbad68f52cd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ddbbad68f52cd) -
8
+ Actions button aria-label change to support screen reader to be more descriptive
9
+
10
+ ## 24.3.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 24.3.0
4
17
 
5
18
  ### Minor Changes
@@ -0,0 +1,117 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.passionfruit.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../passionfruit/tsDist/@atlaskit__profilecard/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
24
+ ],
25
+ "references": [
26
+ {
27
+ "path": "../../../analytics/analytics-next/afm-passionfruit/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../../uip/atlassian-context/afm-passionfruit/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../../design-system/avatar/afm-passionfruit/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../../design-system/avatar-group/afm-passionfruit/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../../design-system/button/afm-passionfruit/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../../design-system/css/afm-passionfruit/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../../../design-system/dropdown-menu/afm-passionfruit/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../../../design-system/empty-state/afm-passionfruit/tsconfig.json"
49
+ },
50
+ {
51
+ "path": "../../../measurement/feature-gate-js-client/afm-passionfruit/tsconfig.json"
52
+ },
53
+ {
54
+ "path": "../../../team-central/give-kudos/afm-passionfruit/tsconfig.json"
55
+ },
56
+ {
57
+ "path": "../../../design-system/heading/afm-passionfruit/tsconfig.json"
58
+ },
59
+ {
60
+ "path": "../../../design-system/icon/afm-passionfruit/tsconfig.json"
61
+ },
62
+ {
63
+ "path": "../../../design-system/link/afm-passionfruit/tsconfig.json"
64
+ },
65
+ {
66
+ "path": "../../../design-system/logo/afm-passionfruit/tsconfig.json"
67
+ },
68
+ {
69
+ "path": "../../../design-system/lozenge/afm-passionfruit/tsconfig.json"
70
+ },
71
+ {
72
+ "path": "../../../design-system/menu/afm-passionfruit/tsconfig.json"
73
+ },
74
+ {
75
+ "path": "../../../design-system/modal-dialog/afm-passionfruit/tsconfig.json"
76
+ },
77
+ {
78
+ "path": "../../people-teams-ui-public/afm-passionfruit/tsconfig.json"
79
+ },
80
+ {
81
+ "path": "../../../platform/feature-flags/afm-passionfruit/tsconfig.json"
82
+ },
83
+ {
84
+ "path": "../../../design-system/popup/afm-passionfruit/tsconfig.json"
85
+ },
86
+ {
87
+ "path": "../../../design-system/primitives/afm-passionfruit/tsconfig.json"
88
+ },
89
+ {
90
+ "path": "../../../ai-mate/rovo-agent-components/afm-passionfruit/tsconfig.json"
91
+ },
92
+ {
93
+ "path": "../../../ai-mate/rovo-triggers/afm-passionfruit/tsconfig.json"
94
+ },
95
+ {
96
+ "path": "../../../design-system/spinner/afm-passionfruit/tsconfig.json"
97
+ },
98
+ {
99
+ "path": "../../teams-app-config/afm-passionfruit/tsconfig.json"
100
+ },
101
+ {
102
+ "path": "../../teams-avatar/afm-passionfruit/tsconfig.json"
103
+ },
104
+ {
105
+ "path": "../../teams-public/afm-passionfruit/tsconfig.json"
106
+ },
107
+ {
108
+ "path": "../../../design-system/theme/afm-passionfruit/tsconfig.json"
109
+ },
110
+ {
111
+ "path": "../../../design-system/tokens/afm-passionfruit/tsconfig.json"
112
+ },
113
+ {
114
+ "path": "../../../design-system/tooltip/afm-passionfruit/tsconfig.json"
115
+ }
116
+ ]
117
+ }
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -44,9 +50,6 @@
44
50
  {
45
51
  "path": "../../../measurement/feature-gate-js-client/afm-volt/tsconfig.json"
46
52
  },
47
- {
48
- "path": "../../../design-system/focus-ring/afm-volt/tsconfig.json"
49
- },
50
53
  {
51
54
  "path": "../../../team-central/give-kudos/afm-volt/tsconfig.json"
52
55
  },
@@ -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.2.0");
14
+ headers.append('atl-client-version', "24.3.1");
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.2.0");
68
+ headers.append('atl-client-version', "24.3.1");
69
69
  return headers;
70
70
  };
71
71
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -14,6 +14,7 @@ var _reactIntlNext = require("react-intl-next");
14
14
  var _new = require("@atlaskit/button/new");
15
15
  var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
16
16
  var _showMoreHorizontalMore = _interopRequireDefault(require("@atlaskit/icon/core/migration/show-more-horizontal--more"));
17
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
18
  var _messages = _interopRequireDefault(require("../../messages"));
18
19
  var _Card = require("../../styled/Card");
19
20
  var _analytics = require("../../util/analytics");
@@ -57,7 +58,9 @@ var OverflowProfileCardButtons = exports.OverflowProfileCardButtons = function O
57
58
  type: "button"
58
59
  }, providedProps, {
59
60
  ref: triggerRef,
60
- label: intl.formatMessage(_messages.default.profileCardMoreIconLabel),
61
+ label: (0, _platformFeatureFlags.fg)('jfp_a11y_team_profile_card_actions_label') ? intl.formatMessage(_messages.default.profileCardMoreIconLabelWithName, {
62
+ fullName: props.fullName
63
+ }) : intl.formatMessage(_messages.default.profileCardMoreIconLabel),
61
64
  icon: _showMoreHorizontalMore.default
62
65
  }));
63
66
  }
@@ -131,16 +131,20 @@ var ProfilecardInternal = exports.ProfilecardInternal = function ProfilecardInte
131
131
  })), /*#__PURE__*/_react.default.createElement(_Card.CardContent, null, /*#__PURE__*/_react.default.createElement(_ProfileCardDetails.ProfileCardDetails, (0, _extends2.default)({}, props, {
132
132
  status: status,
133
133
  fireAnalyticsWithDuration: fireAnalyticsWithDuration
134
- })), realActions && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Card.ActionsFlexSpacer, null), /*#__PURE__*/_react.default.createElement(Actions, {
134
+ })), realActions && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Card.ActionsFlexSpacer, null), /*#__PURE__*/_react.default.createElement(Actions, (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('jfp_a11y_team_profile_card_actions_label') && {
135
+ fullName: fullName
136
+ }, {
137
+ fullName: fullName,
135
138
  actions: realActions,
136
139
  fireAnalyticsWithDuration: fireAnalyticsWithDuration,
137
140
  isTriggeredUsingKeyboard: props.isTriggeredUsingKeyboard
138
- })))));
141
+ }))))));
139
142
  };
140
143
  var Actions = function Actions(_ref) {
141
144
  var actions = _ref.actions,
142
145
  fireAnalyticsWithDuration = _ref.fireAnalyticsWithDuration,
143
- isTriggeredUsingKeyboard = _ref.isTriggeredUsingKeyboard;
146
+ isTriggeredUsingKeyboard = _ref.isTriggeredUsingKeyboard,
147
+ fullName = _ref.fullName;
144
148
  var onActionClick = (0, _react.useCallback)(function (action, args, event, index) {
145
149
  fireAnalyticsWithDuration(function (duration) {
146
150
  return (0, _analytics.actionClicked)('user', {
@@ -185,13 +189,15 @@ var Actions = function Actions(_ref) {
185
189
  }, button);
186
190
  }
187
191
  return button;
188
- }), overflowActions && /*#__PURE__*/_react.default.createElement(_OverflowProfileCardButtons.OverflowProfileCardButtons, {
192
+ }), overflowActions && /*#__PURE__*/_react.default.createElement(_OverflowProfileCardButtons.OverflowProfileCardButtons, (0, _extends2.default)({
189
193
  actions: overflowActions,
190
194
  fireAnalyticsWithDuration: fireAnalyticsWithDuration,
191
195
  onItemClick: function onItemClick(action, args, event, index) {
192
196
  return onActionClick(action, args, event, index + _OverflowProfileCardButtons.ACTION_OVERFLOW_THRESHOLD);
193
197
  }
194
- }));
198
+ }, (0, _platformFeatureFlags.fg)('jfp_a11y_team_profile_card_actions_label') && {
199
+ fullName: fullName
200
+ })));
195
201
  };
196
202
  var LoadingView = function LoadingView(_ref2) {
197
203
  var fireAnalyticsWithDuration = _ref2.fireAnalyticsWithDuration;
@@ -166,11 +166,17 @@ var messages = (0, _reactIntlNext.defineMessages)({
166
166
  defaultMessage: 'Give kudos',
167
167
  description: 'Title for the button on the profile card for a user to give a kudos'
168
168
  },
169
+ // Remove this as part of the FG Cleanup for jfp_a11y_team_profile_card_actions_label
169
170
  profileCardMoreIconLabel: {
170
171
  id: 'pt.profile-card.more-icon-label',
171
172
  defaultMessage: 'More',
172
173
  description: 'Label for the meatballs icon on the profile card, which when clicked will provide more options'
173
174
  },
175
+ profileCardMoreIconLabelWithName: {
176
+ id: 'pt.profile-card.more-icon-label-with-name',
177
+ defaultMessage: 'More actions for {fullName}',
178
+ description: 'Label for the meatballs icon on the profile card, which when clicked will provide more options'
179
+ },
174
180
  profileCardMoreReportingLinesLabel: {
175
181
  id: 'pt.user-profile-card.reporting-lines.more-icon-label',
176
182
  defaultMessage: '+{count} more {count, plural, one {profile} other {profiles}}',
@@ -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.2.0"
48
+ packageVersion: "24.3.1"
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.2.0");
9
+ headers.append('atl-client-version', "24.3.1");
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.2.0");
77
+ headers.append('atl-client-version', "24.3.1");
78
78
  return headers;
79
79
  };
80
80
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -4,6 +4,7 @@ import { useIntl } from 'react-intl-next';
4
4
  import { IconButton } from '@atlaskit/button/new';
5
5
  import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
6
6
  import MoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--more';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import messages from '../../messages';
8
9
  import { OverflowActionButtonsWrapper } from '../../styled/Card';
9
10
  import { moreActionsClicked } from '../../util/analytics';
@@ -45,7 +46,9 @@ export const OverflowProfileCardButtons = props => {
45
46
  type: "button"
46
47
  }, providedProps, {
47
48
  ref: triggerRef,
48
- label: intl.formatMessage(messages.profileCardMoreIconLabel),
49
+ label: fg('jfp_a11y_team_profile_card_actions_label') ? intl.formatMessage(messages.profileCardMoreIconLabelWithName, {
50
+ fullName: props.fullName
51
+ }) : intl.formatMessage(messages.profileCardMoreIconLabel),
49
52
  icon: MoreIcon
50
53
  }));
51
54
  }
@@ -119,16 +119,20 @@ export const ProfilecardInternal = props => {
119
119
  })), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(ProfileCardDetails, _extends({}, props, {
120
120
  status: status,
121
121
  fireAnalyticsWithDuration: fireAnalyticsWithDuration
122
- })), realActions && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ActionsFlexSpacer, null), /*#__PURE__*/React.createElement(Actions, {
122
+ })), realActions && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ActionsFlexSpacer, null), /*#__PURE__*/React.createElement(Actions, _extends({}, fg('jfp_a11y_team_profile_card_actions_label') && {
123
+ fullName
124
+ }, {
125
+ fullName: fullName,
123
126
  actions: realActions,
124
127
  fireAnalyticsWithDuration: fireAnalyticsWithDuration,
125
128
  isTriggeredUsingKeyboard: props.isTriggeredUsingKeyboard
126
- })))));
129
+ }))))));
127
130
  };
128
131
  const Actions = ({
129
132
  actions,
130
133
  fireAnalyticsWithDuration,
131
- isTriggeredUsingKeyboard
134
+ isTriggeredUsingKeyboard,
135
+ fullName
132
136
  }) => {
133
137
  const onActionClick = useCallback((action, args, event, index) => {
134
138
  fireAnalyticsWithDuration(duration => actionClicked('user', {
@@ -167,11 +171,13 @@ const Actions = ({
167
171
  }, button);
168
172
  }
169
173
  return button;
170
- }), overflowActions && /*#__PURE__*/React.createElement(OverflowProfileCardButtons, {
174
+ }), overflowActions && /*#__PURE__*/React.createElement(OverflowProfileCardButtons, _extends({
171
175
  actions: overflowActions,
172
176
  fireAnalyticsWithDuration: fireAnalyticsWithDuration,
173
177
  onItemClick: (action, args, event, index) => onActionClick(action, args, event, index + ACTION_OVERFLOW_THRESHOLD)
174
- }));
178
+ }, fg('jfp_a11y_team_profile_card_actions_label') && {
179
+ fullName
180
+ })));
175
181
  };
176
182
  const LoadingView = ({
177
183
  fireAnalyticsWithDuration
@@ -160,11 +160,17 @@ const messages = defineMessages({
160
160
  defaultMessage: 'Give kudos',
161
161
  description: 'Title for the button on the profile card for a user to give a kudos'
162
162
  },
163
+ // Remove this as part of the FG Cleanup for jfp_a11y_team_profile_card_actions_label
163
164
  profileCardMoreIconLabel: {
164
165
  id: 'pt.profile-card.more-icon-label',
165
166
  defaultMessage: 'More',
166
167
  description: 'Label for the meatballs icon on the profile card, which when clicked will provide more options'
167
168
  },
169
+ profileCardMoreIconLabelWithName: {
170
+ id: 'pt.profile-card.more-icon-label-with-name',
171
+ defaultMessage: 'More actions for {fullName}',
172
+ description: 'Label for the meatballs icon on the profile card, which when clicked will provide more options'
173
+ },
168
174
  profileCardMoreReportingLinesLabel: {
169
175
  id: 'pt.user-profile-card.reporting-lines.more-icon-label',
170
176
  defaultMessage: '+{count} more {count, plural, one {profile} other {profiles}}',
@@ -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.2.0",
35
+ packageVersion: "24.3.1",
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.2.0");
7
+ headers.append('atl-client-version', "24.3.1");
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.2.0");
59
+ headers.append('atl-client-version', "24.3.1");
60
60
  return headers;
61
61
  };
62
62
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -7,6 +7,7 @@ import { useIntl } from 'react-intl-next';
7
7
  import { IconButton } from '@atlaskit/button/new';
8
8
  import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
9
9
  import MoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--more';
10
+ import { fg } from '@atlaskit/platform-feature-flags';
10
11
  import messages from '../../messages';
11
12
  import { OverflowActionButtonsWrapper } from '../../styled/Card';
12
13
  import { moreActionsClicked } from '../../util/analytics';
@@ -48,7 +49,9 @@ export var OverflowProfileCardButtons = function OverflowProfileCardButtons(prop
48
49
  type: "button"
49
50
  }, providedProps, {
50
51
  ref: triggerRef,
51
- label: intl.formatMessage(messages.profileCardMoreIconLabel),
52
+ label: fg('jfp_a11y_team_profile_card_actions_label') ? intl.formatMessage(messages.profileCardMoreIconLabelWithName, {
53
+ fullName: props.fullName
54
+ }) : intl.formatMessage(messages.profileCardMoreIconLabel),
52
55
  icon: MoreIcon
53
56
  }));
54
57
  }
@@ -122,16 +122,20 @@ export var ProfilecardInternal = function ProfilecardInternal(props) {
122
122
  })), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(ProfileCardDetails, _extends({}, props, {
123
123
  status: status,
124
124
  fireAnalyticsWithDuration: fireAnalyticsWithDuration
125
- })), realActions && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ActionsFlexSpacer, null), /*#__PURE__*/React.createElement(Actions, {
125
+ })), realActions && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ActionsFlexSpacer, null), /*#__PURE__*/React.createElement(Actions, _extends({}, fg('jfp_a11y_team_profile_card_actions_label') && {
126
+ fullName: fullName
127
+ }, {
128
+ fullName: fullName,
126
129
  actions: realActions,
127
130
  fireAnalyticsWithDuration: fireAnalyticsWithDuration,
128
131
  isTriggeredUsingKeyboard: props.isTriggeredUsingKeyboard
129
- })))));
132
+ }))))));
130
133
  };
131
134
  var Actions = function Actions(_ref) {
132
135
  var actions = _ref.actions,
133
136
  fireAnalyticsWithDuration = _ref.fireAnalyticsWithDuration,
134
- isTriggeredUsingKeyboard = _ref.isTriggeredUsingKeyboard;
137
+ isTriggeredUsingKeyboard = _ref.isTriggeredUsingKeyboard,
138
+ fullName = _ref.fullName;
135
139
  var onActionClick = useCallback(function (action, args, event, index) {
136
140
  fireAnalyticsWithDuration(function (duration) {
137
141
  return actionClicked('user', {
@@ -176,13 +180,15 @@ var Actions = function Actions(_ref) {
176
180
  }, button);
177
181
  }
178
182
  return button;
179
- }), overflowActions && /*#__PURE__*/React.createElement(OverflowProfileCardButtons, {
183
+ }), overflowActions && /*#__PURE__*/React.createElement(OverflowProfileCardButtons, _extends({
180
184
  actions: overflowActions,
181
185
  fireAnalyticsWithDuration: fireAnalyticsWithDuration,
182
186
  onItemClick: function onItemClick(action, args, event, index) {
183
187
  return onActionClick(action, args, event, index + ACTION_OVERFLOW_THRESHOLD);
184
188
  }
185
- }));
189
+ }, fg('jfp_a11y_team_profile_card_actions_label') && {
190
+ fullName: fullName
191
+ })));
186
192
  };
187
193
  var LoadingView = function LoadingView(_ref2) {
188
194
  var fireAnalyticsWithDuration = _ref2.fireAnalyticsWithDuration;
@@ -160,11 +160,17 @@ var messages = defineMessages({
160
160
  defaultMessage: 'Give kudos',
161
161
  description: 'Title for the button on the profile card for a user to give a kudos'
162
162
  },
163
+ // Remove this as part of the FG Cleanup for jfp_a11y_team_profile_card_actions_label
163
164
  profileCardMoreIconLabel: {
164
165
  id: 'pt.profile-card.more-icon-label',
165
166
  defaultMessage: 'More',
166
167
  description: 'Label for the meatballs icon on the profile card, which when clicked will provide more options'
167
168
  },
169
+ profileCardMoreIconLabelWithName: {
170
+ id: 'pt.profile-card.more-icon-label-with-name',
171
+ defaultMessage: 'More actions for {fullName}',
172
+ description: 'Label for the meatballs icon on the profile card, which when clicked will provide more options'
173
+ },
168
174
  profileCardMoreReportingLinesLabel: {
169
175
  id: 'pt.user-profile-card.reporting-lines.more-icon-label',
170
176
  defaultMessage: '+{count} more {count, plural, one {profile} other {profiles}}',
@@ -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.2.0"
42
+ packageVersion: "24.3.1"
43
43
  }, attributes), {}, {
44
44
  firedAt: Math.round(getPageTime())
45
45
  })
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, }: import("../../types").AgentProfileCardProps) => import("react").JSX.Element>;
@@ -49,6 +49,6 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
49
49
  render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
50
50
  }
51
51
  declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, "intl"> & {
52
- forwardedRef?: React.Ref<any> | undefined;
52
+ forwardedRef?: React.Ref<any>;
53
53
  }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
54
54
  export default _default;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const TeamProfileCardLazy: import("react").LazyExoticComponent<(props: import("../../types").TeamProfilecardProps) => import("react").JSX.Element | null>;
@@ -3,6 +3,7 @@ import { type AnalyticsWithDurationProps, type ProfileCardAction } from '../../t
3
3
  type OverflowButtonsProps = {
4
4
  actions: ProfileCardAction[];
5
5
  onItemClick: (action: ProfileCardAction, args: any, event: React.MouseEvent | React.KeyboardEvent, index: number) => void;
6
+ fullName?: string;
6
7
  } & AnalyticsWithDurationProps;
7
8
  export declare const ACTION_OVERFLOW_THRESHOLD = 2;
8
9
  export declare const OverflowProfileCardButtons: (props: OverflowButtonsProps) => React.JSX.Element;
@@ -18,7 +18,7 @@ declare class ProfileCardResourced extends React.PureComponent<ProfileCardResour
18
18
  render(): React.ReactNode;
19
19
  }
20
20
  export declare const ProfileCardResourcedInternal: typeof ProfileCardResourced;
21
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
21
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
22
22
  cloudId?: string | undefined;
23
23
  resourceClient?: import("../../types").ProfileClient | undefined;
24
24
  actions?: ProfileCardAction[] | undefined;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ProfileCardLazy: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("../..").ProfilecardProps & import("../../types").AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & import("react").RefAttributes<any>>>;
@@ -4,4 +4,4 @@ import { type ProfileCardTriggerProps } from './types';
4
4
  export declare const PopupTrigger: <T>(props: Partial<TriggerProps> & {
5
5
  showProfilecard: () => void;
6
6
  hideProfilecard: () => void;
7
- } & Pick<ProfileCardTriggerProps<T>, 'ariaLabelledBy' | 'trigger' | 'children'> & React.RefAttributes<HTMLSpanElement>) => JSX.Element;
7
+ } & Pick<ProfileCardTriggerProps<T>, "ariaLabelledBy" | "trigger" | "children"> & React.RefAttributes<HTMLSpanElement>) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
2
  import { type PopupProps } from '@atlaskit/popup';
4
3
  import { type ProfileCardErrorType, type ProfileType } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type AvatarProps } from '@atlaskit/avatar-group';
3
2
  import { type TeamActionsProps } from './team-actions';
4
3
  export type TeamProfileCardProps = {
@@ -164,6 +164,11 @@ declare const messages: {
164
164
  defaultMessage: string;
165
165
  description: string;
166
166
  };
167
+ profileCardMoreIconLabelWithName: {
168
+ id: string;
169
+ defaultMessage: string;
170
+ description: string;
171
+ };
167
172
  profileCardMoreReportingLinesLabel: {
168
173
  id: string;
169
174
  defaultMessage: string;
@@ -13,11 +13,11 @@ export declare const AnimatedKudosButton: ({ children }: {
13
13
  }) => React.JSX.Element;
14
14
  export declare const ActionButtonGroup: ({ children, testId, }: {
15
15
  children: ReactNode;
16
- testId?: string | undefined;
16
+ testId?: string;
17
17
  }) => React.JSX.Element;
18
18
  export declare const OverflowActionButtonsWrapper: ({ children, testId, }: {
19
19
  children: ReactNode;
20
- testId?: string | undefined;
20
+ testId?: string;
21
21
  }) => React.JSX.Element;
22
22
  export declare const CardContent: ({ children }: {
23
23
  children: ReactNode;
@@ -48,7 +48,7 @@ interface CardContainerProps {
48
48
  export declare const CardContainer: ({ children, isDisabledUser, withoutElevation, }: CardContainerProps) => React.JSX.Element;
49
49
  export declare const DetailsLabel: ({ children, extraTopSpace, }: {
50
50
  children: ReactNode;
51
- extraTopSpace?: boolean | undefined;
51
+ extraTopSpace?: boolean;
52
52
  }) => React.JSX.Element;
53
53
  export declare const DetailsLabelIcon: ({ children }: {
54
54
  children: ReactNode;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  export declare const CardTriggerWrapper: () => React.JSX.Element;
3
3
  export declare const CardWrapper: ({ testId, children, }: {
4
- testId?: string | undefined;
4
+ testId?: string;
5
5
  children: React.ReactNode;
6
6
  }) => React.JSX.Element;
7
7
  export declare const CardHeader: ({ image, isLoading, label, }: {
8
- image?: string | undefined;
9
- isLoading?: boolean | undefined;
10
- label?: string | undefined;
8
+ image?: string;
9
+ isLoading?: boolean;
10
+ label?: string;
11
11
  }) => React.JSX.Element;
12
12
  export declare const CardContent: (props: {
13
13
  children: React.ReactNode;
@@ -1,11 +1,11 @@
1
1
  import React, { type ReactNode } from 'react';
2
2
  export declare const CardWrapper: ({ children, role, testId, labelledBy, }: {
3
3
  children: ReactNode;
4
- role?: string | undefined;
5
- testId?: string | undefined;
6
- labelledBy?: string | undefined;
4
+ role?: string;
5
+ testId?: string;
6
+ labelledBy?: string;
7
7
  }) => React.JSX.Element;
8
8
  export declare const SpinnerContainer: ({ children, testId, }: {
9
9
  children: ReactNode;
10
- testId?: string | undefined;
10
+ testId?: string;
11
11
  }) => React.JSX.Element;
@@ -12,16 +12,16 @@ interface AnalyticsEvent {
12
12
  source?: string;
13
13
  }
14
14
  export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
15
- export declare const cardTriggered: (type: ProfileType, method: 'hover' | 'click', teamId?: string) => AnalyticsEventPayload;
16
- export declare const teamRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: {
15
+ export declare const cardTriggered: (type: ProfileType, method: "hover" | "click", teamId?: string) => AnalyticsEventPayload;
16
+ export declare const teamRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
17
17
  duration: number;
18
18
  } & GenericAttributes) => AnalyticsEventPayload;
19
- export declare const userRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: {
19
+ export declare const userRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
20
20
  duration: number;
21
21
  } & GenericAttributes) => AnalyticsEventPayload;
22
- export declare const profileCardRendered: (type: ProfileType, actionSubjectId: 'spinner' | 'content' | 'error' | 'errorBoundary', attributes?: {
22
+ export declare const profileCardRendered: (type: ProfileType, actionSubjectId: "spinner" | "content" | "error" | "errorBoundary", attributes?: {
23
23
  duration?: number;
24
- errorType?: 'default' | 'NotFound';
24
+ errorType?: "default" | "NotFound";
25
25
  hasRetry?: boolean;
26
26
  numActions?: number;
27
27
  memberCount?: number;
@@ -37,7 +37,7 @@ export declare const actionClicked: (type: ProfileType, attributes: {
37
37
  actionId: string;
38
38
  }) => AnalyticsEventPayload;
39
39
  export declare const reportingLinesClicked: (attributes: {
40
- userType: 'manager' | 'direct-report';
40
+ userType: "manager" | "direct-report";
41
41
  duration: number;
42
42
  }) => AnalyticsEventPayload;
43
43
  export declare const moreActionsClicked: (type: ProfileType, attributes: {
@@ -57,7 +57,7 @@ export declare const moreMembersClicked: (attributes: {
57
57
  export declare const errorRetryClicked: (attributes: {
58
58
  duration: number;
59
59
  }) => AnalyticsEventPayload;
60
- export declare const agentRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', actionSubjectId?: string, attributes?: {
60
+ export declare const agentRequestAnalytics: (action: "triggered" | "succeeded" | "failed", actionSubjectId?: string, attributes?: {
61
61
  duration: number;
62
62
  } & GenericAttributes) => AnalyticsEventPayload;
63
63
  export {};
@@ -1,5 +1,5 @@
1
1
  export declare const useProfileInfo: <T>({ fetchUserProfile, }: {
2
- fetchUserProfile?: (() => Promise<T>) | undefined;
2
+ fetchUserProfile?: () => Promise<T>;
3
3
  }) => {
4
4
  profileData: T | undefined;
5
5
  isLoading: boolean;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, }: import("../../types").AgentProfileCardProps) => import("react").JSX.Element>;
@@ -49,6 +49,6 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
49
49
  render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
50
50
  }
51
51
  declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, "intl"> & {
52
- forwardedRef?: React.Ref<any> | undefined;
52
+ forwardedRef?: React.Ref<any>;
53
53
  }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
54
54
  export default _default;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const TeamProfileCardLazy: import("react").LazyExoticComponent<(props: import("../../types").TeamProfilecardProps) => import("react").JSX.Element | null>;
@@ -3,6 +3,7 @@ import { type AnalyticsWithDurationProps, type ProfileCardAction } from '../../t
3
3
  type OverflowButtonsProps = {
4
4
  actions: ProfileCardAction[];
5
5
  onItemClick: (action: ProfileCardAction, args: any, event: React.MouseEvent | React.KeyboardEvent, index: number) => void;
6
+ fullName?: string;
6
7
  } & AnalyticsWithDurationProps;
7
8
  export declare const ACTION_OVERFLOW_THRESHOLD = 2;
8
9
  export declare const OverflowProfileCardButtons: (props: OverflowButtonsProps) => React.JSX.Element;
@@ -18,7 +18,7 @@ declare class ProfileCardResourced extends React.PureComponent<ProfileCardResour
18
18
  render(): React.ReactNode;
19
19
  }
20
20
  export declare const ProfileCardResourcedInternal: typeof ProfileCardResourced;
21
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
21
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
22
22
  cloudId?: string | undefined;
23
23
  resourceClient?: import("../../types").ProfileClient | undefined;
24
24
  actions?: ProfileCardAction[] | undefined;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ProfileCardLazy: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("../..").ProfilecardProps & import("../../types").AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & import("react").RefAttributes<any>>>;
@@ -4,4 +4,4 @@ import { type ProfileCardTriggerProps } from './types';
4
4
  export declare const PopupTrigger: <T>(props: Partial<TriggerProps> & {
5
5
  showProfilecard: () => void;
6
6
  hideProfilecard: () => void;
7
- } & Pick<ProfileCardTriggerProps<T>, 'ariaLabelledBy' | 'trigger' | 'children'> & React.RefAttributes<HTMLSpanElement>) => JSX.Element;
7
+ } & Pick<ProfileCardTriggerProps<T>, "ariaLabelledBy" | "trigger" | "children"> & React.RefAttributes<HTMLSpanElement>) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
2
  import { type PopupProps } from '@atlaskit/popup';
4
3
  import { type ProfileCardErrorType, type ProfileType } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type AvatarProps } from '@atlaskit/avatar-group';
3
2
  import { type TeamActionsProps } from './team-actions';
4
3
  export type TeamProfileCardProps = {
@@ -164,6 +164,11 @@ declare const messages: {
164
164
  defaultMessage: string;
165
165
  description: string;
166
166
  };
167
+ profileCardMoreIconLabelWithName: {
168
+ id: string;
169
+ defaultMessage: string;
170
+ description: string;
171
+ };
167
172
  profileCardMoreReportingLinesLabel: {
168
173
  id: string;
169
174
  defaultMessage: string;
@@ -13,11 +13,11 @@ export declare const AnimatedKudosButton: ({ children }: {
13
13
  }) => React.JSX.Element;
14
14
  export declare const ActionButtonGroup: ({ children, testId, }: {
15
15
  children: ReactNode;
16
- testId?: string | undefined;
16
+ testId?: string;
17
17
  }) => React.JSX.Element;
18
18
  export declare const OverflowActionButtonsWrapper: ({ children, testId, }: {
19
19
  children: ReactNode;
20
- testId?: string | undefined;
20
+ testId?: string;
21
21
  }) => React.JSX.Element;
22
22
  export declare const CardContent: ({ children }: {
23
23
  children: ReactNode;
@@ -48,7 +48,7 @@ interface CardContainerProps {
48
48
  export declare const CardContainer: ({ children, isDisabledUser, withoutElevation, }: CardContainerProps) => React.JSX.Element;
49
49
  export declare const DetailsLabel: ({ children, extraTopSpace, }: {
50
50
  children: ReactNode;
51
- extraTopSpace?: boolean | undefined;
51
+ extraTopSpace?: boolean;
52
52
  }) => React.JSX.Element;
53
53
  export declare const DetailsLabelIcon: ({ children }: {
54
54
  children: ReactNode;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  export declare const CardTriggerWrapper: () => React.JSX.Element;
3
3
  export declare const CardWrapper: ({ testId, children, }: {
4
- testId?: string | undefined;
4
+ testId?: string;
5
5
  children: React.ReactNode;
6
6
  }) => React.JSX.Element;
7
7
  export declare const CardHeader: ({ image, isLoading, label, }: {
8
- image?: string | undefined;
9
- isLoading?: boolean | undefined;
10
- label?: string | undefined;
8
+ image?: string;
9
+ isLoading?: boolean;
10
+ label?: string;
11
11
  }) => React.JSX.Element;
12
12
  export declare const CardContent: (props: {
13
13
  children: React.ReactNode;
@@ -1,11 +1,11 @@
1
1
  import React, { type ReactNode } from 'react';
2
2
  export declare const CardWrapper: ({ children, role, testId, labelledBy, }: {
3
3
  children: ReactNode;
4
- role?: string | undefined;
5
- testId?: string | undefined;
6
- labelledBy?: string | undefined;
4
+ role?: string;
5
+ testId?: string;
6
+ labelledBy?: string;
7
7
  }) => React.JSX.Element;
8
8
  export declare const SpinnerContainer: ({ children, testId, }: {
9
9
  children: ReactNode;
10
- testId?: string | undefined;
10
+ testId?: string;
11
11
  }) => React.JSX.Element;
@@ -12,16 +12,16 @@ interface AnalyticsEvent {
12
12
  source?: string;
13
13
  }
14
14
  export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
15
- export declare const cardTriggered: (type: ProfileType, method: 'hover' | 'click', teamId?: string) => AnalyticsEventPayload;
16
- export declare const teamRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: {
15
+ export declare const cardTriggered: (type: ProfileType, method: "hover" | "click", teamId?: string) => AnalyticsEventPayload;
16
+ export declare const teamRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
17
17
  duration: number;
18
18
  } & GenericAttributes) => AnalyticsEventPayload;
19
- export declare const userRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: {
19
+ export declare const userRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
20
20
  duration: number;
21
21
  } & GenericAttributes) => AnalyticsEventPayload;
22
- export declare const profileCardRendered: (type: ProfileType, actionSubjectId: 'spinner' | 'content' | 'error' | 'errorBoundary', attributes?: {
22
+ export declare const profileCardRendered: (type: ProfileType, actionSubjectId: "spinner" | "content" | "error" | "errorBoundary", attributes?: {
23
23
  duration?: number;
24
- errorType?: 'default' | 'NotFound';
24
+ errorType?: "default" | "NotFound";
25
25
  hasRetry?: boolean;
26
26
  numActions?: number;
27
27
  memberCount?: number;
@@ -37,7 +37,7 @@ export declare const actionClicked: (type: ProfileType, attributes: {
37
37
  actionId: string;
38
38
  }) => AnalyticsEventPayload;
39
39
  export declare const reportingLinesClicked: (attributes: {
40
- userType: 'manager' | 'direct-report';
40
+ userType: "manager" | "direct-report";
41
41
  duration: number;
42
42
  }) => AnalyticsEventPayload;
43
43
  export declare const moreActionsClicked: (type: ProfileType, attributes: {
@@ -57,7 +57,7 @@ export declare const moreMembersClicked: (attributes: {
57
57
  export declare const errorRetryClicked: (attributes: {
58
58
  duration: number;
59
59
  }) => AnalyticsEventPayload;
60
- export declare const agentRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', actionSubjectId?: string, attributes?: {
60
+ export declare const agentRequestAnalytics: (action: "triggered" | "succeeded" | "failed", actionSubjectId?: string, attributes?: {
61
61
  duration: number;
62
62
  } & GenericAttributes) => AnalyticsEventPayload;
63
63
  export {};
@@ -1,5 +1,5 @@
1
1
  export declare const useProfileInfo: <T>({ fetchUserProfile, }: {
2
- fetchUserProfile?: (() => Promise<T>) | undefined;
2
+ fetchUserProfile?: () => Promise<T>;
3
3
  }) => {
4
4
  profileData: T | undefined;
5
5
  isLoading: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "24.3.0",
3
+ "version": "24.3.2",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -53,7 +53,7 @@
53
53
  "@atlaskit/analytics-next": "^11.1.0",
54
54
  "@atlaskit/atlassian-context": "^0.4.0",
55
55
  "@atlaskit/avatar": "^25.1.0",
56
- "@atlaskit/avatar-group": "^12.1.0",
56
+ "@atlaskit/avatar-group": "^12.2.0",
57
57
  "@atlaskit/button": "^23.3.0",
58
58
  "@atlaskit/css": "^0.12.0",
59
59
  "@atlaskit/dropdown-menu": "^16.3.0",
@@ -61,22 +61,22 @@
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.10.0",
64
+ "@atlaskit/icon": "^27.11.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.1.0",
68
+ "@atlaskit/menu": "^8.2.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",
72
72
  "@atlaskit/popup": "^4.3.0",
73
73
  "@atlaskit/primitives": "^14.11.0",
74
74
  "@atlaskit/rovo-agent-components": "^3.1.0",
75
- "@atlaskit/rovo-triggers": "^3.1.0",
75
+ "@atlaskit/rovo-triggers": "^3.2.0",
76
76
  "@atlaskit/spinner": "^19.0.0",
77
77
  "@atlaskit/teams-app-config": "^1.11.0",
78
78
  "@atlaskit/teams-avatar": "^2.3.0",
79
- "@atlaskit/teams-public": "^0.52.0",
79
+ "@atlaskit/teams-public": "^0.53.0",
80
80
  "@atlaskit/theme": "^19.0.0",
81
81
  "@atlaskit/tokens": "^6.0.0",
82
82
  "@atlaskit/tooltip": "^20.4.0",
@@ -176,6 +176,9 @@
176
176
  },
177
177
  "agent_studio_fe_permissions_settings_m1": {
178
178
  "type": "boolean"
179
+ },
180
+ "jfp_a11y_team_profile_card_actions_label": {
181
+ "type": "boolean"
179
182
  }
180
183
  },
181
184
  "sideEffects": [