@atlaskit/profilecard 16.2.3 → 16.4.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 +18 -0
- package/dist/cjs/client/TeamProfileCardClient.js +18 -8
- package/dist/cjs/client/getTeamFromAGG.js +106 -0
- package/dist/cjs/client/graphqlUtils.js +8 -1
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +1 -1
- package/dist/cjs/i18n/cs.js +4 -2
- package/dist/cjs/i18n/da.js +4 -2
- package/dist/cjs/i18n/de.js +4 -2
- package/dist/cjs/i18n/en_ZZ.js +4 -2
- package/dist/cjs/i18n/es.js +4 -2
- package/dist/cjs/i18n/et.js +2 -2
- package/dist/cjs/i18n/fi.js +4 -2
- package/dist/cjs/i18n/fr.js +4 -2
- package/dist/cjs/i18n/hu.js +4 -2
- package/dist/cjs/i18n/it.js +4 -2
- package/dist/cjs/i18n/ja.js +4 -2
- package/dist/cjs/i18n/ko.js +4 -2
- package/dist/cjs/i18n/nb.js +4 -2
- package/dist/cjs/i18n/nl.js +4 -2
- package/dist/cjs/i18n/pl.js +4 -2
- package/dist/cjs/i18n/pt_BR.js +4 -2
- package/dist/cjs/i18n/pt_PT.js +2 -2
- package/dist/cjs/i18n/ru.js +4 -2
- package/dist/cjs/i18n/sk.js +2 -2
- package/dist/cjs/i18n/sv.js +4 -2
- package/dist/cjs/i18n/th.js +4 -2
- package/dist/cjs/i18n/tr.js +4 -2
- package/dist/cjs/i18n/uk.js +4 -2
- package/dist/cjs/i18n/vi.js +4 -2
- package/dist/cjs/i18n/zh.js +4 -2
- package/dist/cjs/i18n/zh_TW.js +4 -2
- package/dist/cjs/mocks/mock-team-client.js +5 -0
- package/dist/cjs/util/analytics.js +32 -7
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/client/TeamProfileCardClient.js +16 -8
- package/dist/es2019/client/getTeamFromAGG.js +66 -0
- package/dist/es2019/client/graphqlUtils.js +6 -2
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +2 -2
- package/dist/es2019/i18n/cs.js +4 -2
- package/dist/es2019/i18n/da.js +4 -2
- package/dist/es2019/i18n/de.js +4 -2
- package/dist/es2019/i18n/en_ZZ.js +4 -2
- package/dist/es2019/i18n/es.js +4 -2
- package/dist/es2019/i18n/et.js +2 -2
- package/dist/es2019/i18n/fi.js +4 -2
- package/dist/es2019/i18n/fr.js +4 -2
- package/dist/es2019/i18n/hu.js +4 -2
- package/dist/es2019/i18n/it.js +4 -2
- package/dist/es2019/i18n/ja.js +4 -2
- package/dist/es2019/i18n/ko.js +4 -2
- package/dist/es2019/i18n/nb.js +4 -2
- package/dist/es2019/i18n/nl.js +4 -2
- package/dist/es2019/i18n/pl.js +4 -2
- package/dist/es2019/i18n/pt_BR.js +4 -2
- package/dist/es2019/i18n/pt_PT.js +2 -2
- package/dist/es2019/i18n/ru.js +4 -2
- package/dist/es2019/i18n/sk.js +2 -2
- package/dist/es2019/i18n/sv.js +4 -2
- package/dist/es2019/i18n/th.js +4 -2
- package/dist/es2019/i18n/tr.js +4 -2
- package/dist/es2019/i18n/uk.js +4 -2
- package/dist/es2019/i18n/vi.js +4 -2
- package/dist/es2019/i18n/zh.js +4 -2
- package/dist/es2019/i18n/zh_TW.js +4 -2
- package/dist/es2019/mocks/mock-team-client.js +4 -0
- package/dist/es2019/util/analytics.js +28 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/client/TeamProfileCardClient.js +17 -8
- package/dist/esm/client/getTeamFromAGG.js +77 -0
- package/dist/esm/client/graphqlUtils.js +8 -1
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +2 -2
- package/dist/esm/i18n/cs.js +4 -2
- package/dist/esm/i18n/da.js +4 -2
- package/dist/esm/i18n/de.js +4 -2
- package/dist/esm/i18n/en_ZZ.js +4 -2
- package/dist/esm/i18n/es.js +4 -2
- package/dist/esm/i18n/et.js +2 -2
- package/dist/esm/i18n/fi.js +4 -2
- package/dist/esm/i18n/fr.js +4 -2
- package/dist/esm/i18n/hu.js +4 -2
- package/dist/esm/i18n/it.js +4 -2
- package/dist/esm/i18n/ja.js +4 -2
- package/dist/esm/i18n/ko.js +4 -2
- package/dist/esm/i18n/nb.js +4 -2
- package/dist/esm/i18n/nl.js +4 -2
- package/dist/esm/i18n/pl.js +4 -2
- package/dist/esm/i18n/pt_BR.js +4 -2
- package/dist/esm/i18n/pt_PT.js +2 -2
- package/dist/esm/i18n/ru.js +4 -2
- package/dist/esm/i18n/sk.js +2 -2
- package/dist/esm/i18n/sv.js +4 -2
- package/dist/esm/i18n/th.js +4 -2
- package/dist/esm/i18n/tr.js +4 -2
- package/dist/esm/i18n/uk.js +4 -2
- package/dist/esm/i18n/vi.js +4 -2
- package/dist/esm/i18n/zh.js +4 -2
- package/dist/esm/i18n/zh_TW.js +4 -2
- package/dist/esm/mocks/mock-team-client.js +5 -0
- package/dist/esm/util/analytics.js +30 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/client/TeamProfileCardClient.d.ts +1 -0
- package/dist/types/client/getTeamFromAGG.d.ts +28 -0
- package/dist/types/client/graphqlUtils.d.ts +3 -1
- package/dist/types/i18n/cs.d.ts +3 -1
- package/dist/types/i18n/da.d.ts +3 -1
- package/dist/types/i18n/de.d.ts +3 -1
- package/dist/types/i18n/en_ZZ.d.ts +3 -1
- package/dist/types/i18n/es.d.ts +3 -1
- package/dist/types/i18n/et.d.ts +1 -1
- package/dist/types/i18n/fi.d.ts +3 -1
- package/dist/types/i18n/fr.d.ts +3 -1
- package/dist/types/i18n/hu.d.ts +3 -1
- package/dist/types/i18n/it.d.ts +3 -1
- package/dist/types/i18n/ja.d.ts +3 -1
- package/dist/types/i18n/ko.d.ts +3 -1
- package/dist/types/i18n/nb.d.ts +3 -1
- package/dist/types/i18n/nl.d.ts +3 -1
- package/dist/types/i18n/pl.d.ts +3 -1
- package/dist/types/i18n/pt_BR.d.ts +3 -1
- package/dist/types/i18n/pt_PT.d.ts +1 -1
- package/dist/types/i18n/ru.d.ts +3 -1
- package/dist/types/i18n/sk.d.ts +1 -1
- package/dist/types/i18n/sv.d.ts +3 -1
- package/dist/types/i18n/th.d.ts +3 -1
- package/dist/types/i18n/tr.d.ts +3 -1
- package/dist/types/i18n/uk.d.ts +3 -1
- package/dist/types/i18n/vi.d.ts +3 -1
- package/dist/types/i18n/zh.d.ts +3 -1
- package/dist/types/i18n/zh_TW.d.ts +3 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/types/util/analytics.d.ts +12 -2
- package/package.json +4 -4
package/dist/types/i18n/sv.d.ts
CHANGED
|
@@ -17,9 +17,11 @@ declare const _default: {
|
|
|
17
17
|
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
18
18
|
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
19
19
|
'pt.profile-card.inactive.account.no.date': string;
|
|
20
|
+
'pt.team-profile-card.directReports.heading': string;
|
|
20
21
|
'pt.team-profile-card.error.refresh-button': string;
|
|
21
22
|
'pt.team-profile-card.error.suggestion': string;
|
|
22
23
|
'pt.team-profile-card.error.title': string;
|
|
24
|
+
'pt.team-profile-card.manager.heading': string;
|
|
23
25
|
'pt.team-profile-card.team.action.view-profile': string;
|
|
24
26
|
'pt.team-profile-card.team.member.count': string;
|
|
25
27
|
'pt.team-profile-card.team.member.count-including-you': string;
|
|
@@ -29,7 +31,7 @@ declare const _default: {
|
|
|
29
31
|
/**
|
|
30
32
|
* NOTE:
|
|
31
33
|
*
|
|
32
|
-
* This file is automatically generated by
|
|
34
|
+
* This file is automatically generated by Traduki 2.0.
|
|
33
35
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
36
|
*/
|
|
35
37
|
export default _default;
|
package/dist/types/i18n/th.d.ts
CHANGED
|
@@ -17,9 +17,11 @@ declare const _default: {
|
|
|
17
17
|
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
18
18
|
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
19
19
|
'pt.profile-card.inactive.account.no.date': string;
|
|
20
|
+
'pt.team-profile-card.directReports.heading': string;
|
|
20
21
|
'pt.team-profile-card.error.refresh-button': string;
|
|
21
22
|
'pt.team-profile-card.error.suggestion': string;
|
|
22
23
|
'pt.team-profile-card.error.title': string;
|
|
24
|
+
'pt.team-profile-card.manager.heading': string;
|
|
23
25
|
'pt.team-profile-card.team.action.view-profile': string;
|
|
24
26
|
'pt.team-profile-card.team.member.count': string;
|
|
25
27
|
'pt.team-profile-card.team.member.count-including-you': string;
|
|
@@ -29,7 +31,7 @@ declare const _default: {
|
|
|
29
31
|
/**
|
|
30
32
|
* NOTE:
|
|
31
33
|
*
|
|
32
|
-
* This file is automatically generated by
|
|
34
|
+
* This file is automatically generated by Traduki 2.0.
|
|
33
35
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
36
|
*/
|
|
35
37
|
export default _default;
|
package/dist/types/i18n/tr.d.ts
CHANGED
|
@@ -17,9 +17,11 @@ declare const _default: {
|
|
|
17
17
|
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
18
18
|
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
19
19
|
'pt.profile-card.inactive.account.no.date': string;
|
|
20
|
+
'pt.team-profile-card.directReports.heading': string;
|
|
20
21
|
'pt.team-profile-card.error.refresh-button': string;
|
|
21
22
|
'pt.team-profile-card.error.suggestion': string;
|
|
22
23
|
'pt.team-profile-card.error.title': string;
|
|
24
|
+
'pt.team-profile-card.manager.heading': string;
|
|
23
25
|
'pt.team-profile-card.team.action.view-profile': string;
|
|
24
26
|
'pt.team-profile-card.team.member.count': string;
|
|
25
27
|
'pt.team-profile-card.team.member.count-including-you': string;
|
|
@@ -29,7 +31,7 @@ declare const _default: {
|
|
|
29
31
|
/**
|
|
30
32
|
* NOTE:
|
|
31
33
|
*
|
|
32
|
-
* This file is automatically generated by
|
|
34
|
+
* This file is automatically generated by Traduki 2.0.
|
|
33
35
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
36
|
*/
|
|
35
37
|
export default _default;
|
package/dist/types/i18n/uk.d.ts
CHANGED
|
@@ -17,9 +17,11 @@ declare const _default: {
|
|
|
17
17
|
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
18
18
|
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
19
19
|
'pt.profile-card.inactive.account.no.date': string;
|
|
20
|
+
'pt.team-profile-card.directReports.heading': string;
|
|
20
21
|
'pt.team-profile-card.error.refresh-button': string;
|
|
21
22
|
'pt.team-profile-card.error.suggestion': string;
|
|
22
23
|
'pt.team-profile-card.error.title': string;
|
|
24
|
+
'pt.team-profile-card.manager.heading': string;
|
|
23
25
|
'pt.team-profile-card.team.action.view-profile': string;
|
|
24
26
|
'pt.team-profile-card.team.member.count': string;
|
|
25
27
|
'pt.team-profile-card.team.member.count-including-you': string;
|
|
@@ -29,7 +31,7 @@ declare const _default: {
|
|
|
29
31
|
/**
|
|
30
32
|
* NOTE:
|
|
31
33
|
*
|
|
32
|
-
* This file is automatically generated by
|
|
34
|
+
* This file is automatically generated by Traduki 2.0.
|
|
33
35
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
36
|
*/
|
|
35
37
|
export default _default;
|
package/dist/types/i18n/vi.d.ts
CHANGED
|
@@ -17,9 +17,11 @@ declare const _default: {
|
|
|
17
17
|
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
18
18
|
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
19
19
|
'pt.profile-card.inactive.account.no.date': string;
|
|
20
|
+
'pt.team-profile-card.directReports.heading': string;
|
|
20
21
|
'pt.team-profile-card.error.refresh-button': string;
|
|
21
22
|
'pt.team-profile-card.error.suggestion': string;
|
|
22
23
|
'pt.team-profile-card.error.title': string;
|
|
24
|
+
'pt.team-profile-card.manager.heading': string;
|
|
23
25
|
'pt.team-profile-card.team.action.view-profile': string;
|
|
24
26
|
'pt.team-profile-card.team.member.count': string;
|
|
25
27
|
'pt.team-profile-card.team.member.count-including-you': string;
|
|
@@ -29,7 +31,7 @@ declare const _default: {
|
|
|
29
31
|
/**
|
|
30
32
|
* NOTE:
|
|
31
33
|
*
|
|
32
|
-
* This file is automatically generated by
|
|
34
|
+
* This file is automatically generated by Traduki 2.0.
|
|
33
35
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
36
|
*/
|
|
35
37
|
export default _default;
|
package/dist/types/i18n/zh.d.ts
CHANGED
|
@@ -17,9 +17,11 @@ declare const _default: {
|
|
|
17
17
|
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
18
18
|
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
19
19
|
'pt.profile-card.inactive.account.no.date': string;
|
|
20
|
+
'pt.team-profile-card.directReports.heading': string;
|
|
20
21
|
'pt.team-profile-card.error.refresh-button': string;
|
|
21
22
|
'pt.team-profile-card.error.suggestion': string;
|
|
22
23
|
'pt.team-profile-card.error.title': string;
|
|
24
|
+
'pt.team-profile-card.manager.heading': string;
|
|
23
25
|
'pt.team-profile-card.team.action.view-profile': string;
|
|
24
26
|
'pt.team-profile-card.team.member.count': string;
|
|
25
27
|
'pt.team-profile-card.team.member.count-including-you': string;
|
|
@@ -29,7 +31,7 @@ declare const _default: {
|
|
|
29
31
|
/**
|
|
30
32
|
* NOTE:
|
|
31
33
|
*
|
|
32
|
-
* This file is automatically generated by
|
|
34
|
+
* This file is automatically generated by Traduki 2.0.
|
|
33
35
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
36
|
*/
|
|
35
37
|
export default _default;
|
|
@@ -17,9 +17,11 @@ declare const _default: {
|
|
|
17
17
|
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
18
18
|
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
19
19
|
'pt.profile-card.inactive.account.no.date': string;
|
|
20
|
+
'pt.team-profile-card.directReports.heading': string;
|
|
20
21
|
'pt.team-profile-card.error.refresh-button': string;
|
|
21
22
|
'pt.team-profile-card.error.suggestion': string;
|
|
22
23
|
'pt.team-profile-card.error.title': string;
|
|
24
|
+
'pt.team-profile-card.manager.heading': string;
|
|
23
25
|
'pt.team-profile-card.team.action.view-profile': string;
|
|
24
26
|
'pt.team-profile-card.team.member.count': string;
|
|
25
27
|
'pt.team-profile-card.team.member.count-including-you': string;
|
|
@@ -29,7 +31,7 @@ declare const _default: {
|
|
|
29
31
|
/**
|
|
30
32
|
* NOTE:
|
|
31
33
|
*
|
|
32
|
-
* This file is automatically generated by
|
|
34
|
+
* This file is automatically generated by Traduki 2.0.
|
|
33
35
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
36
|
*/
|
|
35
37
|
export default _default;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -309,6 +309,7 @@ export declare type ProfileCardErrorType = {
|
|
|
309
309
|
} | null;
|
|
310
310
|
export interface ProfileClientOptions {
|
|
311
311
|
url: string;
|
|
312
|
+
gatewayGraphqlUrl?: string;
|
|
312
313
|
cacheSize?: number;
|
|
313
314
|
cacheMaxAge?: number;
|
|
314
315
|
/** Enables Team Central functionality if enabled */
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
+
interface AnalyticsEvent {
|
|
3
|
+
action?: string;
|
|
4
|
+
actionSubject?: string;
|
|
5
|
+
actionSubjectId?: string;
|
|
6
|
+
attributes?: Record<string, string | number | boolean | undefined>;
|
|
7
|
+
name?: string;
|
|
8
|
+
source?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
|
|
2
11
|
export declare const teamCardTriggered: (method: 'hover' | 'click') => Record<string, any>;
|
|
3
12
|
export declare const teamRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: ({
|
|
4
13
|
duration: number;
|
|
5
|
-
} & Record<string, string | number | undefined>) | undefined) => Record<string, any>;
|
|
14
|
+
} & Record<string, string | number | boolean | undefined>) | undefined) => Record<string, any>;
|
|
6
15
|
export declare const teamProfileCardRendered: (actionSubjectId: 'spinner' | 'content' | 'error' | 'errorBoundary', attributes: {
|
|
7
16
|
duration: number;
|
|
8
17
|
hasRetry?: boolean;
|
|
@@ -36,3 +45,4 @@ export declare const moreMembersClicked: (attributes: {
|
|
|
36
45
|
export declare const errorRetryClicked: (attributes: {
|
|
37
46
|
duration: number;
|
|
38
47
|
}) => Record<string, any>;
|
|
48
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.4.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
42
42
|
"@atlaskit/avatar": "^20.5.0",
|
|
43
43
|
"@atlaskit/avatar-group": "^8.3.0",
|
|
44
|
-
"@atlaskit/button": "^16.
|
|
44
|
+
"@atlaskit/button": "^16.2.0",
|
|
45
45
|
"@atlaskit/icon": "^21.10.0",
|
|
46
46
|
"@atlaskit/lozenge": "^11.0.0",
|
|
47
|
-
"@atlaskit/menu": "^1.
|
|
47
|
+
"@atlaskit/menu": "^1.3.0",
|
|
48
48
|
"@atlaskit/popup": "^1.3.0",
|
|
49
49
|
"@atlaskit/spinner": "^15.0.0",
|
|
50
50
|
"@atlaskit/theme": "^12.1.0",
|
|
51
|
-
"@atlaskit/tokens": "^0.
|
|
51
|
+
"@atlaskit/tokens": "^0.7.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"date-fns": "^2.17.0",
|
|
54
54
|
"lodash": "^4.17.21",
|