@atlaskit/profilecard 20.4.1 → 20.4.3
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 +14 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardResourced.js +3 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/User/ProfileCardResourced.js +3 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/User/ProfileCardResourced.js +3 -1
- package/dist/esm/util/analytics.js +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 20.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#151320](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151320)
|
|
8
|
+
[`0a42e535cdc1a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0a42e535cdc1a) -
|
|
9
|
+
PTC-10169 Update profilecard to react18
|
|
10
|
+
|
|
11
|
+
## 20.4.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 20.4.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -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.4.
|
|
60
|
+
headers.append('atl-client-version', "20.4.3");
|
|
61
61
|
return headers;
|
|
62
62
|
};
|
|
63
63
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -171,7 +171,9 @@ var ProfileCardResourced = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
171
171
|
fireAnalytics: this.fireAnalytics
|
|
172
172
|
}));
|
|
173
173
|
} else if (hasError) {
|
|
174
|
-
return /*#__PURE__*/_react.default.createElement(_Card.CardWrapper,
|
|
174
|
+
return /*#__PURE__*/_react.default.createElement(_Card.CardWrapper, {
|
|
175
|
+
"data-testid": "profile-card-resourced-error-state"
|
|
176
|
+
}, /*#__PURE__*/_react.default.createElement(_Error.ErrorMessage, {
|
|
175
177
|
errorType: error,
|
|
176
178
|
reload: this.clientFetchProfile,
|
|
177
179
|
fireAnalytics: this.fireAnalytics
|
|
@@ -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.4.
|
|
48
|
+
packageVersion: "20.4.3"
|
|
49
49
|
}, attributes), {}, {
|
|
50
50
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
51
51
|
})
|
|
@@ -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.4.
|
|
70
|
+
headers.append('atl-client-version', "20.4.3");
|
|
71
71
|
return headers;
|
|
72
72
|
};
|
|
73
73
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -127,7 +127,9 @@ class ProfileCardResourced extends React.PureComponent {
|
|
|
127
127
|
fireAnalytics: this.fireAnalytics
|
|
128
128
|
}));
|
|
129
129
|
} else if (hasError) {
|
|
130
|
-
return /*#__PURE__*/React.createElement(CardWrapper,
|
|
130
|
+
return /*#__PURE__*/React.createElement(CardWrapper, {
|
|
131
|
+
"data-testid": "profile-card-resourced-error-state"
|
|
132
|
+
}, /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
131
133
|
errorType: error,
|
|
132
134
|
reload: this.clientFetchProfile,
|
|
133
135
|
fireAnalytics: this.fireAnalytics
|
|
@@ -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.4.
|
|
35
|
+
packageVersion: "20.4.3",
|
|
36
36
|
...attributes,
|
|
37
37
|
firedAt: Math.round(getPageTime())
|
|
38
38
|
}
|
|
@@ -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.4.
|
|
51
|
+
headers.append('atl-client-version', "20.4.3");
|
|
52
52
|
return headers;
|
|
53
53
|
};
|
|
54
54
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -161,7 +161,9 @@ var ProfileCardResourced = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
161
161
|
fireAnalytics: this.fireAnalytics
|
|
162
162
|
}));
|
|
163
163
|
} else if (hasError) {
|
|
164
|
-
return /*#__PURE__*/React.createElement(CardWrapper,
|
|
164
|
+
return /*#__PURE__*/React.createElement(CardWrapper, {
|
|
165
|
+
"data-testid": "profile-card-resourced-error-state"
|
|
166
|
+
}, /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
165
167
|
errorType: error,
|
|
166
168
|
reload: this.clientFetchProfile,
|
|
167
169
|
fireAnalytics: this.fireAnalytics
|
|
@@ -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.4.
|
|
42
|
+
packageVersion: "20.4.3"
|
|
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.4.
|
|
3
|
+
"version": "20.4.3",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"atlaskit:src": "src/index.ts",
|
|
24
24
|
"atlassian": {
|
|
25
|
+
"runReact18": true,
|
|
25
26
|
"team": "People and Teams Collective",
|
|
26
27
|
"website": {
|
|
27
28
|
"name": "Profilecard"
|
|
@@ -52,9 +53,9 @@
|
|
|
52
53
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
53
54
|
"@atlaskit/atlassian-context": "^0.0.2",
|
|
54
55
|
"@atlaskit/avatar": "^21.15.0",
|
|
55
|
-
"@atlaskit/avatar-group": "^
|
|
56
|
+
"@atlaskit/avatar-group": "^10.0.0",
|
|
56
57
|
"@atlaskit/button": "^20.2.0",
|
|
57
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
58
|
+
"@atlaskit/dropdown-menu": "^12.20.0",
|
|
58
59
|
"@atlaskit/empty-state": "^7.11.0",
|
|
59
60
|
"@atlaskit/focus-ring": "^1.6.0",
|
|
60
61
|
"@atlaskit/give-kudos": "^2.2.0",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"@atlaskit/primitives": "^12.2.0",
|
|
68
69
|
"@atlaskit/rovo-agent-components": "^1.6.0",
|
|
69
70
|
"@atlaskit/spinner": "^16.3.0",
|
|
70
|
-
"@atlaskit/theme": "^13.
|
|
71
|
+
"@atlaskit/theme": "^13.1.0",
|
|
71
72
|
"@atlaskit/tokens": "^2.0.0",
|
|
72
73
|
"@atlaskit/tooltip": "^18.8.0",
|
|
73
74
|
"@babel/runtime": "^7.0.0",
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
81
82
|
},
|
|
82
83
|
"peerDependencies": {
|
|
83
|
-
"react": "^16.8.0",
|
|
84
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.2.0",
|
|
84
85
|
"react-dom": "^16.8.0"
|
|
85
86
|
},
|
|
86
87
|
"devDependencies": {
|