@atlaskit/mention 23.1.0 → 23.2.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/afm-jira/tsconfig.json +54 -0
  3. package/afm-post-office/tsconfig.json +54 -0
  4. package/compass.yml +0 -1
  5. package/dist/cjs/api/PresenceResource.js +6 -6
  6. package/dist/cjs/components/Mention/PrimitiveMention.js +9 -3
  7. package/dist/cjs/components/MentionDescriptionByline/styles.js +12 -4
  8. package/dist/cjs/components/MentionItem/styles.js +81 -24
  9. package/dist/cjs/components/MentionList/styles.js +19 -6
  10. package/dist/cjs/components/MentionListError/styles.js +25 -9
  11. package/dist/cjs/components/MentionPicker/index.js +2 -0
  12. package/dist/cjs/components/MentionPicker/styles.js +33 -7
  13. package/dist/cjs/components/Scrollable/styles.js +15 -4
  14. package/dist/cjs/util/analytics.js +1 -1
  15. package/dist/es2019/api/PresenceResource.js +4 -4
  16. package/dist/es2019/components/Mention/PrimitiveMention.js +26 -20
  17. package/dist/es2019/components/MentionDescriptionByline/styles.js +11 -12
  18. package/dist/es2019/components/MentionItem/styles.js +71 -65
  19. package/dist/es2019/components/MentionList/styles.js +15 -11
  20. package/dist/es2019/components/MentionListError/styles.js +26 -24
  21. package/dist/es2019/components/MentionPicker/index.js +2 -0
  22. package/dist/es2019/components/MentionPicker/styles.js +29 -22
  23. package/dist/es2019/components/Scrollable/styles.js +14 -14
  24. package/dist/es2019/util/analytics.js +1 -1
  25. package/dist/esm/api/PresenceResource.js +6 -6
  26. package/dist/esm/components/Mention/PrimitiveMention.js +9 -3
  27. package/dist/esm/components/MentionDescriptionByline/styles.js +11 -4
  28. package/dist/esm/components/MentionItem/styles.js +80 -24
  29. package/dist/esm/components/MentionList/styles.js +18 -6
  30. package/dist/esm/components/MentionListError/styles.js +26 -9
  31. package/dist/esm/components/MentionPicker/index.js +2 -0
  32. package/dist/esm/components/MentionPicker/styles.js +32 -7
  33. package/dist/esm/components/Scrollable/styles.js +14 -4
  34. package/dist/esm/util/analytics.js +1 -1
  35. package/docs/0-intro.tsx +8 -14
  36. package/docs/1-in-editor.tsx +16 -17
  37. package/local-config-example.ts +38 -38
  38. package/package.json +104 -103
  39. package/report.api.md +619 -661
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/mention"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
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
@@ -25,167 +26,158 @@ import { WithIntlProps } from 'react-intl-next';
25
26
 
26
27
  // @public (undocumented)
27
28
  export class AbstractMentionResource
28
- extends AbstractResource<MentionDescription[]>
29
- implements MentionProvider
29
+ extends AbstractResource<MentionDescription[]>
30
+ implements MentionProvider
30
31
  {
31
- // (undocumented)
32
- filter(query?: string): void;
33
- // (undocumented)
34
- isFiltering(_query: string): boolean;
35
- // (undocumented)
36
- protected _notifyAllResultsListeners(mentionsResult: MentionsResult): void;
37
- // (undocumented)
38
- protected _notifyAnalyticsListeners(
39
- event: string,
40
- actionSubject: string,
41
- action: string,
42
- attributes?: {
43
- [key: string]: any;
44
- },
45
- ): void;
46
- // (undocumented)
47
- protected _notifyErrorListeners(error: Error, query?: string): void;
48
- // (undocumented)
49
- protected _notifyInfoListeners(info: string): void;
50
- // (undocumented)
51
- protected _notifyListeners(
52
- mentionsResult: MentionsResult,
53
- stats?: MentionStats,
54
- ): void;
55
- // (undocumented)
56
- recordMentionSelection(_mention: MentionDescription): void;
57
- // (undocumented)
58
- shouldHighlightMention(_mention: MentionDescription): boolean;
32
+ // (undocumented)
33
+ filter(query?: string): void;
34
+ // (undocumented)
35
+ isFiltering(_query: string): boolean;
36
+ // (undocumented)
37
+ protected _notifyAllResultsListeners(mentionsResult: MentionsResult): void;
38
+ // (undocumented)
39
+ protected _notifyAnalyticsListeners(
40
+ event: string,
41
+ actionSubject: string,
42
+ action: string,
43
+ attributes?: {
44
+ [key: string]: any;
45
+ },
46
+ ): void;
47
+ // (undocumented)
48
+ protected _notifyErrorListeners(error: Error, query?: string): void;
49
+ // (undocumented)
50
+ protected _notifyInfoListeners(info: string): void;
51
+ // (undocumented)
52
+ protected _notifyListeners(mentionsResult: MentionsResult, stats?: MentionStats): void;
53
+ // (undocumented)
54
+ recordMentionSelection(_mention: MentionDescription): void;
55
+ // (undocumented)
56
+ shouldHighlightMention(_mention: MentionDescription): boolean;
59
57
  }
60
58
 
61
59
  // @public (undocumented)
62
60
  export class AbstractPresenceResource
63
- extends AbstractResource<PresenceMap>
64
- implements PresenceProvider
61
+ extends AbstractResource<PresenceMap>
62
+ implements PresenceProvider
65
63
  {
66
- // (undocumented)
67
- protected notifyListeners(presences: PresenceMap): void;
68
- // (undocumented)
69
- refreshPresence(userIds: string[]): void;
64
+ // (undocumented)
65
+ protected notifyListeners(presences: PresenceMap): void;
66
+ // (undocumented)
67
+ refreshPresence(userIds: string[]): void;
70
68
  }
71
69
 
72
70
  // @public (undocumented)
73
71
  class AbstractResource<Result> implements ResourceProvider<Result> {
74
- constructor();
75
- // (undocumented)
76
- protected allResultsListeners: Map<string, ResultCallback<Result>>;
77
- // (undocumented)
78
- protected analyticsListeners: Map<string, AnalyticsCallback>;
79
- // (undocumented)
80
- protected changeListeners: Map<string, ResultCallback<Result>>;
81
- // (undocumented)
82
- protected errListeners: Map<string, ErrorCallback_2>;
83
- // (undocumented)
84
- protected infoListeners: Map<string, InfoCallback>;
85
- // (undocumented)
86
- subscribe(
87
- key: string,
88
- callback?: ResultCallback<Result>,
89
- errCallback?: ErrorCallback_2,
90
- infoCallback?: InfoCallback,
91
- allResultsCallback?: ResultCallback<Result>,
92
- analyticsListeners?: AnalyticsCallback,
93
- ): void;
94
- // (undocumented)
95
- unsubscribe(key: string): void;
72
+ constructor();
73
+ // (undocumented)
74
+ protected allResultsListeners: Map<string, ResultCallback<Result>>;
75
+ // (undocumented)
76
+ protected analyticsListeners: Map<string, AnalyticsCallback>;
77
+ // (undocumented)
78
+ protected changeListeners: Map<string, ResultCallback<Result>>;
79
+ // (undocumented)
80
+ protected errListeners: Map<string, ErrorCallback_2>;
81
+ // (undocumented)
82
+ protected infoListeners: Map<string, InfoCallback>;
83
+ // (undocumented)
84
+ subscribe(
85
+ key: string,
86
+ callback?: ResultCallback<Result>,
87
+ errCallback?: ErrorCallback_2,
88
+ infoCallback?: InfoCallback,
89
+ allResultsCallback?: ResultCallback<Result>,
90
+ analyticsListeners?: AnalyticsCallback,
91
+ ): void;
92
+ // (undocumented)
93
+ unsubscribe(key: string): void;
96
94
  }
97
95
 
98
96
  // @public (undocumented)
99
97
  interface AnalyticsCallback {
100
- // (undocumented)
101
- (
102
- event: string,
103
- actionSubject: string,
104
- action: string,
105
- attributes?: {
106
- [key: string]: any;
107
- },
108
- ): void;
98
+ // (undocumented)
99
+ (
100
+ event: string,
101
+ actionSubject: string,
102
+ action: string,
103
+ attributes?: {
104
+ [key: string]: any;
105
+ },
106
+ ): void;
109
107
  }
110
108
 
111
109
  // @public
112
110
  export class ContextMentionResource implements MentionProvider {
113
- constructor(
114
- mentionProvider: MentionProvider,
115
- contextIdentifier: MentionContextIdentifier,
116
- );
117
- // (undocumented)
118
- callDefault: <
119
- K extends
120
- | 'filter'
121
- | 'isFiltering'
122
- | 'recordMentionSelection'
123
- | 'shouldHighlightMention'
124
- | 'subscribe'
125
- | 'unsubscribe',
126
- >(
127
- f: K,
128
- ) => MentionProvider[K];
129
- // (undocumented)
130
- callWithContextIds: <
131
- K extends
132
- | 'filter'
133
- | 'isFiltering'
134
- | 'recordMentionSelection'
135
- | 'shouldHighlightMention'
136
- | 'subscribe'
137
- | 'unsubscribe',
138
- >(
139
- f: K,
140
- declaredArgs: number,
141
- ) => MentionProvider[K];
142
- // (undocumented)
143
- filter: (
144
- query?: string | undefined,
145
- contextIdentifier?: MentionContextIdentifier | undefined,
146
- ) => void;
147
- // (undocumented)
148
- getContextIdentifier(): MentionContextIdentifier | undefined;
149
- // (undocumented)
150
- isFiltering: (query: string) => boolean;
151
- // (undocumented)
152
- recordMentionSelection: (
153
- mention: MentionDescription,
154
- contextIdentifier?: MentionContextIdentifier | undefined,
155
- ) => void;
156
- // (undocumented)
157
- shouldHighlightMention: (mention: MentionDescription) => boolean;
158
- // (undocumented)
159
- subscribe: (
160
- key: string,
161
- callback?: ResultCallback<MentionDescription[]> | undefined,
162
- errCallback?: ErrorCallback_2 | undefined,
163
- infoCallback?: InfoCallback | undefined,
164
- allResultsCallback?: ResultCallback<MentionDescription[]> | undefined,
165
- analyticsCallback?: AnalyticsCallback | undefined,
166
- ) => void;
167
- // (undocumented)
168
- unsubscribe: (key: string) => void;
111
+ constructor(mentionProvider: MentionProvider, contextIdentifier: MentionContextIdentifier);
112
+ // (undocumented)
113
+ callDefault: <
114
+ K extends
115
+ | 'filter'
116
+ | 'isFiltering'
117
+ | 'recordMentionSelection'
118
+ | 'shouldHighlightMention'
119
+ | 'subscribe'
120
+ | 'unsubscribe',
121
+ >(
122
+ f: K,
123
+ ) => MentionProvider[K];
124
+ // (undocumented)
125
+ callWithContextIds: <
126
+ K extends
127
+ | 'filter'
128
+ | 'isFiltering'
129
+ | 'recordMentionSelection'
130
+ | 'shouldHighlightMention'
131
+ | 'subscribe'
132
+ | 'unsubscribe',
133
+ >(
134
+ f: K,
135
+ declaredArgs: number,
136
+ ) => MentionProvider[K];
137
+ // (undocumented)
138
+ filter: (
139
+ query?: string | undefined,
140
+ contextIdentifier?: MentionContextIdentifier | undefined,
141
+ ) => void;
142
+ // (undocumented)
143
+ getContextIdentifier(): MentionContextIdentifier | undefined;
144
+ // (undocumented)
145
+ isFiltering: (query: string) => boolean;
146
+ // (undocumented)
147
+ recordMentionSelection: (
148
+ mention: MentionDescription,
149
+ contextIdentifier?: MentionContextIdentifier | undefined,
150
+ ) => void;
151
+ // (undocumented)
152
+ shouldHighlightMention: (mention: MentionDescription) => boolean;
153
+ // (undocumented)
154
+ subscribe: (
155
+ key: string,
156
+ callback?: ResultCallback<MentionDescription[]> | undefined,
157
+ errCallback?: ErrorCallback_2 | undefined,
158
+ infoCallback?: InfoCallback | undefined,
159
+ allResultsCallback?: ResultCallback<MentionDescription[]> | undefined,
160
+ analyticsCallback?: AnalyticsCallback | undefined,
161
+ ) => void;
162
+ // (undocumented)
163
+ unsubscribe: (key: string) => void;
169
164
  }
170
165
 
171
166
  // @public (undocumented)
172
167
  interface Data {
173
- // (undocumented)
174
- PresenceBulk: PresenceBulk[];
168
+ // (undocumented)
169
+ PresenceBulk: PresenceBulk[];
175
170
  }
176
171
 
177
172
  // @public (undocumented)
178
173
  export class DefaultMentionNameResolver implements MentionNameResolver {
179
- constructor(
180
- client: MentionNameClient,
181
- analyticsProps?: WithAnalyticsEventsProps,
182
- );
183
- // (undocumented)
184
- cacheName(id: string, name: string): void;
185
- // (undocumented)
186
- lookupName(id: string): MentionNameDetails | Promise<MentionNameDetails>;
187
- // (undocumented)
188
- static waitForBatch: number;
174
+ constructor(client: MentionNameClient, analyticsProps?: WithAnalyticsEventsProps);
175
+ // (undocumented)
176
+ cacheName(id: string, name: string): void;
177
+ // (undocumented)
178
+ lookupName(id: string): MentionNameDetails | Promise<MentionNameDetails>;
179
+ // (undocumented)
180
+ static waitForBatch: number;
189
181
  }
190
182
 
191
183
  // @public (undocumented)
@@ -193,32 +185,32 @@ export const ELEMENTS_CHANNEL = 'fabric-elements';
193
185
 
194
186
  // @public (undocumented)
195
187
  interface ErrorCallback_2 {
196
- // (undocumented)
197
- (error: Error, query?: string): void;
188
+ // (undocumented)
189
+ (error: Error, query?: string): void;
198
190
  }
199
191
 
200
192
  // @public (undocumented)
201
193
  interface Highlight {
202
- // (undocumented)
203
- mentionName: HighlightDetail[];
204
- // (undocumented)
205
- name: HighlightDetail[];
206
- // (undocumented)
207
- nickname: HighlightDetail[];
194
+ // (undocumented)
195
+ mentionName: HighlightDetail[];
196
+ // (undocumented)
197
+ name: HighlightDetail[];
198
+ // (undocumented)
199
+ nickname: HighlightDetail[];
208
200
  }
209
201
 
210
202
  // @public (undocumented)
211
203
  interface HighlightDetail {
212
- // (undocumented)
213
- end: number;
214
- // (undocumented)
215
- start: number;
204
+ // (undocumented)
205
+ end: number;
206
+ // (undocumented)
207
+ start: number;
216
208
  }
217
209
 
218
210
  // @public (undocumented)
219
211
  interface InfoCallback {
220
- // (undocumented)
221
- (info: string): void;
212
+ // (undocumented)
213
+ (info: string): void;
222
214
  }
223
215
 
224
216
  // @public (undocumented)
@@ -226,44 +218,36 @@ export type InviteFlow = 'assign' | 'mention';
226
218
 
227
219
  // @public (undocumented)
228
220
  interface InviteFromMentionProvider {
229
- // (undocumented)
230
- onInviteItemClick?(flow: InviteFlow): void;
231
- // (undocumented)
232
- productName?: string;
233
- // (undocumented)
234
- shouldEnableInvite?: boolean;
235
- // (undocumented)
236
- userRole?: UserRole;
221
+ // (undocumented)
222
+ onInviteItemClick?(flow: InviteFlow): void;
223
+ // (undocumented)
224
+ productName?: string;
225
+ // (undocumented)
226
+ shouldEnableInvite?: boolean;
227
+ // (undocumented)
228
+ userRole?: UserRole;
237
229
  }
238
230
 
239
231
  // @public (undocumented)
240
- export const isResolvingMentionProvider: (
241
- p: any,
242
- ) => p is ResolvingMentionProvider;
232
+ export const isResolvingMentionProvider: (p: any) => p is ResolvingMentionProvider;
243
233
 
244
234
  // @public (undocumented)
245
235
  export function isSpecialMention(mention: MentionDescription): boolean;
246
236
 
247
237
  // @public (undocumented)
248
- type LozengeColor =
249
- | 'default'
250
- | 'inprogress'
251
- | 'moved'
252
- | 'new'
253
- | 'removed'
254
- | 'success';
238
+ type LozengeColor = 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success';
255
239
 
256
240
  // @public (undocumented)
257
241
  interface LozengeProps {
258
- // (undocumented)
259
- appearance?: LozengeColor;
260
- // (undocumented)
261
- text: React.ReactNode;
242
+ // (undocumented)
243
+ appearance?: LozengeColor;
244
+ // (undocumented)
245
+ text: React.ReactNode;
262
246
  }
263
247
 
264
248
  // @public (undocumented)
265
249
  export const Mention: React_2.ForwardRefExoticComponent<
266
- Omit<Props_5, keyof WithAnalyticsEventsProps_2> & React_2.RefAttributes<any>
250
+ Omit<Props_5, keyof WithAnalyticsEventsProps_2> & React_2.RefAttributes<any>
267
251
  >;
268
252
 
269
253
  // @public (undocumented)
@@ -271,201 +255,199 @@ export type Mention = MentionInternal;
271
255
 
272
256
  // @public (undocumented)
273
257
  export type MentionContextIdentifier = {
274
- containerId?: string;
275
- objectId?: string;
276
- childObjectId?: string;
277
- sessionId?: string;
258
+ containerId?: string;
259
+ objectId?: string;
260
+ childObjectId?: string;
261
+ sessionId?: string;
278
262
  };
279
263
 
280
264
  // @public (undocumented)
281
265
  interface MentionDescContext {
282
- // (undocumented)
283
- includesYou: boolean;
284
- // (undocumented)
285
- memberCount: number;
286
- // (undocumented)
287
- members: TeamMember[];
288
- // (undocumented)
289
- teamLink: string;
266
+ // (undocumented)
267
+ includesYou: boolean;
268
+ // (undocumented)
269
+ memberCount: number;
270
+ // (undocumented)
271
+ members: TeamMember[];
272
+ // (undocumented)
273
+ teamLink: string;
290
274
  }
291
275
 
292
276
  // @public (undocumented)
293
277
  export interface MentionDescription {
294
- // (undocumented)
295
- accessLevel?: string;
296
- // (undocumented)
297
- avatarUrl?: string;
298
- // (undocumented)
299
- context?: MentionDescContext;
300
- // (undocumented)
301
- highlight?: Highlight;
302
- // (undocumented)
303
- id: string;
304
- // (undocumented)
305
- inContext?: boolean;
306
- // (undocumented)
307
- lozenge?: LozengeProps | string;
308
- // (undocumented)
309
- mentionName?: string;
310
- // (undocumented)
311
- name?: string;
312
- // (undocumented)
313
- nickname?: string;
314
- // (undocumented)
315
- presence?: Presence;
316
- // (undocumented)
317
- source?: string;
318
- // (undocumented)
319
- userType?: string;
278
+ // (undocumented)
279
+ accessLevel?: string;
280
+ // (undocumented)
281
+ avatarUrl?: string;
282
+ // (undocumented)
283
+ context?: MentionDescContext;
284
+ // (undocumented)
285
+ highlight?: Highlight;
286
+ // (undocumented)
287
+ id: string;
288
+ // (undocumented)
289
+ inContext?: boolean;
290
+ // (undocumented)
291
+ lozenge?: LozengeProps | string;
292
+ // (undocumented)
293
+ mentionName?: string;
294
+ // (undocumented)
295
+ name?: string;
296
+ // (undocumented)
297
+ nickname?: string;
298
+ // (undocumented)
299
+ presence?: Presence;
300
+ // (undocumented)
301
+ source?: string;
302
+ // (undocumented)
303
+ userType?: string;
320
304
  }
321
305
 
322
306
  // @public (undocumented)
323
307
  type MentionEventHandler = (
324
- mentionId: string,
325
- text: string,
326
- event?: SyntheticEvent<HTMLSpanElement>,
308
+ mentionId: string,
309
+ text: string,
310
+ event?: SyntheticEvent<HTMLSpanElement>,
327
311
  ) => void;
328
312
 
329
313
  // @public (undocumented)
330
314
  class MentionInternal extends React_2.PureComponent<Props_5, {}> {
331
- constructor(props: Props_5);
332
- // (undocumented)
333
- componentDidMount(): void;
334
- // (undocumented)
335
- componentWillUnmount(): void;
336
- // (undocumented)
337
- render(): JSX.Element;
338
- // (undocumented)
339
- renderUnknownUserError(id: string): JSX.Element;
315
+ constructor(props: Props_5);
316
+ // (undocumented)
317
+ componentDidMount(): void;
318
+ // (undocumented)
319
+ componentWillUnmount(): void;
320
+ // (undocumented)
321
+ render(): JSX.Element;
322
+ // (undocumented)
323
+ renderUnknownUserError(id: string): JSX.Element;
340
324
  }
341
325
 
342
326
  // @public (undocumented)
343
327
  export class MentionItem extends React_2.PureComponent<Props, {}> {
344
- // (undocumented)
345
- render(): JSX.Element;
328
+ // (undocumented)
329
+ render(): JSX.Element;
346
330
  }
347
331
 
348
332
  // @public (undocumented)
349
333
  export class MentionList extends React_2.PureComponent<Props_2, State> {
350
- constructor(props: Props_2);
351
- // (undocumented)
352
- chooseCurrentSelection: () => void;
353
- // (undocumented)
354
- componentDidUpdate(): void;
355
- // (undocumented)
356
- mentionsCount: () => number;
357
- // (undocumented)
358
- render(): JSX.Element;
359
- // (undocumented)
360
- selectId: (id: string, callback?: () => any) => void;
361
- // (undocumented)
362
- selectIndex: (index: number, callback?: () => any) => void;
363
- // (undocumented)
364
- selectNext: () => void;
365
- // (undocumented)
366
- selectPrevious: () => void;
367
- // (undocumented)
368
- UNSAFE_componentWillReceiveProps(nextProps: Props_2): void;
334
+ constructor(props: Props_2);
335
+ // (undocumented)
336
+ chooseCurrentSelection: () => void;
337
+ // (undocumented)
338
+ componentDidUpdate(): void;
339
+ // (undocumented)
340
+ mentionsCount: () => number;
341
+ // (undocumented)
342
+ render(): JSX.Element;
343
+ // (undocumented)
344
+ selectId: (id: string, callback?: () => any) => void;
345
+ // (undocumented)
346
+ selectIndex: (index: number, callback?: () => any) => void;
347
+ // (undocumented)
348
+ selectNext: () => void;
349
+ // (undocumented)
350
+ selectPrevious: () => void;
351
+ // (undocumented)
352
+ UNSAFE_componentWillReceiveProps(nextProps: Props_2): void;
369
353
  }
370
354
 
371
355
  // @public (undocumented)
372
356
  export interface MentionNameClient {
373
- // (undocumented)
374
- getLookupLimit(): number;
375
- // (undocumented)
376
- lookupMentionNames(ids: string[]): Promise<MentionNameDetails[]>;
357
+ // (undocumented)
358
+ getLookupLimit(): number;
359
+ // (undocumented)
360
+ lookupMentionNames(ids: string[]): Promise<MentionNameDetails[]>;
377
361
  }
378
362
 
379
363
  // @public (undocumented)
380
364
  export interface MentionNameDetails {
381
- // (undocumented)
382
- id: string;
383
- // (undocumented)
384
- name?: string;
385
- // (undocumented)
386
- status: MentionNameStatus;
365
+ // (undocumented)
366
+ id: string;
367
+ // (undocumented)
368
+ name?: string;
369
+ // (undocumented)
370
+ status: MentionNameStatus;
387
371
  }
388
372
 
389
373
  // @public (undocumented)
390
374
  export interface MentionNameResolver {
391
- // (undocumented)
392
- cacheName(id: string, name: string): void;
393
- // (undocumented)
394
- lookupName(id: string): MentionNameDetails | Promise<MentionNameDetails>;
375
+ // (undocumented)
376
+ cacheName(id: string, name: string): void;
377
+ // (undocumented)
378
+ lookupName(id: string): MentionNameDetails | Promise<MentionNameDetails>;
395
379
  }
396
380
 
397
381
  // @public (undocumented)
398
382
  export enum MentionNameStatus {
399
- // (undocumented)
400
- OK = 2,
401
- // (undocumented)
402
- SERVICE_ERROR = 1,
403
- // (undocumented)
404
- UNKNOWN = 0,
383
+ // (undocumented)
384
+ OK = 2,
385
+ // (undocumented)
386
+ SERVICE_ERROR = 1,
387
+ // (undocumented)
388
+ UNKNOWN = 0,
405
389
  }
406
390
 
407
391
  // @public
408
392
  class MentionPicker_2 extends React_2.PureComponent<
409
- Props_4 &
410
- WithAnalyticsEventsProps_2 & {
411
- intl: IntlShape;
412
- },
413
- State_3
393
+ Props_4 &
394
+ WithAnalyticsEventsProps_2 & {
395
+ intl: IntlShape;
396
+ },
397
+ State_3
414
398
  > {
415
- constructor(
416
- props: Props_4 &
417
- WithAnalyticsEventsProps_2 & {
418
- intl: IntlShape;
419
- },
420
- );
421
- // (undocumented)
422
- chooseCurrentSelection: () => void;
423
- // (undocumented)
424
- componentDidMount(): void;
425
- // (undocumented)
426
- componentWillUnmount(): void;
427
- // (undocumented)
428
- static defaultProps: {
429
- onSelection: () => void;
430
- onOpen: () => void;
431
- onClose: () => void;
432
- };
433
- // (undocumented)
434
- mentionsCount: () => number;
435
- // (undocumented)
436
- render(): JSX.Element;
437
- // (undocumented)
438
- selectId: (id: string, callback?: () => any) => void;
439
- // (undocumented)
440
- selectIndex: (index: number, callback?: () => any) => void;
441
- // (undocumented)
442
- selectNext: () => void;
443
- // (undocumented)
444
- selectPrevious: () => void;
445
- // (undocumented)
446
- UNSAFE_componentWillReceiveProps(
447
- nextProps: Props_4 & WithAnalyticsEventsProps_2,
448
- ): void;
399
+ constructor(
400
+ props: Props_4 &
401
+ WithAnalyticsEventsProps_2 & {
402
+ intl: IntlShape;
403
+ },
404
+ );
405
+ // (undocumented)
406
+ chooseCurrentSelection: () => void;
407
+ // (undocumented)
408
+ componentDidMount(): void;
409
+ // (undocumented)
410
+ componentWillUnmount(): void;
411
+ // (undocumented)
412
+ static defaultProps: {
413
+ onSelection: () => void;
414
+ onOpen: () => void;
415
+ onClose: () => void;
416
+ };
417
+ // (undocumented)
418
+ mentionsCount: () => number;
419
+ // (undocumented)
420
+ render(): JSX.Element;
421
+ // (undocumented)
422
+ selectId: (id: string, callback?: () => any) => void;
423
+ // (undocumented)
424
+ selectIndex: (index: number, callback?: () => any) => void;
425
+ // (undocumented)
426
+ selectNext: () => void;
427
+ // (undocumented)
428
+ selectPrevious: () => void;
429
+ // (undocumented)
430
+ UNSAFE_componentWillReceiveProps(nextProps: Props_4 & WithAnalyticsEventsProps_2): void;
449
431
  }
450
432
 
451
433
  // @public (undocumented)
452
434
  const MentionPickerWithAnalytics: React_2.ForwardRefExoticComponent<
453
- Omit<
454
- Pick<
455
- WithIntlProps<
456
- React_2.PropsWithChildren<
457
- Props_4 &
458
- WithAnalyticsEventsProps_2 & {
459
- intl: IntlShape;
460
- }
461
- >
462
- >,
463
- 'children' | 'createAnalyticsEvent' | 'forwardedRef' | keyof Props_4
464
- > &
465
- React_2.RefAttributes<any>,
466
- keyof WithAnalyticsEventsProps_2
467
- > &
468
- React_2.RefAttributes<any>
435
+ Omit<
436
+ Pick<
437
+ WithIntlProps<
438
+ React_2.PropsWithChildren<
439
+ Props_4 &
440
+ WithAnalyticsEventsProps_2 & {
441
+ intl: IntlShape;
442
+ }
443
+ >
444
+ >,
445
+ 'children' | 'createAnalyticsEvent' | 'forwardedRef' | keyof Props_4
446
+ > &
447
+ React_2.RefAttributes<any>,
448
+ keyof WithAnalyticsEventsProps_2
449
+ > &
450
+ React_2.RefAttributes<any>
469
451
  >;
470
452
 
471
453
  // @public (undocumented)
@@ -475,147 +457,135 @@ export default MentionPickerWithAnalytics;
475
457
 
476
458
  // @public (undocumented)
477
459
  export interface MentionProvider
478
- extends ResourceProvider<MentionDescription[]>,
479
- InviteFromMentionProvider {
480
- // (undocumented)
481
- filter(query?: string, contextIdentifier?: MentionContextIdentifier): void;
482
- // (undocumented)
483
- isFiltering(query: string): boolean;
484
- // (undocumented)
485
- recordMentionSelection(
486
- mention: MentionDescription,
487
- contextIdentifier?: MentionContextIdentifier,
488
- ): void;
489
- // (undocumented)
490
- shouldHighlightMention(mention: MentionDescription): boolean;
460
+ extends ResourceProvider<MentionDescription[]>,
461
+ InviteFromMentionProvider {
462
+ // (undocumented)
463
+ filter(query?: string, contextIdentifier?: MentionContextIdentifier): void;
464
+ // (undocumented)
465
+ isFiltering(query: string): boolean;
466
+ // (undocumented)
467
+ recordMentionSelection(
468
+ mention: MentionDescription,
469
+ contextIdentifier?: MentionContextIdentifier,
470
+ ): void;
471
+ // (undocumented)
472
+ shouldHighlightMention(mention: MentionDescription): boolean;
491
473
  }
492
474
 
493
475
  // @public
494
- export class MentionResource
495
- extends AbstractMentionResource
496
- implements ResolvingMentionProvider
497
- {
498
- constructor(config: MentionResourceConfig);
499
- // (undocumented)
500
- cacheMentionName(id: string, mentionName: string): void;
501
- // (undocumented)
502
- filter(
503
- query?: string,
504
- contextIdentifier?: MentionContextIdentifier,
505
- ): Promise<void>;
506
- // (undocumented)
507
- isFiltering(query: string): boolean;
508
- // (undocumented)
509
- notify(
510
- searchTime: number,
511
- mentionResult: MentionsResult,
512
- query?: string,
513
- ): void;
514
- // (undocumented)
515
- notifyError(error: Error, query?: string): void;
516
- // (undocumented)
517
- onInviteItemClick?: (flow: InviteFlow) => void;
518
- // (undocumented)
519
- productName?: string;
520
- // (undocumented)
521
- recordMentionSelection(
522
- mention: MentionDescription,
523
- contextIdentifier?: MentionContextIdentifier,
524
- ): Promise<void>;
525
- // (undocumented)
526
- recordSelection(
527
- mention: MentionDescription,
528
- contextIdentifier?: MentionContextIdentifier,
529
- ): Promise<void>;
530
- protected remoteInitialState(
531
- contextIdentifier?: MentionContextIdentifier,
532
- ): Promise<MentionsResult>;
533
- // (undocumented)
534
- protected remoteSearch(
535
- query: string,
536
- contextIdentifier?: MentionContextIdentifier,
537
- ): Promise<MentionsResult>;
538
- // (undocumented)
539
- resolveMentionName(
540
- id: string,
541
- ): MentionNameDetails | Promise<MentionNameDetails>;
542
- // (undocumented)
543
- shouldEnableInvite: boolean;
544
- // (undocumented)
545
- shouldHighlightMention(mention: MentionDescription): boolean;
546
- // (undocumented)
547
- supportsMentionNameResolving(): boolean;
548
- // (undocumented)
549
- protected updateActiveSearches(query: string): void;
550
- // (undocumented)
551
- userRole: UserRole;
552
- // (undocumented)
553
- protected verifyMentionConfig(config: MentionResourceConfig): void;
476
+ export class MentionResource extends AbstractMentionResource implements ResolvingMentionProvider {
477
+ constructor(config: MentionResourceConfig);
478
+ // (undocumented)
479
+ cacheMentionName(id: string, mentionName: string): void;
480
+ // (undocumented)
481
+ filter(query?: string, contextIdentifier?: MentionContextIdentifier): Promise<void>;
482
+ // (undocumented)
483
+ isFiltering(query: string): boolean;
484
+ // (undocumented)
485
+ notify(searchTime: number, mentionResult: MentionsResult, query?: string): void;
486
+ // (undocumented)
487
+ notifyError(error: Error, query?: string): void;
488
+ // (undocumented)
489
+ onInviteItemClick?: (flow: InviteFlow) => void;
490
+ // (undocumented)
491
+ productName?: string;
492
+ // (undocumented)
493
+ recordMentionSelection(
494
+ mention: MentionDescription,
495
+ contextIdentifier?: MentionContextIdentifier,
496
+ ): Promise<void>;
497
+ // (undocumented)
498
+ recordSelection(
499
+ mention: MentionDescription,
500
+ contextIdentifier?: MentionContextIdentifier,
501
+ ): Promise<void>;
502
+ protected remoteInitialState(
503
+ contextIdentifier?: MentionContextIdentifier,
504
+ ): Promise<MentionsResult>;
505
+ // (undocumented)
506
+ protected remoteSearch(
507
+ query: string,
508
+ contextIdentifier?: MentionContextIdentifier,
509
+ ): Promise<MentionsResult>;
510
+ // (undocumented)
511
+ resolveMentionName(id: string): MentionNameDetails | Promise<MentionNameDetails>;
512
+ // (undocumented)
513
+ shouldEnableInvite: boolean;
514
+ // (undocumented)
515
+ shouldHighlightMention(mention: MentionDescription): boolean;
516
+ // (undocumented)
517
+ supportsMentionNameResolving(): boolean;
518
+ // (undocumented)
519
+ protected updateActiveSearches(query: string): void;
520
+ // (undocumented)
521
+ userRole: UserRole;
522
+ // (undocumented)
523
+ protected verifyMentionConfig(config: MentionResourceConfig): void;
554
524
  }
555
525
 
556
526
  // @public (undocumented)
557
527
  export interface MentionResourceConfig extends ServiceConfig {
558
- // (undocumented)
559
- containerId?: string;
560
- // (undocumented)
561
- debounceTime?: number;
562
- // (undocumented)
563
- mentionNameResolver?: MentionNameResolver;
564
- // (undocumented)
565
- onInviteItemClick?: (flow: InviteFlow) => void;
566
- // (undocumented)
567
- productId?: string;
568
- // (undocumented)
569
- productName?: string;
570
- // (undocumented)
571
- shouldEnableInvite?: boolean;
572
- // (undocumented)
573
- shouldHighlightMention?: (mention: MentionDescription) => boolean;
574
- // (undocumented)
575
- userRole?: UserRole;
528
+ // (undocumented)
529
+ containerId?: string;
530
+ // (undocumented)
531
+ debounceTime?: number;
532
+ // (undocumented)
533
+ mentionNameResolver?: MentionNameResolver;
534
+ // (undocumented)
535
+ onInviteItemClick?: (flow: InviteFlow) => void;
536
+ // (undocumented)
537
+ productId?: string;
538
+ // (undocumented)
539
+ productName?: string;
540
+ // (undocumented)
541
+ shouldEnableInvite?: boolean;
542
+ // (undocumented)
543
+ shouldHighlightMention?: (mention: MentionDescription) => boolean;
544
+ // (undocumented)
545
+ userRole?: UserRole;
576
546
  }
577
547
 
578
548
  // @public (undocumented)
579
549
  export interface MentionsResult {
580
- // (undocumented)
581
- mentions: MentionDescription[];
582
- // (undocumented)
583
- query: string;
550
+ // (undocumented)
551
+ mentions: MentionDescription[];
552
+ // (undocumented)
553
+ query: string;
584
554
  }
585
555
 
586
556
  // @public (undocumented)
587
557
  export type MentionStats = {
588
- [key: string]: any;
558
+ [key: string]: any;
589
559
  };
590
560
 
591
561
  // @public (undocumented)
592
562
  interface OnClose {
593
- // (undocumented)
594
- (): void;
563
+ // (undocumented)
564
+ (): void;
595
565
  }
596
566
 
597
567
  // @public (undocumented)
598
568
  interface OnMentionEvent {
599
- // (undocumented)
600
- (mention: MentionDescription, event?: SyntheticEvent<any>): void;
569
+ // (undocumented)
570
+ (mention: MentionDescription, event?: SyntheticEvent<any>): void;
601
571
  }
602
572
 
603
573
  // @public (undocumented)
604
574
  interface OnOpen {
605
- // (undocumented)
606
- (): void;
575
+ // (undocumented)
576
+ (): void;
607
577
  }
608
578
 
609
579
  // @public (undocumented)
610
580
  type OwnProps = {
611
- id: string;
612
- text: string;
613
- isHighlighted?: boolean;
614
- accessLevel?: string;
615
- onClick?: MentionEventHandler;
616
- onMouseEnter?: MentionEventHandler;
617
- onMouseLeave?: MentionEventHandler;
618
- onHover?: () => void;
581
+ id: string;
582
+ text: string;
583
+ isHighlighted?: boolean;
584
+ accessLevel?: string;
585
+ onClick?: MentionEventHandler;
586
+ onMouseEnter?: MentionEventHandler;
587
+ onMouseLeave?: MentionEventHandler;
588
+ onHover?: () => void;
619
589
  };
620
590
 
621
591
  // @public (undocumented)
@@ -623,155 +593,155 @@ type Position = 'above' | 'auto' | 'below';
623
593
 
624
594
  // @public (undocumented)
625
595
  interface Presence {
626
- // (undocumented)
627
- status?: string;
628
- // (undocumented)
629
- time?: string;
596
+ // (undocumented)
597
+ status?: string;
598
+ // (undocumented)
599
+ time?: string;
630
600
  }
631
601
 
632
602
  // @public (undocumented)
633
603
  interface PresenceBulk {
634
- // (undocumented)
635
- date: null | string;
636
- // (undocumented)
637
- message: null | string;
638
- // (undocumented)
639
- state: null | string;
640
- // (undocumented)
641
- stateMetadata?: string;
642
- // (undocumented)
643
- type: null | string;
644
- // (undocumented)
645
- userId: string;
604
+ // (undocumented)
605
+ date: null | string;
606
+ // (undocumented)
607
+ message: null | string;
608
+ // (undocumented)
609
+ state: null | string;
610
+ // (undocumented)
611
+ stateMetadata?: string;
612
+ // (undocumented)
613
+ type: null | string;
614
+ // (undocumented)
615
+ userId: string;
646
616
  }
647
617
 
648
618
  // @public (undocumented)
649
619
  interface PresenceCache {
650
- // (undocumented)
651
- contains(userId: string): boolean;
652
- // (undocumented)
653
- get(userId: string): Presence;
654
- // (undocumented)
655
- getBulk(userIds: string[]): PresenceMap;
656
- // (undocumented)
657
- getMissingUserIds(userIds: string[]): string[];
658
- // (undocumented)
659
- update(presUpdate: PresenceMap): void;
620
+ // (undocumented)
621
+ contains(userId: string): boolean;
622
+ // (undocumented)
623
+ get(userId: string): Presence;
624
+ // (undocumented)
625
+ getBulk(userIds: string[]): PresenceMap;
626
+ // (undocumented)
627
+ getMissingUserIds(userIds: string[]): string[];
628
+ // (undocumented)
629
+ update(presUpdate: PresenceMap): void;
660
630
  }
661
631
 
662
632
  // @public (undocumented)
663
633
  interface PresenceMap {
664
- // (undocumented)
665
- [userId: string]: Presence;
634
+ // (undocumented)
635
+ [userId: string]: Presence;
666
636
  }
667
637
 
668
638
  // @public (undocumented)
669
639
  interface PresenceParser {
670
- // (undocumented)
671
- mapState(state: string): string;
672
- // (undocumented)
673
- parse(response: PresenceResponse): PresenceMap;
640
+ // (undocumented)
641
+ mapState(state: string): string;
642
+ // (undocumented)
643
+ parse(response: PresenceResponse): PresenceMap;
674
644
  }
675
645
 
676
646
  // @public (undocumented)
677
647
  export interface PresenceProvider extends ResourceProvider<PresenceMap> {
678
- // (undocumented)
679
- refreshPresence(userIds: string[]): void;
648
+ // (undocumented)
649
+ refreshPresence(userIds: string[]): void;
680
650
  }
681
651
 
682
652
  // @public (undocumented)
683
653
  export class PresenceResource extends AbstractPresenceResource {
684
- constructor(config: PresenceResourceConfig);
685
- // (undocumented)
686
- refreshPresence(userIds: string[]): void;
654
+ constructor(config: PresenceResourceConfig);
655
+ // (undocumented)
656
+ refreshPresence(userIds: string[]): void;
687
657
  }
688
658
 
689
659
  // @public (undocumented)
690
660
  interface PresenceResourceConfig {
691
- // (undocumented)
692
- cache?: PresenceCache;
693
- // (undocumented)
694
- cacheExpiry?: number;
695
- // (undocumented)
696
- cloudId: string;
697
- // (undocumented)
698
- parser?: PresenceParser;
699
- // (undocumented)
700
- productId?: string;
701
- // (undocumented)
702
- url: string;
661
+ // (undocumented)
662
+ cache?: PresenceCache;
663
+ // (undocumented)
664
+ cacheExpiry?: number;
665
+ // (undocumented)
666
+ cloudId: string;
667
+ // (undocumented)
668
+ parser?: PresenceParser;
669
+ // (undocumented)
670
+ productId?: string;
671
+ // (undocumented)
672
+ url: string;
703
673
  }
704
674
 
705
675
  // @public (undocumented)
706
676
  interface PresenceResponse {
707
- // (undocumented)
708
- data: Data;
677
+ // (undocumented)
678
+ data: Data;
709
679
  }
710
680
 
711
681
  // @public (undocumented)
712
682
  interface Props {
713
- // (undocumented)
714
- mention: MentionDescription;
715
- // (undocumented)
716
- onMouseEnter?: OnMentionEvent;
717
- // (undocumented)
718
- onMouseMove?: OnMentionEvent;
719
- // (undocumented)
720
- onSelection?: OnMentionEvent;
721
- // (undocumented)
722
- selected?: boolean;
683
+ // (undocumented)
684
+ mention: MentionDescription;
685
+ // (undocumented)
686
+ onMouseEnter?: OnMentionEvent;
687
+ // (undocumented)
688
+ onMouseMove?: OnMentionEvent;
689
+ // (undocumented)
690
+ onSelection?: OnMentionEvent;
691
+ // (undocumented)
692
+ selected?: boolean;
723
693
  }
724
694
 
725
695
  // @public (undocumented)
726
696
  interface Props_2 {
727
- // (undocumented)
728
- initialHighlightElement?: React_2.ReactElement | null;
729
- // (undocumented)
730
- mentions: MentionDescription[];
731
- // (undocumented)
732
- onSelection?: OnMentionEvent;
733
- // (undocumented)
734
- resourceError?: Error;
697
+ // (undocumented)
698
+ initialHighlightElement?: React_2.ReactElement | null;
699
+ // (undocumented)
700
+ mentions: MentionDescription[];
701
+ // (undocumented)
702
+ onSelection?: OnMentionEvent;
703
+ // (undocumented)
704
+ resourceError?: Error;
735
705
  }
736
706
 
737
707
  // @public (undocumented)
738
708
  interface Props_3 {
739
- // (undocumented)
740
- onSelection?: OnMentionEvent;
741
- // (undocumented)
742
- presenceProvider?: PresenceProvider;
743
- // (undocumented)
744
- query?: string;
745
- // (undocumented)
746
- resourceError?: Error;
747
- // (undocumented)
748
- resourceProvider: MentionProvider;
709
+ // (undocumented)
710
+ onSelection?: OnMentionEvent;
711
+ // (undocumented)
712
+ presenceProvider?: PresenceProvider;
713
+ // (undocumented)
714
+ query?: string;
715
+ // (undocumented)
716
+ resourceError?: Error;
717
+ // (undocumented)
718
+ resourceProvider: MentionProvider;
749
719
  }
750
720
 
751
721
  // @public (undocumented)
752
722
  interface Props_4 {
753
- // (undocumented)
754
- offsetX?: number;
755
- // (undocumented)
756
- offsetY?: number;
757
- // (undocumented)
758
- onClose?: OnClose;
759
- // (undocumented)
760
- onOpen?: OnOpen;
761
- // (undocumented)
762
- onSelection?: OnMentionEvent;
763
- // (undocumented)
764
- position?: Position;
765
- // (undocumented)
766
- presenceProvider?: PresenceProvider;
767
- // (undocumented)
768
- query?: string;
769
- // (undocumented)
770
- resourceProvider: MentionProvider;
771
- // (undocumented)
772
- target?: string;
773
- // (undocumented)
774
- zIndex?: number | string;
723
+ // (undocumented)
724
+ offsetX?: number;
725
+ // (undocumented)
726
+ offsetY?: number;
727
+ // (undocumented)
728
+ onClose?: OnClose;
729
+ // (undocumented)
730
+ onOpen?: OnOpen;
731
+ // (undocumented)
732
+ onSelection?: OnMentionEvent;
733
+ // (undocumented)
734
+ position?: Position;
735
+ // (undocumented)
736
+ presenceProvider?: PresenceProvider;
737
+ // (undocumented)
738
+ query?: string;
739
+ // (undocumented)
740
+ resourceProvider: MentionProvider;
741
+ // (undocumented)
742
+ target?: string;
743
+ // (undocumented)
744
+ zIndex?: number | string;
775
745
  }
776
746
 
777
747
  // @public (undocumented)
@@ -779,53 +749,51 @@ type Props_5 = OwnProps & WithAnalyticsEventsProps_2;
779
749
 
780
750
  // @public (undocumented)
781
751
  interface Props_6 {
782
- // (undocumented)
783
- accessLevel?: string;
784
- // (undocumented)
785
- id: string;
786
- // (undocumented)
787
- mentionProvider?: Promise<MentionProvider>;
788
- // (undocumented)
789
- onClick?: MentionEventHandler;
790
- // (undocumented)
791
- onMouseEnter?: MentionEventHandler;
792
- // (undocumented)
793
- onMouseLeave?: MentionEventHandler;
794
- // (undocumented)
795
- text: string;
752
+ // (undocumented)
753
+ accessLevel?: string;
754
+ // (undocumented)
755
+ id: string;
756
+ // (undocumented)
757
+ mentionProvider?: Promise<MentionProvider>;
758
+ // (undocumented)
759
+ onClick?: MentionEventHandler;
760
+ // (undocumented)
761
+ onMouseEnter?: MentionEventHandler;
762
+ // (undocumented)
763
+ onMouseLeave?: MentionEventHandler;
764
+ // (undocumented)
765
+ text: string;
796
766
  }
797
767
 
798
768
  // @public
799
769
  export interface ResolvingMentionProvider extends MentionProvider {
800
- // (undocumented)
801
- cacheMentionName(id: string, mentionName: string): void;
802
- // (undocumented)
803
- resolveMentionName(
804
- id: string,
805
- ): MentionNameDetails | Promise<MentionNameDetails>;
806
- // (undocumented)
807
- supportsMentionNameResolving(): boolean;
770
+ // (undocumented)
771
+ cacheMentionName(id: string, mentionName: string): void;
772
+ // (undocumented)
773
+ resolveMentionName(id: string): MentionNameDetails | Promise<MentionNameDetails>;
774
+ // (undocumented)
775
+ supportsMentionNameResolving(): boolean;
808
776
  }
809
777
 
810
778
  // @public (undocumented)
811
779
  export class ResourcedMention extends React_2.PureComponent<Props_6, State_4> {
812
- constructor(props: Props_6);
813
- // (undocumented)
814
- componentDidMount(): void;
815
- // (undocumented)
816
- componentWillUnmount(): void;
817
- // (undocumented)
818
- _isMounted: boolean;
819
- // (undocumented)
820
- render(): JSX.Element;
821
- // (undocumented)
822
- UNSAFE_componentWillReceiveProps(nextProps: Props_6): void;
780
+ constructor(props: Props_6);
781
+ // (undocumented)
782
+ componentDidMount(): void;
783
+ // (undocumented)
784
+ componentWillUnmount(): void;
785
+ // (undocumented)
786
+ _isMounted: boolean;
787
+ // (undocumented)
788
+ render(): JSX.Element;
789
+ // (undocumented)
790
+ UNSAFE_componentWillReceiveProps(nextProps: Props_6): void;
823
791
  }
824
792
 
825
793
  // @public (undocumented)
826
794
  export const ResourcedMentionList: React_2.ForwardRefExoticComponent<
827
- Omit<Props_3 & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> &
828
- React_2.RefAttributes<any>
795
+ Omit<Props_3 & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> &
796
+ React_2.RefAttributes<any>
829
797
  >;
830
798
 
831
799
  // @public (undocumented)
@@ -833,129 +801,119 @@ export type ResourcedMentionList = ResourcedMentionListWithoutAnalytics;
833
801
 
834
802
  // @public (undocumented)
835
803
  class ResourcedMentionListWithoutAnalytics extends React_2.PureComponent<
836
- Props_3 & WithAnalyticsEventsProps,
837
- State_2
804
+ Props_3 & WithAnalyticsEventsProps,
805
+ State_2
838
806
  > {
839
- constructor(props: Props_3 & WithAnalyticsEventsProps);
840
- // (undocumented)
841
- chooseCurrentSelection: () => void;
842
- // (undocumented)
843
- componentDidMount(): void;
844
- // (undocumented)
845
- componentWillUnmount(): void;
846
- // (undocumented)
847
- mentionsCount: () => number;
848
- // (undocumented)
849
- render(): JSX.Element;
850
- // (undocumented)
851
- selectId: (id: string, callback?: () => any) => void;
852
- // (undocumented)
853
- selectIndex: (index: number, callback?: () => any) => void;
854
- // (undocumented)
855
- selectNext: () => void;
856
- // (undocumented)
857
- selectPrevious: () => void;
858
- // (undocumented)
859
- UNSAFE_componentWillReceiveProps(nextProps: Props_3): void;
807
+ constructor(props: Props_3 & WithAnalyticsEventsProps);
808
+ // (undocumented)
809
+ chooseCurrentSelection: () => void;
810
+ // (undocumented)
811
+ componentDidMount(): void;
812
+ // (undocumented)
813
+ componentWillUnmount(): void;
814
+ // (undocumented)
815
+ mentionsCount: () => number;
816
+ // (undocumented)
817
+ render(): JSX.Element;
818
+ // (undocumented)
819
+ selectId: (id: string, callback?: () => any) => void;
820
+ // (undocumented)
821
+ selectIndex: (index: number, callback?: () => any) => void;
822
+ // (undocumented)
823
+ selectNext: () => void;
824
+ // (undocumented)
825
+ selectPrevious: () => void;
826
+ // (undocumented)
827
+ UNSAFE_componentWillReceiveProps(nextProps: Props_3): void;
860
828
  }
861
829
 
862
830
  // @public (undocumented)
863
831
  interface ResourceProvider<Result> {
864
- subscribe(
865
- key: string,
866
- callback?: ResultCallback<Result>,
867
- errCallback?: ErrorCallback_2,
868
- infoCallback?: InfoCallback,
869
- allResultsCallback?: ResultCallback<Result>,
870
- analyticsCallback?: AnalyticsCallback,
871
- ): void;
872
- unsubscribe(key: string): void;
832
+ subscribe(
833
+ key: string,
834
+ callback?: ResultCallback<Result>,
835
+ errCallback?: ErrorCallback_2,
836
+ infoCallback?: InfoCallback,
837
+ allResultsCallback?: ResultCallback<Result>,
838
+ analyticsCallback?: AnalyticsCallback,
839
+ ): void;
840
+ unsubscribe(key: string): void;
873
841
  }
874
842
 
875
843
  // @public (undocumented)
876
844
  interface ResultCallback<T> {
877
- // (undocumented)
878
- (result: T, query?: string, stats?: MentionStats): void;
845
+ // (undocumented)
846
+ (result: T, query?: string, stats?: MentionStats): void;
879
847
  }
880
848
 
881
849
  // @public (undocumented)
882
850
  interface State {
883
- // (undocumented)
884
- selectedIndex: number;
885
- // (undocumented)
886
- selectedKey?: string;
851
+ // (undocumented)
852
+ selectedIndex: number;
853
+ // (undocumented)
854
+ selectedKey?: string;
887
855
  }
888
856
 
889
857
  // @public (undocumented)
890
858
  interface State_2 {
891
- // (undocumented)
892
- mentions: MentionDescription[];
893
- // (undocumented)
894
- resourceError?: Error;
859
+ // (undocumented)
860
+ mentions: MentionDescription[];
861
+ // (undocumented)
862
+ resourceError?: Error;
895
863
  }
896
864
 
897
865
  // @public (undocumented)
898
866
  interface State_3 {
899
- // (undocumented)
900
- info?: string;
901
- // (undocumented)
902
- visible: boolean;
867
+ // (undocumented)
868
+ info?: string;
869
+ // (undocumented)
870
+ visible: boolean;
903
871
  }
904
872
 
905
873
  // @public (undocumented)
906
874
  interface State_4 {
907
- // (undocumented)
908
- isHighlighted: boolean;
909
- // (undocumented)
910
- resolvedMentionName?: string;
875
+ // (undocumented)
876
+ isHighlighted: boolean;
877
+ // (undocumented)
878
+ resolvedMentionName?: string;
911
879
  }
912
880
 
913
881
  // @public (undocumented)
914
882
  export interface TeamMember {
915
- // (undocumented)
916
- id: string;
917
- // (undocumented)
918
- name: string;
883
+ // (undocumented)
884
+ id: string;
885
+ // (undocumented)
886
+ name: string;
919
887
  }
920
888
 
921
889
  // @public
922
- export class TeamMentionResource
923
- extends MentionResource
924
- implements MentionProvider
925
- {
926
- constructor(
927
- userMentionConfig: MentionResourceConfig,
928
- teamMentionConfig: TeamMentionResourceConfig,
929
- );
930
- // (undocumented)
931
- filter(
932
- query?: string,
933
- contextIdentifier?: MentionContextIdentifier,
934
- ): Promise<void>;
935
- // (undocumented)
936
- notify(
937
- searchTime: number,
938
- mentionResult: MentionsResult,
939
- query?: string,
940
- ): void;
890
+ export class TeamMentionResource extends MentionResource implements MentionProvider {
891
+ constructor(
892
+ userMentionConfig: MentionResourceConfig,
893
+ teamMentionConfig: TeamMentionResourceConfig,
894
+ );
895
+ // (undocumented)
896
+ filter(query?: string, contextIdentifier?: MentionContextIdentifier): Promise<void>;
897
+ // (undocumented)
898
+ notify(searchTime: number, mentionResult: MentionsResult, query?: string): void;
941
899
  }
942
900
 
943
901
  // @public (undocumented)
944
902
  export interface TeamMentionResourceConfig extends MentionResourceConfig {
945
- // (undocumented)
946
- teamLinkResolver?: (teamId: string) => string;
903
+ // (undocumented)
904
+ teamLinkResolver?: (teamId: string) => string;
947
905
  }
948
906
 
949
907
  // @public (undocumented)
950
908
  export enum UserAccessLevel {
951
- // (undocumented)
952
- APPLICATION = 2,
953
- // (undocumented)
954
- CONTAINER = 3,
955
- // (undocumented)
956
- NONE = 0,
957
- // (undocumented)
958
- SITE = 1,
909
+ // (undocumented)
910
+ APPLICATION = 2,
911
+ // (undocumented)
912
+ CONTAINER = 3,
913
+ // (undocumented)
914
+ NONE = 0,
915
+ // (undocumented)
916
+ SITE = 1,
959
917
  }
960
918
 
961
919
  // @public (undocumented)
@@ -963,16 +921,16 @@ export type UserRole = 'admin' | 'basic' | 'trusted';
963
921
 
964
922
  // @public (undocumented)
965
923
  export enum UserType {
966
- // (undocumented)
967
- APP = 2,
968
- // (undocumented)
969
- DEFAULT = 0,
970
- // (undocumented)
971
- SPECIAL = 1,
972
- // (undocumented)
973
- SYSTEM = 4,
974
- // (undocumented)
975
- TEAM = 3,
924
+ // (undocumented)
925
+ APP = 2,
926
+ // (undocumented)
927
+ DEFAULT = 0,
928
+ // (undocumented)
929
+ SPECIAL = 1,
930
+ // (undocumented)
931
+ SYSTEM = 4,
932
+ // (undocumented)
933
+ TEAM = 3,
976
934
  }
977
935
 
978
936
  // (No @packageDocumentation comment for this package)
@@ -986,9 +944,9 @@ export enum UserType {
986
944
 
987
945
  ```json
988
946
  {
989
- "react": "^16.8.0",
990
- "react-dom": "^16.8.0",
991
- "react-intl-next": "npm:react-intl@^5.18.1"
947
+ "react": "^16.8.0",
948
+ "react-dom": "^16.8.0",
949
+ "react-intl-next": "npm:react-intl@^5.18.1"
992
950
  }
993
951
  ```
994
952