@atlaskit/profilecard 17.2.7 → 17.3.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 +12 -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 +2 -2
- package/report.api.md +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 17.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`b2ef0c20138`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b2ef0c20138) - [ux] Don't shift focus when triggering user or team profilecard via hover
|
|
14
|
+
|
|
3
15
|
## 17.2.7
|
|
4
16
|
|
|
5
17
|
### 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.1"
|
|
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.1",
|
|
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.1"
|
|
52
52
|
}, attributes), {}, {
|
|
53
53
|
firedAt: Math.round(getPageTime())
|
|
54
54
|
})
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.3.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/avatar-group": "^9.1.0",
|
|
44
44
|
"@atlaskit/button": "^16.4.0",
|
|
45
45
|
"@atlaskit/dropdown-menu": "^11.5.0",
|
|
46
|
-
"@atlaskit/give-kudos": "^0.
|
|
46
|
+
"@atlaskit/give-kudos": "^1.0.0",
|
|
47
47
|
"@atlaskit/icon": "^21.11.0",
|
|
48
48
|
"@atlaskit/lozenge": "^11.3.0",
|
|
49
49
|
"@atlaskit/menu": "^1.4.0",
|
package/report.api.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
### Table of contents
|
|
9
9
|
|
|
10
10
|
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
- [Peer Dependencies](#peer-dependencies)
|
|
11
12
|
|
|
12
13
|
### Main Entry Types
|
|
13
14
|
|
|
@@ -705,3 +706,17 @@ export interface WithOuterListenersProps {
|
|
|
705
706
|
```
|
|
706
707
|
|
|
707
708
|
<!--SECTION END: Main Entry Types-->
|
|
709
|
+
|
|
710
|
+
### Peer Dependencies
|
|
711
|
+
|
|
712
|
+
<!--SECTION START: Peer Dependencies-->
|
|
713
|
+
|
|
714
|
+
```json
|
|
715
|
+
{
|
|
716
|
+
"react": "^16.8.0",
|
|
717
|
+
"react-dom": "^16.8.0",
|
|
718
|
+
"styled-components": "^3.2.6"
|
|
719
|
+
}
|
|
720
|
+
```
|
|
721
|
+
|
|
722
|
+
<!--SECTION END: Peer Dependencies-->
|