@atlaskit/profilecard 20.12.1 → 20.12.2

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
+ ## 20.12.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 20.12.1
4
10
 
5
11
  ### 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', "20.12.1");
14
+ headers.append('atl-client-version', "20.12.2");
15
15
  return headers;
16
16
  };
17
17
  function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -57,7 +57,7 @@ var addHeaders = exports.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', "20.12.1");
60
+ headers.append('atl-client-version', "20.12.2");
61
61
  return headers;
62
62
  };
63
63
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -372,9 +372,7 @@ var TeamProfileCardTriggerInternal = exports.TeamProfileCardTriggerInternal = /*
372
372
  return _this4.renderTrigger(triggerProps);
373
373
  },
374
374
  zIndex: _constants.layers.modal(),
375
- shouldFlip: true
376
- // eslint-disable-next-line jsx-a11y/no-autofocus
377
- ,
375
+ shouldFlip: true,
378
376
  autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
379
377
  shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable_appropriate_reading_order_in_profile_card')
380
378
  }));
@@ -381,9 +381,7 @@ function ProfilecardTriggerNext(_ref2) {
381
381
  }), children);
382
382
  },
383
383
  zIndex: _constants.layers.modal(),
384
- shouldUseCaptureOnOutsideClick: true
385
- // eslint-disable-next-line jsx-a11y/no-autofocus
386
- ,
384
+ shouldUseCaptureOnOutsideClick: true,
387
385
  autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click'
388
386
  // This feature gate is currently enabled only for Jira_Web to avoid UI issues in Confluence_Web.
389
387
  ,
@@ -109,17 +109,21 @@ function ProfileCardTrigger(_ref) {
109
109
  }));
110
110
  },
111
111
  content: function content() {
112
- return /*#__PURE__*/_react.default.createElement("div", {
113
- onMouseEnter: onMouseEnter,
114
- onMouseLeave: hideProfilecard,
115
- onFocus: showProfilecard
116
- }, isLoading ? /*#__PURE__*/_react.default.createElement(_ProfileCardWrapper.ProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_LoadingState.LoadingState, {
117
- fireAnalytics: fireAnalytics,
118
- profileType: profileCardType
119
- })) : renderProfileCard({
120
- profileData: profileData,
121
- error: error
122
- }));
112
+ return (
113
+ /*#__PURE__*/
114
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
115
+ _react.default.createElement("div", {
116
+ onMouseEnter: onMouseEnter,
117
+ onMouseLeave: hideProfilecard,
118
+ onFocus: showProfilecard
119
+ }, isLoading ? /*#__PURE__*/_react.default.createElement(_ProfileCardWrapper.ProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_LoadingState.LoadingState, {
120
+ fireAnalytics: fireAnalytics,
121
+ profileType: profileCardType
122
+ })) : renderProfileCard({
123
+ profileData: profileData,
124
+ error: error
125
+ }))
126
+ );
123
127
  }
124
128
  }));
125
129
  }
@@ -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: "20.12.1"
48
+ packageVersion: "20.12.2"
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', "20.12.1");
9
+ headers.append('atl-client-version', "20.12.2");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -67,7 +67,7 @@ export const addHeaders = headers => {
67
67
  headers.append('X-ExperimentalApi', 'teams-beta');
68
68
  headers.append('X-ExperimentalApi', 'team-members-beta');
69
69
  headers.append('atl-client-name', "@atlaskit/profilecard");
70
- headers.append('atl-client-version', "20.12.1");
70
+ headers.append('atl-client-version', "20.12.2");
71
71
  return headers;
72
72
  };
73
73
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -327,9 +327,7 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
327
327
  content: this.renderProfileCard,
328
328
  trigger: triggerProps => this.renderTrigger(triggerProps),
329
329
  zIndex: layers.modal(),
330
- shouldFlip: true
331
- // eslint-disable-next-line jsx-a11y/no-autofocus
332
- ,
330
+ shouldFlip: true,
333
331
  autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
334
332
  shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
335
333
  }));
@@ -313,9 +313,7 @@ export default function ProfilecardTriggerNext({
313
313
  }), children);
314
314
  },
315
315
  zIndex: layers.modal(),
316
- shouldUseCaptureOnOutsideClick: true
317
- // eslint-disable-next-line jsx-a11y/no-autofocus
318
- ,
316
+ shouldUseCaptureOnOutsideClick: true,
319
317
  autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click'
320
318
  // This feature gate is currently enabled only for Jira_Web to avoid UI issues in Confluence_Web.
321
319
  ,
@@ -85,7 +85,10 @@ function ProfileCardTrigger({
85
85
  trigger: trigger
86
86
  }));
87
87
  },
88
- content: () => /*#__PURE__*/React.createElement("div", {
88
+ content: () =>
89
+ /*#__PURE__*/
90
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
91
+ React.createElement("div", {
89
92
  onMouseEnter: onMouseEnter,
90
93
  onMouseLeave: hideProfilecard,
91
94
  onFocus: showProfilecard
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
32
32
  actionSubjectId,
33
33
  attributes: {
34
34
  packageName: "@atlaskit/profilecard",
35
- packageVersion: "20.12.1",
35
+ packageVersion: "20.12.2",
36
36
  ...attributes,
37
37
  firedAt: Math.round(getPageTime())
38
38
  }
@@ -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', "20.12.1");
7
+ headers.append('atl-client-version', "20.12.2");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -48,7 +48,7 @@ export var addHeaders = function addHeaders(headers) {
48
48
  headers.append('X-ExperimentalApi', 'teams-beta');
49
49
  headers.append('X-ExperimentalApi', 'team-members-beta');
50
50
  headers.append('atl-client-name', "@atlaskit/profilecard");
51
- headers.append('atl-client-version', "20.12.1");
51
+ headers.append('atl-client-version', "20.12.2");
52
52
  return headers;
53
53
  };
54
54
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -362,9 +362,7 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
362
362
  return _this4.renderTrigger(triggerProps);
363
363
  },
364
364
  zIndex: layers.modal(),
365
- shouldFlip: true
366
- // eslint-disable-next-line jsx-a11y/no-autofocus
367
- ,
365
+ shouldFlip: true,
368
366
  autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
369
367
  shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
370
368
  }));
@@ -371,9 +371,7 @@ export default function ProfilecardTriggerNext(_ref2) {
371
371
  }), children);
372
372
  },
373
373
  zIndex: layers.modal(),
374
- shouldUseCaptureOnOutsideClick: true
375
- // eslint-disable-next-line jsx-a11y/no-autofocus
376
- ,
374
+ shouldUseCaptureOnOutsideClick: true,
377
375
  autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click'
378
376
  // This feature gate is currently enabled only for Jira_Web to avoid UI issues in Confluence_Web.
379
377
  ,
@@ -99,17 +99,21 @@ function ProfileCardTrigger(_ref) {
99
99
  }));
100
100
  },
101
101
  content: function content() {
102
- return /*#__PURE__*/React.createElement("div", {
103
- onMouseEnter: onMouseEnter,
104
- onMouseLeave: hideProfilecard,
105
- onFocus: showProfilecard
106
- }, isLoading ? /*#__PURE__*/React.createElement(ProfileCardWrapper, null, /*#__PURE__*/React.createElement(LoadingState, {
107
- fireAnalytics: fireAnalytics,
108
- profileType: profileCardType
109
- })) : renderProfileCard({
110
- profileData: profileData,
111
- error: error
112
- }));
102
+ return (
103
+ /*#__PURE__*/
104
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
105
+ React.createElement("div", {
106
+ onMouseEnter: onMouseEnter,
107
+ onMouseLeave: hideProfilecard,
108
+ onFocus: showProfilecard
109
+ }, isLoading ? /*#__PURE__*/React.createElement(ProfileCardWrapper, null, /*#__PURE__*/React.createElement(LoadingState, {
110
+ fireAnalytics: fireAnalytics,
111
+ profileType: profileCardType
112
+ })) : renderProfileCard({
113
+ profileData: profileData,
114
+ error: error
115
+ }))
116
+ );
113
117
  }
114
118
  }));
115
119
  }
@@ -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: "20.12.1"
42
+ packageVersion: "20.12.2"
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": "20.12.1",
3
+ "version": "20.12.2",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,17 +55,17 @@
55
55
  "@atlaskit/avatar": "^21.17.0",
56
56
  "@atlaskit/avatar-group": "^10.0.0",
57
57
  "@atlaskit/button": "^20.3.0",
58
- "@atlaskit/dropdown-menu": "^12.22.0",
58
+ "@atlaskit/dropdown-menu": "^12.23.0",
59
59
  "@atlaskit/empty-state": "^7.12.0",
60
- "@atlaskit/focus-ring": "^1.7.0",
60
+ "@atlaskit/focus-ring": "^2.0.0",
61
61
  "@atlaskit/give-kudos": "^2.3.0",
62
- "@atlaskit/icon": "^22.25.0",
62
+ "@atlaskit/icon": "^22.26.0",
63
63
  "@atlaskit/lozenge": "^11.12.0",
64
64
  "@atlaskit/menu": "^2.13.0",
65
65
  "@atlaskit/modal-dialog": "^12.17.0",
66
66
  "@atlaskit/platform-feature-flags": "^0.3.0",
67
67
  "@atlaskit/popup": "^1.29.0",
68
- "@atlaskit/primitives": "^13.2.0",
68
+ "@atlaskit/primitives": "^13.3.0",
69
69
  "@atlaskit/rovo-agent-components": "^1.14.0",
70
70
  "@atlaskit/rovo-triggers": "^1.4.0",
71
71
  "@atlaskit/spinner": "^16.3.0",