@atlaskit/profilecard 22.0.0 → 22.0.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 22.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 22.0.0
4
10
 
5
11
  ### Major Changes
@@ -21,12 +21,12 @@ function isIgnoredError(error) {
21
21
  }
22
22
  return false;
23
23
  }
24
- var getErrorAttributes = exports.getErrorAttributes = function getErrorAttributes(error) {
24
+ var _getErrorAttributes = exports.getErrorAttributes = function getErrorAttributes(error) {
25
25
  if (error instanceof _errors.DirectoryGraphQLErrors) {
26
26
  return {
27
27
  errorMessage: error.message,
28
28
  errorCount: error.errors.length,
29
- errorDetails: error.errors.map(getErrorAttributes),
29
+ errorDetails: error.errors.map(_getErrorAttributes),
30
30
  isSLOFailure: !error.errors.every(isIgnoredError),
31
31
  traceId: error.traceId
32
32
  };
@@ -43,7 +43,7 @@ var getErrorAttributes = exports.getErrorAttributes = function getErrorAttribute
43
43
  return {
44
44
  errorMessage: error.message,
45
45
  errorCount: error.errors.length,
46
- errorDetails: error.errors.map(getErrorAttributes),
46
+ errorDetails: error.errors.map(_getErrorAttributes),
47
47
  isSLOFailure: !error.errors.every(isIgnoredError),
48
48
  traceId: error.traceId
49
49
  };
@@ -61,7 +61,7 @@ var getErrorAttributes = exports.getErrorAttributes = function getErrorAttribute
61
61
  if (error.hasOwnProperty('cause')) {
62
62
  var causeError = error.cause;
63
63
  if (causeError instanceof _errors.DirectoryGraphQLErrors || causeError instanceof _errors.AGGErrors) {
64
- return getErrorAttributes(causeError);
64
+ return _getErrorAttributes(causeError);
65
65
  }
66
66
  }
67
67
  return {
@@ -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', "22.0.0");
14
+ headers.append('atl-client-version', "22.0.1");
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', "22.0.0");
69
+ headers.append('atl-client-version', "22.0.1");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
45
45
  actionSubjectId: actionSubjectId,
46
46
  attributes: _objectSpread(_objectSpread({
47
47
  packageName: "@atlaskit/profilecard",
48
- packageVersion: "22.0.0"
48
+ packageVersion: "22.0.1"
49
49
  }, attributes), {}, {
50
50
  firedAt: Math.round((0, _performance.getPageTime)())
51
51
  })
@@ -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', "22.0.0");
9
+ headers.append('atl-client-version', "22.0.1");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -75,7 +75,7 @@ export const addHeaders = headers => {
75
75
  headers.append('X-ExperimentalApi', 'teams-beta');
76
76
  headers.append('X-ExperimentalApi', 'team-members-beta');
77
77
  headers.append('atl-client-name', "@atlaskit/profilecard");
78
- headers.append('atl-client-version', "22.0.0");
78
+ headers.append('atl-client-version', "22.0.1");
79
79
  return headers;
80
80
  };
81
81
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
32
32
  actionSubjectId,
33
33
  attributes: {
34
34
  packageName: "@atlaskit/profilecard",
35
- packageVersion: "22.0.0",
35
+ packageVersion: "22.0.1",
36
36
  ...attributes,
37
37
  firedAt: Math.round(getPageTime())
38
38
  }
@@ -15,12 +15,12 @@ function isIgnoredError(error) {
15
15
  }
16
16
  return false;
17
17
  }
18
- export var getErrorAttributes = function getErrorAttributes(error) {
18
+ var _getErrorAttributes = function getErrorAttributes(error) {
19
19
  if (error instanceof DirectoryGraphQLErrors) {
20
20
  return {
21
21
  errorMessage: error.message,
22
22
  errorCount: error.errors.length,
23
- errorDetails: error.errors.map(getErrorAttributes),
23
+ errorDetails: error.errors.map(_getErrorAttributes),
24
24
  isSLOFailure: !error.errors.every(isIgnoredError),
25
25
  traceId: error.traceId
26
26
  };
@@ -37,7 +37,7 @@ export var getErrorAttributes = function getErrorAttributes(error) {
37
37
  return {
38
38
  errorMessage: error.message,
39
39
  errorCount: error.errors.length,
40
- errorDetails: error.errors.map(getErrorAttributes),
40
+ errorDetails: error.errors.map(_getErrorAttributes),
41
41
  isSLOFailure: !error.errors.every(isIgnoredError),
42
42
  traceId: error.traceId
43
43
  };
@@ -55,7 +55,7 @@ export var getErrorAttributes = function getErrorAttributes(error) {
55
55
  if (error.hasOwnProperty('cause')) {
56
56
  var causeError = error.cause;
57
57
  if (causeError instanceof DirectoryGraphQLErrors || causeError instanceof AGGErrors) {
58
- return getErrorAttributes(causeError);
58
+ return _getErrorAttributes(causeError);
59
59
  }
60
60
  }
61
61
  return {
@@ -75,6 +75,7 @@ export var getErrorAttributes = function getErrorAttributes(error) {
75
75
  isSLOFailure: true
76
76
  };
77
77
  };
78
+ export { _getErrorAttributes as getErrorAttributes };
78
79
  export var handleDirectoryGraphQLErrors = function handleDirectoryGraphQLErrors(errors, traceId) {
79
80
  throw new DirectoryGraphQLErrors(errors, traceId);
80
81
  };
@@ -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', "22.0.0");
7
+ headers.append('atl-client-version', "22.0.1");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -57,7 +57,7 @@ export var addHeaders = function addHeaders(headers) {
57
57
  headers.append('X-ExperimentalApi', 'teams-beta');
58
58
  headers.append('X-ExperimentalApi', 'team-members-beta');
59
59
  headers.append('atl-client-name', "@atlaskit/profilecard");
60
- headers.append('atl-client-version', "22.0.0");
60
+ headers.append('atl-client-version', "22.0.1");
61
61
  return headers;
62
62
  };
63
63
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -39,7 +39,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
39
39
  actionSubjectId: actionSubjectId,
40
40
  attributes: _objectSpread(_objectSpread({
41
41
  packageName: "@atlaskit/profilecard",
42
- packageVersion: "22.0.0"
42
+ packageVersion: "22.0.1"
43
43
  }, attributes), {}, {
44
44
  firedAt: Math.round(getPageTime())
45
45
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "22.0.0",
3
+ "version": "22.0.1",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -59,12 +59,12 @@
59
59
  "@atlaskit/empty-state": "^8.2.0",
60
60
  "@atlaskit/focus-ring": "^2.1.0",
61
61
  "@atlaskit/give-kudos": "^3.1.0",
62
- "@atlaskit/icon": "^23.5.0",
62
+ "@atlaskit/icon": "^23.6.0",
63
63
  "@atlaskit/lozenge": "^11.13.0",
64
64
  "@atlaskit/menu": "^2.14.0",
65
65
  "@atlaskit/modal-dialog": "^12.20.0",
66
66
  "@atlaskit/people-teams-ui-public": "^2.1.0",
67
- "@atlaskit/platform-feature-flags": "^0.3.0",
67
+ "@atlaskit/platform-feature-flags": "^1.0.0",
68
68
  "@atlaskit/popup": "^1.31.0",
69
69
  "@atlaskit/primitives": "^13.4.0",
70
70
  "@atlaskit/rovo-agent-components": "^1.17.0",