@atlaskit/profilecard 20.4.2 → 20.5.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 +16 -0
- package/README.md +3 -14
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardResourced.js +3 -1
- package/dist/cjs/i18n/languages.js +4 -2
- 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/i18n/index.js +2 -2
- package/dist/es2019/i18n/languages.js +4 -2
- 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/i18n/index.js +2 -2
- package/dist/esm/i18n/languages.js +4 -2
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/i18n/index.d.ts +2 -2
- package/dist/types/i18n/languages.d.ts +3 -2
- package/dist/types-ts4.5/i18n/index.d.ts +2 -2
- package/dist/types-ts4.5/i18n/languages.d.ts +3 -2
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 20.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#153098](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/153098)
|
|
8
|
+
[`1e9b8abfd8903`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1e9b8abfd8903) -
|
|
9
|
+
Adding support for en-ZZ locale
|
|
10
|
+
|
|
11
|
+
## 20.4.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#151320](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151320)
|
|
16
|
+
[`0a42e535cdc1a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0a42e535cdc1a) -
|
|
17
|
+
PTC-10169 Update profilecard to react18
|
|
18
|
+
|
|
3
19
|
## 20.4.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -2,17 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
## i18n
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Pushing translation
|
|
9
|
-
|
|
10
|
-
In `atlaskit-mk-2/packages/people-and-teams/profilecard` folder:
|
|
11
|
-
|
|
12
|
-
- Run `yarn i18n:push` to build and then find messages in `dis/esm/src` and push them to Transifex
|
|
13
|
-
|
|
14
|
-
### Pulling translation
|
|
15
|
-
|
|
16
|
-
In `atlaskit-mk-2/packages/people-and-teams/profilecard` folder:
|
|
17
|
-
|
|
18
|
-
- Run `yarn i18n:pull` to delete current `src/i18n` folder and download all messages from Transifex and generate `src/i18n` again.
|
|
5
|
+
Localization is now handled by Traduki 2.0. Please refer to the
|
|
6
|
+
[People and Teams](https://go.atlassian.com/traduki-people-and-teams) subscription in Traduki for
|
|
7
|
+
more information.
|
|
@@ -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.
|
|
60
|
+
headers.append('atl-client-version', "20.5.0");
|
|
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
|
|
@@ -7,8 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
/**
|
|
8
8
|
* NOTE:
|
|
9
9
|
*
|
|
10
|
-
* This file
|
|
11
|
-
*
|
|
10
|
+
* This file was generated by i18n-tools which has been deprecated.
|
|
11
|
+
* It now requires manual updates.
|
|
12
12
|
*/
|
|
13
13
|
var _default = exports.default = {
|
|
14
14
|
zh: 'Chinese',
|
|
@@ -17,6 +17,8 @@ var _default = exports.default = {
|
|
|
17
17
|
nl: 'Dutch',
|
|
18
18
|
en: 'English',
|
|
19
19
|
en_GB: 'English (United Kingdom)',
|
|
20
|
+
en_ZZ: 'English (Instrumented)',
|
|
21
|
+
// Used by i18n team in staging
|
|
20
22
|
et: 'Estonian',
|
|
21
23
|
fi: 'Finnish',
|
|
22
24
|
fr: 'French',
|
|
@@ -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.
|
|
48
|
+
packageVersion: "20.5.0"
|
|
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.
|
|
70
|
+
headers.append('atl-client-version', "20.5.0");
|
|
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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was generated by i18n-tools which has been deprecated.
|
|
5
|
+
* It now requires manual updates.
|
|
6
6
|
*/
|
|
7
7
|
export { default as zh } from './zh';
|
|
8
8
|
export { default as zh_TW } from './zh_TW';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was generated by i18n-tools which has been deprecated.
|
|
5
|
+
* It now requires manual updates.
|
|
6
6
|
*/
|
|
7
7
|
export default {
|
|
8
8
|
zh: 'Chinese',
|
|
@@ -11,6 +11,8 @@ export default {
|
|
|
11
11
|
nl: 'Dutch',
|
|
12
12
|
en: 'English',
|
|
13
13
|
en_GB: 'English (United Kingdom)',
|
|
14
|
+
en_ZZ: 'English (Instrumented)',
|
|
15
|
+
// Used by i18n team in staging
|
|
14
16
|
et: 'Estonian',
|
|
15
17
|
fi: 'Finnish',
|
|
16
18
|
fr: 'French',
|
|
@@ -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.
|
|
35
|
+
packageVersion: "20.5.0",
|
|
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.
|
|
51
|
+
headers.append('atl-client-version', "20.5.0");
|
|
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
|
package/dist/esm/i18n/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was generated by i18n-tools which has been deprecated.
|
|
5
|
+
* It now requires manual updates.
|
|
6
6
|
*/
|
|
7
7
|
export { default as zh } from './zh';
|
|
8
8
|
export { default as zh_TW } from './zh_TW';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was generated by i18n-tools which has been deprecated.
|
|
5
|
+
* It now requires manual updates.
|
|
6
6
|
*/
|
|
7
7
|
export default {
|
|
8
8
|
zh: 'Chinese',
|
|
@@ -11,6 +11,8 @@ export default {
|
|
|
11
11
|
nl: 'Dutch',
|
|
12
12
|
en: 'English',
|
|
13
13
|
en_GB: 'English (United Kingdom)',
|
|
14
|
+
en_ZZ: 'English (Instrumented)',
|
|
15
|
+
// Used by i18n team in staging
|
|
14
16
|
et: 'Estonian',
|
|
15
17
|
fi: 'Finnish',
|
|
16
18
|
fr: 'French',
|
|
@@ -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.
|
|
42
|
+
packageVersion: "20.5.0"
|
|
43
43
|
}, attributes), {}, {
|
|
44
44
|
firedAt: Math.round(getPageTime())
|
|
45
45
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was generated by i18n-tools which has been deprecated.
|
|
5
|
+
* It now requires manual updates.
|
|
6
6
|
*/
|
|
7
7
|
export { default as zh } from './zh';
|
|
8
8
|
export { default as zh_TW } from './zh_TW';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was generated by i18n-tools which has been deprecated.
|
|
5
|
+
* It now requires manual updates.
|
|
6
6
|
*/
|
|
7
7
|
declare const _default: {
|
|
8
8
|
zh: string;
|
|
@@ -11,6 +11,7 @@ declare const _default: {
|
|
|
11
11
|
nl: string;
|
|
12
12
|
en: string;
|
|
13
13
|
en_GB: string;
|
|
14
|
+
en_ZZ: string;
|
|
14
15
|
et: string;
|
|
15
16
|
fi: string;
|
|
16
17
|
fr: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was generated by i18n-tools which has been deprecated.
|
|
5
|
+
* It now requires manual updates.
|
|
6
6
|
*/
|
|
7
7
|
export { default as zh } from './zh';
|
|
8
8
|
export { default as zh_TW } from './zh_TW';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file
|
|
5
|
-
*
|
|
4
|
+
* This file was generated by i18n-tools which has been deprecated.
|
|
5
|
+
* It now requires manual updates.
|
|
6
6
|
*/
|
|
7
7
|
declare const _default: {
|
|
8
8
|
zh: string;
|
|
@@ -11,6 +11,7 @@ declare const _default: {
|
|
|
11
11
|
nl: string;
|
|
12
12
|
en: string;
|
|
13
13
|
en_GB: string;
|
|
14
|
+
en_ZZ: string;
|
|
14
15
|
et: string;
|
|
15
16
|
fi: string;
|
|
16
17
|
fr: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.5.0",
|
|
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"
|
|
@@ -60,14 +61,14 @@
|
|
|
60
61
|
"@atlaskit/give-kudos": "^2.2.0",
|
|
61
62
|
"@atlaskit/icon": "^22.22.0",
|
|
62
63
|
"@atlaskit/lozenge": "^11.11.0",
|
|
63
|
-
"@atlaskit/menu": "^2.
|
|
64
|
+
"@atlaskit/menu": "^2.13.0",
|
|
64
65
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
65
66
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
66
67
|
"@atlaskit/popup": "^1.28.0",
|
|
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": {
|