@atlaskit/profilecard 17.2.7 → 17.3.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
+ ## 17.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b2ef0c20138`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b2ef0c20138) - [ux] Don't shift focus when triggering user or team profilecard via hover
8
+
3
9
  ## 17.2.7
4
10
 
5
11
  ### Patch Changes
@@ -429,7 +429,8 @@ var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureComponent
429
429
  return _this4.renderTrigger(triggerProps);
430
430
  },
431
431
  zIndex: _constants.layers.modal(),
432
- shouldFlip: true
432
+ shouldFlip: true,
433
+ autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
433
434
  }));
434
435
  }
435
436
  }, {
@@ -325,7 +325,8 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
325
325
  }), _this3.props.children);
326
326
  },
327
327
  zIndex: _constants.layers.modal(),
328
- shouldUseCaptureOnOutsideClick: true
328
+ shouldUseCaptureOnOutsideClick: true,
329
+ autoFocus: this.props.trigger === 'click'
329
330
  }), this.state.shouldShowGiveKudos && /*#__PURE__*/_react.default.createElement(_react.Suspense, {
330
331
  fallback: null
331
332
  }, /*#__PURE__*/_react.default.createElement(_giveKudos.GiveKudosLauncherLazy, {
@@ -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: "17.2.7"
62
+ packageVersion: "17.3.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": "17.2.7"
3
+ "version": "17.3.0"
4
4
  }
@@ -369,7 +369,8 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
369
369
  content: this.renderProfileCard,
370
370
  trigger: triggerProps => this.renderTrigger(triggerProps),
371
371
  zIndex: layers.modal(),
372
- shouldFlip: true
372
+ shouldFlip: true,
373
+ autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
373
374
  }));
374
375
  }
375
376
 
@@ -262,7 +262,8 @@ class ProfilecardTrigger extends React.PureComponent {
262
262
  }), this.props.children);
263
263
  },
264
264
  zIndex: layers.modal(),
265
- shouldUseCaptureOnOutsideClick: true
265
+ shouldUseCaptureOnOutsideClick: true,
266
+ autoFocus: this.props.trigger === 'click'
266
267
  }), this.state.shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
267
268
  fallback: null
268
269
  }, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
@@ -38,7 +38,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
38
38
  actionSubjectId,
39
39
  attributes: {
40
40
  packageName: "@atlaskit/profilecard",
41
- packageVersion: "17.2.7",
41
+ packageVersion: "17.3.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": "17.2.7"
3
+ "version": "17.3.0"
4
4
  }
@@ -417,7 +417,8 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
417
417
  return _this4.renderTrigger(triggerProps);
418
418
  },
419
419
  zIndex: layers.modal(),
420
- shouldFlip: true
420
+ shouldFlip: true,
421
+ autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
421
422
  }));
422
423
  }
423
424
  }, {
@@ -309,7 +309,8 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
309
309
  }), _this3.props.children);
310
310
  },
311
311
  zIndex: layers.modal(),
312
- shouldUseCaptureOnOutsideClick: true
312
+ shouldUseCaptureOnOutsideClick: true,
313
+ autoFocus: this.props.trigger === 'click'
313
314
  }), this.state.shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
314
315
  fallback: null
315
316
  }, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
@@ -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: "17.2.7"
51
+ packageVersion: "17.3.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": "17.2.7"
3
+ "version": "17.3.0"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "17.2.7",
3
+ "version": "17.3.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"