@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.
Files changed (132) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/client/TeamProfileCardClient.js +18 -8
  3. package/dist/cjs/client/getTeamFromAGG.js +106 -0
  4. package/dist/cjs/client/graphqlUtils.js +8 -1
  5. package/dist/cjs/components/Team/TeamProfileCardTrigger.js +1 -1
  6. package/dist/cjs/i18n/cs.js +4 -2
  7. package/dist/cjs/i18n/da.js +4 -2
  8. package/dist/cjs/i18n/de.js +4 -2
  9. package/dist/cjs/i18n/en_ZZ.js +4 -2
  10. package/dist/cjs/i18n/es.js +4 -2
  11. package/dist/cjs/i18n/et.js +2 -2
  12. package/dist/cjs/i18n/fi.js +4 -2
  13. package/dist/cjs/i18n/fr.js +4 -2
  14. package/dist/cjs/i18n/hu.js +4 -2
  15. package/dist/cjs/i18n/it.js +4 -2
  16. package/dist/cjs/i18n/ja.js +4 -2
  17. package/dist/cjs/i18n/ko.js +4 -2
  18. package/dist/cjs/i18n/nb.js +4 -2
  19. package/dist/cjs/i18n/nl.js +4 -2
  20. package/dist/cjs/i18n/pl.js +4 -2
  21. package/dist/cjs/i18n/pt_BR.js +4 -2
  22. package/dist/cjs/i18n/pt_PT.js +2 -2
  23. package/dist/cjs/i18n/ru.js +4 -2
  24. package/dist/cjs/i18n/sk.js +2 -2
  25. package/dist/cjs/i18n/sv.js +4 -2
  26. package/dist/cjs/i18n/th.js +4 -2
  27. package/dist/cjs/i18n/tr.js +4 -2
  28. package/dist/cjs/i18n/uk.js +4 -2
  29. package/dist/cjs/i18n/vi.js +4 -2
  30. package/dist/cjs/i18n/zh.js +4 -2
  31. package/dist/cjs/i18n/zh_TW.js +4 -2
  32. package/dist/cjs/mocks/mock-team-client.js +5 -0
  33. package/dist/cjs/util/analytics.js +32 -7
  34. package/dist/cjs/version.json +1 -1
  35. package/dist/es2019/client/TeamProfileCardClient.js +16 -8
  36. package/dist/es2019/client/getTeamFromAGG.js +66 -0
  37. package/dist/es2019/client/graphqlUtils.js +6 -2
  38. package/dist/es2019/components/Team/TeamProfileCardTrigger.js +2 -2
  39. package/dist/es2019/i18n/cs.js +4 -2
  40. package/dist/es2019/i18n/da.js +4 -2
  41. package/dist/es2019/i18n/de.js +4 -2
  42. package/dist/es2019/i18n/en_ZZ.js +4 -2
  43. package/dist/es2019/i18n/es.js +4 -2
  44. package/dist/es2019/i18n/et.js +2 -2
  45. package/dist/es2019/i18n/fi.js +4 -2
  46. package/dist/es2019/i18n/fr.js +4 -2
  47. package/dist/es2019/i18n/hu.js +4 -2
  48. package/dist/es2019/i18n/it.js +4 -2
  49. package/dist/es2019/i18n/ja.js +4 -2
  50. package/dist/es2019/i18n/ko.js +4 -2
  51. package/dist/es2019/i18n/nb.js +4 -2
  52. package/dist/es2019/i18n/nl.js +4 -2
  53. package/dist/es2019/i18n/pl.js +4 -2
  54. package/dist/es2019/i18n/pt_BR.js +4 -2
  55. package/dist/es2019/i18n/pt_PT.js +2 -2
  56. package/dist/es2019/i18n/ru.js +4 -2
  57. package/dist/es2019/i18n/sk.js +2 -2
  58. package/dist/es2019/i18n/sv.js +4 -2
  59. package/dist/es2019/i18n/th.js +4 -2
  60. package/dist/es2019/i18n/tr.js +4 -2
  61. package/dist/es2019/i18n/uk.js +4 -2
  62. package/dist/es2019/i18n/vi.js +4 -2
  63. package/dist/es2019/i18n/zh.js +4 -2
  64. package/dist/es2019/i18n/zh_TW.js +4 -2
  65. package/dist/es2019/mocks/mock-team-client.js +4 -0
  66. package/dist/es2019/util/analytics.js +28 -4
  67. package/dist/es2019/version.json +1 -1
  68. package/dist/esm/client/TeamProfileCardClient.js +17 -8
  69. package/dist/esm/client/getTeamFromAGG.js +77 -0
  70. package/dist/esm/client/graphqlUtils.js +8 -1
  71. package/dist/esm/components/Team/TeamProfileCardTrigger.js +2 -2
  72. package/dist/esm/i18n/cs.js +4 -2
  73. package/dist/esm/i18n/da.js +4 -2
  74. package/dist/esm/i18n/de.js +4 -2
  75. package/dist/esm/i18n/en_ZZ.js +4 -2
  76. package/dist/esm/i18n/es.js +4 -2
  77. package/dist/esm/i18n/et.js +2 -2
  78. package/dist/esm/i18n/fi.js +4 -2
  79. package/dist/esm/i18n/fr.js +4 -2
  80. package/dist/esm/i18n/hu.js +4 -2
  81. package/dist/esm/i18n/it.js +4 -2
  82. package/dist/esm/i18n/ja.js +4 -2
  83. package/dist/esm/i18n/ko.js +4 -2
  84. package/dist/esm/i18n/nb.js +4 -2
  85. package/dist/esm/i18n/nl.js +4 -2
  86. package/dist/esm/i18n/pl.js +4 -2
  87. package/dist/esm/i18n/pt_BR.js +4 -2
  88. package/dist/esm/i18n/pt_PT.js +2 -2
  89. package/dist/esm/i18n/ru.js +4 -2
  90. package/dist/esm/i18n/sk.js +2 -2
  91. package/dist/esm/i18n/sv.js +4 -2
  92. package/dist/esm/i18n/th.js +4 -2
  93. package/dist/esm/i18n/tr.js +4 -2
  94. package/dist/esm/i18n/uk.js +4 -2
  95. package/dist/esm/i18n/vi.js +4 -2
  96. package/dist/esm/i18n/zh.js +4 -2
  97. package/dist/esm/i18n/zh_TW.js +4 -2
  98. package/dist/esm/mocks/mock-team-client.js +5 -0
  99. package/dist/esm/util/analytics.js +30 -4
  100. package/dist/esm/version.json +1 -1
  101. package/dist/types/client/TeamProfileCardClient.d.ts +1 -0
  102. package/dist/types/client/getTeamFromAGG.d.ts +28 -0
  103. package/dist/types/client/graphqlUtils.d.ts +3 -1
  104. package/dist/types/i18n/cs.d.ts +3 -1
  105. package/dist/types/i18n/da.d.ts +3 -1
  106. package/dist/types/i18n/de.d.ts +3 -1
  107. package/dist/types/i18n/en_ZZ.d.ts +3 -1
  108. package/dist/types/i18n/es.d.ts +3 -1
  109. package/dist/types/i18n/et.d.ts +1 -1
  110. package/dist/types/i18n/fi.d.ts +3 -1
  111. package/dist/types/i18n/fr.d.ts +3 -1
  112. package/dist/types/i18n/hu.d.ts +3 -1
  113. package/dist/types/i18n/it.d.ts +3 -1
  114. package/dist/types/i18n/ja.d.ts +3 -1
  115. package/dist/types/i18n/ko.d.ts +3 -1
  116. package/dist/types/i18n/nb.d.ts +3 -1
  117. package/dist/types/i18n/nl.d.ts +3 -1
  118. package/dist/types/i18n/pl.d.ts +3 -1
  119. package/dist/types/i18n/pt_BR.d.ts +3 -1
  120. package/dist/types/i18n/pt_PT.d.ts +1 -1
  121. package/dist/types/i18n/ru.d.ts +3 -1
  122. package/dist/types/i18n/sk.d.ts +1 -1
  123. package/dist/types/i18n/sv.d.ts +3 -1
  124. package/dist/types/i18n/th.d.ts +3 -1
  125. package/dist/types/i18n/tr.d.ts +3 -1
  126. package/dist/types/i18n/uk.d.ts +3 -1
  127. package/dist/types/i18n/vi.d.ts +3 -1
  128. package/dist/types/i18n/zh.d.ts +3 -1
  129. package/dist/types/i18n/zh_TW.d.ts +3 -1
  130. package/dist/types/types.d.ts +1 -0
  131. package/dist/types/util/analytics.d.ts +12 -2
  132. package/package.json +4 -4
@@ -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 i18n-tools.
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 i18n-tools.
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 i18n-tools.
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 i18n-tools.
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 i18n-tools.
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 i18n-tools.
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 i18n-tools.
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;
@@ -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
- export declare const firePeopleTeamsEvent: (payload: Record<string, any>) => (createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
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.2.3",
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.0.0",
44
+ "@atlaskit/button": "^16.2.0",
45
45
  "@atlaskit/icon": "^21.10.0",
46
46
  "@atlaskit/lozenge": "^11.0.0",
47
- "@atlaskit/menu": "^1.2.0",
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.6.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",