@atlaskit/profilecard 18.0.2 → 18.1.0

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,11 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 18.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`227230d34f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/227230d34f2) - Allow option to force team profilecard to use pf-directory
8
+
3
9
  ## 18.0.2
4
10
 
5
11
  ### Patch Changes
@@ -108,7 +108,7 @@ var TeamProfileCardClient = /*#__PURE__*/function (_CachingClient) {
108
108
  analytics((0, _analytics.teamRequestAnalytics)('triggered'));
109
109
  }
110
110
 
111
- var shouldUseGateway = !!_this2.options.gatewayGraphqlUrl;
111
+ var shouldUseGateway = !!_this2.options.gatewayGraphqlUrl && !_this2.options.teamsUseV2;
112
112
  var promise = shouldUseGateway ? _this2.makeRequestViaGateway(teamId, orgId) : _this2.makeRequest(teamId, orgId);
113
113
  promise.then(function (data) {
114
114
  if (_this2.cache) {
@@ -59,7 +59,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
59
59
  actionSubjectId: actionSubjectId,
60
60
  attributes: _objectSpread(_objectSpread({
61
61
  packageName: "@atlaskit/profilecard",
62
- packageVersion: "18.0.2"
62
+ packageVersion: "18.1.0"
63
63
  }, attributes), {}, {
64
64
  firedAt: Math.round((0, _performance.getPageTime)())
65
65
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "18.0.2"
3
+ "version": "18.1.0"
4
4
  }
@@ -70,7 +70,7 @@ export default class TeamProfileCardClient extends CachingClient {
70
70
  analytics(teamRequestAnalytics('triggered'));
71
71
  }
72
72
 
73
- const shouldUseGateway = !!this.options.gatewayGraphqlUrl;
73
+ const shouldUseGateway = !!this.options.gatewayGraphqlUrl && !this.options.teamsUseV2;
74
74
  const promise = shouldUseGateway ? this.makeRequestViaGateway(teamId, orgId) : this.makeRequest(teamId, orgId);
75
75
  promise.then(data => {
76
76
  if (this.cache) {
@@ -38,7 +38,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
38
38
  actionSubjectId,
39
39
  attributes: {
40
40
  packageName: "@atlaskit/profilecard",
41
- packageVersion: "18.0.2",
41
+ packageVersion: "18.1.0",
42
42
  ...attributes,
43
43
  firedAt: Math.round(getPageTime())
44
44
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "18.0.2"
3
+ "version": "18.1.0"
4
4
  }
@@ -89,7 +89,7 @@ var TeamProfileCardClient = /*#__PURE__*/function (_CachingClient) {
89
89
  analytics(teamRequestAnalytics('triggered'));
90
90
  }
91
91
 
92
- var shouldUseGateway = !!_this2.options.gatewayGraphqlUrl;
92
+ var shouldUseGateway = !!_this2.options.gatewayGraphqlUrl && !_this2.options.teamsUseV2;
93
93
  var promise = shouldUseGateway ? _this2.makeRequestViaGateway(teamId, orgId) : _this2.makeRequest(teamId, orgId);
94
94
  promise.then(function (data) {
95
95
  if (_this2.cache) {
@@ -48,7 +48,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
48
48
  actionSubjectId: actionSubjectId,
49
49
  attributes: _objectSpread(_objectSpread({
50
50
  packageName: "@atlaskit/profilecard",
51
- packageVersion: "18.0.2"
51
+ packageVersion: "18.1.0"
52
52
  }, attributes), {}, {
53
53
  firedAt: Math.round(getPageTime())
54
54
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "18.0.2"
3
+ "version": "18.1.0"
4
4
  }
@@ -337,6 +337,7 @@ export declare type ProfileCardErrorType = {
337
337
  } | null;
338
338
  export interface ProfileClientOptions {
339
339
  url: string;
340
+ teamsUseV2?: boolean;
340
341
  gatewayGraphqlUrl?: string;
341
342
  cacheSize?: number;
342
343
  cacheMaxAge?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "18.0.2",
3
+ "version": "18.1.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@atlaskit/analytics-next": "^8.2.0",
42
42
  "@atlaskit/avatar": "^21.1.0",
43
- "@atlaskit/avatar-group": "^9.1.0",
43
+ "@atlaskit/avatar-group": "^9.2.0",
44
44
  "@atlaskit/button": "^16.5.0",
45
45
  "@atlaskit/dropdown-menu": "^11.5.0",
46
46
  "@atlaskit/give-kudos": "^1.0.0",
@@ -68,7 +68,7 @@
68
68
  "@atlaskit/dynamic-table": "^14.8.0",
69
69
  "@atlaskit/flag": "^15.0.0",
70
70
  "@atlaskit/inline-edit": "^12.2.0",
71
- "@atlaskit/select": "^16.0.0",
71
+ "@atlaskit/select": "^16.1.0",
72
72
  "@atlaskit/util-data-test": "^17.6.0",
73
73
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
74
74
  "@testing-library/react": "^12.1.5",
package/report.api.md CHANGED
@@ -480,6 +480,8 @@ export interface ProfileClientOptions {
480
480
  teamCentralBaseUrl?: string;
481
481
  teamCentralUrl?: string;
482
482
  // (undocumented)
483
+ teamsUseV2?: boolean;
484
+ // (undocumented)
483
485
  url: string;
484
486
  }
485
487
 
@@ -392,6 +392,8 @@ export interface ProfileClientOptions {
392
392
  teamCentralBaseUrl?: string;
393
393
  teamCentralUrl?: string;
394
394
  // (undocumented)
395
+ teamsUseV2?: boolean;
396
+ // (undocumented)
395
397
  url: string;
396
398
  }
397
399