@atlaskit/profilecard 19.6.0 → 19.6.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 +6 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/package.json +3 -3
- package/dist/types-ts4.5/client/CachingClient.d.ts +0 -18
- package/dist/types-ts4.5/client/ProfileCardClient.d.ts +0 -18
- package/dist/types-ts4.5/client/TeamCentralCardClient.d.ts +0 -45
- package/dist/types-ts4.5/client/TeamProfileCardClient.d.ts +0 -9
- package/dist/types-ts4.5/client/UserProfileCardClient.d.ts +0 -30
- package/dist/types-ts4.5/client/errorUtils.d.ts +0 -5
- package/dist/types-ts4.5/client/getTeamFromAGG.d.ts +0 -35
- package/dist/types-ts4.5/client/graphqlUtils.d.ts +0 -31
- package/dist/types-ts4.5/client/index.d.ts +0 -6
- package/dist/types-ts4.5/client/types.d.ts +0 -12
- package/dist/types-ts4.5/components/Error/AccessLockSVG.d.ts +0 -3
- package/dist/types-ts4.5/components/Error/ErrorBoundary.d.ts +0 -10
- package/dist/types-ts4.5/components/Error/ErrorIllustration.d.ts +0 -2
- package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +0 -10
- package/dist/types-ts4.5/components/Error/index.d.ts +0 -3
- package/dist/types-ts4.5/components/Icon/IconLabel.d.ts +0 -12
- package/dist/types-ts4.5/components/Icon/index.d.ts +0 -1
- package/dist/types-ts4.5/components/Team/TeamForbiddenErrorState.d.ts +0 -6
- package/dist/types-ts4.5/components/Team/TeamLoadingState.d.ts +0 -6
- package/dist/types-ts4.5/components/Team/TeamProfileCard.d.ts +0 -4
- package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +0 -50
- package/dist/types-ts4.5/components/Team/index.d.ts +0 -4
- package/dist/types-ts4.5/components/Team/lazyTeamProfileCard.d.ts +0 -2
- package/dist/types-ts4.5/components/User/OverflowProfileCardButtons.d.ts +0 -9
- package/dist/types-ts4.5/components/User/ProfileCard.d.ts +0 -5
- package/dist/types-ts4.5/components/User/ProfileCardDetails.d.ts +0 -3
- package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +0 -22
- package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +0 -4
- package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +0 -5
- package/dist/types-ts4.5/components/User/UserLoadingState.d.ts +0 -7
- package/dist/types-ts4.5/components/User/index.d.ts +0 -4
- package/dist/types-ts4.5/components/User/lazyProfileCard.d.ts +0 -2
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -41
- package/dist/types-ts4.5/i18n/da.d.ts +0 -41
- package/dist/types-ts4.5/i18n/de.d.ts +0 -41
- package/dist/types-ts4.5/i18n/en.d.ts +0 -41
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -41
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -41
- package/dist/types-ts4.5/i18n/es.d.ts +0 -41
- package/dist/types-ts4.5/i18n/et.d.ts +0 -27
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -41
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -41
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -41
- package/dist/types-ts4.5/i18n/index.d.ts +0 -36
- package/dist/types-ts4.5/i18n/is.d.ts +0 -27
- package/dist/types-ts4.5/i18n/it.d.ts +0 -41
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -41
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -41
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -33
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -41
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -41
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -41
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -41
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -27
- package/dist/types-ts4.5/i18n/ro.d.ts +0 -27
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -41
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -27
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -41
- package/dist/types-ts4.5/i18n/th.d.ts +0 -41
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -41
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -41
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -41
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -41
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -41
- package/dist/types-ts4.5/index.d.ts +0 -18
- package/dist/types-ts4.5/internal/filterActions.d.ts +0 -3
- package/dist/types-ts4.5/internal/relative-date.d.ts +0 -3
- package/dist/types-ts4.5/messages.d.ts +0 -163
- package/dist/types-ts4.5/mocks/index.d.ts +0 -4
- package/dist/types-ts4.5/mocks/mock-profile-client.d.ts +0 -1
- package/dist/types-ts4.5/mocks/mock-team-client.d.ts +0 -8
- package/dist/types-ts4.5/mocks/profile-data.d.ts +0 -41
- package/dist/types-ts4.5/mocks/reporting-lines-data.d.ts +0 -2
- package/dist/types-ts4.5/mocks/simple-mock-clients.d.ts +0 -14
- package/dist/types-ts4.5/mocks/team-data.d.ts +0 -7
- package/dist/types-ts4.5/mocks/util.d.ts +0 -6
- package/dist/types-ts4.5/styled/Card.d.ts +0 -99
- package/dist/types-ts4.5/styled/Error.d.ts +0 -21
- package/dist/types-ts4.5/styled/ReportingLines.d.ts +0 -21
- package/dist/types-ts4.5/styled/TeamCard.d.ts +0 -64
- package/dist/types-ts4.5/styled/constants.d.ts +0 -13
- package/dist/types-ts4.5/types.d.ts +0 -358
- package/dist/types-ts4.5/util/analytics.d.ts +0 -59
- package/dist/types-ts4.5/util/click.d.ts +0 -4
- package/dist/types-ts4.5/util/config.d.ts +0 -2
- package/dist/types-ts4.5/util/errors.d.ts +0 -43
- package/dist/types-ts4.5/util/performance.d.ts +0 -1
- package/dist/types-ts4.5/util/withOuterListeners.d.ts +0 -6
- package/tmp/api-report-tmp.d.ts +0 -570
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,570 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/profilecard"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
10
|
-
import { ComponentType } from 'react';
|
|
11
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
12
|
-
import { IntlShape } from 'react-intl-next';
|
|
13
|
-
import { LRUMap } from 'lru_map';
|
|
14
|
-
import { default as React_2 } from 'react';
|
|
15
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
16
|
-
|
|
17
|
-
// @public (undocumented)
|
|
18
|
-
type AnalyticsFromDuration = (duration: number) => AnalyticsEventPayload;
|
|
19
|
-
|
|
20
|
-
// @public (undocumented)
|
|
21
|
-
type AnalyticsFunction = (generator: AnalyticsFromDuration) => void;
|
|
22
|
-
|
|
23
|
-
// @public (undocumented)
|
|
24
|
-
interface AnalyticsProps {
|
|
25
|
-
// (undocumented)
|
|
26
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// @public (undocumented)
|
|
30
|
-
export interface ApiClientResponse {
|
|
31
|
-
// (undocumented)
|
|
32
|
-
User: {
|
|
33
|
-
id: string;
|
|
34
|
-
isBot: boolean;
|
|
35
|
-
isCurrentUser: boolean;
|
|
36
|
-
avatarUrl: null | string;
|
|
37
|
-
email: null | string;
|
|
38
|
-
fullName: null | string;
|
|
39
|
-
location: null | string;
|
|
40
|
-
meta: null | string;
|
|
41
|
-
nickname: null | string;
|
|
42
|
-
companyName: null | string;
|
|
43
|
-
remoteTimeString: null | string;
|
|
44
|
-
remoteWeekdayIndex: null | string;
|
|
45
|
-
remoteWeekdayString: null | string;
|
|
46
|
-
status: StatusType;
|
|
47
|
-
statusModifiedDate: null | number;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// @public (undocumented)
|
|
52
|
-
interface CacheConfig {
|
|
53
|
-
// (undocumented)
|
|
54
|
-
cacheMaxAge?: number;
|
|
55
|
-
// (undocumented)
|
|
56
|
-
cacheSize?: number;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// @public (undocumented)
|
|
60
|
-
interface CachedData<T> {
|
|
61
|
-
// (undocumented)
|
|
62
|
-
expire: number;
|
|
63
|
-
// (undocumented)
|
|
64
|
-
profile: T;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// @public (undocumented)
|
|
68
|
-
class CachingClient<T> {
|
|
69
|
-
constructor(config: CacheConfig);
|
|
70
|
-
// (undocumented)
|
|
71
|
-
cache: LRUMap<string, CachedData<T>> | null;
|
|
72
|
-
// (undocumented)
|
|
73
|
-
config: Required<CacheConfig>;
|
|
74
|
-
// (undocumented)
|
|
75
|
-
flushCache(): void;
|
|
76
|
-
// (undocumented)
|
|
77
|
-
getCachedProfile(cacheIdentifier: string): T | null;
|
|
78
|
-
// (undocumented)
|
|
79
|
-
setCachedProfile(cacheIdentifier: string, profile: T): void;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// @public (undocumented)
|
|
83
|
-
interface ClientOverrides {
|
|
84
|
-
// (undocumented)
|
|
85
|
-
teamCentralClient?: TeamCentralCardClient;
|
|
86
|
-
// (undocumented)
|
|
87
|
-
teamClient?: TeamProfileClient;
|
|
88
|
-
// (undocumented)
|
|
89
|
-
userClient?: UserProfileClient;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// @public (undocumented)
|
|
93
|
-
const _default: React_2.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ProfileCardResourcedProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, keyof ProfileCardResourcedProps>> & Partial<Pick<Partial<ProfileCardResourcedProps>, never>> & React_2.RefAttributes<any>>;
|
|
94
|
-
export default _default;
|
|
95
|
-
|
|
96
|
-
// @public (undocumented)
|
|
97
|
-
export const DELAY_MS_HIDE = 200;
|
|
98
|
-
|
|
99
|
-
// @public (undocumented)
|
|
100
|
-
export const DELAY_MS_SHOW = 800;
|
|
101
|
-
|
|
102
|
-
// @public (undocumented)
|
|
103
|
-
type FeatureFlagExtraContext = {
|
|
104
|
-
key: string;
|
|
105
|
-
value: string;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
// @public (undocumented)
|
|
109
|
-
type LozengeColor = 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success';
|
|
110
|
-
|
|
111
|
-
// @public (undocumented)
|
|
112
|
-
interface LozengeProps {
|
|
113
|
-
// (undocumented)
|
|
114
|
-
appearance?: LozengeColor;
|
|
115
|
-
// (undocumented)
|
|
116
|
-
isBold?: boolean;
|
|
117
|
-
// (undocumented)
|
|
118
|
-
text: React_2.ReactNode;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// @public (undocumented)
|
|
122
|
-
export interface MessageIntlProviderProps {
|
|
123
|
-
// (undocumented)
|
|
124
|
-
children: React_2.ReactNode;
|
|
125
|
-
// (undocumented)
|
|
126
|
-
intl: IntlShape;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// @public
|
|
130
|
-
export const modifyResponse: (response: ApiClientResponse) => ProfileCardClientData;
|
|
131
|
-
|
|
132
|
-
// @public (undocumented)
|
|
133
|
-
export const ProfileCard: React_2.ForwardRefExoticComponent<Omit<ProfilecardProps & AnalyticsProps, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any>>;
|
|
134
|
-
|
|
135
|
-
// @public (undocumented)
|
|
136
|
-
export interface ProfileCardAction {
|
|
137
|
-
// (undocumented)
|
|
138
|
-
callback?: (...args: any[]) => any;
|
|
139
|
-
// (undocumented)
|
|
140
|
-
id?: string;
|
|
141
|
-
// (undocumented)
|
|
142
|
-
label: React_2.ReactNode;
|
|
143
|
-
// (undocumented)
|
|
144
|
-
link?: string;
|
|
145
|
-
// (undocumented)
|
|
146
|
-
shouldRender?: (data: any) => boolean;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// @public (undocumented)
|
|
150
|
-
export interface ProfileCardClientData {
|
|
151
|
-
// (undocumented)
|
|
152
|
-
avatarUrl?: string;
|
|
153
|
-
// (undocumented)
|
|
154
|
-
companyName?: string;
|
|
155
|
-
// (undocumented)
|
|
156
|
-
customLozenges?: LozengeProps[];
|
|
157
|
-
// (undocumented)
|
|
158
|
-
email?: string;
|
|
159
|
-
// (undocumented)
|
|
160
|
-
fullName?: string;
|
|
161
|
-
// (undocumented)
|
|
162
|
-
isBot: boolean;
|
|
163
|
-
// (undocumented)
|
|
164
|
-
isCurrentUser: boolean;
|
|
165
|
-
// (undocumented)
|
|
166
|
-
location?: string;
|
|
167
|
-
// (undocumented)
|
|
168
|
-
meta?: string;
|
|
169
|
-
// (undocumented)
|
|
170
|
-
nickname?: string;
|
|
171
|
-
// (undocumented)
|
|
172
|
-
status: StatusType;
|
|
173
|
-
// (undocumented)
|
|
174
|
-
statusModifiedDate?: null | number;
|
|
175
|
-
// (undocumented)
|
|
176
|
-
timestring?: string;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// @public (undocumented)
|
|
180
|
-
export type ProfileCardErrorType = null | {
|
|
181
|
-
reason: 'NotFound' | 'default';
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
// @public (undocumented)
|
|
185
|
-
export interface ProfilecardProps {
|
|
186
|
-
// (undocumented)
|
|
187
|
-
actions?: ProfileCardAction[];
|
|
188
|
-
// (undocumented)
|
|
189
|
-
addFlag?: (flag: any) => void;
|
|
190
|
-
// (undocumented)
|
|
191
|
-
avatarUrl?: string;
|
|
192
|
-
// (undocumented)
|
|
193
|
-
clientFetchProfile?: () => void;
|
|
194
|
-
// (undocumented)
|
|
195
|
-
cloudId?: string;
|
|
196
|
-
// (undocumented)
|
|
197
|
-
companyName?: string;
|
|
198
|
-
// (undocumented)
|
|
199
|
-
customLozenges?: LozengeProps[];
|
|
200
|
-
// (undocumented)
|
|
201
|
-
disabledAccountMessage?: React_2.ReactNode;
|
|
202
|
-
// (undocumented)
|
|
203
|
-
email?: string;
|
|
204
|
-
// (undocumented)
|
|
205
|
-
errorType?: ProfileCardErrorType;
|
|
206
|
-
// (undocumented)
|
|
207
|
-
fullName?: string;
|
|
208
|
-
// (undocumented)
|
|
209
|
-
hasDisabledAccountLozenge?: boolean;
|
|
210
|
-
// (undocumented)
|
|
211
|
-
hasError?: boolean;
|
|
212
|
-
// (undocumented)
|
|
213
|
-
isBot?: boolean;
|
|
214
|
-
// (undocumented)
|
|
215
|
-
isCurrentUser?: boolean;
|
|
216
|
-
// (undocumented)
|
|
217
|
-
isKudosEnabled?: boolean;
|
|
218
|
-
// (undocumented)
|
|
219
|
-
isLoading?: boolean;
|
|
220
|
-
// (undocumented)
|
|
221
|
-
location?: string;
|
|
222
|
-
// (undocumented)
|
|
223
|
-
meta?: string;
|
|
224
|
-
// (undocumented)
|
|
225
|
-
nickname?: string;
|
|
226
|
-
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
227
|
-
// (undocumented)
|
|
228
|
-
openKudosDrawer?: () => void;
|
|
229
|
-
reportingLines?: TeamCentralReportingLinesData;
|
|
230
|
-
reportingLinesProfileUrl?: string;
|
|
231
|
-
// (undocumented)
|
|
232
|
-
status?: StatusType;
|
|
233
|
-
// (undocumented)
|
|
234
|
-
statusModifiedDate?: null | number;
|
|
235
|
-
// (undocumented)
|
|
236
|
-
teamCentralBaseUrl?: string;
|
|
237
|
-
// (undocumented)
|
|
238
|
-
timestring?: string;
|
|
239
|
-
// (undocumented)
|
|
240
|
-
userId?: string;
|
|
241
|
-
// (undocumented)
|
|
242
|
-
withoutElevation?: boolean;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
// @public (undocumented)
|
|
246
|
-
export interface ProfileCardResourcedProps {
|
|
247
|
-
// (undocumented)
|
|
248
|
-
actions?: ProfileCardAction[];
|
|
249
|
-
// (undocumented)
|
|
250
|
-
addFlag?: (flag: any) => void;
|
|
251
|
-
// (undocumented)
|
|
252
|
-
children?: React_2.ReactNode;
|
|
253
|
-
// (undocumented)
|
|
254
|
-
cloudId: string;
|
|
255
|
-
// (undocumented)
|
|
256
|
-
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
257
|
-
// (undocumented)
|
|
258
|
-
position?: ProfilecardTriggerPosition;
|
|
259
|
-
// (undocumented)
|
|
260
|
-
reportingLinesProfileUrl?: string;
|
|
261
|
-
// (undocumented)
|
|
262
|
-
resourceClient: ProfileClient_2;
|
|
263
|
-
// (undocumented)
|
|
264
|
-
trigger?: TriggerType;
|
|
265
|
-
// (undocumented)
|
|
266
|
-
userId: string;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
// @public (undocumented)
|
|
270
|
-
export interface ProfileCardResourcedState {
|
|
271
|
-
// (undocumented)
|
|
272
|
-
data: ProfileCardClientData | null;
|
|
273
|
-
// (undocumented)
|
|
274
|
-
error?: ProfileCardErrorType;
|
|
275
|
-
// (undocumented)
|
|
276
|
-
hasError: boolean;
|
|
277
|
-
// (undocumented)
|
|
278
|
-
isKudosEnabled?: boolean;
|
|
279
|
-
// (undocumented)
|
|
280
|
-
isLoading?: boolean;
|
|
281
|
-
// (undocumented)
|
|
282
|
-
kudosDrawerOpen: boolean;
|
|
283
|
-
// (undocumented)
|
|
284
|
-
reportingLinesData?: TeamCentralReportingLinesData;
|
|
285
|
-
// (undocumented)
|
|
286
|
-
visible?: boolean;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
// @public (undocumented)
|
|
290
|
-
export const ProfileCardTrigger: React_2.ForwardRefExoticComponent<Pick<Omit<ProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, keyof ProfileCardTriggerProps>> & Partial<Pick<Partial<ProfileCardTriggerProps>, never>> & React_2.RefAttributes<any>>;
|
|
291
|
-
|
|
292
|
-
// @public (undocumented)
|
|
293
|
-
export type ProfilecardTriggerPosition = 'bottom' | 'bottom-end' | 'bottom-start' | 'left' | 'left-end' | 'left-start' | 'right' | 'right-end' | 'right-start' | 'top' | 'top-end' | 'top-start';
|
|
294
|
-
|
|
295
|
-
// @public (undocumented)
|
|
296
|
-
export interface ProfileCardTriggerProps {
|
|
297
|
-
// (undocumented)
|
|
298
|
-
actions?: ProfileCardAction[];
|
|
299
|
-
// (undocumented)
|
|
300
|
-
addFlag?: (flag: any) => void;
|
|
301
|
-
// (undocumented)
|
|
302
|
-
children?: React_2.ReactNode;
|
|
303
|
-
cloudId?: string;
|
|
304
|
-
// (undocumented)
|
|
305
|
-
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
306
|
-
// (undocumented)
|
|
307
|
-
position?: ProfilecardTriggerPosition;
|
|
308
|
-
// (undocumented)
|
|
309
|
-
reportingLinesProfileUrl?: string;
|
|
310
|
-
// (undocumented)
|
|
311
|
-
resourceClient: ProfileClient_2;
|
|
312
|
-
// (undocumented)
|
|
313
|
-
testId?: string;
|
|
314
|
-
// (undocumented)
|
|
315
|
-
trigger?: TriggerType;
|
|
316
|
-
// (undocumented)
|
|
317
|
-
userId: string;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
// @public (undocumented)
|
|
321
|
-
export interface ProfileCardTriggerState {
|
|
322
|
-
// (undocumented)
|
|
323
|
-
data: ProfileCardClientData | null;
|
|
324
|
-
// (undocumented)
|
|
325
|
-
error?: ProfileCardErrorType;
|
|
326
|
-
// (undocumented)
|
|
327
|
-
hasError: boolean;
|
|
328
|
-
// (undocumented)
|
|
329
|
-
isLoading?: boolean;
|
|
330
|
-
// (undocumented)
|
|
331
|
-
kudosDrawerOpen: boolean;
|
|
332
|
-
// (undocumented)
|
|
333
|
-
reportingLinesData?: TeamCentralReportingLinesData;
|
|
334
|
-
// (undocumented)
|
|
335
|
-
shouldShowGiveKudos?: boolean;
|
|
336
|
-
// (undocumented)
|
|
337
|
-
teamCentralBaseUrl?: string;
|
|
338
|
-
// (undocumented)
|
|
339
|
-
visible?: boolean;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
// @public (undocumented)
|
|
343
|
-
export class ProfileClient {
|
|
344
|
-
constructor(config: ProfileClientOptions, clients?: ClientOverrides);
|
|
345
|
-
// (undocumented)
|
|
346
|
-
flushCache(): void;
|
|
347
|
-
// (undocumented)
|
|
348
|
-
getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<any>;
|
|
349
|
-
// (undocumented)
|
|
350
|
-
getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
351
|
-
// (undocumented)
|
|
352
|
-
getTeamCentralBaseUrl(): string | undefined;
|
|
353
|
-
// (undocumented)
|
|
354
|
-
getTeamProfile(teamId: string, orgId?: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<Team>;
|
|
355
|
-
// (undocumented)
|
|
356
|
-
shouldShowGiveKudos(): Promise<boolean>;
|
|
357
|
-
// (undocumented)
|
|
358
|
-
tcClient?: TeamCentralCardClient;
|
|
359
|
-
// (undocumented)
|
|
360
|
-
teamClient: TeamProfileClient;
|
|
361
|
-
// (undocumented)
|
|
362
|
-
userClient: UserProfileClient;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
// @public (undocumented)
|
|
366
|
-
interface ProfileClient_2 {
|
|
367
|
-
// (undocumented)
|
|
368
|
-
flushCache: () => void;
|
|
369
|
-
// (undocumented)
|
|
370
|
-
getProfile: (cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void) => Promise<ProfileCardClientData>;
|
|
371
|
-
// (undocumented)
|
|
372
|
-
getReportingLines: (userId: string) => Promise<TeamCentralReportingLinesData>;
|
|
373
|
-
// (undocumented)
|
|
374
|
-
getTeamCentralBaseUrl: () => string | undefined;
|
|
375
|
-
// (undocumented)
|
|
376
|
-
getTeamProfile: (teamId: string, orgId?: string, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<Team>;
|
|
377
|
-
// (undocumented)
|
|
378
|
-
shouldShowGiveKudos: () => Promise<boolean>;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
// @public (undocumented)
|
|
382
|
-
export interface ProfileClientOptions {
|
|
383
|
-
// (undocumented)
|
|
384
|
-
cacheMaxAge?: number;
|
|
385
|
-
// (undocumented)
|
|
386
|
-
cacheSize?: number;
|
|
387
|
-
// (undocumented)
|
|
388
|
-
cloudId?: string;
|
|
389
|
-
// (undocumented)
|
|
390
|
-
gatewayGraphqlUrl?: string;
|
|
391
|
-
productIdentifier?: string;
|
|
392
|
-
teamCentralBaseUrl?: string;
|
|
393
|
-
teamCentralUrl?: string;
|
|
394
|
-
// (undocumented)
|
|
395
|
-
url: string;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
// @public (undocumented)
|
|
399
|
-
export type RelativeDateKeyType = 'AFewMonths' | 'LastMonth' | 'MoreThanAYear' | 'SeveralMonths' | 'ThisMonth' | 'ThisWeek' | null;
|
|
400
|
-
|
|
401
|
-
// @public (undocumented)
|
|
402
|
-
interface ReportingLinesUser {
|
|
403
|
-
// (undocumented)
|
|
404
|
-
accountIdentifier: string;
|
|
405
|
-
// (undocumented)
|
|
406
|
-
identifierType: 'ATLASSIAN_ID' | 'BASE64_HASH' | 'UNKNOWN';
|
|
407
|
-
// (undocumented)
|
|
408
|
-
pii?: ReportingLinesUserPII;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
// @public (undocumented)
|
|
412
|
-
interface ReportingLinesUserPII {
|
|
413
|
-
// (undocumented)
|
|
414
|
-
name: string;
|
|
415
|
-
// (undocumented)
|
|
416
|
-
picture?: string;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
// @public (undocumented)
|
|
420
|
-
export type StatusModifiedDateType = 'aFewMonths' | 'lastMonth' | 'moreThanAYear' | 'noDate' | 'severalMonths' | 'thisMonth' | 'thisWeek';
|
|
421
|
-
|
|
422
|
-
// @public (undocumented)
|
|
423
|
-
export type StatusType = 'active' | 'closed' | 'inactive';
|
|
424
|
-
|
|
425
|
-
// @public (undocumented)
|
|
426
|
-
export interface Team {
|
|
427
|
-
// (undocumented)
|
|
428
|
-
description: string;
|
|
429
|
-
// (undocumented)
|
|
430
|
-
displayName: string;
|
|
431
|
-
// (undocumented)
|
|
432
|
-
id: string;
|
|
433
|
-
// (undocumented)
|
|
434
|
-
largeAvatarImageUrl?: string;
|
|
435
|
-
// (undocumented)
|
|
436
|
-
largeHeaderImageUrl?: string;
|
|
437
|
-
// (undocumented)
|
|
438
|
-
members?: {
|
|
439
|
-
id: string;
|
|
440
|
-
fullName: string;
|
|
441
|
-
avatarUrl: string;
|
|
442
|
-
}[];
|
|
443
|
-
// (undocumented)
|
|
444
|
-
organizationId?: string;
|
|
445
|
-
// (undocumented)
|
|
446
|
-
smallAvatarImageUrl?: string;
|
|
447
|
-
// (undocumented)
|
|
448
|
-
smallHeaderImageUrl?: string;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
// @public (undocumented)
|
|
452
|
-
class TeamCentralCardClient extends CachingClient<TeamCentralReportingLinesData> {
|
|
453
|
-
constructor(options: TeamCentralCardClientOptions);
|
|
454
|
-
bypassOnFailure: boolean;
|
|
455
|
-
// (undocumented)
|
|
456
|
-
checkWorkspaceExists(): Promise<boolean>;
|
|
457
|
-
// (undocumented)
|
|
458
|
-
createTcReadyPromise(config: ProfileClientOptions): Promise<boolean>;
|
|
459
|
-
// (undocumented)
|
|
460
|
-
featureFlagKeys: Map<string, boolean>;
|
|
461
|
-
// (undocumented)
|
|
462
|
-
getFlagEnabled(featureKey: string, productIdentifier?: string): Promise<boolean>;
|
|
463
|
-
// (undocumented)
|
|
464
|
-
getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
465
|
-
// (undocumented)
|
|
466
|
-
isTCReadyPromise: Promise<boolean>;
|
|
467
|
-
// (undocumented)
|
|
468
|
-
makeFeatureFlagCheckRequest(featureKey: string, context?: FeatureFlagExtraContext[]): Promise<boolean>;
|
|
469
|
-
// (undocumented)
|
|
470
|
-
makeRequest(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
471
|
-
// (undocumented)
|
|
472
|
-
options: TeamCentralCardClientOptions;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
// @public (undocumented)
|
|
476
|
-
type TeamCentralCardClientOptions = ProfileClientOptions & {
|
|
477
|
-
teamCentralUrl: string;
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
// @public (undocumented)
|
|
481
|
-
interface TeamCentralReportingLinesData {
|
|
482
|
-
// (undocumented)
|
|
483
|
-
managers?: ReportingLinesUser[];
|
|
484
|
-
// (undocumented)
|
|
485
|
-
reports?: ReportingLinesUser[];
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
// @public (undocumented)
|
|
489
|
-
export const TeamProfileCard: (props: TeamProfilecardProps) => JSX.Element | null;
|
|
490
|
-
|
|
491
|
-
// @public (undocumented)
|
|
492
|
-
interface TeamProfilecardCoreProps {
|
|
493
|
-
actions?: ProfileCardAction[];
|
|
494
|
-
generateUserLink?: (userId: string) => string;
|
|
495
|
-
onUserClick?: (userId: string, event: React_2.MouseEvent<Element>) => void;
|
|
496
|
-
viewingUserId?: string;
|
|
497
|
-
viewProfileLink: string;
|
|
498
|
-
viewProfileOnClick?: (event?: React_2.MouseEvent<Element>) => void;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
// @public (undocumented)
|
|
502
|
-
type TeamProfileCardErrorType = null | {
|
|
503
|
-
reason: 'NotFound' | 'TEAMS_FORBIDDEN' | 'default';
|
|
504
|
-
};
|
|
505
|
-
|
|
506
|
-
// @public (undocumented)
|
|
507
|
-
interface TeamProfilecardProps extends TeamProfilecardCoreProps {
|
|
508
|
-
analytics: AnalyticsFunction;
|
|
509
|
-
clientFetchProfile?: () => void;
|
|
510
|
-
errorType?: TeamProfileCardErrorType;
|
|
511
|
-
hasError?: boolean;
|
|
512
|
-
isLoading?: boolean;
|
|
513
|
-
team?: Team;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
// @public (undocumented)
|
|
517
|
-
export const TeamProfileCardTrigger: React_2.ForwardRefExoticComponent<Pick<Omit<TeamProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<TeamProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, keyof TeamProfileCardTriggerProps>> & Partial<Pick<Partial<TeamProfileCardTriggerProps>, never>> & React_2.RefAttributes<any>>;
|
|
518
|
-
|
|
519
|
-
// @public (undocumented)
|
|
520
|
-
interface TeamProfileCardTriggerProps extends TeamProfilecardCoreProps {
|
|
521
|
-
addFlag?: (flag: any) => void;
|
|
522
|
-
children?: React_2.ReactNode;
|
|
523
|
-
cloudId?: string;
|
|
524
|
-
orgId: string;
|
|
525
|
-
position?: ProfilecardTriggerPosition;
|
|
526
|
-
resourceClient: ProfileClient_2;
|
|
527
|
-
teamId: string;
|
|
528
|
-
trigger?: 'click' | 'hover' | 'hover-click';
|
|
529
|
-
triggerLinkType?: 'clickable-link' | 'link' | 'none';
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
// @public (undocumented)
|
|
533
|
-
export class TeamProfileClient extends CachingClient<Team> {
|
|
534
|
-
constructor(options: ProfileClientOptions);
|
|
535
|
-
// (undocumented)
|
|
536
|
-
getProfile(teamId: string, orgId: string | undefined, analytics?: (event: AnalyticsEventPayload) => void): Promise<Team>;
|
|
537
|
-
// (undocumented)
|
|
538
|
-
makeRequest(teamId: string, _orgId: string | undefined): Promise<Team>;
|
|
539
|
-
// (undocumented)
|
|
540
|
-
options: ProfileClientOptions;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
// @public (undocumented)
|
|
544
|
-
export type TriggerType = 'click' | 'hover';
|
|
545
|
-
|
|
546
|
-
// @public (undocumented)
|
|
547
|
-
export class UserProfileClient extends CachingClient<any> {
|
|
548
|
-
constructor(options: ProfileClientOptions);
|
|
549
|
-
// (undocumented)
|
|
550
|
-
getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<any>;
|
|
551
|
-
// (undocumented)
|
|
552
|
-
makeRequest(cloudId: string, userId: string): Promise<ProfileCardClientData>;
|
|
553
|
-
// (undocumented)
|
|
554
|
-
options: ProfileClientOptions;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
// @public (undocumented)
|
|
558
|
-
export function withOuterListeners<P>(Component: ComponentType<P>): React_2.ComponentClass<P & WithOuterListenersProps>;
|
|
559
|
-
|
|
560
|
-
// @public (undocumented)
|
|
561
|
-
export interface WithOuterListenersProps {
|
|
562
|
-
// (undocumented)
|
|
563
|
-
handleClickOutside?: () => void;
|
|
564
|
-
// (undocumented)
|
|
565
|
-
handleEscapeKeydown?: () => void;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
// (No @packageDocumentation comment for this package)
|
|
569
|
-
|
|
570
|
-
```
|