@atlaskit/mention 21.0.8 → 21.0.10
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 +12 -0
- package/dist/cjs/components/Mention/PrimitiveMention.js +5 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Mention/PrimitiveMention.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Mention/PrimitiveMention.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/api/ContextMentionResource.d.ts +2 -2
- package/dist/types/components/MentionDescriptionByline/styles.d.ts +4 -1
- package/dist/types/components/MentionItem/styles.d.ts +32 -8
- package/dist/types/components/MentionList/styles.d.ts +4 -1
- package/dist/types/components/MentionListError/styles.d.ts +16 -4
- package/dist/types/components/MentionPicker/styles.d.ts +8 -2
- package/dist/types/components/Scrollable/styles.d.ts +4 -1
- package/dist/types/components/TeamMentionHighlight/styles.d.ts +32 -10
- package/package.json +13 -20
- package/report.api.md +602 -411
- package/dist/types-ts4.0/_constants.d.ts +0 -1
- package/dist/types-ts4.0/api/ContextMentionResource.d.ts +0 -23
- package/dist/types-ts4.0/api/MentionNameClient.d.ts +0 -11
- package/dist/types-ts4.0/api/MentionNameResolver.d.ts +0 -23
- package/dist/types-ts4.0/api/MentionResource.d.ts +0 -99
- package/dist/types-ts4.0/api/PresenceResource.d.ts +0 -119
- package/dist/types-ts4.0/api/TeamMentionResource.d.ts +0 -35
- package/dist/types-ts4.0/api/analytics.d.ts +0 -17
- package/dist/types-ts4.0/components/LockCircleIcon/index.d.ts +0 -3
- package/dist/types-ts4.0/components/Mention/PrimitiveMention.d.ts +0 -7
- package/dist/types-ts4.0/components/Mention/ResourcedMention.d.ts +0 -27
- package/dist/types-ts4.0/components/Mention/index.d.ts +0 -31
- package/dist/types-ts4.0/components/Mention/ufoExperiences.d.ts +0 -9
- package/dist/types-ts4.0/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +0 -7
- package/dist/types-ts4.0/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +0 -5
- package/dist/types-ts4.0/components/MentionDescriptionByline/index.d.ts +0 -5
- package/dist/types-ts4.0/components/MentionDescriptionByline/styles.d.ts +0 -2
- package/dist/types-ts4.0/components/MentionDescriptionByline/types.d.ts +0 -4
- package/dist/types-ts4.0/components/MentionItem/MentionHighlightHelpers.d.ts +0 -3
- package/dist/types-ts4.0/components/MentionItem/index.d.ts +0 -16
- package/dist/types-ts4.0/components/MentionItem/styles.d.ts +0 -22
- package/dist/types-ts4.0/components/MentionList/index.d.ts +0 -41
- package/dist/types-ts4.0/components/MentionList/styles.d.ts +0 -5
- package/dist/types-ts4.0/components/MentionListError/GenericErrorIllustration.d.ts +0 -7
- package/dist/types-ts4.0/components/MentionListError/index.d.ts +0 -13
- package/dist/types-ts4.0/components/MentionListError/styles.d.ts +0 -5
- package/dist/types-ts4.0/components/MentionPicker/index.d.ts +0 -79
- package/dist/types-ts4.0/components/MentionPicker/styles.d.ts +0 -6
- package/dist/types-ts4.0/components/MessagesIntlProvider/index.d.ts +0 -3
- package/dist/types-ts4.0/components/NoAccessTooltip/index.d.ts +0 -6
- package/dist/types-ts4.0/components/NoAccessTooltip/main.d.ts +0 -7
- package/dist/types-ts4.0/components/Popup/index.d.ts +0 -26
- package/dist/types-ts4.0/components/ResourcedMentionList/index.d.ts +0 -50
- package/dist/types-ts4.0/components/Scrollable/index.d.ts +0 -11
- package/dist/types-ts4.0/components/Scrollable/styles.d.ts +0 -2
- package/dist/types-ts4.0/components/TeamMentionHighlight/TeamMentionHighlightController.d.ts +0 -17
- package/dist/types-ts4.0/components/TeamMentionHighlight/index.d.ts +0 -35
- package/dist/types-ts4.0/components/TeamMentionHighlight/lazy.d.ts +0 -4
- package/dist/types-ts4.0/components/TeamMentionHighlight/styles.d.ts +0 -11
- package/dist/types-ts4.0/components/i18n.d.ts +0 -77
- package/dist/types-ts4.0/config/index.d.ts +0 -5
- package/dist/types-ts4.0/element.d.ts +0 -3
- package/dist/types-ts4.0/i18n/cs.d.ts +0 -24
- package/dist/types-ts4.0/i18n/da.d.ts +0 -24
- package/dist/types-ts4.0/i18n/de.d.ts +0 -24
- package/dist/types-ts4.0/i18n/en.d.ts +0 -24
- package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -24
- package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -24
- package/dist/types-ts4.0/i18n/es.d.ts +0 -24
- package/dist/types-ts4.0/i18n/et.d.ts +0 -20
- package/dist/types-ts4.0/i18n/fi.d.ts +0 -24
- package/dist/types-ts4.0/i18n/fr.d.ts +0 -24
- package/dist/types-ts4.0/i18n/hu.d.ts +0 -24
- package/dist/types-ts4.0/i18n/index.d.ts +0 -35
- package/dist/types-ts4.0/i18n/is.d.ts +0 -24
- package/dist/types-ts4.0/i18n/it.d.ts +0 -24
- package/dist/types-ts4.0/i18n/ja.d.ts +0 -24
- package/dist/types-ts4.0/i18n/ko.d.ts +0 -24
- package/dist/types-ts4.0/i18n/languages.d.ts +0 -33
- package/dist/types-ts4.0/i18n/nb.d.ts +0 -24
- package/dist/types-ts4.0/i18n/nl.d.ts +0 -24
- package/dist/types-ts4.0/i18n/pl.d.ts +0 -24
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -24
- package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -20
- package/dist/types-ts4.0/i18n/ro.d.ts +0 -24
- package/dist/types-ts4.0/i18n/ru.d.ts +0 -24
- package/dist/types-ts4.0/i18n/sk.d.ts +0 -20
- package/dist/types-ts4.0/i18n/sv.d.ts +0 -24
- package/dist/types-ts4.0/i18n/th.d.ts +0 -24
- package/dist/types-ts4.0/i18n/tr.d.ts +0 -24
- package/dist/types-ts4.0/i18n/uk.d.ts +0 -24
- package/dist/types-ts4.0/i18n/vi.d.ts +0 -24
- package/dist/types-ts4.0/i18n/zh.d.ts +0 -24
- package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -24
- package/dist/types-ts4.0/i18n.d.ts +0 -1
- package/dist/types-ts4.0/index.d.ts +0 -19
- package/dist/types-ts4.0/item.d.ts +0 -2
- package/dist/types-ts4.0/resource.d.ts +0 -10
- package/dist/types-ts4.0/shared-styles.d.ts +0 -5
- package/dist/types-ts4.0/spotlight.d.ts +0 -3
- package/dist/types-ts4.0/team-resource.d.ts +0 -8
- package/dist/types-ts4.0/typeahead.d.ts +0 -3
- package/dist/types-ts4.0/types.d.ts +0 -168
- package/dist/types-ts4.0/util/analytics.d.ts +0 -32
- package/dist/types-ts4.0/util/i18n.d.ts +0 -33
- package/dist/types-ts4.0/util/id.d.ts +0 -2
- package/dist/types-ts4.0/util/index.d.ts +0 -1
- package/dist/types-ts4.0/util/logger.d.ts +0 -4
- package/dist/types-ts4.0/util/mouse.d.ts +0 -8
package/report.api.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
4
|
|
|
5
|
+
<!--
|
|
6
|
+
Generated API Report version: 2.0
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
10
|
+
|
|
5
11
|
```ts
|
|
6
12
|
import { IntlShape } from 'react-intl-next';
|
|
7
13
|
import { default as React_2 } from 'react';
|
|
@@ -12,20 +18,18 @@ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
|
12
18
|
import { WithAnalyticsEventsProps as WithAnalyticsEventsProps_2 } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
13
19
|
import { WithIntlProps } from 'react-intl-next';
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
// @public (undocumented)
|
|
22
|
+
export class AbstractMentionResource
|
|
16
23
|
extends AbstractResource<MentionDescription[]>
|
|
17
|
-
implements MentionProvider
|
|
18
|
-
|
|
24
|
+
implements MentionProvider
|
|
25
|
+
{
|
|
26
|
+
// (undocumented)
|
|
19
27
|
filter(query?: string): void;
|
|
20
|
-
|
|
28
|
+
// (undocumented)
|
|
21
29
|
isFiltering(_query: string): boolean;
|
|
22
|
-
|
|
23
|
-
mentionsResult: MentionsResult,
|
|
24
|
-
stats?: MentionStats,
|
|
25
|
-
): void;
|
|
30
|
+
// (undocumented)
|
|
26
31
|
protected _notifyAllResultsListeners(mentionsResult: MentionsResult): void;
|
|
27
|
-
|
|
28
|
-
protected _notifyInfoListeners(info: string): void;
|
|
32
|
+
// (undocumented)
|
|
29
33
|
protected _notifyAnalyticsListeners(
|
|
30
34
|
event: string,
|
|
31
35
|
actionSubject: string,
|
|
@@ -34,22 +38,46 @@ export declare class AbstractMentionResource
|
|
|
34
38
|
[key: string]: any;
|
|
35
39
|
},
|
|
36
40
|
): void;
|
|
41
|
+
// (undocumented)
|
|
42
|
+
protected _notifyErrorListeners(error: Error, query?: string): void;
|
|
43
|
+
// (undocumented)
|
|
44
|
+
protected _notifyInfoListeners(info: string): void;
|
|
45
|
+
// (undocumented)
|
|
46
|
+
protected _notifyListeners(
|
|
47
|
+
mentionsResult: MentionsResult,
|
|
48
|
+
stats?: MentionStats,
|
|
49
|
+
): void;
|
|
50
|
+
// (undocumented)
|
|
51
|
+
recordMentionSelection(_mention: MentionDescription): void;
|
|
52
|
+
// (undocumented)
|
|
53
|
+
shouldHighlightMention(_mention: MentionDescription): boolean;
|
|
37
54
|
}
|
|
38
55
|
|
|
39
|
-
|
|
56
|
+
// @public (undocumented)
|
|
57
|
+
export class AbstractPresenceResource
|
|
40
58
|
extends AbstractResource<PresenceMap>
|
|
41
|
-
implements PresenceProvider
|
|
42
|
-
|
|
59
|
+
implements PresenceProvider
|
|
60
|
+
{
|
|
61
|
+
// (undocumented)
|
|
43
62
|
protected notifyListeners(presences: PresenceMap): void;
|
|
63
|
+
// (undocumented)
|
|
64
|
+
refreshPresence(userIds: string[]): void;
|
|
44
65
|
}
|
|
45
66
|
|
|
46
|
-
|
|
67
|
+
// @public (undocumented)
|
|
68
|
+
class AbstractResource<Result> implements ResourceProvider<Result> {
|
|
69
|
+
constructor();
|
|
70
|
+
// (undocumented)
|
|
71
|
+
protected allResultsListeners: Map<string, ResultCallback<Result>>;
|
|
72
|
+
// (undocumented)
|
|
73
|
+
protected analyticsListeners: Map<string, AnalyticsCallback>;
|
|
74
|
+
// (undocumented)
|
|
47
75
|
protected changeListeners: Map<string, ResultCallback<Result>>;
|
|
76
|
+
// (undocumented)
|
|
48
77
|
protected errListeners: Map<string, ErrorCallback_2>;
|
|
78
|
+
// (undocumented)
|
|
49
79
|
protected infoListeners: Map<string, InfoCallback>;
|
|
50
|
-
|
|
51
|
-
protected analyticsListeners: Map<string, AnalyticsCallback>;
|
|
52
|
-
constructor();
|
|
80
|
+
// (undocumented)
|
|
53
81
|
subscribe(
|
|
54
82
|
key: string,
|
|
55
83
|
callback?: ResultCallback<Result>,
|
|
@@ -58,10 +86,13 @@ declare class AbstractResource<Result> implements ResourceProvider<Result> {
|
|
|
58
86
|
allResultsCallback?: ResultCallback<Result>,
|
|
59
87
|
analyticsListeners?: AnalyticsCallback,
|
|
60
88
|
): void;
|
|
89
|
+
// (undocumented)
|
|
61
90
|
unsubscribe(key: string): void;
|
|
62
91
|
}
|
|
63
92
|
|
|
64
|
-
|
|
93
|
+
// @public (undocumented)
|
|
94
|
+
interface AnalyticsCallback {
|
|
95
|
+
// (undocumented)
|
|
65
96
|
(
|
|
66
97
|
event: string,
|
|
67
98
|
actionSubject: string,
|
|
@@ -72,131 +103,149 @@ declare interface AnalyticsCallback {
|
|
|
72
103
|
): void;
|
|
73
104
|
}
|
|
74
105
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*/
|
|
78
|
-
export declare class ContextMentionResource implements MentionProvider {
|
|
79
|
-
private mentionProvider;
|
|
80
|
-
private contextIdentifier;
|
|
106
|
+
// @public
|
|
107
|
+
export class ContextMentionResource implements MentionProvider {
|
|
81
108
|
constructor(
|
|
82
109
|
mentionProvider: MentionProvider,
|
|
83
110
|
contextIdentifier: MentionContextIdentifier,
|
|
84
111
|
);
|
|
85
|
-
|
|
86
|
-
|
|
112
|
+
// (undocumented)
|
|
113
|
+
callDefault: <
|
|
87
114
|
K extends
|
|
88
115
|
| 'filter'
|
|
89
116
|
| 'recordMentionSelection'
|
|
90
117
|
| 'shouldHighlightMention'
|
|
91
118
|
| 'isFiltering'
|
|
92
119
|
| 'subscribe'
|
|
93
|
-
| 'unsubscribe'
|
|
120
|
+
| 'unsubscribe',
|
|
94
121
|
>(
|
|
95
122
|
f: K,
|
|
96
|
-
declaredArgs: number,
|
|
97
123
|
) => MentionProvider[K];
|
|
98
|
-
|
|
124
|
+
// (undocumented)
|
|
125
|
+
callWithContextIds: <
|
|
99
126
|
K extends
|
|
100
127
|
| 'filter'
|
|
101
128
|
| 'recordMentionSelection'
|
|
102
129
|
| 'shouldHighlightMention'
|
|
103
130
|
| 'isFiltering'
|
|
104
131
|
| 'subscribe'
|
|
105
|
-
| 'unsubscribe'
|
|
132
|
+
| 'unsubscribe',
|
|
106
133
|
>(
|
|
107
134
|
f: K,
|
|
135
|
+
declaredArgs: number,
|
|
108
136
|
) => MentionProvider[K];
|
|
109
|
-
|
|
110
|
-
key: string,
|
|
111
|
-
callback?: ResultCallback<MentionDescription[]> | undefined,
|
|
112
|
-
errCallback?: ErrorCallback_2 | undefined,
|
|
113
|
-
infoCallback?: InfoCallback | undefined,
|
|
114
|
-
allResultsCallback?: ResultCallback<MentionDescription[]> | undefined,
|
|
115
|
-
analyticsCallback?: AnalyticsCallback | undefined,
|
|
116
|
-
) => void;
|
|
117
|
-
unsubscribe: (key: string) => void;
|
|
137
|
+
// (undocumented)
|
|
118
138
|
filter: (
|
|
119
139
|
query?: string | undefined,
|
|
120
140
|
contextIdentifier?: MentionContextIdentifier | undefined,
|
|
121
141
|
) => void;
|
|
142
|
+
// (undocumented)
|
|
143
|
+
getContextIdentifier(): MentionContextIdentifier | undefined;
|
|
144
|
+
// (undocumented)
|
|
145
|
+
isFiltering: (query: string) => boolean;
|
|
146
|
+
// (undocumented)
|
|
122
147
|
recordMentionSelection: (
|
|
123
148
|
mention: MentionDescription,
|
|
124
149
|
contextIdentifier?: MentionContextIdentifier | undefined,
|
|
125
150
|
) => void;
|
|
151
|
+
// (undocumented)
|
|
126
152
|
shouldHighlightMention: (mention: MentionDescription) => boolean;
|
|
127
|
-
|
|
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;
|
|
128
164
|
}
|
|
129
165
|
|
|
130
|
-
|
|
166
|
+
// @public (undocumented)
|
|
167
|
+
interface Data {
|
|
168
|
+
// (undocumented)
|
|
131
169
|
PresenceBulk: PresenceBulk[];
|
|
132
170
|
}
|
|
133
171
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
private client;
|
|
137
|
-
private nameCache;
|
|
138
|
-
private nameQueue;
|
|
139
|
-
private nameStartTime;
|
|
140
|
-
private processingQueue;
|
|
141
|
-
private debounce;
|
|
142
|
-
private fireHydrationEvent;
|
|
172
|
+
// @public (undocumented)
|
|
173
|
+
export class DefaultMentionNameResolver implements MentionNameResolver {
|
|
143
174
|
constructor(
|
|
144
175
|
client: MentionNameClient,
|
|
145
176
|
analyticsProps?: WithAnalyticsEventsProps,
|
|
146
177
|
);
|
|
147
|
-
|
|
178
|
+
// (undocumented)
|
|
148
179
|
cacheName(id: string, name: string): void;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
private processQueue;
|
|
154
|
-
private fireAnalytics;
|
|
180
|
+
// (undocumented)
|
|
181
|
+
lookupName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
|
|
182
|
+
// (undocumented)
|
|
183
|
+
static waitForBatch: number;
|
|
155
184
|
}
|
|
156
185
|
|
|
157
|
-
|
|
186
|
+
// @public (undocumented)
|
|
187
|
+
export const ELEMENTS_CHANNEL = 'fabric-elements';
|
|
158
188
|
|
|
159
|
-
|
|
189
|
+
// @public (undocumented)
|
|
190
|
+
interface ErrorCallback_2 {
|
|
191
|
+
// (undocumented)
|
|
160
192
|
(error: Error, query?: string): void;
|
|
161
193
|
}
|
|
162
194
|
|
|
163
|
-
|
|
164
|
-
|
|
195
|
+
// @public (undocumented)
|
|
196
|
+
interface Highlight {
|
|
197
|
+
// (undocumented)
|
|
165
198
|
mentionName: HighlightDetail[];
|
|
199
|
+
// (undocumented)
|
|
200
|
+
name: HighlightDetail[];
|
|
201
|
+
// (undocumented)
|
|
166
202
|
nickname: HighlightDetail[];
|
|
167
203
|
}
|
|
168
204
|
|
|
169
|
-
|
|
170
|
-
|
|
205
|
+
// @public (undocumented)
|
|
206
|
+
interface HighlightDetail {
|
|
207
|
+
// (undocumented)
|
|
171
208
|
end: number;
|
|
209
|
+
// (undocumented)
|
|
210
|
+
start: number;
|
|
172
211
|
}
|
|
173
212
|
|
|
174
|
-
|
|
213
|
+
// @public (undocumented)
|
|
214
|
+
interface InfoCallback {
|
|
215
|
+
// (undocumented)
|
|
175
216
|
(info: string): void;
|
|
176
217
|
}
|
|
177
218
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
| 'control'
|
|
181
|
-
| 'not-enrolled';
|
|
219
|
+
// @public (undocumented)
|
|
220
|
+
export type InviteExperimentCohort = 'variation' | 'control' | 'not-enrolled';
|
|
182
221
|
|
|
183
|
-
|
|
222
|
+
// @public (undocumented)
|
|
223
|
+
export type InviteFlow = 'mention' | 'assign';
|
|
184
224
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
225
|
+
// @public (undocumented)
|
|
226
|
+
interface InviteFromMentionProvider {
|
|
227
|
+
// (undocumented)
|
|
188
228
|
inviteExperimentCohort?: InviteExperimentCohort;
|
|
229
|
+
// (undocumented)
|
|
189
230
|
onInviteItemClick?(flow: InviteFlow): void;
|
|
231
|
+
// (undocumented)
|
|
232
|
+
productName?: string;
|
|
233
|
+
// (undocumented)
|
|
234
|
+
shouldEnableInvite?: boolean;
|
|
235
|
+
// (undocumented)
|
|
190
236
|
userRole?: UserRole;
|
|
191
237
|
}
|
|
192
238
|
|
|
193
|
-
|
|
239
|
+
// @public (undocumented)
|
|
240
|
+
export const isResolvingMentionProvider: (
|
|
194
241
|
p: any,
|
|
195
242
|
) => p is ResolvingMentionProvider;
|
|
196
243
|
|
|
197
|
-
|
|
244
|
+
// @public (undocumented)
|
|
245
|
+
export function isSpecialMention(mention: MentionDescription): boolean;
|
|
198
246
|
|
|
199
|
-
|
|
247
|
+
// @public (undocumented)
|
|
248
|
+
type LozengeColor =
|
|
200
249
|
| 'default'
|
|
201
250
|
| 'success'
|
|
202
251
|
| 'removed'
|
|
@@ -204,174 +253,203 @@ declare type LozengeColor =
|
|
|
204
253
|
| 'new'
|
|
205
254
|
| 'moved';
|
|
206
255
|
|
|
207
|
-
|
|
208
|
-
|
|
256
|
+
// @public (undocumented)
|
|
257
|
+
interface LozengeProps {
|
|
258
|
+
// (undocumented)
|
|
209
259
|
appearance?: LozengeColor;
|
|
260
|
+
// (undocumented)
|
|
261
|
+
text: React.ReactNode;
|
|
210
262
|
}
|
|
211
263
|
|
|
212
|
-
|
|
264
|
+
// @public (undocumented)
|
|
265
|
+
export const Mention: React_2.ForwardRefExoticComponent<
|
|
213
266
|
Omit<Props_5, keyof WithAnalyticsEventsProps_2> & React_2.RefAttributes<any>
|
|
214
267
|
>;
|
|
215
268
|
|
|
216
|
-
|
|
269
|
+
// @public (undocumented)
|
|
270
|
+
export type Mention = MentionInternal;
|
|
217
271
|
|
|
218
|
-
|
|
272
|
+
// @public (undocumented)
|
|
273
|
+
export type MentionContextIdentifier = {
|
|
219
274
|
containerId?: string;
|
|
220
275
|
objectId?: string;
|
|
221
276
|
childObjectId?: string;
|
|
222
277
|
sessionId?: string;
|
|
223
278
|
};
|
|
224
279
|
|
|
225
|
-
|
|
226
|
-
|
|
280
|
+
// @public (undocumented)
|
|
281
|
+
interface MentionDescContext {
|
|
282
|
+
// (undocumented)
|
|
227
283
|
includesYou: boolean;
|
|
284
|
+
// (undocumented)
|
|
228
285
|
memberCount: number;
|
|
286
|
+
// (undocumented)
|
|
287
|
+
members: TeamMember[];
|
|
288
|
+
// (undocumented)
|
|
229
289
|
teamLink: string;
|
|
230
290
|
}
|
|
231
291
|
|
|
232
|
-
|
|
233
|
-
|
|
292
|
+
// @public (undocumented)
|
|
293
|
+
export interface MentionDescription {
|
|
294
|
+
// (undocumented)
|
|
295
|
+
accessLevel?: string;
|
|
296
|
+
// (undocumented)
|
|
234
297
|
avatarUrl?: string;
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
298
|
+
// (undocumented)
|
|
299
|
+
context?: MentionDescContext;
|
|
300
|
+
// (undocumented)
|
|
238
301
|
highlight?: Highlight;
|
|
302
|
+
// (undocumented)
|
|
303
|
+
id: string;
|
|
304
|
+
// (undocumented)
|
|
305
|
+
inContext?: boolean;
|
|
306
|
+
// (undocumented)
|
|
239
307
|
lozenge?: string | LozengeProps;
|
|
308
|
+
// (undocumented)
|
|
309
|
+
mentionName?: string;
|
|
310
|
+
// (undocumented)
|
|
311
|
+
name?: string;
|
|
312
|
+
// (undocumented)
|
|
313
|
+
nickname?: string;
|
|
314
|
+
// (undocumented)
|
|
240
315
|
presence?: Presence;
|
|
241
|
-
|
|
242
|
-
inContext?: boolean;
|
|
243
|
-
userType?: string;
|
|
244
|
-
context?: MentionDescContext;
|
|
316
|
+
// (undocumented)
|
|
245
317
|
source?: string;
|
|
318
|
+
// (undocumented)
|
|
319
|
+
userType?: string;
|
|
246
320
|
}
|
|
247
321
|
|
|
248
|
-
|
|
322
|
+
// @public (undocumented)
|
|
323
|
+
type MentionEventHandler = (
|
|
249
324
|
mentionId: string,
|
|
250
325
|
text: string,
|
|
251
326
|
event?: SyntheticEvent<HTMLSpanElement>,
|
|
252
327
|
) => void;
|
|
253
328
|
|
|
254
|
-
|
|
255
|
-
|
|
329
|
+
// @public (undocumented)
|
|
330
|
+
class MentionInternal extends React_2.PureComponent<Props_5, {}> {
|
|
256
331
|
constructor(props: Props_5);
|
|
332
|
+
// (undocumented)
|
|
257
333
|
componentDidMount(): void;
|
|
258
|
-
|
|
259
|
-
private handleOnMouseEnter;
|
|
260
|
-
private handleOnMouseLeave;
|
|
261
|
-
private getMentionType;
|
|
334
|
+
// (undocumented)
|
|
262
335
|
componentWillUnmount(): void;
|
|
263
|
-
|
|
336
|
+
// (undocumented)
|
|
264
337
|
render(): JSX.Element;
|
|
338
|
+
// (undocumented)
|
|
339
|
+
renderUnknownUserError(id: string): JSX.Element;
|
|
265
340
|
}
|
|
266
341
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
private onMentionMenuItemMouseEnter;
|
|
342
|
+
// @public (undocumented)
|
|
343
|
+
export class MentionItem extends React_2.PureComponent<Props, {}> {
|
|
344
|
+
// (undocumented)
|
|
271
345
|
render(): JSX.Element;
|
|
272
346
|
}
|
|
273
347
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
private scrollable?;
|
|
277
|
-
private items;
|
|
348
|
+
// @public (undocumented)
|
|
349
|
+
export class MentionList extends React_2.PureComponent<Props_2, State> {
|
|
278
350
|
constructor(props: Props_2);
|
|
279
|
-
|
|
280
|
-
componentDidUpdate(): void;
|
|
281
|
-
selectNext: () => void;
|
|
282
|
-
selectPrevious: () => void;
|
|
283
|
-
selectIndex: (index: number, callback?: (() => any) | undefined) => void;
|
|
284
|
-
selectId: (id: string, callback?: (() => any) | undefined) => void;
|
|
351
|
+
// (undocumented)
|
|
285
352
|
chooseCurrentSelection: () => void;
|
|
353
|
+
// (undocumented)
|
|
354
|
+
componentDidUpdate(): void;
|
|
355
|
+
// (undocumented)
|
|
286
356
|
mentionsCount: () => number;
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* The default selection state is to chose index 0 and not have any particular key selected
|
|
290
|
-
*/
|
|
291
|
-
private setDefaultSelectionState;
|
|
292
|
-
private selectIndexOnHover;
|
|
293
|
-
private itemSelected;
|
|
294
|
-
private renderItems;
|
|
295
|
-
private isSelectedMention;
|
|
296
|
-
private handleScrollableRef;
|
|
357
|
+
// (undocumented)
|
|
297
358
|
render(): JSX.Element;
|
|
359
|
+
// (undocumented)
|
|
360
|
+
selectId: (id: string, callback?: (() => any) | undefined) => void;
|
|
361
|
+
// (undocumented)
|
|
362
|
+
selectIndex: (index: number, callback?: (() => any) | undefined) => void;
|
|
363
|
+
// (undocumented)
|
|
364
|
+
selectNext: () => void;
|
|
365
|
+
// (undocumented)
|
|
366
|
+
selectPrevious: () => void;
|
|
367
|
+
// (undocumented)
|
|
368
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props_2): void;
|
|
298
369
|
}
|
|
299
370
|
|
|
300
|
-
|
|
371
|
+
// @public (undocumented)
|
|
372
|
+
export interface MentionNameClient {
|
|
373
|
+
// (undocumented)
|
|
301
374
|
getLookupLimit(): number;
|
|
375
|
+
// (undocumented)
|
|
302
376
|
lookupMentionNames(ids: string[]): Promise<MentionNameDetails[]>;
|
|
303
377
|
}
|
|
304
378
|
|
|
305
|
-
|
|
379
|
+
// @public (undocumented)
|
|
380
|
+
export interface MentionNameDetails {
|
|
381
|
+
// (undocumented)
|
|
306
382
|
id: string;
|
|
383
|
+
// (undocumented)
|
|
307
384
|
name?: string;
|
|
385
|
+
// (undocumented)
|
|
308
386
|
status: MentionNameStatus;
|
|
309
387
|
}
|
|
310
388
|
|
|
311
|
-
|
|
312
|
-
|
|
389
|
+
// @public (undocumented)
|
|
390
|
+
export interface MentionNameResolver {
|
|
391
|
+
// (undocumented)
|
|
313
392
|
cacheName(id: string, name: string): void;
|
|
393
|
+
// (undocumented)
|
|
394
|
+
lookupName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
|
|
314
395
|
}
|
|
315
396
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
397
|
+
// @public (undocumented)
|
|
398
|
+
export enum MentionNameStatus {
|
|
399
|
+
// (undocumented)
|
|
319
400
|
OK = 2,
|
|
401
|
+
// (undocumented)
|
|
402
|
+
SERVICE_ERROR = 1,
|
|
403
|
+
// (undocumented)
|
|
404
|
+
UNKNOWN = 0,
|
|
320
405
|
}
|
|
321
406
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
*/
|
|
325
|
-
declare class MentionPicker_2 extends React_2.PureComponent<
|
|
407
|
+
// @public
|
|
408
|
+
class MentionPicker_2 extends React_2.PureComponent<
|
|
326
409
|
Props_4 &
|
|
327
410
|
WithAnalyticsEventsProps_2 & {
|
|
328
411
|
intl: IntlShape;
|
|
329
412
|
},
|
|
330
413
|
State_3
|
|
331
414
|
> {
|
|
332
|
-
private subscriberKey;
|
|
333
|
-
private mentionListRef?;
|
|
334
|
-
static defaultProps: {
|
|
335
|
-
onSelection: () => void;
|
|
336
|
-
onOpen: () => void;
|
|
337
|
-
onClose: () => void;
|
|
338
|
-
};
|
|
339
415
|
constructor(
|
|
340
416
|
props: Props_4 &
|
|
341
417
|
WithAnalyticsEventsProps_2 & {
|
|
342
418
|
intl: IntlShape;
|
|
343
419
|
},
|
|
344
420
|
);
|
|
421
|
+
// (undocumented)
|
|
422
|
+
chooseCurrentSelection: () => void;
|
|
423
|
+
// (undocumented)
|
|
345
424
|
componentDidMount(): void;
|
|
346
|
-
|
|
347
|
-
nextProps: Props_4 & WithAnalyticsEventsProps_2,
|
|
348
|
-
): void;
|
|
425
|
+
// (undocumented)
|
|
349
426
|
componentWillUnmount(): void;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
427
|
+
// (undocumented)
|
|
428
|
+
static defaultProps: {
|
|
429
|
+
onSelection: () => void;
|
|
430
|
+
onOpen: () => void;
|
|
431
|
+
onClose: () => void;
|
|
432
|
+
};
|
|
433
|
+
// (undocumented)
|
|
355
434
|
mentionsCount: () => number;
|
|
356
|
-
|
|
357
|
-
private subscribeResourceProvider;
|
|
358
|
-
private unsubscribeResourceProvider;
|
|
359
|
-
/**
|
|
360
|
-
* Called after the 'visible' state is changed to decide whether the onOpen or onClose
|
|
361
|
-
* handlers should be called.
|
|
362
|
-
*
|
|
363
|
-
* It should be noted that the visible state of the component is not considered in
|
|
364
|
-
* this function. Instead the old state and new state should be passed as parameters.
|
|
365
|
-
*/
|
|
366
|
-
private onFilterVisibilityChange;
|
|
367
|
-
private filterChange;
|
|
368
|
-
private filterError;
|
|
369
|
-
private filterInfo;
|
|
370
|
-
private handleMentionListRef;
|
|
435
|
+
// (undocumented)
|
|
371
436
|
render(): JSX.Element;
|
|
437
|
+
// (undocumented)
|
|
438
|
+
selectId: (id: string, callback?: (() => any) | undefined) => void;
|
|
439
|
+
// (undocumented)
|
|
440
|
+
selectIndex: (index: number, callback?: (() => any) | undefined) => void;
|
|
441
|
+
// (undocumented)
|
|
442
|
+
selectNext: () => void;
|
|
443
|
+
// (undocumented)
|
|
444
|
+
selectPrevious: () => void;
|
|
445
|
+
// (undocumented)
|
|
446
|
+
UNSAFE_componentWillReceiveProps(
|
|
447
|
+
nextProps: Props_4 & WithAnalyticsEventsProps_2,
|
|
448
|
+
): void;
|
|
372
449
|
}
|
|
373
450
|
|
|
374
|
-
|
|
451
|
+
// @public (undocumented)
|
|
452
|
+
const MentionPickerWithAnalytics: React_2.ForwardRefExoticComponent<
|
|
375
453
|
Omit<
|
|
376
454
|
Pick<
|
|
377
455
|
WithIntlProps<
|
|
@@ -390,127 +468,150 @@ declare const MentionPickerWithAnalytics: React_2.ForwardRefExoticComponent<
|
|
|
390
468
|
React_2.RefAttributes<any>
|
|
391
469
|
>;
|
|
392
470
|
|
|
393
|
-
|
|
471
|
+
// @public (undocumented)
|
|
472
|
+
type MentionPickerWithAnalytics = MentionPicker_2;
|
|
394
473
|
export { MentionPickerWithAnalytics as MentionPicker };
|
|
395
474
|
export default MentionPickerWithAnalytics;
|
|
396
475
|
|
|
397
|
-
|
|
476
|
+
// @public (undocumented)
|
|
477
|
+
export interface MentionProvider
|
|
398
478
|
extends ResourceProvider<MentionDescription[]>,
|
|
399
479
|
InviteFromMentionProvider {
|
|
480
|
+
// (undocumented)
|
|
400
481
|
filter(query?: string, contextIdentifier?: MentionContextIdentifier): void;
|
|
482
|
+
// (undocumented)
|
|
483
|
+
isFiltering(query: string): boolean;
|
|
484
|
+
// (undocumented)
|
|
401
485
|
recordMentionSelection(
|
|
402
486
|
mention: MentionDescription,
|
|
403
487
|
contextIdentifier?: MentionContextIdentifier,
|
|
404
488
|
): void;
|
|
489
|
+
// (undocumented)
|
|
405
490
|
shouldHighlightMention(mention: MentionDescription): boolean;
|
|
406
|
-
isFiltering(query: string): boolean;
|
|
407
491
|
}
|
|
408
492
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
*/
|
|
412
|
-
export declare class MentionResource
|
|
493
|
+
// @public
|
|
494
|
+
export class MentionResource
|
|
413
495
|
extends AbstractMentionResource
|
|
414
|
-
implements ResolvingMentionProvider
|
|
415
|
-
|
|
416
|
-
private lastReturnedSearch;
|
|
417
|
-
private activeSearches;
|
|
418
|
-
productName?: string;
|
|
419
|
-
shouldEnableInvite: boolean;
|
|
420
|
-
inviteExperimentCohort?: InviteExperimentCohort;
|
|
421
|
-
userRole: UserRole;
|
|
422
|
-
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
496
|
+
implements ResolvingMentionProvider
|
|
497
|
+
{
|
|
423
498
|
constructor(config: MentionResourceConfig);
|
|
424
|
-
|
|
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
|
+
inviteExperimentCohort?: InviteExperimentCohort;
|
|
508
|
+
// (undocumented)
|
|
509
|
+
isFiltering(query: string): boolean;
|
|
510
|
+
// (undocumented)
|
|
425
511
|
notify(
|
|
426
512
|
searchTime: number,
|
|
427
513
|
mentionResult: MentionsResult,
|
|
428
514
|
query?: string,
|
|
429
515
|
): void;
|
|
516
|
+
// (undocumented)
|
|
430
517
|
notifyError(error: Error, query?: string): void;
|
|
431
|
-
|
|
432
|
-
|
|
518
|
+
// (undocumented)
|
|
519
|
+
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
520
|
+
// (undocumented)
|
|
521
|
+
productName?: string;
|
|
522
|
+
// (undocumented)
|
|
523
|
+
recordMentionSelection(
|
|
524
|
+
mention: MentionDescription,
|
|
433
525
|
contextIdentifier?: MentionContextIdentifier,
|
|
434
526
|
): Promise<void>;
|
|
435
|
-
|
|
527
|
+
// (undocumented)
|
|
528
|
+
recordSelection(
|
|
436
529
|
mention: MentionDescription,
|
|
437
530
|
contextIdentifier?: MentionContextIdentifier,
|
|
438
531
|
): Promise<void>;
|
|
439
|
-
isFiltering(query: string): boolean;
|
|
440
|
-
resolveMentionName(
|
|
441
|
-
id: string,
|
|
442
|
-
): Promise<MentionNameDetails> | MentionNameDetails;
|
|
443
|
-
cacheMentionName(id: string, mentionName: string): void;
|
|
444
|
-
supportsMentionNameResolving(): boolean;
|
|
445
|
-
protected updateActiveSearches(query: string): void;
|
|
446
|
-
protected verifyMentionConfig(config: MentionResourceConfig): void;
|
|
447
|
-
private initialState;
|
|
448
|
-
/**
|
|
449
|
-
* Clear a context object to generate query params by removing empty
|
|
450
|
-
* strings, `undefined` and empty values.
|
|
451
|
-
*
|
|
452
|
-
* @param contextIdentifier the current context identifier
|
|
453
|
-
* @returns a safe context for query encoding
|
|
454
|
-
*/
|
|
455
|
-
private clearContext;
|
|
456
|
-
private getQueryParams;
|
|
457
|
-
/**
|
|
458
|
-
* Returns the initial mention display list before a search is performed for the specified
|
|
459
|
-
* container.
|
|
460
|
-
*
|
|
461
|
-
* @param contextIdentifier
|
|
462
|
-
* @returns Promise
|
|
463
|
-
*/
|
|
464
532
|
protected remoteInitialState(
|
|
465
533
|
contextIdentifier?: MentionContextIdentifier,
|
|
466
534
|
): Promise<MentionsResult>;
|
|
467
|
-
|
|
535
|
+
// (undocumented)
|
|
468
536
|
protected remoteSearch(
|
|
469
537
|
query: string,
|
|
470
538
|
contextIdentifier?: MentionContextIdentifier,
|
|
471
539
|
): Promise<MentionsResult>;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
)
|
|
540
|
+
// (undocumented)
|
|
541
|
+
resolveMentionName(
|
|
542
|
+
id: string,
|
|
543
|
+
): Promise<MentionNameDetails> | MentionNameDetails;
|
|
544
|
+
// (undocumented)
|
|
545
|
+
shouldEnableInvite: boolean;
|
|
546
|
+
// (undocumented)
|
|
547
|
+
shouldHighlightMention(mention: MentionDescription): boolean;
|
|
548
|
+
// (undocumented)
|
|
549
|
+
supportsMentionNameResolving(): boolean;
|
|
550
|
+
// (undocumented)
|
|
551
|
+
protected updateActiveSearches(query: string): void;
|
|
552
|
+
// (undocumented)
|
|
553
|
+
userRole: UserRole;
|
|
554
|
+
// (undocumented)
|
|
555
|
+
protected verifyMentionConfig(config: MentionResourceConfig): void;
|
|
477
556
|
}
|
|
478
557
|
|
|
479
|
-
|
|
558
|
+
// @public (undocumented)
|
|
559
|
+
export interface MentionResourceConfig extends ServiceConfig {
|
|
560
|
+
// (undocumented)
|
|
480
561
|
containerId?: string;
|
|
481
|
-
|
|
482
|
-
|
|
562
|
+
// (undocumented)
|
|
563
|
+
debounceTime?: number;
|
|
564
|
+
// (undocumented)
|
|
483
565
|
inviteExperimentCohort?: InviteExperimentCohort;
|
|
566
|
+
// (undocumented)
|
|
484
567
|
mentionNameResolver?: MentionNameResolver;
|
|
485
|
-
|
|
568
|
+
// (undocumented)
|
|
486
569
|
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
487
|
-
|
|
570
|
+
// (undocumented)
|
|
571
|
+
productId?: string;
|
|
572
|
+
// (undocumented)
|
|
488
573
|
productName?: string;
|
|
489
|
-
|
|
574
|
+
// (undocumented)
|
|
575
|
+
shouldEnableInvite?: boolean;
|
|
576
|
+
// (undocumented)
|
|
577
|
+
shouldHighlightMention?: (mention: MentionDescription) => boolean;
|
|
578
|
+
// (undocumented)
|
|
579
|
+
userRole?: UserRole;
|
|
490
580
|
}
|
|
491
581
|
|
|
492
|
-
|
|
582
|
+
// @public (undocumented)
|
|
583
|
+
export interface MentionsResult {
|
|
584
|
+
// (undocumented)
|
|
493
585
|
mentions: MentionDescription[];
|
|
586
|
+
// (undocumented)
|
|
494
587
|
query: string;
|
|
495
588
|
}
|
|
496
589
|
|
|
497
|
-
|
|
590
|
+
// @public (undocumented)
|
|
591
|
+
export type MentionStats = {
|
|
498
592
|
[key: string]: any;
|
|
499
593
|
};
|
|
500
594
|
|
|
501
|
-
|
|
595
|
+
// @public (undocumented)
|
|
596
|
+
interface OnClose {
|
|
597
|
+
// (undocumented)
|
|
502
598
|
(): void;
|
|
503
599
|
}
|
|
504
600
|
|
|
505
|
-
|
|
601
|
+
// @public (undocumented)
|
|
602
|
+
interface OnMentionEvent {
|
|
603
|
+
// (undocumented)
|
|
506
604
|
(mention: MentionDescription, event?: SyntheticEvent<any>): void;
|
|
507
605
|
}
|
|
508
606
|
|
|
509
|
-
|
|
607
|
+
// @public (undocumented)
|
|
608
|
+
interface OnOpen {
|
|
609
|
+
// (undocumented)
|
|
510
610
|
(): void;
|
|
511
611
|
}
|
|
512
612
|
|
|
513
|
-
|
|
613
|
+
// @public (undocumented)
|
|
614
|
+
type OwnProps = {
|
|
514
615
|
id: string;
|
|
515
616
|
text: string;
|
|
516
617
|
isHighlighted?: boolean;
|
|
@@ -521,207 +622,271 @@ declare type OwnProps = {
|
|
|
521
622
|
onHover?: () => void;
|
|
522
623
|
};
|
|
523
624
|
|
|
524
|
-
|
|
625
|
+
// @public (undocumented)
|
|
626
|
+
interface OwnProps_2 {
|
|
627
|
+
// (undocumented)
|
|
525
628
|
createTeamLink?: string;
|
|
526
|
-
/** Callback to track the event where user click on x icon */
|
|
527
629
|
onClose: () => void;
|
|
630
|
+
// (undocumented)
|
|
528
631
|
onCreateTeamLinkClick?: () => void;
|
|
632
|
+
// (undocumented)
|
|
529
633
|
onViewed?: () => void;
|
|
530
634
|
}
|
|
531
635
|
|
|
532
|
-
|
|
636
|
+
// @public (undocumented)
|
|
637
|
+
type Position = 'above' | 'below' | 'auto';
|
|
533
638
|
|
|
534
|
-
|
|
535
|
-
|
|
639
|
+
// @public (undocumented)
|
|
640
|
+
interface Presence {
|
|
641
|
+
// (undocumented)
|
|
536
642
|
status?: string;
|
|
643
|
+
// (undocumented)
|
|
644
|
+
time?: string;
|
|
537
645
|
}
|
|
538
646
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
type: null | string;
|
|
647
|
+
// @public (undocumented)
|
|
648
|
+
interface PresenceBulk {
|
|
649
|
+
// (undocumented)
|
|
543
650
|
date: null | string;
|
|
651
|
+
// (undocumented)
|
|
544
652
|
message: null | string;
|
|
653
|
+
// (undocumented)
|
|
654
|
+
state: null | string;
|
|
655
|
+
// (undocumented)
|
|
545
656
|
stateMetadata?: string;
|
|
657
|
+
// (undocumented)
|
|
658
|
+
type: null | string;
|
|
659
|
+
// (undocumented)
|
|
660
|
+
userId: string;
|
|
546
661
|
}
|
|
547
662
|
|
|
548
|
-
|
|
663
|
+
// @public (undocumented)
|
|
664
|
+
interface PresenceCache {
|
|
665
|
+
// (undocumented)
|
|
549
666
|
contains(userId: string): boolean;
|
|
667
|
+
// (undocumented)
|
|
550
668
|
get(userId: string): Presence;
|
|
669
|
+
// (undocumented)
|
|
551
670
|
getBulk(userIds: string[]): PresenceMap;
|
|
671
|
+
// (undocumented)
|
|
552
672
|
getMissingUserIds(userIds: string[]): string[];
|
|
673
|
+
// (undocumented)
|
|
553
674
|
update(presUpdate: PresenceMap): void;
|
|
554
675
|
}
|
|
555
676
|
|
|
556
|
-
|
|
677
|
+
// @public (undocumented)
|
|
678
|
+
interface PresenceMap {
|
|
679
|
+
// (undocumented)
|
|
557
680
|
[userId: string]: Presence;
|
|
558
681
|
}
|
|
559
682
|
|
|
560
|
-
|
|
683
|
+
// @public (undocumented)
|
|
684
|
+
interface PresenceParser {
|
|
685
|
+
// (undocumented)
|
|
561
686
|
mapState(state: string): string;
|
|
687
|
+
// (undocumented)
|
|
562
688
|
parse(response: PresenceResponse): PresenceMap;
|
|
563
689
|
}
|
|
564
690
|
|
|
565
|
-
|
|
566
|
-
|
|
691
|
+
// @public (undocumented)
|
|
692
|
+
export interface PresenceProvider extends ResourceProvider<PresenceMap> {
|
|
693
|
+
// (undocumented)
|
|
567
694
|
refreshPresence(userIds: string[]): void;
|
|
568
695
|
}
|
|
569
696
|
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
private presenceCache;
|
|
573
|
-
private presenceParser;
|
|
697
|
+
// @public (undocumented)
|
|
698
|
+
export class PresenceResource extends AbstractPresenceResource {
|
|
574
699
|
constructor(config: PresenceResourceConfig);
|
|
700
|
+
// (undocumented)
|
|
575
701
|
refreshPresence(userIds: string[]): void;
|
|
576
|
-
private retrievePresence;
|
|
577
|
-
private queryDirectoryForPresences;
|
|
578
|
-
private static cleanUrl;
|
|
579
702
|
}
|
|
580
703
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
productId?: string;
|
|
704
|
+
// @public (undocumented)
|
|
705
|
+
interface PresenceResourceConfig {
|
|
706
|
+
// (undocumented)
|
|
585
707
|
cache?: PresenceCache;
|
|
708
|
+
// (undocumented)
|
|
586
709
|
cacheExpiry?: number;
|
|
710
|
+
// (undocumented)
|
|
711
|
+
cloudId: string;
|
|
712
|
+
// (undocumented)
|
|
587
713
|
parser?: PresenceParser;
|
|
714
|
+
// (undocumented)
|
|
715
|
+
productId?: string;
|
|
716
|
+
// (undocumented)
|
|
717
|
+
url: string;
|
|
588
718
|
}
|
|
589
719
|
|
|
590
|
-
|
|
720
|
+
// @public (undocumented)
|
|
721
|
+
interface PresenceResponse {
|
|
722
|
+
// (undocumented)
|
|
591
723
|
data: Data;
|
|
592
724
|
}
|
|
593
725
|
|
|
594
|
-
|
|
726
|
+
// @public (undocumented)
|
|
727
|
+
interface Props {
|
|
728
|
+
// (undocumented)
|
|
595
729
|
mention: MentionDescription;
|
|
596
|
-
|
|
597
|
-
onMouseMove?: OnMentionEvent;
|
|
730
|
+
// (undocumented)
|
|
598
731
|
onMouseEnter?: OnMentionEvent;
|
|
732
|
+
// (undocumented)
|
|
733
|
+
onMouseMove?: OnMentionEvent;
|
|
734
|
+
// (undocumented)
|
|
599
735
|
onSelection?: OnMentionEvent;
|
|
736
|
+
// (undocumented)
|
|
737
|
+
selected?: boolean;
|
|
600
738
|
}
|
|
601
739
|
|
|
602
|
-
|
|
740
|
+
// @public (undocumented)
|
|
741
|
+
interface Props_2 {
|
|
742
|
+
// (undocumented)
|
|
743
|
+
initialHighlightElement?: React_2.ReactElement | null;
|
|
744
|
+
// (undocumented)
|
|
603
745
|
mentions: MentionDescription[];
|
|
604
|
-
|
|
746
|
+
// (undocumented)
|
|
605
747
|
onSelection?: OnMentionEvent;
|
|
606
|
-
|
|
748
|
+
// (undocumented)
|
|
749
|
+
resourceError?: Error;
|
|
607
750
|
}
|
|
608
751
|
|
|
609
|
-
|
|
610
|
-
|
|
752
|
+
// @public (undocumented)
|
|
753
|
+
interface Props_3 {
|
|
754
|
+
// (undocumented)
|
|
755
|
+
createTeamPath?: string;
|
|
756
|
+
// (undocumented)
|
|
757
|
+
isTeamMentionHighlightEnabled?: boolean;
|
|
758
|
+
// (undocumented)
|
|
759
|
+
onSelection?: OnMentionEvent;
|
|
760
|
+
// (undocumented)
|
|
611
761
|
presenceProvider?: PresenceProvider;
|
|
762
|
+
// (undocumented)
|
|
612
763
|
query?: string;
|
|
613
|
-
|
|
764
|
+
// (undocumented)
|
|
614
765
|
resourceError?: Error;
|
|
615
|
-
|
|
616
|
-
|
|
766
|
+
// (undocumented)
|
|
767
|
+
resourceProvider: MentionProvider;
|
|
617
768
|
}
|
|
618
769
|
|
|
619
|
-
|
|
620
|
-
|
|
770
|
+
// @public (undocumented)
|
|
771
|
+
interface Props_4 {
|
|
772
|
+
// (undocumented)
|
|
773
|
+
createTeamPath?: string;
|
|
774
|
+
// (undocumented)
|
|
775
|
+
offsetX?: number;
|
|
776
|
+
// (undocumented)
|
|
777
|
+
offsetY?: number;
|
|
778
|
+
// (undocumented)
|
|
779
|
+
onClose?: OnClose;
|
|
780
|
+
// (undocumented)
|
|
781
|
+
onOpen?: OnOpen;
|
|
782
|
+
// (undocumented)
|
|
783
|
+
onSelection?: OnMentionEvent;
|
|
784
|
+
// (undocumented)
|
|
785
|
+
position?: Position;
|
|
786
|
+
// (undocumented)
|
|
621
787
|
presenceProvider?: PresenceProvider;
|
|
788
|
+
// (undocumented)
|
|
622
789
|
query?: string;
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
790
|
+
// (undocumented)
|
|
791
|
+
resourceProvider: MentionProvider;
|
|
792
|
+
// (undocumented)
|
|
793
|
+
showTeamMentionsHighlight?: boolean;
|
|
794
|
+
// (undocumented)
|
|
626
795
|
target?: string;
|
|
627
|
-
|
|
796
|
+
// (undocumented)
|
|
628
797
|
zIndex?: number | string;
|
|
629
|
-
offsetX?: number;
|
|
630
|
-
offsetY?: number;
|
|
631
|
-
showTeamMentionsHighlight?: boolean;
|
|
632
|
-
createTeamPath?: string;
|
|
633
798
|
}
|
|
634
799
|
|
|
635
|
-
|
|
800
|
+
// @public (undocumented)
|
|
801
|
+
type Props_5 = OwnProps & WithAnalyticsEventsProps_2;
|
|
636
802
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
803
|
+
// @public (undocumented)
|
|
804
|
+
interface Props_6 {
|
|
805
|
+
// (undocumented)
|
|
640
806
|
accessLevel?: string;
|
|
807
|
+
// (undocumented)
|
|
808
|
+
id: string;
|
|
809
|
+
// (undocumented)
|
|
641
810
|
mentionProvider?: Promise<MentionProvider>;
|
|
811
|
+
// (undocumented)
|
|
642
812
|
onClick?: MentionEventHandler;
|
|
813
|
+
// (undocumented)
|
|
643
814
|
onMouseEnter?: MentionEventHandler;
|
|
815
|
+
// (undocumented)
|
|
644
816
|
onMouseLeave?: MentionEventHandler;
|
|
817
|
+
// (undocumented)
|
|
818
|
+
text: string;
|
|
645
819
|
}
|
|
646
820
|
|
|
647
|
-
|
|
821
|
+
// @public (undocumented)
|
|
822
|
+
type Props_7 = OwnProps_2 & WithAnalyticsEventsProps_2;
|
|
648
823
|
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
824
|
+
// @public
|
|
825
|
+
export interface ResolvingMentionProvider extends MentionProvider {
|
|
826
|
+
// (undocumented)
|
|
827
|
+
cacheMentionName(id: string, mentionName: string): void;
|
|
828
|
+
// (undocumented)
|
|
653
829
|
resolveMentionName(
|
|
654
830
|
id: string,
|
|
655
831
|
): Promise<MentionNameDetails> | MentionNameDetails;
|
|
656
|
-
|
|
832
|
+
// (undocumented)
|
|
657
833
|
supportsMentionNameResolving(): boolean;
|
|
658
834
|
}
|
|
659
835
|
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
State_4
|
|
663
|
-
> {
|
|
664
|
-
_isMounted: boolean;
|
|
836
|
+
// @public (undocumented)
|
|
837
|
+
export class ResourcedMention extends React_2.PureComponent<Props_6, State_4> {
|
|
665
838
|
constructor(props: Props_6);
|
|
839
|
+
// (undocumented)
|
|
666
840
|
componentDidMount(): void;
|
|
841
|
+
// (undocumented)
|
|
667
842
|
componentWillUnmount(): void;
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
private handleMentionProvider;
|
|
843
|
+
// (undocumented)
|
|
844
|
+
_isMounted: boolean;
|
|
845
|
+
// (undocumented)
|
|
672
846
|
render(): JSX.Element;
|
|
847
|
+
// (undocumented)
|
|
848
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props_6): void;
|
|
673
849
|
}
|
|
674
850
|
|
|
675
|
-
|
|
851
|
+
// @public (undocumented)
|
|
852
|
+
export const ResourcedMentionList: React_2.ForwardRefExoticComponent<
|
|
676
853
|
Omit<Props_3 & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> &
|
|
677
854
|
React_2.RefAttributes<any>
|
|
678
855
|
>;
|
|
679
856
|
|
|
680
|
-
|
|
857
|
+
// @public (undocumented)
|
|
858
|
+
export type ResourcedMentionList = ResourcedMentionListWithoutAnalytics;
|
|
681
859
|
|
|
682
|
-
|
|
860
|
+
// @public (undocumented)
|
|
861
|
+
class ResourcedMentionListWithoutAnalytics extends React_2.PureComponent<
|
|
683
862
|
Props_3 & WithAnalyticsEventsProps,
|
|
684
863
|
State_2
|
|
685
864
|
> {
|
|
686
|
-
private subscriberKey;
|
|
687
|
-
private mentionListRef?;
|
|
688
865
|
constructor(props: Props_3 & WithAnalyticsEventsProps);
|
|
866
|
+
// (undocumented)
|
|
867
|
+
chooseCurrentSelection: () => void;
|
|
868
|
+
// (undocumented)
|
|
689
869
|
componentDidMount(): void;
|
|
690
|
-
|
|
870
|
+
// (undocumented)
|
|
691
871
|
componentWillUnmount(): void;
|
|
692
|
-
|
|
693
|
-
selectPrevious: () => void;
|
|
694
|
-
selectIndex: (index: number, callback?: (() => any) | undefined) => void;
|
|
695
|
-
selectId: (id: string, callback?: (() => any) | undefined) => void;
|
|
696
|
-
chooseCurrentSelection: () => void;
|
|
872
|
+
// (undocumented)
|
|
697
873
|
mentionsCount: () => number;
|
|
698
|
-
|
|
699
|
-
private subscribePresenceProvider;
|
|
700
|
-
private unsubscribeMentionProvider;
|
|
701
|
-
private unsubscribePresenceProvider;
|
|
702
|
-
private applyPropChanges;
|
|
703
|
-
private refreshPresences;
|
|
704
|
-
private filterChange;
|
|
705
|
-
private sendAnalytics;
|
|
706
|
-
private filterError;
|
|
707
|
-
private presenceUpdate;
|
|
708
|
-
private notifySelection;
|
|
709
|
-
private handleMentionListRef;
|
|
710
|
-
private closeHighlight;
|
|
711
|
-
private mentionsHighlight;
|
|
874
|
+
// (undocumented)
|
|
712
875
|
render(): JSX.Element;
|
|
876
|
+
// (undocumented)
|
|
877
|
+
selectId: (id: string, callback?: (() => any) | undefined) => void;
|
|
878
|
+
// (undocumented)
|
|
879
|
+
selectIndex: (index: number, callback?: (() => any) | undefined) => void;
|
|
880
|
+
// (undocumented)
|
|
881
|
+
selectNext: () => void;
|
|
882
|
+
// (undocumented)
|
|
883
|
+
selectPrevious: () => void;
|
|
884
|
+
// (undocumented)
|
|
885
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props_3): void;
|
|
713
886
|
}
|
|
714
887
|
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
* Subscribe to ResourceProvider results
|
|
718
|
-
*
|
|
719
|
-
* @param {string} key subscriber key used to unsubscribe
|
|
720
|
-
* @param {ResultCallback<Result>} callback This callback only receives latest results
|
|
721
|
-
* @param {ErrorCallback} errCallback This callback will errors
|
|
722
|
-
* @param {InfoCallback} infoCallback This callback will info
|
|
723
|
-
* @param {ResultCallback<Result>} allResultsCallback This callback will receive all results
|
|
724
|
-
*/
|
|
888
|
+
// @public (undocumented)
|
|
889
|
+
interface ResourceProvider<Result> {
|
|
725
890
|
subscribe(
|
|
726
891
|
key: string,
|
|
727
892
|
callback?: ResultCallback<Result>,
|
|
@@ -730,47 +895,63 @@ declare interface ResourceProvider<Result> {
|
|
|
730
895
|
allResultsCallback?: ResultCallback<Result>,
|
|
731
896
|
analyticsCallback?: AnalyticsCallback,
|
|
732
897
|
): void;
|
|
733
|
-
/**
|
|
734
|
-
* Unsubscribe to this resource provider results
|
|
735
|
-
* @param {string} key key used when subscribing
|
|
736
|
-
*/
|
|
737
898
|
unsubscribe(key: string): void;
|
|
738
899
|
}
|
|
739
900
|
|
|
740
|
-
|
|
901
|
+
// @public (undocumented)
|
|
902
|
+
interface ResultCallback<T> {
|
|
903
|
+
// (undocumented)
|
|
741
904
|
(result: T, query?: string, stats?: MentionStats): void;
|
|
742
905
|
}
|
|
743
906
|
|
|
744
|
-
|
|
745
|
-
|
|
907
|
+
// @public (undocumented)
|
|
908
|
+
interface State {
|
|
909
|
+
// (undocumented)
|
|
746
910
|
selectedIndex: number;
|
|
911
|
+
// (undocumented)
|
|
912
|
+
selectedKey?: string;
|
|
747
913
|
}
|
|
748
914
|
|
|
749
|
-
|
|
750
|
-
|
|
915
|
+
// @public (undocumented)
|
|
916
|
+
interface State_2 {
|
|
917
|
+
// (undocumented)
|
|
751
918
|
mentions: MentionDescription[];
|
|
919
|
+
// (undocumented)
|
|
920
|
+
resourceError?: Error;
|
|
752
921
|
}
|
|
753
922
|
|
|
754
|
-
|
|
755
|
-
|
|
923
|
+
// @public (undocumented)
|
|
924
|
+
interface State_3 {
|
|
925
|
+
// (undocumented)
|
|
756
926
|
info?: string;
|
|
927
|
+
// (undocumented)
|
|
928
|
+
visible: boolean;
|
|
757
929
|
}
|
|
758
930
|
|
|
759
|
-
|
|
931
|
+
// @public (undocumented)
|
|
932
|
+
interface State_4 {
|
|
933
|
+
// (undocumented)
|
|
760
934
|
isHighlighted: boolean;
|
|
935
|
+
// (undocumented)
|
|
761
936
|
resolvedMentionName?: string;
|
|
762
937
|
}
|
|
763
938
|
|
|
764
|
-
|
|
939
|
+
// @public (undocumented)
|
|
940
|
+
interface State_5 {
|
|
941
|
+
// (undocumented)
|
|
765
942
|
isHighlightHidden: boolean;
|
|
766
943
|
}
|
|
767
944
|
|
|
768
|
-
|
|
945
|
+
// @public (undocumented)
|
|
946
|
+
export interface TeamMember {
|
|
947
|
+
// (undocumented)
|
|
769
948
|
id: string;
|
|
949
|
+
// (undocumented)
|
|
770
950
|
name: string;
|
|
771
951
|
}
|
|
772
952
|
|
|
773
|
-
|
|
953
|
+
// @public (undocumented)
|
|
954
|
+
export const TeamMentionHighlight: React_2.ForwardRefExoticComponent<
|
|
774
955
|
Pick<
|
|
775
956
|
Omit<Props_7, keyof WithAnalyticsEventsProps_2>,
|
|
776
957
|
'onClose' | 'onCreateTeamLinkClick' | 'onViewed'
|
|
@@ -789,120 +970,130 @@ export declare const TeamMentionHighlight: React_2.ForwardRefExoticComponent<
|
|
|
789
970
|
React_2.RefAttributes<any>
|
|
790
971
|
>;
|
|
791
972
|
|
|
792
|
-
|
|
973
|
+
// @public (undocumented)
|
|
974
|
+
export type TeamMentionHighlight = TeamMentionHighlightInternal;
|
|
793
975
|
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
private static markAsDone;
|
|
798
|
-
static isHighlightEnabled: () => boolean;
|
|
799
|
-
static registerRender: () => TeamMentionState;
|
|
976
|
+
// @public (undocumented)
|
|
977
|
+
export class TeamMentionHighlightController {
|
|
978
|
+
// (undocumented)
|
|
800
979
|
static getSeenCount: () => number;
|
|
980
|
+
// (undocumented)
|
|
981
|
+
static isHighlightEnabled: () => boolean;
|
|
982
|
+
// (undocumented)
|
|
983
|
+
static registerClosed: () => void;
|
|
984
|
+
// (undocumented)
|
|
801
985
|
static registerCreateLinkClick: () => void;
|
|
986
|
+
// (undocumented)
|
|
987
|
+
static registerRender: () => TeamMentionState;
|
|
988
|
+
// (undocumented)
|
|
802
989
|
static registerTeamMention: () => void;
|
|
803
|
-
static registerClosed: () => void;
|
|
804
990
|
}
|
|
805
991
|
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
State_5
|
|
809
|
-
> {
|
|
810
|
-
elWrapper: RefObject<HTMLDivElement>;
|
|
811
|
-
elCloseWrapper: RefObject<HTMLDivElement>;
|
|
812
|
-
elCreateTeamWrapper: RefObject<HTMLDivElement>;
|
|
813
|
-
static defaultProps: {
|
|
814
|
-
createTeamLink: string;
|
|
815
|
-
};
|
|
992
|
+
// @public (undocumented)
|
|
993
|
+
class TeamMentionHighlightInternal extends React_2.Component<Props_7, State_5> {
|
|
816
994
|
constructor(props: Props_7);
|
|
995
|
+
// (undocumented)
|
|
817
996
|
componentDidMount(): void;
|
|
997
|
+
// (undocumented)
|
|
818
998
|
componentWillUnmount(): void;
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
999
|
+
// (undocumented)
|
|
1000
|
+
static defaultProps: {
|
|
1001
|
+
createTeamLink: string;
|
|
1002
|
+
};
|
|
1003
|
+
// (undocumented)
|
|
1004
|
+
elCloseWrapper: RefObject<HTMLDivElement>;
|
|
1005
|
+
// (undocumented)
|
|
1006
|
+
elCreateTeamWrapper: RefObject<HTMLDivElement>;
|
|
1007
|
+
// (undocumented)
|
|
1008
|
+
elWrapper: RefObject<HTMLDivElement>;
|
|
1009
|
+
// (undocumented)
|
|
823
1010
|
onCloseClick: () => void;
|
|
1011
|
+
// (undocumented)
|
|
1012
|
+
onCreateTeamLinkClick: () => void;
|
|
1013
|
+
// (undocumented)
|
|
824
1014
|
render(): JSX.Element | null;
|
|
825
1015
|
}
|
|
826
1016
|
|
|
827
|
-
|
|
828
|
-
|
|
1017
|
+
// @public (undocumented)
|
|
1018
|
+
interface TeamMentionProvider extends MentionProvider {
|
|
1019
|
+
// (undocumented)
|
|
829
1020
|
mentionTypeaheadCreateTeamPath: () => string | undefined;
|
|
1021
|
+
// (undocumented)
|
|
1022
|
+
mentionTypeaheadHighlightEnabled: () => boolean;
|
|
830
1023
|
}
|
|
831
1024
|
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
* In future we will have a new endpoint to return both users and teams, we can
|
|
835
|
-
* remove this class at this point
|
|
836
|
-
*/
|
|
837
|
-
export declare class TeamMentionResource
|
|
1025
|
+
// @public
|
|
1026
|
+
export class TeamMentionResource
|
|
838
1027
|
extends MentionResource
|
|
839
|
-
implements TeamMentionProvider
|
|
840
|
-
|
|
841
|
-
private lastSearchQuery?;
|
|
842
|
-
private lastReturnedSearchTeam;
|
|
1028
|
+
implements TeamMentionProvider
|
|
1029
|
+
{
|
|
843
1030
|
constructor(
|
|
844
1031
|
userMentionConfig: MentionResourceConfig,
|
|
845
1032
|
teamMentionConfig: TeamMentionResourceConfig,
|
|
846
1033
|
);
|
|
1034
|
+
// (undocumented)
|
|
847
1035
|
filter(
|
|
848
1036
|
query?: string,
|
|
849
1037
|
contextIdentifier?: MentionContextIdentifier,
|
|
850
1038
|
): Promise<void>;
|
|
851
|
-
|
|
1039
|
+
// (undocumented)
|
|
852
1040
|
mentionTypeaheadCreateTeamPath: () => string | undefined;
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
*/
|
|
857
|
-
private remoteInitialStateTeamAndUsers;
|
|
858
|
-
/**
|
|
859
|
-
* Both user and team requests are not blocked together
|
|
860
|
-
* If users request arrives first, show users. Show teams when team request arrives.
|
|
861
|
-
* If team request arrives first, block waiting for user request, then show both
|
|
862
|
-
* If one errors, show the non-erroring one
|
|
863
|
-
* If both error, show error
|
|
864
|
-
*/
|
|
865
|
-
private handleBothRequests;
|
|
1041
|
+
// (undocumented)
|
|
1042
|
+
mentionTypeaheadHighlightEnabled: () => boolean;
|
|
1043
|
+
// (undocumented)
|
|
866
1044
|
notify(
|
|
867
1045
|
searchTime: number,
|
|
868
1046
|
mentionResult: MentionsResult,
|
|
869
1047
|
query?: string,
|
|
870
1048
|
): void;
|
|
871
|
-
private getQueryParamsOfTeamMentionConfig;
|
|
872
|
-
private remoteUserSearch;
|
|
873
|
-
private remoteTeamSearch;
|
|
874
|
-
private convertTeamResultToMentionResult;
|
|
875
|
-
private trimTeamARI;
|
|
876
1049
|
}
|
|
877
1050
|
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
teamHighlightEnabled?: boolean;
|
|
1051
|
+
// @public (undocumented)
|
|
1052
|
+
export interface TeamMentionResourceConfig extends MentionResourceConfig {
|
|
1053
|
+
// (undocumented)
|
|
882
1054
|
createTeamPath?: string;
|
|
1055
|
+
// (undocumented)
|
|
1056
|
+
teamHighlightEnabled?: boolean;
|
|
1057
|
+
// (undocumented)
|
|
1058
|
+
teamLinkResolver?: (teamId: string) => string;
|
|
883
1059
|
}
|
|
884
1060
|
|
|
885
|
-
|
|
886
|
-
|
|
1061
|
+
// @public (undocumented)
|
|
1062
|
+
interface TeamMentionState {
|
|
1063
|
+
// (undocumented)
|
|
887
1064
|
dontShow: boolean;
|
|
1065
|
+
// (undocumented)
|
|
1066
|
+
seenCount: number;
|
|
888
1067
|
}
|
|
889
1068
|
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
1069
|
+
// @public (undocumented)
|
|
1070
|
+
export enum UserAccessLevel {
|
|
1071
|
+
// (undocumented)
|
|
893
1072
|
APPLICATION = 2,
|
|
1073
|
+
// (undocumented)
|
|
894
1074
|
CONTAINER = 3,
|
|
1075
|
+
// (undocumented)
|
|
1076
|
+
NONE = 0,
|
|
1077
|
+
// (undocumented)
|
|
1078
|
+
SITE = 1,
|
|
895
1079
|
}
|
|
896
1080
|
|
|
897
|
-
|
|
1081
|
+
// @public (undocumented)
|
|
1082
|
+
export type UserRole = 'admin' | 'trusted' | 'basic';
|
|
898
1083
|
|
|
899
|
-
|
|
1084
|
+
// @public (undocumented)
|
|
1085
|
+
export enum UserType {
|
|
1086
|
+
// (undocumented)
|
|
1087
|
+
APP = 2,
|
|
1088
|
+
// (undocumented)
|
|
900
1089
|
DEFAULT = 0,
|
|
1090
|
+
// (undocumented)
|
|
901
1091
|
SPECIAL = 1,
|
|
902
|
-
|
|
903
|
-
TEAM = 3,
|
|
1092
|
+
// (undocumented)
|
|
904
1093
|
SYSTEM = 4,
|
|
1094
|
+
// (undocumented)
|
|
1095
|
+
TEAM = 3,
|
|
905
1096
|
}
|
|
906
1097
|
|
|
907
|
-
|
|
1098
|
+
// (No @packageDocumentation comment for this package)
|
|
908
1099
|
```
|