@atlaskit/profilecard 19.7.2 → 19.7.4
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/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +5 -8
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +5 -8
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +5 -8
- package/dist/esm/util/analytics.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 19.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.7.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#42285](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42285) [`e9af0f05581`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e9af0f05581) - [ux] PTC-8007 remove on focus handler to fix a11y issue for screen reader users
|
|
14
|
+
|
|
3
15
|
## 19.7.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -60,7 +60,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
60
60
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
61
61
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
62
62
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
63
|
-
headers.append('atl-client-version', "19.7.
|
|
63
|
+
headers.append('atl-client-version', "19.7.4");
|
|
64
64
|
return headers;
|
|
65
65
|
};
|
|
66
66
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -95,12 +95,6 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
95
95
|
_this.fireAnalytics((0, _analytics.cardTriggered)('user', 'hover'));
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onFocus", function () {
|
|
99
|
-
_this.showProfilecard();
|
|
100
|
-
if (!_this.state.visible) {
|
|
101
|
-
_this.fireAnalytics((0, _analytics.cardTriggered)('user', 'hover'));
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
98
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onKeyPress", function (event) {
|
|
105
99
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
106
100
|
event.preventDefault();
|
|
@@ -110,11 +104,14 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
110
104
|
}
|
|
111
105
|
}
|
|
112
106
|
});
|
|
107
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onFocus", function () {
|
|
108
|
+
_this.showProfilecard();
|
|
109
|
+
});
|
|
113
110
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "containerListeners", _this.props.trigger === 'hover' ? {
|
|
114
111
|
onMouseEnter: _this.onMouseEnter,
|
|
115
112
|
onMouseLeave: _this.hideProfilecard,
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
onBlur: _this.hideProfilecard,
|
|
114
|
+
onKeyPress: _this.onKeyPress
|
|
118
115
|
} : {
|
|
119
116
|
onClick: _this.onClick,
|
|
120
117
|
onKeyPress: _this.onKeyPress
|
|
@@ -44,7 +44,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
44
44
|
actionSubjectId: actionSubjectId,
|
|
45
45
|
attributes: _objectSpread(_objectSpread({
|
|
46
46
|
packageName: "@atlaskit/profilecard",
|
|
47
|
-
packageVersion: "19.7.
|
|
47
|
+
packageVersion: "19.7.4"
|
|
48
48
|
}, attributes), {}, {
|
|
49
49
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
50
50
|
})
|
|
@@ -77,7 +77,7 @@ export const addHeaders = headers => {
|
|
|
77
77
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
78
78
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
79
79
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
80
|
-
headers.append('atl-client-version', "19.7.
|
|
80
|
+
headers.append('atl-client-version', "19.7.4");
|
|
81
81
|
return headers;
|
|
82
82
|
};
|
|
83
83
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -65,12 +65,6 @@ class ProfilecardTrigger extends React.PureComponent {
|
|
|
65
65
|
this.fireAnalytics(cardTriggered('user', 'hover'));
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
-
_defineProperty(this, "onFocus", () => {
|
|
69
|
-
this.showProfilecard();
|
|
70
|
-
if (!this.state.visible) {
|
|
71
|
-
this.fireAnalytics(cardTriggered('user', 'hover'));
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
68
|
_defineProperty(this, "onKeyPress", event => {
|
|
75
69
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
76
70
|
event.preventDefault();
|
|
@@ -80,11 +74,14 @@ class ProfilecardTrigger extends React.PureComponent {
|
|
|
80
74
|
}
|
|
81
75
|
}
|
|
82
76
|
});
|
|
77
|
+
_defineProperty(this, "onFocus", () => {
|
|
78
|
+
this.showProfilecard();
|
|
79
|
+
});
|
|
83
80
|
_defineProperty(this, "containerListeners", this.props.trigger === 'hover' ? {
|
|
84
81
|
onMouseEnter: this.onMouseEnter,
|
|
85
82
|
onMouseLeave: this.hideProfilecard,
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
onBlur: this.hideProfilecard,
|
|
84
|
+
onKeyPress: this.onKeyPress
|
|
88
85
|
} : {
|
|
89
86
|
onClick: this.onClick,
|
|
90
87
|
onKeyPress: this.onKeyPress
|
|
@@ -31,7 +31,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
31
31
|
actionSubjectId,
|
|
32
32
|
attributes: {
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "19.7.
|
|
34
|
+
packageVersion: "19.7.4",
|
|
35
35
|
...attributes,
|
|
36
36
|
firedAt: Math.round(getPageTime())
|
|
37
37
|
}
|
|
@@ -51,7 +51,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
51
51
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
52
52
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
53
53
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
54
|
-
headers.append('atl-client-version', "19.7.
|
|
54
|
+
headers.append('atl-client-version', "19.7.4");
|
|
55
55
|
return headers;
|
|
56
56
|
};
|
|
57
57
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -85,12 +85,6 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
85
85
|
_this.fireAnalytics(cardTriggered('user', 'hover'));
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
|
-
_defineProperty(_assertThisInitialized(_this), "onFocus", function () {
|
|
89
|
-
_this.showProfilecard();
|
|
90
|
-
if (!_this.state.visible) {
|
|
91
|
-
_this.fireAnalytics(cardTriggered('user', 'hover'));
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
88
|
_defineProperty(_assertThisInitialized(_this), "onKeyPress", function (event) {
|
|
95
89
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
96
90
|
event.preventDefault();
|
|
@@ -100,11 +94,14 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
100
94
|
}
|
|
101
95
|
}
|
|
102
96
|
});
|
|
97
|
+
_defineProperty(_assertThisInitialized(_this), "onFocus", function () {
|
|
98
|
+
_this.showProfilecard();
|
|
99
|
+
});
|
|
103
100
|
_defineProperty(_assertThisInitialized(_this), "containerListeners", _this.props.trigger === 'hover' ? {
|
|
104
101
|
onMouseEnter: _this.onMouseEnter,
|
|
105
102
|
onMouseLeave: _this.hideProfilecard,
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
onBlur: _this.hideProfilecard,
|
|
104
|
+
onKeyPress: _this.onKeyPress
|
|
108
105
|
} : {
|
|
109
106
|
onClick: _this.onClick,
|
|
110
107
|
onKeyPress: _this.onKeyPress
|
|
@@ -38,7 +38,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
38
38
|
actionSubjectId: actionSubjectId,
|
|
39
39
|
attributes: _objectSpread(_objectSpread({
|
|
40
40
|
packageName: "@atlaskit/profilecard",
|
|
41
|
-
packageVersion: "19.7.
|
|
41
|
+
packageVersion: "19.7.4"
|
|
42
42
|
}, attributes), {}, {
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "19.7.
|
|
3
|
+
"version": "19.7.4",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
53
53
|
"@atlaskit/avatar": "^21.4.0",
|
|
54
54
|
"@atlaskit/avatar-group": "^9.4.0",
|
|
55
|
-
"@atlaskit/button": "^16.
|
|
55
|
+
"@atlaskit/button": "^16.16.0",
|
|
56
56
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
57
57
|
"@atlaskit/empty-state": "^7.6.0",
|
|
58
58
|
"@atlaskit/focus-ring": "^1.3.4",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/menu": "^2.1.0",
|
|
63
63
|
"@atlaskit/platform-feature-flags": "^0.2.4",
|
|
64
64
|
"@atlaskit/popup": "^1.11.0",
|
|
65
|
-
"@atlaskit/spinner": "^
|
|
65
|
+
"@atlaskit/spinner": "^16.0.0",
|
|
66
66
|
"@atlaskit/theme": "^12.6.0",
|
|
67
67
|
"@atlaskit/tokens": "^1.28.0",
|
|
68
68
|
"@babel/runtime": "^7.0.0",
|