@atlaskit/profilecard 19.13.0 → 19.14.1
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 +1134 -1121
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/client/ProfileCardClient.js +7 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +9 -3
- package/dist/cjs/components/User/ProfileCardDetails.js +1 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +6 -2
- package/dist/cjs/styled/Card.js +69 -24
- package/dist/cjs/styled/Error.js +13 -0
- package/dist/cjs/styled/ReportingLines.js +12 -0
- package/dist/cjs/styled/TeamCard.js +34 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/ProfileCardClient.js +7 -0
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +9 -3
- package/dist/es2019/components/User/ProfileCardDetails.js +1 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +6 -2
- package/dist/es2019/styled/Card.js +229 -186
- package/dist/es2019/styled/Error.js +14 -0
- package/dist/es2019/styled/ReportingLines.js +13 -0
- package/dist/es2019/styled/TeamCard.js +41 -8
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/ProfileCardClient.js +7 -0
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +9 -3
- package/dist/esm/components/User/ProfileCardDetails.js +1 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +6 -2
- package/dist/esm/styled/Card.js +69 -24
- package/dist/esm/styled/Error.js +14 -0
- package/dist/esm/styled/ReportingLines.js +13 -0
- package/dist/esm/styled/TeamCard.js +35 -2
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/client/ProfileCardClient.d.ts +2 -2
- package/dist/types/client/TeamCentralCardClient.d.ts +1 -1
- package/dist/types/client/TeamProfileCardClient.d.ts +1 -1
- package/dist/types/client/UserProfileCardClient.d.ts +2 -2
- package/dist/types/client/errorUtils.d.ts +1 -1
- package/dist/types/components/Error/ErrorMessage.d.ts +2 -2
- package/dist/types/components/Team/TeamForbiddenErrorState.d.ts +1 -1
- package/dist/types/components/Team/TeamLoadingState.d.ts +1 -1
- package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +2 -2
- package/dist/types/components/User/OverflowProfileCardButtons.d.ts +1 -1
- package/dist/types/components/User/ProfileCard.d.ts +1 -1
- package/dist/types/components/User/ProfileCardDetails.d.ts +1 -1
- package/dist/types/components/User/ProfileCardResourced.d.ts +2 -2
- package/dist/types/components/User/ProfileCardTrigger.d.ts +1 -1
- package/dist/types/components/User/ProfileCardTriggerNext.d.ts +1 -1
- package/dist/types/components/User/ReportingLinesDetails.d.ts +1 -1
- package/dist/types/components/User/UserLoadingState.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal/filterActions.d.ts +1 -1
- package/dist/types/internal/getLabelMessage.d.ts +1 -1
- package/dist/types/internal/relative-date.d.ts +1 -1
- package/dist/types/mocks/mock-team-client.d.ts +1 -1
- package/dist/types/mocks/reporting-lines-data.d.ts +1 -1
- package/dist/types/mocks/simple-mock-clients.d.ts +1 -1
- package/dist/types/mocks/team-data.d.ts +1 -1
- package/dist/types/types.d.ts +95 -89
- package/dist/types/util/analytics.d.ts +2 -2
- package/dist/types/util/click.d.ts +1 -1
- package/dist/types/util/withOuterListeners.d.ts +1 -1
- package/dist/types-ts4.5/client/ProfileCardClient.d.ts +2 -2
- package/dist/types-ts4.5/client/TeamCentralCardClient.d.ts +1 -1
- package/dist/types-ts4.5/client/TeamProfileCardClient.d.ts +1 -1
- package/dist/types-ts4.5/client/UserProfileCardClient.d.ts +2 -2
- package/dist/types-ts4.5/client/errorUtils.d.ts +1 -1
- package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +2 -2
- package/dist/types-ts4.5/components/Team/TeamForbiddenErrorState.d.ts +1 -1
- package/dist/types-ts4.5/components/Team/TeamLoadingState.d.ts +1 -1
- package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +2 -2
- package/dist/types-ts4.5/components/User/OverflowProfileCardButtons.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ProfileCard.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ProfileCardDetails.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +2 -2
- package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ProfileCardTriggerNext.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +1 -1
- package/dist/types-ts4.5/components/User/UserLoadingState.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/internal/filterActions.d.ts +1 -1
- package/dist/types-ts4.5/internal/getLabelMessage.d.ts +1 -1
- package/dist/types-ts4.5/internal/relative-date.d.ts +1 -1
- package/dist/types-ts4.5/mocks/mock-team-client.d.ts +1 -1
- package/dist/types-ts4.5/mocks/reporting-lines-data.d.ts +1 -1
- package/dist/types-ts4.5/mocks/simple-mock-clients.d.ts +1 -1
- package/dist/types-ts4.5/mocks/team-data.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +95 -89
- package/dist/types-ts4.5/util/analytics.d.ts +2 -2
- package/dist/types-ts4.5/util/click.d.ts +1 -1
- package/dist/types-ts4.5/util/withOuterListeners.d.ts +1 -1
- package/docs/0-intro.tsx +13 -18
- package/docs/1-profilecard-trigger.tsx +13 -19
- package/docs/2-team-profilecard.tsx +26 -32
- package/package.json +14 -12
- package/report.api.md +457 -496
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/profilecard"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -33,93 +34,84 @@ type AnalyticsFunction = (generator: AnalyticsFromDuration) => void;
|
|
|
33
34
|
|
|
34
35
|
// @public (undocumented)
|
|
35
36
|
interface AnalyticsProps {
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
// (undocumented)
|
|
38
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
// @public (undocumented)
|
|
41
42
|
export interface ApiClientResponse {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
43
|
+
// (undocumented)
|
|
44
|
+
User: {
|
|
45
|
+
id: string;
|
|
46
|
+
isBot: boolean;
|
|
47
|
+
isCurrentUser: boolean;
|
|
48
|
+
avatarUrl: null | string;
|
|
49
|
+
email: null | string;
|
|
50
|
+
fullName: null | string;
|
|
51
|
+
location: null | string;
|
|
52
|
+
meta: null | string;
|
|
53
|
+
nickname: null | string;
|
|
54
|
+
companyName: null | string;
|
|
55
|
+
remoteTimeString: null | string;
|
|
56
|
+
remoteWeekdayIndex: null | string;
|
|
57
|
+
remoteWeekdayString: null | string;
|
|
58
|
+
status: StatusType;
|
|
59
|
+
statusModifiedDate: null | number;
|
|
60
|
+
};
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
// @public (undocumented)
|
|
63
64
|
interface CacheConfig {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
// (undocumented)
|
|
66
|
+
cacheMaxAge?: number;
|
|
67
|
+
// (undocumented)
|
|
68
|
+
cacheSize?: number;
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
// @public (undocumented)
|
|
71
72
|
interface CachedData<T> {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
// (undocumented)
|
|
74
|
+
expire: number;
|
|
75
|
+
// (undocumented)
|
|
76
|
+
profile: T;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
// @public (undocumented)
|
|
79
80
|
class CachingClient<T> {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
constructor(config: CacheConfig);
|
|
82
|
+
// (undocumented)
|
|
83
|
+
cache: LRUMap<string, CachedData<T>> | null;
|
|
84
|
+
// (undocumented)
|
|
85
|
+
config: Required<CacheConfig>;
|
|
86
|
+
// (undocumented)
|
|
87
|
+
flushCache(): void;
|
|
88
|
+
// (undocumented)
|
|
89
|
+
getCachedProfile(cacheIdentifier: string): T | null;
|
|
90
|
+
// (undocumented)
|
|
91
|
+
setCachedProfile(cacheIdentifier: string, profile: T): void;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
// @public (undocumented)
|
|
94
95
|
interface ClientOverrides {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
// (undocumented)
|
|
97
|
+
teamCentralClient?: TeamCentralCardClient;
|
|
98
|
+
// (undocumented)
|
|
99
|
+
teamClient?: TeamProfileClient;
|
|
100
|
+
// (undocumented)
|
|
101
|
+
userClient?: UserProfileClient;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
// @public (undocumented)
|
|
104
105
|
const _default: React_2.ForwardRefExoticComponent<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
Omit<
|
|
115
|
-
ProfileCardResourcedProps & AnalyticsProps,
|
|
116
|
-
keyof WithAnalyticsEventsProps
|
|
117
|
-
>,
|
|
118
|
-
keyof ProfileCardResourcedProps
|
|
119
|
-
>
|
|
120
|
-
> &
|
|
121
|
-
Partial<Pick<Partial<ProfileCardResourcedProps>, never>> &
|
|
122
|
-
React_2.RefAttributes<any>
|
|
106
|
+
Pick<Omit<ProfileCardResourcedProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> &
|
|
107
|
+
Partial<
|
|
108
|
+
Pick<
|
|
109
|
+
Omit<ProfileCardResourcedProps & AnalyticsProps, keyof WithAnalyticsEventsProps>,
|
|
110
|
+
keyof ProfileCardResourcedProps
|
|
111
|
+
>
|
|
112
|
+
> &
|
|
113
|
+
Partial<Pick<Partial<ProfileCardResourcedProps>, never>> &
|
|
114
|
+
React_2.RefAttributes<any>
|
|
123
115
|
>;
|
|
124
116
|
export default _default;
|
|
125
117
|
|
|
@@ -131,546 +123,515 @@ export const DELAY_MS_SHOW = 800;
|
|
|
131
123
|
|
|
132
124
|
// @public (undocumented)
|
|
133
125
|
type FeatureFlagExtraContext = {
|
|
134
|
-
|
|
135
|
-
|
|
126
|
+
key: string;
|
|
127
|
+
value: string;
|
|
136
128
|
};
|
|
137
129
|
|
|
138
130
|
// @public (undocumented)
|
|
139
|
-
type LozengeColor =
|
|
140
|
-
| 'default'
|
|
141
|
-
| 'inprogress'
|
|
142
|
-
| 'moved'
|
|
143
|
-
| 'new'
|
|
144
|
-
| 'removed'
|
|
145
|
-
| 'success';
|
|
131
|
+
type LozengeColor = 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success';
|
|
146
132
|
|
|
147
133
|
// @public (undocumented)
|
|
148
134
|
interface LozengeProps {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
135
|
+
// (undocumented)
|
|
136
|
+
appearance?: LozengeColor;
|
|
137
|
+
// (undocumented)
|
|
138
|
+
isBold?: boolean;
|
|
139
|
+
// (undocumented)
|
|
140
|
+
text: React_2.ReactNode;
|
|
155
141
|
}
|
|
156
142
|
|
|
157
143
|
// @public (undocumented)
|
|
158
144
|
export interface MessageIntlProviderProps {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
145
|
+
// (undocumented)
|
|
146
|
+
children: React_2.ReactNode;
|
|
147
|
+
// (undocumented)
|
|
148
|
+
intl: IntlShape;
|
|
163
149
|
}
|
|
164
150
|
|
|
165
151
|
// @public
|
|
166
|
-
export const modifyResponse: (
|
|
167
|
-
response: ApiClientResponse,
|
|
168
|
-
) => ProfileCardClientData;
|
|
152
|
+
export const modifyResponse: (response: ApiClientResponse) => ProfileCardClientData;
|
|
169
153
|
|
|
170
154
|
// @public (undocumented)
|
|
171
155
|
export const ProfileCard: React_2.ForwardRefExoticComponent<
|
|
172
|
-
|
|
173
|
-
|
|
156
|
+
Omit<ProfilecardProps & AnalyticsProps, keyof WithAnalyticsEventsProps> &
|
|
157
|
+
React_2.RefAttributes<any>
|
|
174
158
|
>;
|
|
175
159
|
|
|
176
160
|
// @public (undocumented)
|
|
177
161
|
export interface ProfileCardAction {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
162
|
+
// (undocumented)
|
|
163
|
+
callback?: (...args: any[]) => any;
|
|
164
|
+
// (undocumented)
|
|
165
|
+
id?: string;
|
|
166
|
+
// (undocumented)
|
|
167
|
+
label: React_2.ReactNode;
|
|
168
|
+
// (undocumented)
|
|
169
|
+
link?: string;
|
|
170
|
+
// (undocumented)
|
|
171
|
+
shouldRender?: (data: any) => boolean;
|
|
188
172
|
}
|
|
189
173
|
|
|
190
174
|
// @public (undocumented)
|
|
191
175
|
export interface ProfileCardClientData {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
176
|
+
// (undocumented)
|
|
177
|
+
avatarUrl?: string;
|
|
178
|
+
// (undocumented)
|
|
179
|
+
companyName?: string;
|
|
180
|
+
// (undocumented)
|
|
181
|
+
customLozenges?: LozengeProps[];
|
|
182
|
+
// (undocumented)
|
|
183
|
+
email?: string;
|
|
184
|
+
// (undocumented)
|
|
185
|
+
fullName?: string;
|
|
186
|
+
// (undocumented)
|
|
187
|
+
isBot: boolean;
|
|
188
|
+
// (undocumented)
|
|
189
|
+
isCurrentUser: boolean;
|
|
190
|
+
// (undocumented)
|
|
191
|
+
location?: string;
|
|
192
|
+
// (undocumented)
|
|
193
|
+
meta?: string;
|
|
194
|
+
// (undocumented)
|
|
195
|
+
nickname?: string;
|
|
196
|
+
// (undocumented)
|
|
197
|
+
status: StatusType;
|
|
198
|
+
// (undocumented)
|
|
199
|
+
statusModifiedDate?: null | number;
|
|
200
|
+
// (undocumented)
|
|
201
|
+
timestring?: string;
|
|
218
202
|
}
|
|
219
203
|
|
|
220
204
|
// @public (undocumented)
|
|
221
205
|
export type ProfileCardErrorType = null | {
|
|
222
|
-
|
|
206
|
+
reason: 'NotFound' | 'default';
|
|
223
207
|
};
|
|
224
208
|
|
|
225
209
|
// @public (undocumented)
|
|
226
210
|
export interface ProfilecardProps {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
211
|
+
// (undocumented)
|
|
212
|
+
actions?: ProfileCardAction[];
|
|
213
|
+
// (undocumented)
|
|
214
|
+
addFlag?: (flag: any) => void;
|
|
215
|
+
// (undocumented)
|
|
216
|
+
avatarUrl?: string;
|
|
217
|
+
// (undocumented)
|
|
218
|
+
clientFetchProfile?: () => void;
|
|
219
|
+
// (undocumented)
|
|
220
|
+
cloudId?: string;
|
|
221
|
+
// (undocumented)
|
|
222
|
+
companyName?: string;
|
|
223
|
+
// (undocumented)
|
|
224
|
+
customLozenges?: LozengeProps[];
|
|
225
|
+
// (undocumented)
|
|
226
|
+
disabledAccountMessage?: React_2.ReactNode;
|
|
227
|
+
// (undocumented)
|
|
228
|
+
email?: string;
|
|
229
|
+
// (undocumented)
|
|
230
|
+
errorType?: ProfileCardErrorType;
|
|
231
|
+
// (undocumented)
|
|
232
|
+
fullName?: string;
|
|
233
|
+
// (undocumented)
|
|
234
|
+
hasDisabledAccountLozenge?: boolean;
|
|
235
|
+
// (undocumented)
|
|
236
|
+
hasError?: boolean;
|
|
237
|
+
// (undocumented)
|
|
238
|
+
isBot?: boolean;
|
|
239
|
+
// (undocumented)
|
|
240
|
+
isCurrentUser?: boolean;
|
|
241
|
+
// (undocumented)
|
|
242
|
+
isKudosEnabled?: boolean;
|
|
243
|
+
// (undocumented)
|
|
244
|
+
isLoading?: boolean;
|
|
245
|
+
// (undocumented)
|
|
246
|
+
location?: string;
|
|
247
|
+
// (undocumented)
|
|
248
|
+
meta?: string;
|
|
249
|
+
// (undocumented)
|
|
250
|
+
nickname?: string;
|
|
251
|
+
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
252
|
+
// (undocumented)
|
|
253
|
+
openKudosDrawer?: () => void;
|
|
254
|
+
reportingLines?: TeamCentralReportingLinesData;
|
|
255
|
+
reportingLinesProfileUrl?: string;
|
|
256
|
+
// (undocumented)
|
|
257
|
+
status?: StatusType;
|
|
258
|
+
// (undocumented)
|
|
259
|
+
statusModifiedDate?: null | number;
|
|
260
|
+
// (undocumented)
|
|
261
|
+
teamCentralBaseUrl?: string;
|
|
262
|
+
// (undocumented)
|
|
263
|
+
timestring?: string;
|
|
264
|
+
// (undocumented)
|
|
265
|
+
userId?: string;
|
|
266
|
+
// (undocumented)
|
|
267
|
+
withoutElevation?: boolean;
|
|
284
268
|
}
|
|
285
269
|
|
|
286
270
|
// @public (undocumented)
|
|
287
271
|
export interface ProfileCardResourcedProps {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
272
|
+
// (undocumented)
|
|
273
|
+
actions?: ProfileCardAction[];
|
|
274
|
+
// (undocumented)
|
|
275
|
+
addFlag?: (flag: any) => void;
|
|
276
|
+
// (undocumented)
|
|
277
|
+
children?: React_2.ReactNode;
|
|
278
|
+
// (undocumented)
|
|
279
|
+
cloudId: string;
|
|
280
|
+
// (undocumented)
|
|
281
|
+
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
282
|
+
// (undocumented)
|
|
283
|
+
position?: ProfilecardTriggerPosition;
|
|
284
|
+
// (undocumented)
|
|
285
|
+
reportingLinesProfileUrl?: string;
|
|
286
|
+
// (undocumented)
|
|
287
|
+
resourceClient: ProfileClient_2;
|
|
288
|
+
// (undocumented)
|
|
289
|
+
trigger?: TriggerType;
|
|
290
|
+
// (undocumented)
|
|
291
|
+
userId: string;
|
|
308
292
|
}
|
|
309
293
|
|
|
310
294
|
// @public (undocumented)
|
|
311
295
|
export interface ProfileCardResourcedState {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
296
|
+
// (undocumented)
|
|
297
|
+
data: ProfileCardClientData | null;
|
|
298
|
+
// (undocumented)
|
|
299
|
+
error?: ProfileCardErrorType;
|
|
300
|
+
// (undocumented)
|
|
301
|
+
hasError: boolean;
|
|
302
|
+
// (undocumented)
|
|
303
|
+
isKudosEnabled?: boolean;
|
|
304
|
+
// (undocumented)
|
|
305
|
+
isLoading?: boolean;
|
|
306
|
+
// (undocumented)
|
|
307
|
+
kudosDrawerOpen: boolean;
|
|
308
|
+
// (undocumented)
|
|
309
|
+
reportingLinesData?: TeamCentralReportingLinesData;
|
|
310
|
+
// (undocumented)
|
|
311
|
+
visible?: boolean;
|
|
328
312
|
}
|
|
329
313
|
|
|
330
314
|
// @public (undocumented)
|
|
331
315
|
export const ProfileCardTrigger: React_2.ForwardRefExoticComponent<
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
Omit<
|
|
342
|
-
ProfileCardTriggerProps & AnalyticsProps,
|
|
343
|
-
keyof WithAnalyticsEventsProps
|
|
344
|
-
>,
|
|
345
|
-
keyof ProfileCardTriggerProps
|
|
346
|
-
>
|
|
347
|
-
> &
|
|
348
|
-
Partial<Pick<Partial<ProfileCardTriggerProps>, never>> &
|
|
349
|
-
React_2.RefAttributes<any>
|
|
316
|
+
Pick<Omit<ProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> &
|
|
317
|
+
Partial<
|
|
318
|
+
Pick<
|
|
319
|
+
Omit<ProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>,
|
|
320
|
+
keyof ProfileCardTriggerProps
|
|
321
|
+
>
|
|
322
|
+
> &
|
|
323
|
+
Partial<Pick<Partial<ProfileCardTriggerProps>, never>> &
|
|
324
|
+
React_2.RefAttributes<any>
|
|
350
325
|
>;
|
|
351
326
|
|
|
352
327
|
// @public (undocumented)
|
|
353
328
|
export type ProfilecardTriggerPosition =
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
329
|
+
| 'bottom'
|
|
330
|
+
| 'bottom-end'
|
|
331
|
+
| 'bottom-start'
|
|
332
|
+
| 'left'
|
|
333
|
+
| 'left-end'
|
|
334
|
+
| 'left-start'
|
|
335
|
+
| 'right'
|
|
336
|
+
| 'right-end'
|
|
337
|
+
| 'right-start'
|
|
338
|
+
| 'top'
|
|
339
|
+
| 'top-end'
|
|
340
|
+
| 'top-start';
|
|
366
341
|
|
|
367
342
|
// @public (undocumented)
|
|
368
343
|
export interface ProfileCardTriggerProps {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
344
|
+
// (undocumented)
|
|
345
|
+
actions?: ProfileCardAction[];
|
|
346
|
+
// (undocumented)
|
|
347
|
+
addFlag?: (flag: any) => void;
|
|
348
|
+
// (undocumented)
|
|
349
|
+
children?: React_2.ReactNode;
|
|
350
|
+
cloudId?: string;
|
|
351
|
+
// (undocumented)
|
|
352
|
+
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
353
|
+
// (undocumented)
|
|
354
|
+
position?: ProfilecardTriggerPosition;
|
|
355
|
+
// (undocumented)
|
|
356
|
+
reportingLinesProfileUrl?: string;
|
|
357
|
+
// (undocumented)
|
|
358
|
+
resourceClient: ProfileClient_2;
|
|
359
|
+
// (undocumented)
|
|
360
|
+
testId?: string;
|
|
361
|
+
// (undocumented)
|
|
362
|
+
trigger?: TriggerType;
|
|
363
|
+
// (undocumented)
|
|
364
|
+
userId: string;
|
|
390
365
|
}
|
|
391
366
|
|
|
392
367
|
// @public (undocumented)
|
|
393
368
|
export interface ProfileCardTriggerState {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
369
|
+
// (undocumented)
|
|
370
|
+
data: ProfileCardClientData | null;
|
|
371
|
+
// (undocumented)
|
|
372
|
+
error?: ProfileCardErrorType;
|
|
373
|
+
// (undocumented)
|
|
374
|
+
hasError: boolean;
|
|
375
|
+
// (undocumented)
|
|
376
|
+
isLoading?: boolean;
|
|
377
|
+
// (undocumented)
|
|
378
|
+
kudosDrawerOpen: boolean;
|
|
379
|
+
// (undocumented)
|
|
380
|
+
reportingLinesData?: TeamCentralReportingLinesData;
|
|
381
|
+
// (undocumented)
|
|
382
|
+
shouldShowGiveKudos?: boolean;
|
|
383
|
+
// (undocumented)
|
|
384
|
+
teamCentralBaseUrl?: string;
|
|
385
|
+
// (undocumented)
|
|
386
|
+
visible?: boolean;
|
|
412
387
|
}
|
|
413
388
|
|
|
414
389
|
// @public (undocumented)
|
|
415
390
|
export class ProfileClient {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
391
|
+
constructor(config: ProfileClientOptions, clients?: ClientOverrides);
|
|
392
|
+
// (undocumented)
|
|
393
|
+
flushCache(): void;
|
|
394
|
+
// (undocumented)
|
|
395
|
+
getProfile(
|
|
396
|
+
cloudId: string,
|
|
397
|
+
userId: string,
|
|
398
|
+
analytics?: (event: AnalyticsEventPayload) => void,
|
|
399
|
+
): Promise<any>;
|
|
400
|
+
// (undocumented)
|
|
401
|
+
getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
402
|
+
// (undocumented)
|
|
403
|
+
getTeamCentralBaseUrl(): string | undefined;
|
|
404
|
+
// (undocumented)
|
|
405
|
+
getTeamProfile(
|
|
406
|
+
teamId: string,
|
|
407
|
+
orgId?: string,
|
|
408
|
+
analytics?: (event: AnalyticsEventPayload) => void,
|
|
409
|
+
): Promise<Team>;
|
|
410
|
+
// (undocumented)
|
|
411
|
+
shouldShowGiveKudos(): Promise<boolean>;
|
|
412
|
+
// (undocumented)
|
|
413
|
+
tcClient?: TeamCentralCardClient;
|
|
414
|
+
// (undocumented)
|
|
415
|
+
teamClient: TeamProfileClient;
|
|
416
|
+
// (undocumented)
|
|
417
|
+
userClient: UserProfileClient;
|
|
443
418
|
}
|
|
444
419
|
|
|
445
420
|
// @public (undocumented)
|
|
446
421
|
interface ProfileClient_2 {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
422
|
+
// (undocumented)
|
|
423
|
+
flushCache: () => void;
|
|
424
|
+
// (undocumented)
|
|
425
|
+
getProfile: (
|
|
426
|
+
cloudId: string,
|
|
427
|
+
userId: string,
|
|
428
|
+
analytics?: (event: AnalyticsEventPayload) => void,
|
|
429
|
+
) => Promise<ProfileCardClientData>;
|
|
430
|
+
// (undocumented)
|
|
431
|
+
getReportingLines: (userId: string) => Promise<TeamCentralReportingLinesData>;
|
|
432
|
+
// (undocumented)
|
|
433
|
+
getTeamCentralBaseUrl: () => string | undefined;
|
|
434
|
+
// (undocumented)
|
|
435
|
+
getTeamProfile: (
|
|
436
|
+
teamId: string,
|
|
437
|
+
orgId?: string,
|
|
438
|
+
fireAnalytics?: (event: AnalyticsEventPayload) => void,
|
|
439
|
+
) => Promise<Team>;
|
|
440
|
+
// (undocumented)
|
|
441
|
+
shouldShowGiveKudos: () => Promise<boolean>;
|
|
467
442
|
}
|
|
468
443
|
|
|
469
444
|
// @public (undocumented)
|
|
470
445
|
export interface ProfileClientOptions {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
446
|
+
// (undocumented)
|
|
447
|
+
cacheMaxAge?: number;
|
|
448
|
+
// (undocumented)
|
|
449
|
+
cacheSize?: number;
|
|
450
|
+
// (undocumented)
|
|
451
|
+
cloudId?: string;
|
|
452
|
+
// (undocumented)
|
|
453
|
+
gatewayGraphqlUrl?: string;
|
|
454
|
+
productIdentifier?: string;
|
|
455
|
+
teamCentralBaseUrl?: string;
|
|
456
|
+
teamCentralUrl?: string;
|
|
457
|
+
// (undocumented)
|
|
458
|
+
url: string;
|
|
484
459
|
}
|
|
485
460
|
|
|
486
461
|
// @public (undocumented)
|
|
487
462
|
export type RelativeDateKeyType =
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
463
|
+
| 'AFewMonths'
|
|
464
|
+
| 'LastMonth'
|
|
465
|
+
| 'MoreThanAYear'
|
|
466
|
+
| 'SeveralMonths'
|
|
467
|
+
| 'ThisMonth'
|
|
468
|
+
| 'ThisWeek'
|
|
469
|
+
| null;
|
|
495
470
|
|
|
496
471
|
// @public (undocumented)
|
|
497
472
|
interface ReportingLinesUser {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
473
|
+
// (undocumented)
|
|
474
|
+
accountIdentifier: string;
|
|
475
|
+
// (undocumented)
|
|
476
|
+
identifierType: 'ATLASSIAN_ID' | 'BASE64_HASH' | 'UNKNOWN';
|
|
477
|
+
// (undocumented)
|
|
478
|
+
pii?: ReportingLinesUserPII;
|
|
504
479
|
}
|
|
505
480
|
|
|
506
481
|
// @public (undocumented)
|
|
507
482
|
interface ReportingLinesUserPII {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
483
|
+
// (undocumented)
|
|
484
|
+
name: string;
|
|
485
|
+
// (undocumented)
|
|
486
|
+
picture?: string;
|
|
512
487
|
}
|
|
513
488
|
|
|
514
489
|
// @public (undocumented)
|
|
515
490
|
export type StatusModifiedDateType =
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
491
|
+
| 'aFewMonths'
|
|
492
|
+
| 'lastMonth'
|
|
493
|
+
| 'moreThanAYear'
|
|
494
|
+
| 'noDate'
|
|
495
|
+
| 'severalMonths'
|
|
496
|
+
| 'thisMonth'
|
|
497
|
+
| 'thisWeek';
|
|
523
498
|
|
|
524
499
|
// @public (undocumented)
|
|
525
500
|
export type StatusType = 'active' | 'closed' | 'inactive';
|
|
526
501
|
|
|
527
502
|
// @public (undocumented)
|
|
528
503
|
export interface Team {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
504
|
+
// (undocumented)
|
|
505
|
+
description: string;
|
|
506
|
+
// (undocumented)
|
|
507
|
+
displayName: string;
|
|
508
|
+
// (undocumented)
|
|
509
|
+
id: string;
|
|
510
|
+
// (undocumented)
|
|
511
|
+
largeAvatarImageUrl?: string;
|
|
512
|
+
// (undocumented)
|
|
513
|
+
largeHeaderImageUrl?: string;
|
|
514
|
+
// (undocumented)
|
|
515
|
+
members?: {
|
|
516
|
+
id: string;
|
|
517
|
+
fullName: string;
|
|
518
|
+
avatarUrl: string;
|
|
519
|
+
}[];
|
|
520
|
+
// (undocumented)
|
|
521
|
+
organizationId?: string;
|
|
522
|
+
// (undocumented)
|
|
523
|
+
smallAvatarImageUrl?: string;
|
|
524
|
+
// (undocumented)
|
|
525
|
+
smallHeaderImageUrl?: string;
|
|
551
526
|
}
|
|
552
527
|
|
|
553
528
|
// @public (undocumented)
|
|
554
529
|
class TeamCentralCardClient extends CachingClient<TeamCentralReportingLinesData> {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
makeRequest(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
579
|
-
// (undocumented)
|
|
580
|
-
options: TeamCentralCardClientOptions;
|
|
530
|
+
constructor(options: TeamCentralCardClientOptions);
|
|
531
|
+
bypassOnFailure: boolean;
|
|
532
|
+
// (undocumented)
|
|
533
|
+
checkWorkspaceExists(): Promise<boolean>;
|
|
534
|
+
// (undocumented)
|
|
535
|
+
createTcReadyPromise(config: ProfileClientOptions): Promise<boolean>;
|
|
536
|
+
// (undocumented)
|
|
537
|
+
featureFlagKeys: Map<string, boolean>;
|
|
538
|
+
// (undocumented)
|
|
539
|
+
getFlagEnabled(featureKey: string, productIdentifier?: string): Promise<boolean>;
|
|
540
|
+
// (undocumented)
|
|
541
|
+
getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
542
|
+
// (undocumented)
|
|
543
|
+
isTCReadyPromise: Promise<boolean>;
|
|
544
|
+
// (undocumented)
|
|
545
|
+
makeFeatureFlagCheckRequest(
|
|
546
|
+
featureKey: string,
|
|
547
|
+
context?: FeatureFlagExtraContext[],
|
|
548
|
+
): Promise<boolean>;
|
|
549
|
+
// (undocumented)
|
|
550
|
+
makeRequest(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
551
|
+
// (undocumented)
|
|
552
|
+
options: TeamCentralCardClientOptions;
|
|
581
553
|
}
|
|
582
554
|
|
|
583
555
|
// @public (undocumented)
|
|
584
556
|
type TeamCentralCardClientOptions = ProfileClientOptions & {
|
|
585
|
-
|
|
557
|
+
teamCentralUrl: string;
|
|
586
558
|
};
|
|
587
559
|
|
|
588
560
|
// @public (undocumented)
|
|
589
561
|
interface TeamCentralReportingLinesData {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
562
|
+
// (undocumented)
|
|
563
|
+
managers?: ReportingLinesUser[];
|
|
564
|
+
// (undocumented)
|
|
565
|
+
reports?: ReportingLinesUser[];
|
|
594
566
|
}
|
|
595
567
|
|
|
596
568
|
// @public (undocumented)
|
|
597
|
-
export const TeamProfileCard: (
|
|
598
|
-
props: TeamProfilecardProps,
|
|
599
|
-
) => JSX.Element | null;
|
|
569
|
+
export const TeamProfileCard: (props: TeamProfilecardProps) => JSX.Element | null;
|
|
600
570
|
|
|
601
571
|
// @public (undocumented)
|
|
602
572
|
interface TeamProfilecardCoreProps {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
573
|
+
actions?: ProfileCardAction[];
|
|
574
|
+
generateUserLink?: (userId: string) => string;
|
|
575
|
+
onUserClick?: (userId: string, event: React_2.MouseEvent<Element>) => void;
|
|
576
|
+
viewingUserId?: string;
|
|
577
|
+
viewProfileLink: string;
|
|
578
|
+
viewProfileOnClick?: (event?: React_2.MouseEvent<Element>) => void;
|
|
609
579
|
}
|
|
610
580
|
|
|
611
581
|
// @public (undocumented)
|
|
612
582
|
type TeamProfileCardErrorType = null | {
|
|
613
|
-
|
|
583
|
+
reason: 'NotFound' | 'TEAMS_FORBIDDEN' | 'default';
|
|
614
584
|
};
|
|
615
585
|
|
|
616
586
|
// @public (undocumented)
|
|
617
587
|
interface TeamProfilecardProps extends TeamProfilecardCoreProps {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
588
|
+
analytics: AnalyticsFunction;
|
|
589
|
+
clientFetchProfile?: () => void;
|
|
590
|
+
errorType?: TeamProfileCardErrorType;
|
|
591
|
+
hasError?: boolean;
|
|
592
|
+
isLoading?: boolean;
|
|
593
|
+
team?: Team;
|
|
624
594
|
}
|
|
625
595
|
|
|
626
596
|
// @public (undocumented)
|
|
627
597
|
export const TeamProfileCardTrigger: React_2.ForwardRefExoticComponent<
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
Omit<
|
|
638
|
-
TeamProfileCardTriggerProps & AnalyticsProps,
|
|
639
|
-
keyof WithAnalyticsEventsProps
|
|
640
|
-
>,
|
|
641
|
-
keyof TeamProfileCardTriggerProps
|
|
642
|
-
>
|
|
643
|
-
> &
|
|
644
|
-
Partial<Pick<Partial<TeamProfileCardTriggerProps>, never>> &
|
|
645
|
-
React_2.RefAttributes<any>
|
|
598
|
+
Pick<Omit<TeamProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> &
|
|
599
|
+
Partial<
|
|
600
|
+
Pick<
|
|
601
|
+
Omit<TeamProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>,
|
|
602
|
+
keyof TeamProfileCardTriggerProps
|
|
603
|
+
>
|
|
604
|
+
> &
|
|
605
|
+
Partial<Pick<Partial<TeamProfileCardTriggerProps>, never>> &
|
|
606
|
+
React_2.RefAttributes<any>
|
|
646
607
|
>;
|
|
647
608
|
|
|
648
609
|
// @public (undocumented)
|
|
649
610
|
interface TeamProfileCardTriggerProps extends TeamProfilecardCoreProps {
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
611
|
+
addFlag?: (flag: any) => void;
|
|
612
|
+
children?: React_2.ReactNode;
|
|
613
|
+
cloudId?: string;
|
|
614
|
+
orgId: string;
|
|
615
|
+
position?: ProfilecardTriggerPosition;
|
|
616
|
+
resourceClient: ProfileClient_2;
|
|
617
|
+
teamId: string;
|
|
618
|
+
trigger?: 'click' | 'hover' | 'hover-click';
|
|
619
|
+
triggerLinkType?: 'clickable-link' | 'link' | 'none';
|
|
659
620
|
}
|
|
660
621
|
|
|
661
622
|
// @public (undocumented)
|
|
662
623
|
export class TeamProfileClient extends CachingClient<Team> {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
624
|
+
constructor(options: ProfileClientOptions);
|
|
625
|
+
// (undocumented)
|
|
626
|
+
getProfile(
|
|
627
|
+
teamId: string,
|
|
628
|
+
orgId: string | undefined,
|
|
629
|
+
analytics?: (event: AnalyticsEventPayload) => void,
|
|
630
|
+
): Promise<Team>;
|
|
631
|
+
// (undocumented)
|
|
632
|
+
makeRequest(teamId: string, _orgId: string | undefined): Promise<Team>;
|
|
633
|
+
// (undocumented)
|
|
634
|
+
options: ProfileClientOptions;
|
|
674
635
|
}
|
|
675
636
|
|
|
676
637
|
// @public (undocumented)
|
|
@@ -678,30 +639,30 @@ export type TriggerType = 'click' | 'hover';
|
|
|
678
639
|
|
|
679
640
|
// @public (undocumented)
|
|
680
641
|
export class UserProfileClient extends CachingClient<any> {
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
642
|
+
constructor(options: ProfileClientOptions);
|
|
643
|
+
// (undocumented)
|
|
644
|
+
getProfile(
|
|
645
|
+
cloudId: string,
|
|
646
|
+
userId: string,
|
|
647
|
+
analytics?: (event: AnalyticsEventPayload) => void,
|
|
648
|
+
): Promise<any>;
|
|
649
|
+
// (undocumented)
|
|
650
|
+
makeRequest(cloudId: string, userId: string): Promise<ProfileCardClientData>;
|
|
651
|
+
// (undocumented)
|
|
652
|
+
options: ProfileClientOptions;
|
|
692
653
|
}
|
|
693
654
|
|
|
694
655
|
// @public (undocumented)
|
|
695
656
|
export function withOuterListeners<P>(
|
|
696
|
-
|
|
657
|
+
Component: ComponentType<P>,
|
|
697
658
|
): React_2.ComponentClass<P & WithOuterListenersProps>;
|
|
698
659
|
|
|
699
660
|
// @public (undocumented)
|
|
700
661
|
export interface WithOuterListenersProps {
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
662
|
+
// (undocumented)
|
|
663
|
+
handleClickOutside?: () => void;
|
|
664
|
+
// (undocumented)
|
|
665
|
+
handleEscapeKeydown?: () => void;
|
|
705
666
|
}
|
|
706
667
|
|
|
707
668
|
// (No @packageDocumentation comment for this package)
|
|
@@ -715,8 +676,8 @@ export interface WithOuterListenersProps {
|
|
|
715
676
|
|
|
716
677
|
```json
|
|
717
678
|
{
|
|
718
|
-
|
|
719
|
-
|
|
679
|
+
"react": "^16.8.0",
|
|
680
|
+
"react-dom": "^16.8.0"
|
|
720
681
|
}
|
|
721
682
|
```
|
|
722
683
|
|