@atlaskit/profilecard 24.21.3 → 24.21.5

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,18 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 24.21.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 24.21.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`33e177c779f4a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/33e177c779f4a) -
14
+ [ux] Added fixes for archive team, hide actions, alignment fix on kebab menu in Team header
15
+
3
16
  ## 24.21.3
4
17
 
5
18
  ### 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', "0.0.0-development");
14
+ headers.append('atl-client-version', "24.21.4");
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', "0.0.0-development");
69
+ headers.append('atl-client-version', "24.21.4");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -43,11 +43,19 @@ var ErrorMessage = function ErrorMessage(props) {
43
43
  }, [errorReason, fireAnalytics, fireAnalyticsNext, hasRetry]);
44
44
  var errorContent = function errorContent() {
45
45
  if (errorReason === 'NotFound') {
46
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
46
47
  return /*#__PURE__*/_react.default.createElement(_Error.ErrorTitle, null, "The user is no longer available for the site");
47
48
  }
48
- return /*#__PURE__*/_react.default.createElement(_Error.ErrorTitle, null, "Oops, looks like we\u2019re having issues", /*#__PURE__*/_react.default.createElement("br", null), reload && /*#__PURE__*/_react.default.createElement(_compiled.Text, {
49
- color: "color.text.subtlest"
50
- }, "Try again and we\u2019ll give it another shot"));
49
+ return (
50
+ /*#__PURE__*/
51
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
52
+ _react.default.createElement(_Error.ErrorTitle, null, "Oops, looks like we\u2019re having issues", /*#__PURE__*/_react.default.createElement("br", null), reload &&
53
+ /*#__PURE__*/
54
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
55
+ _react.default.createElement(_compiled.Text, {
56
+ color: "color.text.subtlest"
57
+ }, "Try again and we\u2019ll give it another shot"))
58
+ );
51
59
  };
52
60
  return /*#__PURE__*/_react.default.createElement(_Error.ErrorWrapper, {
53
61
  testId: "profilecard-error"
@@ -308,17 +308,17 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
308
308
  viewProfileLink = _ref5.viewProfileLink,
309
309
  viewProfileOnClick = _ref5.viewProfileOnClick,
310
310
  isTriggeredByKeyboard = _ref5.isTriggeredByKeyboard;
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;
311
313
  var allActions = [{
312
314
  label: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.teamViewProfile),
313
315
  link: viewProfileLink,
314
316
  callback: viewProfileOnClick,
315
317
  id: 'view-profile'
316
- }].concat((0, _toConsumableArray2.default)(actions || []));
318
+ }].concat((0, _toConsumableArray2.default)(isTeamArchived ? [] : actions || []));
317
319
  var includingYou = team.members && team.members.some(function (member) {
318
320
  return member.id === viewingUserId;
319
321
  });
320
- var newTeamProfileEnabled = _featureGateJsClient.default.getExperimentValue('new_team_profile', 'isEnabled', false);
321
- var isTeamArchived = team.state === 'DISBANDED' && (0, _platformFeatureFlags.fg)('legion-enable-archive-teams') && newTeamProfileEnabled;
322
322
  (0, _react.useEffect)(function () {
323
323
  if ((0, _platformFeatureFlags.fg)('ptc-enable-profile-card-analytics-refactor')) {
324
324
  analyticsNext('ui.teamProfileCard.rendered.content', function (duration) {
@@ -13,7 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
13
13
  var ANALYTICS_CHANNEL = 'peopleTeams';
14
14
  var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
15
15
  packageName: "@atlaskit/profilecard",
16
- packageVersion: "0.0.0-development"
16
+ packageVersion: "24.21.4"
17
17
  };
18
18
  var runItLater = function runItLater(cb) {
19
19
  var requestIdleCallback = window.requestIdleCallback;
@@ -58,7 +58,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
58
58
  actionSubjectId: actionSubjectId,
59
59
  attributes: _objectSpread(_objectSpread({
60
60
  packageName: "@atlaskit/profilecard",
61
- packageVersion: "0.0.0-development"
61
+ packageVersion: "24.21.4"
62
62
  }, attributes), {}, {
63
63
  firedAt: Math.round((0, _performance.getPageTime)())
64
64
  })
@@ -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', "0.0.0-development");
9
+ headers.append('atl-client-version', "24.21.4");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
78
78
  headers.append('X-ExperimentalApi', 'teams-beta');
79
79
  headers.append('X-ExperimentalApi', 'team-members-beta');
80
80
  headers.append('atl-client-name', "@atlaskit/profilecard");
81
- headers.append('atl-client-version', "0.0.0-development");
81
+ headers.append('atl-client-version', "24.21.4");
82
82
  return headers;
83
83
  };
84
84
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -34,11 +34,19 @@ const ErrorMessage = props => {
34
34
  }, [errorReason, fireAnalytics, fireAnalyticsNext, hasRetry]);
35
35
  const errorContent = () => {
36
36
  if (errorReason === 'NotFound') {
37
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
37
38
  return /*#__PURE__*/React.createElement(ErrorTitle, null, "The user is no longer available for the site");
38
39
  }
39
- return /*#__PURE__*/React.createElement(ErrorTitle, null, "Oops, looks like we\u2019re having issues", /*#__PURE__*/React.createElement("br", null), reload && /*#__PURE__*/React.createElement(Text, {
40
- color: "color.text.subtlest"
41
- }, "Try again and we\u2019ll give it another shot"));
40
+ return (
41
+ /*#__PURE__*/
42
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
43
+ React.createElement(ErrorTitle, null, "Oops, looks like we\u2019re having issues", /*#__PURE__*/React.createElement("br", null), reload &&
44
+ /*#__PURE__*/
45
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
46
+ React.createElement(Text, {
47
+ color: "color.text.subtlest"
48
+ }, "Try again and we\u2019ll give it another shot"))
49
+ );
42
50
  };
43
51
  return /*#__PURE__*/React.createElement(ErrorWrapper, {
44
52
  testId: "profilecard-error"
@@ -272,15 +272,15 @@ const TeamProfilecardContent = ({
272
272
  viewProfileOnClick,
273
273
  isTriggeredByKeyboard
274
274
  }) => {
275
+ const newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
276
+ const isTeamArchived = team.state === 'DISBANDED' && fg('legion-enable-archive-teams') && newTeamProfileEnabled;
275
277
  const allActions = [{
276
278
  label: /*#__PURE__*/React.createElement(FormattedMessage, messages.teamViewProfile),
277
279
  link: viewProfileLink,
278
280
  callback: viewProfileOnClick,
279
281
  id: 'view-profile'
280
- }, ...(actions || [])];
282
+ }, ...(isTeamArchived ? [] : actions || [])];
281
283
  const includingYou = team.members && team.members.some(member => member.id === viewingUserId);
282
- const newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
283
- const isTeamArchived = team.state === 'DISBANDED' && fg('legion-enable-archive-teams') && newTeamProfileEnabled;
284
284
  useEffect(() => {
285
285
  if (fg('ptc-enable-profile-card-analytics-refactor')) {
286
286
  analyticsNext('ui.teamProfileCard.rendered.content', duration => {
@@ -4,7 +4,7 @@ import { getPageTime } from './performance';
4
4
  const ANALYTICS_CHANNEL = 'peopleTeams';
5
5
  export const PACKAGE_META_DATA = {
6
6
  packageName: "@atlaskit/profilecard",
7
- packageVersion: "0.0.0-development"
7
+ packageVersion: "24.21.4"
8
8
  };
9
9
  const runItLater = cb => {
10
10
  const requestIdleCallback = window.requestIdleCallback;
@@ -45,7 +45,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
45
45
  actionSubjectId,
46
46
  attributes: {
47
47
  packageName: "@atlaskit/profilecard",
48
- packageVersion: "0.0.0-development",
48
+ packageVersion: "24.21.4",
49
49
  ...attributes,
50
50
  firedAt: Math.round(getPageTime())
51
51
  }
@@ -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', "0.0.0-development");
7
+ headers.append('atl-client-version', "24.21.4");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
59
59
  headers.append('X-ExperimentalApi', 'teams-beta');
60
60
  headers.append('X-ExperimentalApi', 'team-members-beta');
61
61
  headers.append('atl-client-name', "@atlaskit/profilecard");
62
- headers.append('atl-client-version', "0.0.0-development");
62
+ headers.append('atl-client-version', "24.21.4");
63
63
  return headers;
64
64
  };
65
65
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -34,11 +34,19 @@ var ErrorMessage = function ErrorMessage(props) {
34
34
  }, [errorReason, fireAnalytics, fireAnalyticsNext, hasRetry]);
35
35
  var errorContent = function errorContent() {
36
36
  if (errorReason === 'NotFound') {
37
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
37
38
  return /*#__PURE__*/React.createElement(ErrorTitle, null, "The user is no longer available for the site");
38
39
  }
39
- return /*#__PURE__*/React.createElement(ErrorTitle, null, "Oops, looks like we\u2019re having issues", /*#__PURE__*/React.createElement("br", null), reload && /*#__PURE__*/React.createElement(Text, {
40
- color: "color.text.subtlest"
41
- }, "Try again and we\u2019ll give it another shot"));
40
+ return (
41
+ /*#__PURE__*/
42
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
43
+ React.createElement(ErrorTitle, null, "Oops, looks like we\u2019re having issues", /*#__PURE__*/React.createElement("br", null), reload &&
44
+ /*#__PURE__*/
45
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
46
+ React.createElement(Text, {
47
+ color: "color.text.subtlest"
48
+ }, "Try again and we\u2019ll give it another shot"))
49
+ );
42
50
  };
43
51
  return /*#__PURE__*/React.createElement(ErrorWrapper, {
44
52
  testId: "profilecard-error"
@@ -299,17 +299,17 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
299
299
  viewProfileLink = _ref5.viewProfileLink,
300
300
  viewProfileOnClick = _ref5.viewProfileOnClick,
301
301
  isTriggeredByKeyboard = _ref5.isTriggeredByKeyboard;
302
+ var newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
303
+ var isTeamArchived = team.state === 'DISBANDED' && fg('legion-enable-archive-teams') && newTeamProfileEnabled;
302
304
  var allActions = [{
303
305
  label: /*#__PURE__*/React.createElement(FormattedMessage, messages.teamViewProfile),
304
306
  link: viewProfileLink,
305
307
  callback: viewProfileOnClick,
306
308
  id: 'view-profile'
307
- }].concat(_toConsumableArray(actions || []));
309
+ }].concat(_toConsumableArray(isTeamArchived ? [] : actions || []));
308
310
  var includingYou = team.members && team.members.some(function (member) {
309
311
  return member.id === viewingUserId;
310
312
  });
311
- var newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
312
- var isTeamArchived = team.state === 'DISBANDED' && fg('legion-enable-archive-teams') && newTeamProfileEnabled;
313
313
  useEffect(function () {
314
314
  if (fg('ptc-enable-profile-card-analytics-refactor')) {
315
315
  analyticsNext('ui.teamProfileCard.rendered.content', function (duration) {
@@ -7,7 +7,7 @@ import { getPageTime } from './performance';
7
7
  var ANALYTICS_CHANNEL = 'peopleTeams';
8
8
  export var PACKAGE_META_DATA = {
9
9
  packageName: "@atlaskit/profilecard",
10
- packageVersion: "0.0.0-development"
10
+ packageVersion: "24.21.4"
11
11
  };
12
12
  var runItLater = function runItLater(cb) {
13
13
  var requestIdleCallback = window.requestIdleCallback;
@@ -52,7 +52,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
52
52
  actionSubjectId: actionSubjectId,
53
53
  attributes: _objectSpread(_objectSpread({
54
54
  packageName: "@atlaskit/profilecard",
55
- packageVersion: "0.0.0-development"
55
+ packageVersion: "24.21.4"
56
56
  }, attributes), {}, {
57
57
  firedAt: Math.round(getPageTime())
58
58
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "24.21.3",
3
+ "version": "24.21.5",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/avatar": "^25.5.0",
46
46
  "@atlaskit/avatar-group": "^12.4.0",
47
47
  "@atlaskit/button": "^23.6.0",
48
- "@atlaskit/css": "^0.15.0",
48
+ "@atlaskit/css": "^0.16.0",
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",
@@ -61,7 +61,7 @@
61
61
  "@atlaskit/platform-feature-flags": "^1.1.0",
62
62
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
63
63
  "@atlaskit/popup": "^4.6.0",
64
- "@atlaskit/primitives": "^16.1.0",
64
+ "@atlaskit/primitives": "^16.2.0",
65
65
  "@atlaskit/rovo-agent-components": "^3.11.0",
66
66
  "@atlaskit/rovo-triggers": "^4.3.0",
67
67
  "@atlaskit/spinner": "^19.0.0",
@@ -70,7 +70,7 @@
70
70
  "@atlaskit/teams-avatar": "^2.4.0",
71
71
  "@atlaskit/teams-public": "^0.63.0",
72
72
  "@atlaskit/theme": "^21.0.0",
73
- "@atlaskit/tokens": "^8.0.0",
73
+ "@atlaskit/tokens": "^8.1.0",
74
74
  "@atlaskit/tooltip": "^20.10.0",
75
75
  "@babel/runtime": "^7.0.0",
76
76
  "@compiled/react": "^0.18.6",