@atlaskit/profilecard 24.27.1 → 24.27.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 24.27.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`613a14991e82d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/613a14991e82d) -
8
+ Add translated message for static values
9
+
3
10
  ## 24.27.1
4
11
 
5
12
  ### Patch Changes
@@ -56,6 +56,6 @@ var ErrorMessage = function ErrorMessage(props) {
56
56
  label: "icon error"
57
57
  }), errorContent(), reload && /*#__PURE__*/_react.default.createElement(_new.default, {
58
58
  onClick: reload
59
- }, "Try again"));
59
+ }, (0, _platformFeatureFlags.fg)('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.errorTryAgain) : 'Try again'));
60
60
  };
61
61
  var _default = exports.default = ErrorMessage;
@@ -309,7 +309,7 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
309
309
  viewProfileOnClick = _ref5.viewProfileOnClick,
310
310
  isTriggeredByKeyboard = _ref5.isTriggeredByKeyboard;
311
311
  var newTeamProfileEnabled = _featureGateJsClient.default.getExperimentValue('new_team_profile', 'isEnabled', false);
312
- var isTeamArchived = team.state === 'DISBANDED' && (0, _platformFeatureFlags.fg)('legion-enable-archive-teams') && newTeamProfileEnabled;
312
+ var isTeamArchived = team.state === 'DISBANDED' && newTeamProfileEnabled;
313
313
  var allActions = [{
314
314
  label: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.teamViewProfile),
315
315
  link: viewProfileLink,
@@ -207,6 +207,11 @@ var messages = (0, _reactIntlNext.defineMessages)({
207
207
  defaultMessage: 'Try again and we’ll give it another shot',
208
208
  description: 'Suggestion message shown to the user to retry loading the profile card'
209
209
  },
210
+ errorTryAgain: {
211
+ id: 'pt.profile-card.error.try-again-button',
212
+ defaultMessage: 'Try again',
213
+ description: 'Label for the button to retry loading the profile card after an error'
214
+ },
210
215
  serviceAccountLabel: {
211
216
  id: 'pt.profile-card.service-account.label',
212
217
  defaultMessage: 'SERVICE ACCOUNT',
@@ -47,6 +47,6 @@ const ErrorMessage = props => {
47
47
  label: "icon error"
48
48
  }), errorContent(), reload && /*#__PURE__*/React.createElement(Button, {
49
49
  onClick: reload
50
- }, "Try again"));
50
+ }, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.errorTryAgain) : 'Try again'));
51
51
  };
52
52
  export default ErrorMessage;
@@ -273,7 +273,7 @@ const TeamProfilecardContent = ({
273
273
  isTriggeredByKeyboard
274
274
  }) => {
275
275
  const newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
276
- const isTeamArchived = team.state === 'DISBANDED' && fg('legion-enable-archive-teams') && newTeamProfileEnabled;
276
+ const isTeamArchived = team.state === 'DISBANDED' && newTeamProfileEnabled;
277
277
  const allActions = [{
278
278
  label: /*#__PURE__*/React.createElement(FormattedMessage, messages.teamViewProfile),
279
279
  link: viewProfileLink,
@@ -201,6 +201,11 @@ const messages = defineMessages({
201
201
  defaultMessage: 'Try again and we’ll give it another shot',
202
202
  description: 'Suggestion message shown to the user to retry loading the profile card'
203
203
  },
204
+ errorTryAgain: {
205
+ id: 'pt.profile-card.error.try-again-button',
206
+ defaultMessage: 'Try again',
207
+ description: 'Label for the button to retry loading the profile card after an error'
208
+ },
204
209
  serviceAccountLabel: {
205
210
  id: 'pt.profile-card.service-account.label',
206
211
  defaultMessage: 'SERVICE ACCOUNT',
@@ -47,6 +47,6 @@ var ErrorMessage = function ErrorMessage(props) {
47
47
  label: "icon error"
48
48
  }), errorContent(), reload && /*#__PURE__*/React.createElement(Button, {
49
49
  onClick: reload
50
- }, "Try again"));
50
+ }, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.errorTryAgain) : 'Try again'));
51
51
  };
52
52
  export default ErrorMessage;
@@ -300,7 +300,7 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
300
300
  viewProfileOnClick = _ref5.viewProfileOnClick,
301
301
  isTriggeredByKeyboard = _ref5.isTriggeredByKeyboard;
302
302
  var newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
303
- var isTeamArchived = team.state === 'DISBANDED' && fg('legion-enable-archive-teams') && newTeamProfileEnabled;
303
+ var isTeamArchived = team.state === 'DISBANDED' && newTeamProfileEnabled;
304
304
  var allActions = [{
305
305
  label: /*#__PURE__*/React.createElement(FormattedMessage, messages.teamViewProfile),
306
306
  link: viewProfileLink,
@@ -201,6 +201,11 @@ var messages = defineMessages({
201
201
  defaultMessage: 'Try again and we’ll give it another shot',
202
202
  description: 'Suggestion message shown to the user to retry loading the profile card'
203
203
  },
204
+ errorTryAgain: {
205
+ id: 'pt.profile-card.error.try-again-button',
206
+ defaultMessage: 'Try again',
207
+ description: 'Label for the button to retry loading the profile card after an error'
208
+ },
204
209
  serviceAccountLabel: {
205
210
  id: 'pt.profile-card.service-account.label',
206
211
  defaultMessage: 'SERVICE ACCOUNT',
@@ -199,6 +199,11 @@ declare const messages: {
199
199
  defaultMessage: string;
200
200
  description: string;
201
201
  };
202
+ errorTryAgain: {
203
+ id: string;
204
+ defaultMessage: string;
205
+ description: string;
206
+ };
202
207
  serviceAccountLabel: {
203
208
  id: string;
204
209
  defaultMessage: string;
@@ -199,6 +199,11 @@ declare const messages: {
199
199
  defaultMessage: string;
200
200
  description: string;
201
201
  };
202
+ errorTryAgain: {
203
+ id: string;
204
+ defaultMessage: string;
205
+ description: string;
206
+ };
202
207
  serviceAccountLabel: {
203
208
  id: string;
204
209
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "24.27.1",
3
+ "version": "24.27.2",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -155,9 +155,6 @@
155
155
  "jira_ai_profilecard_hide_agent_actions": {
156
156
  "type": "boolean"
157
157
  },
158
- "legion-enable-archive-teams": {
159
- "type": "boolean"
160
- },
161
158
  "rovo_agent_empty_state_refresh": {
162
159
  "type": "boolean"
163
160
  },