@atlaskit/profilecard 24.26.1 → 24.27.1
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 +18 -0
- package/dist/cjs/client/errorUtils.js +2 -1
- package/dist/cjs/components/Error/ErrorMessage.js +6 -12
- package/dist/cjs/components/User/ProfileCardDetails.js +2 -2
- package/dist/cjs/messages.js +25 -0
- package/dist/es2019/client/errorUtils.js +2 -1
- package/dist/es2019/components/Error/ErrorMessage.js +6 -12
- package/dist/es2019/components/User/ProfileCardDetails.js +2 -2
- package/dist/es2019/messages.js +25 -0
- package/dist/esm/client/errorUtils.js +2 -1
- package/dist/esm/components/Error/ErrorMessage.js +6 -12
- package/dist/esm/components/User/ProfileCardDetails.js +2 -2
- package/dist/esm/messages.js +25 -0
- package/dist/types/client/types.d.ts +1 -0
- package/dist/types/messages.d.ts +25 -0
- package/dist/types-ts4.5/client/types.d.ts +1 -0
- package/dist/types-ts4.5/messages.d.ts +25 -0
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 24.27.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fabb0aebeb635`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fabb0aebeb635) -
|
|
8
|
+
Add translations for static values
|
|
9
|
+
|
|
10
|
+
## 24.27.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`5092f69c488d8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5092f69c488d8) -
|
|
15
|
+
Added error stack attribute to error analytics events
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 24.26.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -94,7 +94,8 @@ var _getErrorAttributes = exports.getErrorAttributes = function getErrorAttribut
|
|
|
94
94
|
errorPath: null,
|
|
95
95
|
errorNumber: null,
|
|
96
96
|
errorStatusCode: null,
|
|
97
|
-
traceId: null
|
|
97
|
+
traceId: null,
|
|
98
|
+
errorStack: null
|
|
98
99
|
};
|
|
99
100
|
if (error instanceof _errors.DirectoryGraphQLErrors) {
|
|
100
101
|
var _error$traceId;
|
|
@@ -8,10 +8,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _reactIntlNext = require("react-intl-next");
|
|
11
12
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
12
13
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
|
|
13
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
|
+
var _messages = _interopRequireDefault(require("../../messages"));
|
|
15
17
|
var _Error = require("../../styled/Error");
|
|
16
18
|
var _analytics = require("../../util/analytics");
|
|
17
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -42,19 +44,11 @@ var ErrorMessage = function ErrorMessage(props) {
|
|
|
42
44
|
}, [errorReason, fireAnalytics, fireAnalyticsNext, hasRetry]);
|
|
43
45
|
var errorContent = function errorContent() {
|
|
44
46
|
if (errorReason === 'NotFound') {
|
|
45
|
-
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement(_Error.ErrorTitle, null, "The user is no longer available for the site");
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_Error.ErrorTitle, null, (0, _platformFeatureFlags.fg)('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.errorUserNotFound) : 'The user is no longer available for the site');
|
|
47
48
|
}
|
|
48
|
-
return (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
_react.default.createElement(_Error.ErrorTitle, null, "Oops, looks like we\u2019re having issues", /*#__PURE__*/_react.default.createElement("br", null), reload &&
|
|
52
|
-
/*#__PURE__*/
|
|
53
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
54
|
-
_react.default.createElement(_compiled.Text, {
|
|
55
|
-
color: "color.text.subtlest"
|
|
56
|
-
}, "Try again and we\u2019ll give it another shot"))
|
|
57
|
-
);
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(_Error.ErrorTitle, null, (0, _platformFeatureFlags.fg)('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.errorGeneric) : 'Oops, looks like we’re having issues', /*#__PURE__*/_react.default.createElement("br", null), reload && /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
50
|
+
color: "color.text.subtlest"
|
|
51
|
+
}, (0, _platformFeatureFlags.fg)('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.errorRetrySuggestion) : 'Try again and we’ll give it another shot'));
|
|
58
52
|
};
|
|
59
53
|
return /*#__PURE__*/_react.default.createElement(_Error.ErrorWrapper, {
|
|
60
54
|
testId: "profilecard-error"
|
|
@@ -98,12 +98,12 @@ var CustomLozenges = function CustomLozenges(_ref) {
|
|
|
98
98
|
var ServiceAccountProfileCardDetails = function ServiceAccountProfileCardDetails(props) {
|
|
99
99
|
var fullName = props.fullName,
|
|
100
100
|
nickname = props.nickname;
|
|
101
|
-
return /*#__PURE__*/_react.default.createElement(_Card.DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/_react.default.createElement(_Card.AppTitleLabel, null,
|
|
101
|
+
return /*#__PURE__*/_react.default.createElement(_Card.DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/_react.default.createElement(_Card.AppTitleLabel, null, (0, _platformFeatureFlags.fg)('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.serviceAccountLabel) : 'SERVICE ACCOUNT'));
|
|
102
102
|
};
|
|
103
103
|
var BotProfileCardDetails = function BotProfileCardDetails(props) {
|
|
104
104
|
var fullName = props.fullName,
|
|
105
105
|
nickname = props.nickname;
|
|
106
|
-
return /*#__PURE__*/_react.default.createElement(_Card.DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/_react.default.createElement(_Card.AppTitleLabel, null,
|
|
106
|
+
return /*#__PURE__*/_react.default.createElement(_Card.DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/_react.default.createElement(_Card.AppTitleLabel, null, (0, _platformFeatureFlags.fg)('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.botAccountLabel) : 'APP'));
|
|
107
107
|
};
|
|
108
108
|
var DisabledProfileCardDetails = function DisabledProfileCardDetails(props) {
|
|
109
109
|
var companyName = props.companyName,
|
package/dist/cjs/messages.js
CHANGED
|
@@ -191,6 +191,31 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
191
191
|
id: 'pt.team-profile-card.archived-lozenge',
|
|
192
192
|
defaultMessage: 'Archived',
|
|
193
193
|
description: 'Lozenge to indicate that a team is archived'
|
|
194
|
+
},
|
|
195
|
+
errorUserNotFound: {
|
|
196
|
+
id: 'pt.profile-card.error.user-not-found',
|
|
197
|
+
defaultMessage: 'The user is no longer available for the site',
|
|
198
|
+
description: 'Error message shown when the user is not found'
|
|
199
|
+
},
|
|
200
|
+
errorGeneric: {
|
|
201
|
+
id: 'pt.profile-card.error.generic',
|
|
202
|
+
defaultMessage: 'Oops, looks like we’re having issues',
|
|
203
|
+
description: 'Generic error message shown when there is an issue loading the profile card'
|
|
204
|
+
},
|
|
205
|
+
errorRetrySuggestion: {
|
|
206
|
+
id: 'pt.profile-card.error.retry-suggestion',
|
|
207
|
+
defaultMessage: 'Try again and we’ll give it another shot',
|
|
208
|
+
description: 'Suggestion message shown to the user to retry loading the profile card'
|
|
209
|
+
},
|
|
210
|
+
serviceAccountLabel: {
|
|
211
|
+
id: 'pt.profile-card.service-account.label',
|
|
212
|
+
defaultMessage: 'SERVICE ACCOUNT',
|
|
213
|
+
description: 'Label to indicate that the user is a service account'
|
|
214
|
+
},
|
|
215
|
+
botAccountLabel: {
|
|
216
|
+
id: 'pt.profile-card.bot-account.label',
|
|
217
|
+
defaultMessage: 'APP',
|
|
218
|
+
description: 'Label to indicate that the user is a bot account'
|
|
194
219
|
}
|
|
195
220
|
});
|
|
196
221
|
var _default = exports.default = messages;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
2
3
|
import Button from '@atlaskit/button/new';
|
|
3
4
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
4
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
7
|
+
import messages from '../../messages';
|
|
6
8
|
import { ErrorTitle, ErrorWrapper } from '../../styled/Error';
|
|
7
9
|
import { PACKAGE_META_DATA, profileCardRendered } from '../../util/analytics';
|
|
8
10
|
const ErrorMessage = props => {
|
|
@@ -33,19 +35,11 @@ const ErrorMessage = props => {
|
|
|
33
35
|
}, [errorReason, fireAnalytics, fireAnalyticsNext, hasRetry]);
|
|
34
36
|
const errorContent = () => {
|
|
35
37
|
if (errorReason === 'NotFound') {
|
|
36
|
-
|
|
37
|
-
return /*#__PURE__*/React.createElement(ErrorTitle, null, "The user is no longer available for the site");
|
|
38
|
+
return /*#__PURE__*/React.createElement(ErrorTitle, null, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.errorUserNotFound) : 'The user is no longer available for the site');
|
|
38
39
|
}
|
|
39
|
-
return (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
React.createElement(ErrorTitle, null, "Oops, looks like we\u2019re having issues", /*#__PURE__*/React.createElement("br", null), reload &&
|
|
43
|
-
/*#__PURE__*/
|
|
44
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
45
|
-
React.createElement(Text, {
|
|
46
|
-
color: "color.text.subtlest"
|
|
47
|
-
}, "Try again and we\u2019ll give it another shot"))
|
|
48
|
-
);
|
|
40
|
+
return /*#__PURE__*/React.createElement(ErrorTitle, null, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.errorGeneric) : 'Oops, looks like we’re having issues', /*#__PURE__*/React.createElement("br", null), reload && /*#__PURE__*/React.createElement(Text, {
|
|
41
|
+
color: "color.text.subtlest"
|
|
42
|
+
}, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.errorRetrySuggestion) : 'Try again and we’ll give it another shot'));
|
|
49
43
|
};
|
|
50
44
|
return /*#__PURE__*/React.createElement(ErrorWrapper, {
|
|
51
45
|
testId: "profilecard-error"
|
|
@@ -87,14 +87,14 @@ const ServiceAccountProfileCardDetails = props => {
|
|
|
87
87
|
fullName,
|
|
88
88
|
nickname
|
|
89
89
|
} = props;
|
|
90
|
-
return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null,
|
|
90
|
+
return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.serviceAccountLabel) : 'SERVICE ACCOUNT'));
|
|
91
91
|
};
|
|
92
92
|
const BotProfileCardDetails = props => {
|
|
93
93
|
const {
|
|
94
94
|
fullName,
|
|
95
95
|
nickname
|
|
96
96
|
} = props;
|
|
97
|
-
return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null,
|
|
97
|
+
return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.botAccountLabel) : 'APP'));
|
|
98
98
|
};
|
|
99
99
|
const DisabledProfileCardDetails = props => {
|
|
100
100
|
const {
|
package/dist/es2019/messages.js
CHANGED
|
@@ -185,6 +185,31 @@ const messages = defineMessages({
|
|
|
185
185
|
id: 'pt.team-profile-card.archived-lozenge',
|
|
186
186
|
defaultMessage: 'Archived',
|
|
187
187
|
description: 'Lozenge to indicate that a team is archived'
|
|
188
|
+
},
|
|
189
|
+
errorUserNotFound: {
|
|
190
|
+
id: 'pt.profile-card.error.user-not-found',
|
|
191
|
+
defaultMessage: 'The user is no longer available for the site',
|
|
192
|
+
description: 'Error message shown when the user is not found'
|
|
193
|
+
},
|
|
194
|
+
errorGeneric: {
|
|
195
|
+
id: 'pt.profile-card.error.generic',
|
|
196
|
+
defaultMessage: 'Oops, looks like we’re having issues',
|
|
197
|
+
description: 'Generic error message shown when there is an issue loading the profile card'
|
|
198
|
+
},
|
|
199
|
+
errorRetrySuggestion: {
|
|
200
|
+
id: 'pt.profile-card.error.retry-suggestion',
|
|
201
|
+
defaultMessage: 'Try again and we’ll give it another shot',
|
|
202
|
+
description: 'Suggestion message shown to the user to retry loading the profile card'
|
|
203
|
+
},
|
|
204
|
+
serviceAccountLabel: {
|
|
205
|
+
id: 'pt.profile-card.service-account.label',
|
|
206
|
+
defaultMessage: 'SERVICE ACCOUNT',
|
|
207
|
+
description: 'Label to indicate that the user is a service account'
|
|
208
|
+
},
|
|
209
|
+
botAccountLabel: {
|
|
210
|
+
id: 'pt.profile-card.bot-account.label',
|
|
211
|
+
defaultMessage: 'APP',
|
|
212
|
+
description: 'Label to indicate that the user is a bot account'
|
|
188
213
|
}
|
|
189
214
|
});
|
|
190
215
|
export default messages;
|
|
@@ -88,7 +88,8 @@ var _getErrorAttributes = function getErrorAttributes(error) {
|
|
|
88
88
|
errorPath: null,
|
|
89
89
|
errorNumber: null,
|
|
90
90
|
errorStatusCode: null,
|
|
91
|
-
traceId: null
|
|
91
|
+
traceId: null,
|
|
92
|
+
errorStack: null
|
|
92
93
|
};
|
|
93
94
|
if (error instanceof DirectoryGraphQLErrors) {
|
|
94
95
|
var _error$traceId;
|
|
@@ -2,10 +2,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import React, { useEffect } from 'react';
|
|
5
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
5
6
|
import Button from '@atlaskit/button/new';
|
|
6
7
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
7
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
10
|
+
import messages from '../../messages';
|
|
9
11
|
import { ErrorTitle, ErrorWrapper } from '../../styled/Error';
|
|
10
12
|
import { PACKAGE_META_DATA, profileCardRendered } from '../../util/analytics';
|
|
11
13
|
var ErrorMessage = function ErrorMessage(props) {
|
|
@@ -33,19 +35,11 @@ var ErrorMessage = function ErrorMessage(props) {
|
|
|
33
35
|
}, [errorReason, fireAnalytics, fireAnalyticsNext, hasRetry]);
|
|
34
36
|
var errorContent = function errorContent() {
|
|
35
37
|
if (errorReason === 'NotFound') {
|
|
36
|
-
|
|
37
|
-
return /*#__PURE__*/React.createElement(ErrorTitle, null, "The user is no longer available for the site");
|
|
38
|
+
return /*#__PURE__*/React.createElement(ErrorTitle, null, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.errorUserNotFound) : 'The user is no longer available for the site');
|
|
38
39
|
}
|
|
39
|
-
return (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
React.createElement(ErrorTitle, null, "Oops, looks like we\u2019re having issues", /*#__PURE__*/React.createElement("br", null), reload &&
|
|
43
|
-
/*#__PURE__*/
|
|
44
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
45
|
-
React.createElement(Text, {
|
|
46
|
-
color: "color.text.subtlest"
|
|
47
|
-
}, "Try again and we\u2019ll give it another shot"))
|
|
48
|
-
);
|
|
40
|
+
return /*#__PURE__*/React.createElement(ErrorTitle, null, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.errorGeneric) : 'Oops, looks like we’re having issues', /*#__PURE__*/React.createElement("br", null), reload && /*#__PURE__*/React.createElement(Text, {
|
|
41
|
+
color: "color.text.subtlest"
|
|
42
|
+
}, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.errorRetrySuggestion) : 'Try again and we’ll give it another shot'));
|
|
49
43
|
};
|
|
50
44
|
return /*#__PURE__*/React.createElement(ErrorWrapper, {
|
|
51
45
|
testId: "profilecard-error"
|
|
@@ -89,12 +89,12 @@ var CustomLozenges = function CustomLozenges(_ref) {
|
|
|
89
89
|
var ServiceAccountProfileCardDetails = function ServiceAccountProfileCardDetails(props) {
|
|
90
90
|
var fullName = props.fullName,
|
|
91
91
|
nickname = props.nickname;
|
|
92
|
-
return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null,
|
|
92
|
+
return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.serviceAccountLabel) : 'SERVICE ACCOUNT'));
|
|
93
93
|
};
|
|
94
94
|
var BotProfileCardDetails = function BotProfileCardDetails(props) {
|
|
95
95
|
var fullName = props.fullName,
|
|
96
96
|
nickname = props.nickname;
|
|
97
|
-
return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null,
|
|
97
|
+
return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.botAccountLabel) : 'APP'));
|
|
98
98
|
};
|
|
99
99
|
var DisabledProfileCardDetails = function DisabledProfileCardDetails(props) {
|
|
100
100
|
var companyName = props.companyName,
|
package/dist/esm/messages.js
CHANGED
|
@@ -185,6 +185,31 @@ var messages = defineMessages({
|
|
|
185
185
|
id: 'pt.team-profile-card.archived-lozenge',
|
|
186
186
|
defaultMessage: 'Archived',
|
|
187
187
|
description: 'Lozenge to indicate that a team is archived'
|
|
188
|
+
},
|
|
189
|
+
errorUserNotFound: {
|
|
190
|
+
id: 'pt.profile-card.error.user-not-found',
|
|
191
|
+
defaultMessage: 'The user is no longer available for the site',
|
|
192
|
+
description: 'Error message shown when the user is not found'
|
|
193
|
+
},
|
|
194
|
+
errorGeneric: {
|
|
195
|
+
id: 'pt.profile-card.error.generic',
|
|
196
|
+
defaultMessage: 'Oops, looks like we’re having issues',
|
|
197
|
+
description: 'Generic error message shown when there is an issue loading the profile card'
|
|
198
|
+
},
|
|
199
|
+
errorRetrySuggestion: {
|
|
200
|
+
id: 'pt.profile-card.error.retry-suggestion',
|
|
201
|
+
defaultMessage: 'Try again and we’ll give it another shot',
|
|
202
|
+
description: 'Suggestion message shown to the user to retry loading the profile card'
|
|
203
|
+
},
|
|
204
|
+
serviceAccountLabel: {
|
|
205
|
+
id: 'pt.profile-card.service-account.label',
|
|
206
|
+
defaultMessage: 'SERVICE ACCOUNT',
|
|
207
|
+
description: 'Label to indicate that the user is a service account'
|
|
208
|
+
},
|
|
209
|
+
botAccountLabel: {
|
|
210
|
+
id: 'pt.profile-card.bot-account.label',
|
|
211
|
+
defaultMessage: 'APP',
|
|
212
|
+
description: 'Label to indicate that the user is a bot account'
|
|
188
213
|
}
|
|
189
214
|
});
|
|
190
215
|
export default messages;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -184,5 +184,30 @@ declare const messages: {
|
|
|
184
184
|
defaultMessage: string;
|
|
185
185
|
description: string;
|
|
186
186
|
};
|
|
187
|
+
errorUserNotFound: {
|
|
188
|
+
id: string;
|
|
189
|
+
defaultMessage: string;
|
|
190
|
+
description: string;
|
|
191
|
+
};
|
|
192
|
+
errorGeneric: {
|
|
193
|
+
id: string;
|
|
194
|
+
defaultMessage: string;
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
errorRetrySuggestion: {
|
|
198
|
+
id: string;
|
|
199
|
+
defaultMessage: string;
|
|
200
|
+
description: string;
|
|
201
|
+
};
|
|
202
|
+
serviceAccountLabel: {
|
|
203
|
+
id: string;
|
|
204
|
+
defaultMessage: string;
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
207
|
+
botAccountLabel: {
|
|
208
|
+
id: string;
|
|
209
|
+
defaultMessage: string;
|
|
210
|
+
description: string;
|
|
211
|
+
};
|
|
187
212
|
};
|
|
188
213
|
export default messages;
|
|
@@ -184,5 +184,30 @@ declare const messages: {
|
|
|
184
184
|
defaultMessage: string;
|
|
185
185
|
description: string;
|
|
186
186
|
};
|
|
187
|
+
errorUserNotFound: {
|
|
188
|
+
id: string;
|
|
189
|
+
defaultMessage: string;
|
|
190
|
+
description: string;
|
|
191
|
+
};
|
|
192
|
+
errorGeneric: {
|
|
193
|
+
id: string;
|
|
194
|
+
defaultMessage: string;
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
errorRetrySuggestion: {
|
|
198
|
+
id: string;
|
|
199
|
+
defaultMessage: string;
|
|
200
|
+
description: string;
|
|
201
|
+
};
|
|
202
|
+
serviceAccountLabel: {
|
|
203
|
+
id: string;
|
|
204
|
+
defaultMessage: string;
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
207
|
+
botAccountLabel: {
|
|
208
|
+
id: string;
|
|
209
|
+
defaultMessage: string;
|
|
210
|
+
description: string;
|
|
211
|
+
};
|
|
187
212
|
};
|
|
188
213
|
export default messages;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.27.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,22 +49,22 @@
|
|
|
49
49
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
50
50
|
"@atlaskit/empty-state": "^10.1.0",
|
|
51
51
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
52
|
-
"@atlaskit/give-kudos": "^4.
|
|
52
|
+
"@atlaskit/give-kudos": "^4.5.0",
|
|
53
53
|
"@atlaskit/heading": "^5.2.0",
|
|
54
54
|
"@atlaskit/icon": "^29.3.0",
|
|
55
|
-
"@atlaskit/lozenge": "^13.
|
|
55
|
+
"@atlaskit/lozenge": "^13.3.0",
|
|
56
56
|
"@atlaskit/menu": "^8.4.0",
|
|
57
57
|
"@atlaskit/modal-dialog": "^14.9.0",
|
|
58
58
|
"@atlaskit/people-teams-ui-public": "^3.7.0",
|
|
59
59
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
61
|
-
"@atlaskit/popup": "^4.
|
|
61
|
+
"@atlaskit/popup": "^4.9.0",
|
|
62
62
|
"@atlaskit/primitives": "^17.0.0",
|
|
63
63
|
"@atlaskit/rovo-agent-components": "^3.16.0",
|
|
64
|
-
"@atlaskit/rovo-triggers": "^5.
|
|
64
|
+
"@atlaskit/rovo-triggers": "^5.3.0",
|
|
65
65
|
"@atlaskit/spinner": "^19.0.0",
|
|
66
66
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
67
|
-
"@atlaskit/teams-app-internal-analytics": "^1.
|
|
67
|
+
"@atlaskit/teams-app-internal-analytics": "^1.23.0",
|
|
68
68
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
69
69
|
"@atlaskit/teams-public": "^0.65.0",
|
|
70
70
|
"@atlaskit/theme": "^21.0.0",
|
|
@@ -163,6 +163,9 @@
|
|
|
163
163
|
},
|
|
164
164
|
"enable_profilecard_text_truncation_tooltip": {
|
|
165
165
|
"type": "boolean"
|
|
166
|
+
},
|
|
167
|
+
"people-teams-fix-no-literal-string-in-jsx": {
|
|
168
|
+
"type": "boolean"
|
|
166
169
|
}
|
|
167
170
|
},
|
|
168
171
|
"sideEffects": [
|