@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 +6 -0
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +2 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +2 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +2 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +2 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +2 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +2 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +1 -1
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.
|
|
62
|
+
packageVersion: "17.3.0"
|
|
63
63
|
}, attributes), {}, {
|
|
64
64
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
65
65
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -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.
|
|
41
|
+
packageVersion: "17.3.0",
|
|
42
42
|
...attributes,
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -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.
|
|
51
|
+
packageVersion: "17.3.0"
|
|
52
52
|
}, attributes), {}, {
|
|
53
53
|
firedAt: Math.round(getPageTime())
|
|
54
54
|
})
|
package/dist/esm/version.json
CHANGED