@atlaskit/profilecard 27.1.27 → 27.1.29

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,20 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 27.1.29
4
+
5
+ ### Patch Changes
6
+
7
+ - [`29fd97ad7e93c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/29fd97ad7e93c) -
8
+ Skip the redundant existsWithWorkspaceType request behind
9
+ atlas_profilecard_skip_workspace_type_fetch.
10
+ - Updated dependencies
11
+
12
+ ## 27.1.28
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 27.1.27
4
19
 
5
20
  ### Patch Changes
@@ -236,33 +236,39 @@ var TeamCentralCardClient = /*#__PURE__*/function (_CachingClient) {
236
236
  return _regenerator.default.wrap(function (_context4) {
237
237
  while (1) switch (_context4.prev = _context4.next) {
238
238
  case 0:
239
- _context4.prev = 0;
240
- _context4.next = 1;
239
+ if (!(0, _fg.fg)('atlas_profilecard_skip_workspace_type_fetch')) {
240
+ _context4.next = 1;
241
+ break;
242
+ }
243
+ return _context4.abrupt("return", 'GLOBAL_EXPERIENCE');
244
+ case 1:
245
+ _context4.prev = 1;
246
+ _context4.next = 2;
241
247
  return fetch("".concat(this.getShardedApiPath(cloudId), "/workspace/existsWithWorkspaceType?cloudId=").concat(cloudId), {
242
248
  credentials: 'include'
243
249
  });
244
- case 1:
250
+ case 2:
245
251
  response = _context4.sent;
246
252
  if (!response.ok) {
247
- _context4.next = 3;
253
+ _context4.next = 4;
248
254
  break;
249
255
  }
250
- _context4.next = 2;
256
+ _context4.next = 3;
251
257
  return response.text();
252
- case 2:
258
+ case 3:
253
259
  workspaceType = _context4.sent;
254
260
  return _context4.abrupt("return", workspaceType);
255
- case 3:
256
- return _context4.abrupt("return", undefined);
257
261
  case 4:
258
- _context4.prev = 4;
259
- _t2 = _context4["catch"](0);
260
262
  return _context4.abrupt("return", undefined);
261
263
  case 5:
264
+ _context4.prev = 5;
265
+ _t2 = _context4["catch"](1);
266
+ return _context4.abrupt("return", undefined);
267
+ case 6:
262
268
  case "end":
263
269
  return _context4.stop();
264
270
  }
265
- }, _callee4, this, [[0, 4]]);
271
+ }, _callee4, this, [[1, 5]]);
266
272
  }));
267
273
  function getWorkspaceExistsWithType(_x2) {
268
274
  return _getWorkspaceExistsWithType.apply(this, arguments);
@@ -11,6 +11,6 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
11
11
  headers.append('X-ExperimentalApi', 'teams-beta');
12
12
  headers.append('X-ExperimentalApi', 'team-members-beta');
13
13
  headers.append('atl-client-name', "@atlaskit/profilecard");
14
- headers.append('atl-client-version', "27.1.27");
14
+ headers.append('atl-client-version', "27.1.28");
15
15
  return headers;
16
16
  };
@@ -11,7 +11,7 @@ var _AGGQuery = require("./AGGQuery");
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', "27.1.27");
14
+ headers.append('atl-client-version', "27.1.28");
15
15
  return headers;
16
16
  };
17
17
  function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -7,7 +7,7 @@ exports.USER_SUBJECT = exports.TEAM_SUBJECT = exports.PACKAGE_META_DATA = export
7
7
  var _process$env$_PACKAGE, _process$env$_PACKAGE2;
8
8
  var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
9
9
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
10
- packageVersion: (_process$env$_PACKAGE2 = "27.1.27") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
10
+ packageVersion: (_process$env$_PACKAGE2 = "27.1.28") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
11
11
  };
12
12
  var TEAM_SUBJECT = exports.TEAM_SUBJECT = 'teamProfileCard';
13
13
  var USER_SUBJECT = exports.USER_SUBJECT = 'profilecard';
@@ -22,7 +22,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
22
22
  actionSubjectId: actionSubjectId,
23
23
  attributes: _objectSpread(_objectSpread({
24
24
  packageName: "@atlaskit/profilecard",
25
- packageVersion: "27.1.27"
25
+ packageVersion: "27.1.28"
26
26
  }, attributes), {}, {
27
27
  firedAt: Math.round((0, _performance.getPageTime)())
28
28
  })
@@ -131,6 +131,9 @@ class TeamCentralCardClient extends CachingClient {
131
131
  }
132
132
  }
133
133
  async getWorkspaceExistsWithType(cloudId) {
134
+ if (fg('atlas_profilecard_skip_workspace_type_fetch')) {
135
+ return 'GLOBAL_EXPERIENCE';
136
+ }
134
137
  try {
135
138
  const response = await fetch(`${this.getShardedApiPath(cloudId)}/workspace/existsWithWorkspaceType?cloudId=${cloudId}`, {
136
139
  credentials: 'include'
@@ -5,6 +5,6 @@ export const addHeaders = headers => {
5
5
  headers.append('X-ExperimentalApi', 'teams-beta');
6
6
  headers.append('X-ExperimentalApi', 'team-members-beta');
7
7
  headers.append('atl-client-name', "@atlaskit/profilecard");
8
- headers.append('atl-client-version', "27.1.27");
8
+ headers.append('atl-client-version', "27.1.28");
9
9
  return headers;
10
10
  };
@@ -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', "27.1.27");
9
+ headers.append('atl-client-version', "27.1.28");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -1,7 +1,7 @@
1
1
  var _process$env$_PACKAGE, _process$env$_PACKAGE2;
2
2
  export const PACKAGE_META_DATA = {
3
3
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
4
- packageVersion: (_process$env$_PACKAGE2 = "27.1.27") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
4
+ packageVersion: (_process$env$_PACKAGE2 = "27.1.28") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
5
  };
6
6
  export const TEAM_SUBJECT = 'teamProfileCard';
7
7
  export const USER_SUBJECT = 'profilecard';
@@ -11,7 +11,7 @@ export const createEvent = (eventType, action, actionSubject, actionSubjectId, a
11
11
  actionSubjectId,
12
12
  attributes: {
13
13
  packageName: "@atlaskit/profilecard",
14
- packageVersion: "27.1.27",
14
+ packageVersion: "27.1.28",
15
15
  ...attributes,
16
16
  firedAt: Math.round(getPageTime())
17
17
  }
@@ -229,33 +229,39 @@ var TeamCentralCardClient = /*#__PURE__*/function (_CachingClient) {
229
229
  return _regeneratorRuntime.wrap(function (_context4) {
230
230
  while (1) switch (_context4.prev = _context4.next) {
231
231
  case 0:
232
- _context4.prev = 0;
233
- _context4.next = 1;
232
+ if (!fg('atlas_profilecard_skip_workspace_type_fetch')) {
233
+ _context4.next = 1;
234
+ break;
235
+ }
236
+ return _context4.abrupt("return", 'GLOBAL_EXPERIENCE');
237
+ case 1:
238
+ _context4.prev = 1;
239
+ _context4.next = 2;
234
240
  return fetch("".concat(this.getShardedApiPath(cloudId), "/workspace/existsWithWorkspaceType?cloudId=").concat(cloudId), {
235
241
  credentials: 'include'
236
242
  });
237
- case 1:
243
+ case 2:
238
244
  response = _context4.sent;
239
245
  if (!response.ok) {
240
- _context4.next = 3;
246
+ _context4.next = 4;
241
247
  break;
242
248
  }
243
- _context4.next = 2;
249
+ _context4.next = 3;
244
250
  return response.text();
245
- case 2:
251
+ case 3:
246
252
  workspaceType = _context4.sent;
247
253
  return _context4.abrupt("return", workspaceType);
248
- case 3:
249
- return _context4.abrupt("return", undefined);
250
254
  case 4:
251
- _context4.prev = 4;
252
- _t2 = _context4["catch"](0);
253
255
  return _context4.abrupt("return", undefined);
254
256
  case 5:
257
+ _context4.prev = 5;
258
+ _t2 = _context4["catch"](1);
259
+ return _context4.abrupt("return", undefined);
260
+ case 6:
255
261
  case "end":
256
262
  return _context4.stop();
257
263
  }
258
- }, _callee4, this, [[0, 4]]);
264
+ }, _callee4, this, [[1, 5]]);
259
265
  }));
260
266
  function getWorkspaceExistsWithType(_x2) {
261
267
  return _getWorkspaceExistsWithType.apply(this, arguments);
@@ -5,6 +5,6 @@ export var addHeaders = function addHeaders(headers) {
5
5
  headers.append('X-ExperimentalApi', 'teams-beta');
6
6
  headers.append('X-ExperimentalApi', 'team-members-beta');
7
7
  headers.append('atl-client-name', "@atlaskit/profilecard");
8
- headers.append('atl-client-version', "27.1.27");
8
+ headers.append('atl-client-version', "27.1.28");
9
9
  return headers;
10
10
  };
@@ -4,7 +4,7 @@ import { AGGQuery } from './AGGQuery';
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', "27.1.27");
7
+ headers.append('atl-client-version', "27.1.28");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -1,7 +1,7 @@
1
1
  var _process$env$_PACKAGE, _process$env$_PACKAGE2;
2
2
  export var PACKAGE_META_DATA = {
3
3
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
4
- packageVersion: (_process$env$_PACKAGE2 = "27.1.27") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
4
+ packageVersion: (_process$env$_PACKAGE2 = "27.1.28") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
5
  };
6
6
  export var TEAM_SUBJECT = 'teamProfileCard';
7
7
  export var USER_SUBJECT = 'profilecard';
@@ -16,7 +16,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
16
16
  actionSubjectId: actionSubjectId,
17
17
  attributes: _objectSpread(_objectSpread({
18
18
  packageName: "@atlaskit/profilecard",
19
- packageVersion: "27.1.27"
19
+ packageVersion: "27.1.28"
20
20
  }, attributes), {}, {
21
21
  firedAt: Math.round(getPageTime())
22
22
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "27.1.27",
3
+ "version": "27.1.29",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -63,7 +63,7 @@
63
63
  "@atlaskit/primitives": "^22.5.0",
64
64
  "@atlaskit/react-compiler-gating": "^0.2.0",
65
65
  "@atlaskit/rovo-agent-components": "^9.9.0",
66
- "@atlaskit/rovo-triggers": "^12.1.0",
66
+ "@atlaskit/rovo-triggers": "^12.2.0",
67
67
  "@atlaskit/spinner": "^20.4.0",
68
68
  "@atlaskit/teams-app-config": "^3.1.0",
69
69
  "@atlaskit/teams-app-internal-analytics": "^2.4.0",
@@ -71,7 +71,7 @@
71
71
  "@atlaskit/teams-avatar": "^4.1.0",
72
72
  "@atlaskit/teams-public": "^3.4.0",
73
73
  "@atlaskit/theme": "^28.2.0",
74
- "@atlaskit/tmp-editor-statsig": "^235.0.0",
74
+ "@atlaskit/tmp-editor-statsig": "^237.0.0",
75
75
  "@atlaskit/tokens": "^20.5.0",
76
76
  "@atlaskit/tooltip": "^24.4.0",
77
77
  "@babel/runtime": "^7.0.0",
@@ -126,6 +126,9 @@
126
126
  "enable_ptc_townsquare_reporting_lines_unsharded": {
127
127
  "type": "boolean"
128
128
  },
129
+ "atlas_profilecard_skip_workspace_type_fetch": {
130
+ "type": "boolean"
131
+ },
129
132
  "platform_agg_user_query_doc_change": {
130
133
  "type": "boolean"
131
134
  },