@atlaskit/emoji 67.4.5 → 67.4.7
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/common/TonePreviewButton.js +2 -1
- package/dist/cjs/components/common/styles.js +6 -6
- package/dist/cjs/components/picker/styles.js +2 -2
- package/dist/cjs/util/shared-styles.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/common/TonePreviewButton.js +2 -1
- package/dist/es2019/components/common/styles.js +6 -6
- package/dist/es2019/components/picker/styles.js +2 -2
- package/dist/es2019/util/shared-styles.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/common/TonePreviewButton.js +2 -1
- package/dist/esm/components/common/styles.js +6 -6
- package/dist/esm/components/picker/styles.js +2 -2
- package/dist/esm/util/shared-styles.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/util/shared-styles.d.ts +1 -1
- package/dist/types-ts4.5/util/shared-styles.d.ts +1 -1
- package/package.json +7 -12
- package/tmp/api-report-tmp.d.ts +1245 -0
|
@@ -0,0 +1,1245 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/emoji"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
9
|
+
import { AbstractResource } from '@atlaskit/util-service-support';
|
|
10
|
+
import { Component } from 'react';
|
|
11
|
+
import { ComponentClass } from 'react';
|
|
12
|
+
import { ComponentType } from 'react';
|
|
13
|
+
import { ConcurrentExperience } from '@atlaskit/ufo';
|
|
14
|
+
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
15
|
+
import { FC } from 'react';
|
|
16
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
17
|
+
import { jsx } from '@emotion/react';
|
|
18
|
+
import { Provider } from '@atlaskit/util-service-support/types';
|
|
19
|
+
import { PureComponent } from 'react';
|
|
20
|
+
import { default as React_2 } from 'react';
|
|
21
|
+
import { RefAttributes } from 'react';
|
|
22
|
+
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
23
|
+
import { SyntheticEvent } from 'react';
|
|
24
|
+
import { UFOExperience } from '@atlaskit/ufo';
|
|
25
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
26
|
+
|
|
27
|
+
export { AbstractResource }
|
|
28
|
+
|
|
29
|
+
// @public (undocumented)
|
|
30
|
+
export interface AltRepresentations {
|
|
31
|
+
// (undocumented)
|
|
32
|
+
[key: string]: EmojiServiceRepresentation;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// @public (undocumented)
|
|
36
|
+
interface BaseResourcedEmojiProps {
|
|
37
|
+
customFallback?: JSX.Element | string;
|
|
38
|
+
emojiId: EmojiId;
|
|
39
|
+
fitToHeight?: number;
|
|
40
|
+
optimistic?: boolean;
|
|
41
|
+
optimisticImageURL?: string;
|
|
42
|
+
showTooltip?: boolean;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// @public (undocumented)
|
|
46
|
+
export interface CategoryDescription {
|
|
47
|
+
// (undocumented)
|
|
48
|
+
icon: any;
|
|
49
|
+
// (undocumented)
|
|
50
|
+
id: string;
|
|
51
|
+
// (undocumented)
|
|
52
|
+
name: keyof typeof messages;
|
|
53
|
+
// (undocumented)
|
|
54
|
+
order: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// @public (undocumented)
|
|
58
|
+
export type CategoryId = 'ACTIVITY' | 'ATLASSIAN' | 'CUSTOM' | 'FLAGS' | 'FOODS' | 'FREQUENT' | 'NATURE' | 'OBJECTS' | 'PEOPLE' | 'PLACES' | 'SYMBOLS';
|
|
59
|
+
|
|
60
|
+
// @public (undocumented)
|
|
61
|
+
export const customCategory = "CUSTOM";
|
|
62
|
+
|
|
63
|
+
// @public (undocumented)
|
|
64
|
+
export const defaultEmojiHeight = 20;
|
|
65
|
+
|
|
66
|
+
// @public
|
|
67
|
+
export const denormaliseEmojiServiceResponse: (emojiData: EmojiServiceResponse) => EmojiResponse;
|
|
68
|
+
|
|
69
|
+
// @public
|
|
70
|
+
class DuplicateLimitedQueue<T> {
|
|
71
|
+
constructor(options: QueueOptions);
|
|
72
|
+
protected bulkEnqueue(items: T[]): void;
|
|
73
|
+
clear(): void;
|
|
74
|
+
// (undocumented)
|
|
75
|
+
enqueue(item: T): void;
|
|
76
|
+
protected getItems(): T[];
|
|
77
|
+
getItemsOrderedByDuplicateCount(): Array<T>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// @public (undocumented)
|
|
81
|
+
export const Emoji: (props: Props) => jsx.JSX.Element;
|
|
82
|
+
|
|
83
|
+
// @public
|
|
84
|
+
export const EmojiCommonProvider: FC<EmojiCommonProviderProps>;
|
|
85
|
+
|
|
86
|
+
// @public (undocumented)
|
|
87
|
+
interface EmojiCommonProviderProps {
|
|
88
|
+
emojiProvider?: EmojiProvider;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// @public (undocumented)
|
|
92
|
+
interface EmojiContext {
|
|
93
|
+
// (undocumented)
|
|
94
|
+
emoji: {
|
|
95
|
+
emojiProvider: EmojiProvider;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// @public (undocumented)
|
|
100
|
+
export const EmojiContextProvider: FC<EmojiContextProviderType>;
|
|
101
|
+
|
|
102
|
+
// @public (undocumented)
|
|
103
|
+
type EmojiContextProviderType = {
|
|
104
|
+
emojiContextValue: EmojiContextType;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// @public (undocumented)
|
|
108
|
+
type EmojiContextType = EmojiContext | null;
|
|
109
|
+
|
|
110
|
+
// @public (undocumented)
|
|
111
|
+
export interface EmojiDescription extends EmojiId {
|
|
112
|
+
// (undocumented)
|
|
113
|
+
altRepresentation?: EmojiRepresentation;
|
|
114
|
+
// (undocumented)
|
|
115
|
+
ascii?: string[];
|
|
116
|
+
// (undocumented)
|
|
117
|
+
category: string;
|
|
118
|
+
// (undocumented)
|
|
119
|
+
createdDate?: string;
|
|
120
|
+
// (undocumented)
|
|
121
|
+
creatorUserId?: string;
|
|
122
|
+
// (undocumented)
|
|
123
|
+
name?: string;
|
|
124
|
+
// (undocumented)
|
|
125
|
+
order?: number;
|
|
126
|
+
// (undocumented)
|
|
127
|
+
representation: EmojiRepresentation;
|
|
128
|
+
// (undocumented)
|
|
129
|
+
searchable: boolean;
|
|
130
|
+
// (undocumented)
|
|
131
|
+
type: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// @public (undocumented)
|
|
135
|
+
export interface EmojiDescriptionWithVariations extends EmojiDescription {
|
|
136
|
+
// (undocumented)
|
|
137
|
+
skinVariations?: EmojiDescription[];
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// @public
|
|
141
|
+
export interface EmojiId {
|
|
142
|
+
// (undocumented)
|
|
143
|
+
fallback?: string;
|
|
144
|
+
// (undocumented)
|
|
145
|
+
id?: string;
|
|
146
|
+
// (undocumented)
|
|
147
|
+
shortName: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// @public (undocumented)
|
|
151
|
+
export const emojiImage = "emoji-common-emoji-image";
|
|
152
|
+
|
|
153
|
+
// @public (undocumented)
|
|
154
|
+
export interface EmojiImageRepresentation {
|
|
155
|
+
// (undocumented)
|
|
156
|
+
height: number;
|
|
157
|
+
// (undocumented)
|
|
158
|
+
width: number;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// @public
|
|
162
|
+
export class EmojiLoader {
|
|
163
|
+
constructor(config: EmojiLoaderConfig);
|
|
164
|
+
loadEmoji(): Promise<EmojiResponse>;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// @public (undocumented)
|
|
168
|
+
interface EmojiLoaderConfig extends ServiceConfig {
|
|
169
|
+
// (undocumented)
|
|
170
|
+
getRatio?: () => number;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// @public (undocumented)
|
|
174
|
+
export interface EmojiMeta {
|
|
175
|
+
// (undocumented)
|
|
176
|
+
mediaApiToken?: MediaApiToken;
|
|
177
|
+
// (undocumented)
|
|
178
|
+
spriteSheets?: SpriteSheets;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// @public (undocumented)
|
|
182
|
+
export const emojiNode = "emoji-common-node";
|
|
183
|
+
|
|
184
|
+
// @public (undocumented)
|
|
185
|
+
const EmojiPicker: ForwardRefExoticComponent<Pick<Omit<Props_3 & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps>, "emojiProvider" | "hideToneSelector" | "onPickerRef" | "onSelection"> & Partial<Pick<Omit<Props_3 & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps>, "size">> & Partial<Pick<{
|
|
186
|
+
size: string;
|
|
187
|
+
}, never>> & RefAttributes<any>>;
|
|
188
|
+
export { EmojiPicker }
|
|
189
|
+
export default EmojiPicker;
|
|
190
|
+
|
|
191
|
+
// @public (undocumented)
|
|
192
|
+
export const emojiPickerHeight = 295;
|
|
193
|
+
|
|
194
|
+
// @public (undocumented)
|
|
195
|
+
export const emojiPickerWidth = 350;
|
|
196
|
+
|
|
197
|
+
// @public (undocumented)
|
|
198
|
+
export const EmojiPlaceholder: (props: Props_2) => jsx.JSX.Element;
|
|
199
|
+
|
|
200
|
+
// @public (undocumented)
|
|
201
|
+
export const emojiPlaceholder = "emoji-common-placeholder";
|
|
202
|
+
|
|
203
|
+
// @public (undocumented)
|
|
204
|
+
interface EmojiProgessCallback {
|
|
205
|
+
// (undocumented)
|
|
206
|
+
(progress: EmojiProgress): void;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// @public (undocumented)
|
|
210
|
+
interface EmojiProgress {
|
|
211
|
+
// (undocumented)
|
|
212
|
+
readonly percent: number;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// @public (undocumented)
|
|
216
|
+
export interface EmojiProvider extends Provider<string, EmojiSearchResult, any, undefined, SearchOptions> {
|
|
217
|
+
calculateDynamicCategories?(): Promise<string[]>;
|
|
218
|
+
deleteSiteEmoji(emoji: EmojiDescription): Promise<boolean>;
|
|
219
|
+
fetchByEmojiId(emojiId: EmojiId, optimistic: boolean): OptionalEmojiDescriptionWithVariations | Promise<OptionalEmojiDescriptionWithVariations>;
|
|
220
|
+
fetchEmojiProvider(force?: boolean): Promise<EmojiRepository | undefined>;
|
|
221
|
+
findByEmojiId(emojiId: EmojiId): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
|
|
222
|
+
findById(id: string): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
|
|
223
|
+
findByShortName(shortName: string): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
|
|
224
|
+
findInCategory(categoryId: string): Promise<EmojiDescription[]>;
|
|
225
|
+
getAsciiMap(): Promise<Map<string, EmojiDescription>>;
|
|
226
|
+
getCurrentUser(): OptionalUser;
|
|
227
|
+
getFrequentlyUsed(options?: SearchOptions): Promise<EmojiDescription[]>;
|
|
228
|
+
getMediaEmojiDescriptionURLWithInlineToken(emoji: EmojiDescription): Promise<EmojiDescription>;
|
|
229
|
+
getOptimisticImageURL(emojiId: EmojiId): string | undefined;
|
|
230
|
+
getSelectedTone(): ToneSelection;
|
|
231
|
+
loadMediaEmoji(emoji: EmojiDescription, useAlt?: boolean): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
|
|
232
|
+
optimisticMediaRendering(emoji: EmojiDescription, useAlt?: boolean): boolean;
|
|
233
|
+
recordSelection?(emoji: EmojiDescription): Promise<any>;
|
|
234
|
+
setSelectedTone(tone: ToneSelection): void;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// @public (undocumented)
|
|
238
|
+
export class EmojiRepository {
|
|
239
|
+
constructor(emojis: EmojiDescription[], usageTracker?: UsageFrequencyTracker);
|
|
240
|
+
// (undocumented)
|
|
241
|
+
addUnknownEmoji(emoji: EmojiDescription): void;
|
|
242
|
+
all(): EmojiSearchResult;
|
|
243
|
+
// (undocumented)
|
|
244
|
+
delete(emoji: EmojiDescription): void;
|
|
245
|
+
findAllMatchingShortName(shortName: string): EmojiDescription[];
|
|
246
|
+
// (undocumented)
|
|
247
|
+
findByAsciiRepresentation(asciiEmoji: string): OptionalEmojiDescription;
|
|
248
|
+
findById(id: string): OptionalEmojiDescription;
|
|
249
|
+
findByShortName(shortName: string): OptionalEmojiDescription;
|
|
250
|
+
// (undocumented)
|
|
251
|
+
findInCategory(categoryId: CategoryId): EmojiDescription[];
|
|
252
|
+
// (undocumented)
|
|
253
|
+
getAsciiMap(): Map<string, EmojiDescription>;
|
|
254
|
+
// (undocumented)
|
|
255
|
+
getDynamicCategoryList(): CategoryId[];
|
|
256
|
+
getFrequentlyUsed(options?: SearchOptions): EmojiDescription[];
|
|
257
|
+
search(query?: string, options?: SearchOptions): EmojiSearchResult;
|
|
258
|
+
// (undocumented)
|
|
259
|
+
protected usageTracker: UsageFrequencyTracker;
|
|
260
|
+
used(emoji: EmojiDescription): void;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// @public (undocumented)
|
|
264
|
+
export type EmojiRepresentation = ImageRepresentation | MediaApiRepresentation | SpriteRepresentation | undefined;
|
|
265
|
+
|
|
266
|
+
// @public (undocumented)
|
|
267
|
+
export class EmojiResource extends EmojiResource_2 implements UploadingEmojiProvider {
|
|
268
|
+
constructor(config: EmojiResourceConfig);
|
|
269
|
+
// (undocumented)
|
|
270
|
+
protected allowUpload: boolean;
|
|
271
|
+
// (undocumented)
|
|
272
|
+
isUploadSupported(): Promise<boolean>;
|
|
273
|
+
// (undocumented)
|
|
274
|
+
prepareForUpload(): Promise<void>;
|
|
275
|
+
// (undocumented)
|
|
276
|
+
uploadCustomEmoji(upload: EmojiUpload, retry?: boolean): Promise<EmojiDescription>;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// @public (undocumented)
|
|
280
|
+
class EmojiResource_2 extends AbstractResource<string, EmojiSearchResult, any, undefined, SearchOptions> implements EmojiProvider {
|
|
281
|
+
constructor(config: EmojiResourceConfig);
|
|
282
|
+
// (undocumented)
|
|
283
|
+
protected activeLoaders: number;
|
|
284
|
+
// (undocumented)
|
|
285
|
+
protected addUnknownEmoji(emoji: EmojiDescription): void;
|
|
286
|
+
// (undocumented)
|
|
287
|
+
calculateDynamicCategories(): Promise<CategoryId[]>;
|
|
288
|
+
// (undocumented)
|
|
289
|
+
protected currentUser?: User;
|
|
290
|
+
// (undocumented)
|
|
291
|
+
deleteSiteEmoji(emoji: EmojiDescription): Promise<boolean>;
|
|
292
|
+
// (undocumented)
|
|
293
|
+
emojiProviderConfig: EmojiResourceConfig;
|
|
294
|
+
// (undocumented)
|
|
295
|
+
protected emojiRepository?: EmojiRepository;
|
|
296
|
+
// (undocumented)
|
|
297
|
+
protected emojiResponses: EmojiResponse[];
|
|
298
|
+
// (undocumented)
|
|
299
|
+
fetchByEmojiId(emojiId: EmojiId, optimistic: boolean): Promise<OptionalEmojiDescriptionWithVariations>;
|
|
300
|
+
// (undocumented)
|
|
301
|
+
fetchEmojiProvider(force?: boolean): Promise<EmojiRepository | undefined>;
|
|
302
|
+
// (undocumented)
|
|
303
|
+
filter(query?: string, options?: SearchOptions): void;
|
|
304
|
+
// (undocumented)
|
|
305
|
+
findByEmojiId(emojiId: EmojiId): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
|
|
306
|
+
// (undocumented)
|
|
307
|
+
findById(id: string): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
|
|
308
|
+
// (undocumented)
|
|
309
|
+
findByShortName(shortName: string): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
|
|
310
|
+
// (undocumented)
|
|
311
|
+
findInCategory(categoryId: CategoryId): Promise<EmojiDescription[]>;
|
|
312
|
+
// (undocumented)
|
|
313
|
+
getAsciiMap(): Promise<Map<string, EmojiDescription>>;
|
|
314
|
+
// (undocumented)
|
|
315
|
+
getCurrentUser(): OptionalUser;
|
|
316
|
+
getEmojiProvider(options?: GetEmojiProviderOptions): Promise<EmojiProvider>;
|
|
317
|
+
// (undocumented)
|
|
318
|
+
getFrequentlyUsed(options?: SearchOptions): Promise<EmojiDescription[]>;
|
|
319
|
+
getMediaEmojiDescriptionURLWithInlineToken(emoji: EmojiDescription): Promise<EmojiDescription>;
|
|
320
|
+
// (undocumented)
|
|
321
|
+
getOptimisticImageURL: (emojiId: EmojiId) => string | undefined;
|
|
322
|
+
// (undocumented)
|
|
323
|
+
getSelectedTone(): ToneSelection;
|
|
324
|
+
// (undocumented)
|
|
325
|
+
protected initEmojiRepository(emojiResponses: EmojiResponse[]): void;
|
|
326
|
+
// (undocumented)
|
|
327
|
+
protected initialLoaders: number;
|
|
328
|
+
// (undocumented)
|
|
329
|
+
protected initSiteEmojiResource(emojiResponse: EmojiResponse, provider: ServiceConfig): Promise<void>;
|
|
330
|
+
// (undocumented)
|
|
331
|
+
protected isInitialised: boolean;
|
|
332
|
+
// (undocumented)
|
|
333
|
+
protected isRepositoryAvailable: <T>(repository?: T | undefined) => repository is T;
|
|
334
|
+
// (undocumented)
|
|
335
|
+
protected lastQuery?: LastQuery;
|
|
336
|
+
// (undocumented)
|
|
337
|
+
loadMediaEmoji(emoji: EmojiDescription, useAlt?: boolean): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
|
|
338
|
+
// (undocumented)
|
|
339
|
+
protected notifyResult(result: EmojiSearchResult): void;
|
|
340
|
+
// (undocumented)
|
|
341
|
+
optimisticMediaRendering(emoji: EmojiDescription, useAlt?: boolean): boolean;
|
|
342
|
+
// (undocumented)
|
|
343
|
+
protected recordConfig?: ServiceConfig;
|
|
344
|
+
recordSelection(emoji: EmojiDescription): Promise<any>;
|
|
345
|
+
// (undocumented)
|
|
346
|
+
protected refreshLastFilter(): void;
|
|
347
|
+
// (undocumented)
|
|
348
|
+
protected retries: Map<Retry<any>, ResolveReject<any>>;
|
|
349
|
+
// (undocumented)
|
|
350
|
+
protected retryIfLoading<T>(retry: Retry<T>, defaultResponse: T): Promise<T>;
|
|
351
|
+
// (undocumented)
|
|
352
|
+
protected selectedTone: ToneSelection;
|
|
353
|
+
// (undocumented)
|
|
354
|
+
setSelectedTone(tone: ToneSelection): void;
|
|
355
|
+
// (undocumented)
|
|
356
|
+
protected siteEmojiResource?: SiteEmojiResource;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// @public (undocumented)
|
|
360
|
+
export interface EmojiResourceConfig {
|
|
361
|
+
allowUpload?: boolean;
|
|
362
|
+
currentUser?: User;
|
|
363
|
+
optimisticImageApi?: OptimisticImageApiLoaderConfig;
|
|
364
|
+
providers: ServiceConfig[];
|
|
365
|
+
recordConfig?: ServiceConfig;
|
|
366
|
+
singleEmojiApi?: SingleEmojiApiLoaderConfig;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
// @public (undocumented)
|
|
370
|
+
export interface EmojiResponse {
|
|
371
|
+
// (undocumented)
|
|
372
|
+
emojis: EmojiDescriptionWithVariations[];
|
|
373
|
+
// (undocumented)
|
|
374
|
+
mediaApiToken?: MediaApiToken;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
// @public (undocumented)
|
|
378
|
+
export interface EmojiSearchResult {
|
|
379
|
+
// (undocumented)
|
|
380
|
+
emojis: EmojiDescription[];
|
|
381
|
+
// (undocumented)
|
|
382
|
+
query?: string;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// @public (undocumented)
|
|
386
|
+
export interface EmojiServiceDescription {
|
|
387
|
+
// (undocumented)
|
|
388
|
+
altRepresentations?: AltRepresentations;
|
|
389
|
+
// (undocumented)
|
|
390
|
+
ascii?: string[];
|
|
391
|
+
// (undocumented)
|
|
392
|
+
category: string;
|
|
393
|
+
// (undocumented)
|
|
394
|
+
createdDate?: string;
|
|
395
|
+
// (undocumented)
|
|
396
|
+
creatorUserId?: string;
|
|
397
|
+
// (undocumented)
|
|
398
|
+
fallback?: string;
|
|
399
|
+
// (undocumented)
|
|
400
|
+
id: string;
|
|
401
|
+
// (undocumented)
|
|
402
|
+
name?: string;
|
|
403
|
+
// (undocumented)
|
|
404
|
+
order?: number;
|
|
405
|
+
// (undocumented)
|
|
406
|
+
representation: EmojiServiceRepresentation;
|
|
407
|
+
// (undocumented)
|
|
408
|
+
searchable: boolean;
|
|
409
|
+
// (undocumented)
|
|
410
|
+
shortName: string;
|
|
411
|
+
// (undocumented)
|
|
412
|
+
type: string;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// @public (undocumented)
|
|
416
|
+
export interface EmojiServiceDescriptionWithVariations extends EmojiServiceDescription {
|
|
417
|
+
// (undocumented)
|
|
418
|
+
skinVariations?: EmojiServiceDescription[];
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
// @public (undocumented)
|
|
422
|
+
export type EmojiServiceRepresentation = ImageRepresentation | SpriteServiceRepresentation;
|
|
423
|
+
|
|
424
|
+
// @public
|
|
425
|
+
export interface EmojiServiceResponse {
|
|
426
|
+
// (undocumented)
|
|
427
|
+
emojis: EmojiServiceDescriptionWithVariations[];
|
|
428
|
+
// (undocumented)
|
|
429
|
+
meta?: EmojiMeta;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// @public (undocumented)
|
|
433
|
+
export const emojiSprite = "emoji-common-emoji-sprite";
|
|
434
|
+
|
|
435
|
+
// @public (undocumented)
|
|
436
|
+
export class EmojiTypeAhead extends LoadingEmojiComponent<Props_7, State> {
|
|
437
|
+
constructor(props: Props_7);
|
|
438
|
+
// (undocumented)
|
|
439
|
+
asyncLoadComponent(): void;
|
|
440
|
+
// (undocumented)
|
|
441
|
+
static AsyncLoadedComponent?: ComponentClass<Props_8>;
|
|
442
|
+
// (undocumented)
|
|
443
|
+
chooseCurrentSelection: () => void;
|
|
444
|
+
// (undocumented)
|
|
445
|
+
count: () => number;
|
|
446
|
+
// (undocumented)
|
|
447
|
+
renderLoaded(loadedEmojiProvider: EmojiProvider, EmojiTypeAheadComponent: ComponentClass<Props_8>): JSX.Element | null;
|
|
448
|
+
// (undocumented)
|
|
449
|
+
selectNext: () => void;
|
|
450
|
+
// (undocumented)
|
|
451
|
+
selectPrevious: () => void;
|
|
452
|
+
// (undocumented)
|
|
453
|
+
state: {
|
|
454
|
+
asyncLoadedComponent: React_2.ComponentClass<Props_8, any> | undefined;
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// @public (undocumented)
|
|
459
|
+
interface EmojiTypeAheadBaseProps {
|
|
460
|
+
// (undocumented)
|
|
461
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
462
|
+
listLimit?: number;
|
|
463
|
+
onClose?: OnLifecycle;
|
|
464
|
+
onOpen?: OnLifecycle;
|
|
465
|
+
onSelection?: OnEmojiEvent;
|
|
466
|
+
query?: string;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// @public (undocumented)
|
|
470
|
+
export class EmojiTypeAheadItem extends PureComponent<Props_11, {}> {
|
|
471
|
+
// (undocumented)
|
|
472
|
+
onEmojiMenuItemMouseMove: React_2.MouseEventHandler<HTMLDivElement>;
|
|
473
|
+
// (undocumented)
|
|
474
|
+
onEmojiSelected: React_2.MouseEventHandler<HTMLDivElement>;
|
|
475
|
+
// (undocumented)
|
|
476
|
+
render(): jsx.JSX.Element;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
// @public (undocumented)
|
|
480
|
+
export interface EmojiUpload {
|
|
481
|
+
// (undocumented)
|
|
482
|
+
dataURL: string;
|
|
483
|
+
// (undocumented)
|
|
484
|
+
filename: string;
|
|
485
|
+
// (undocumented)
|
|
486
|
+
height: number;
|
|
487
|
+
// (undocumented)
|
|
488
|
+
name: string;
|
|
489
|
+
// (undocumented)
|
|
490
|
+
shortName: string;
|
|
491
|
+
// (undocumented)
|
|
492
|
+
width: number;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
// @public (undocumented)
|
|
496
|
+
export type EmojiUploader = EmojiUploaderInternal;
|
|
497
|
+
|
|
498
|
+
// @public (undocumented)
|
|
499
|
+
export const EmojiUploader: React_2.ForwardRefExoticComponent<Omit<Props_5, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any>>;
|
|
500
|
+
|
|
501
|
+
// @public (undocumented)
|
|
502
|
+
class EmojiUploaderInternal extends LoadingEmojiComponent<Props_5, State> {
|
|
503
|
+
constructor(props: Props_5);
|
|
504
|
+
// (undocumented)
|
|
505
|
+
asyncLoadComponent(): void;
|
|
506
|
+
// (undocumented)
|
|
507
|
+
static AsyncLoadedComponent?: FC<Props_6>;
|
|
508
|
+
// (undocumented)
|
|
509
|
+
renderLoaded(loadedEmojiProvider: EmojiProvider, EmojiUploadComponent: FC<Props_6>): JSX.Element;
|
|
510
|
+
// (undocumented)
|
|
511
|
+
state: {
|
|
512
|
+
asyncLoadedComponent: React_2.FC<Props_6> | undefined;
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// @public
|
|
517
|
+
export interface EmojiVariationDescription extends EmojiDescription {
|
|
518
|
+
baseId: string;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
// @public (undocumented)
|
|
522
|
+
interface GetEmojiProviderOptions {
|
|
523
|
+
fetchAtStart?: boolean;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
// @public (undocumented)
|
|
527
|
+
export interface ImageRepresentation extends EmojiImageRepresentation {
|
|
528
|
+
// (undocumented)
|
|
529
|
+
imagePath: string;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
// @public (undocumented)
|
|
533
|
+
interface LastQuery {
|
|
534
|
+
// (undocumented)
|
|
535
|
+
options?: SearchOptions;
|
|
536
|
+
// (undocumented)
|
|
537
|
+
query?: string;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
// @public
|
|
541
|
+
abstract class LoadingEmojiComponent<P extends Props_4, S extends State> extends Component<P, S> {
|
|
542
|
+
constructor(props: P, state: S);
|
|
543
|
+
// (undocumented)
|
|
544
|
+
abstract asyncLoadComponent(): void;
|
|
545
|
+
// (undocumented)
|
|
546
|
+
componentDidMount(): void;
|
|
547
|
+
// (undocumented)
|
|
548
|
+
componentWillUnmount(): void;
|
|
549
|
+
// (undocumented)
|
|
550
|
+
render(): JSX.Element | null;
|
|
551
|
+
// (undocumented)
|
|
552
|
+
abstract renderLoaded(loadedEmojiProvider: EmojiProvider, asyncLoadedComponent: ComponentType<any>): JSX.Element | null;
|
|
553
|
+
// (undocumented)
|
|
554
|
+
renderLoading(): JSX.Element | null;
|
|
555
|
+
// (undocumented)
|
|
556
|
+
protected setAsyncState(asyncLoadedComponent: ComponentType<any>): void;
|
|
557
|
+
// (undocumented)
|
|
558
|
+
UNSAFE_componentWillReceiveProps(nextProps: Readonly<P>): void;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
// @public (undocumented)
|
|
562
|
+
export interface MediaApiRepresentation extends EmojiImageRepresentation {
|
|
563
|
+
// (undocumented)
|
|
564
|
+
mediaPath: string;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
// @public
|
|
568
|
+
export interface MediaApiToken {
|
|
569
|
+
// (undocumented)
|
|
570
|
+
clientId: string;
|
|
571
|
+
// (undocumented)
|
|
572
|
+
collectionName: string;
|
|
573
|
+
// (undocumented)
|
|
574
|
+
expiresAt: number;
|
|
575
|
+
// (undocumented)
|
|
576
|
+
jwt: string;
|
|
577
|
+
// (undocumented)
|
|
578
|
+
url: string;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
// @public (undocumented)
|
|
582
|
+
export type Message = React.ReactNode | string;
|
|
583
|
+
|
|
584
|
+
// @public (undocumented)
|
|
585
|
+
const messages: {
|
|
586
|
+
deleteEmojiTooltip: {
|
|
587
|
+
id: string;
|
|
588
|
+
defaultMessage: string;
|
|
589
|
+
description: string;
|
|
590
|
+
};
|
|
591
|
+
deleteEmojiTooltipForScreenreader: {
|
|
592
|
+
id: string;
|
|
593
|
+
defaultMessage: string;
|
|
594
|
+
description: string;
|
|
595
|
+
};
|
|
596
|
+
deleteEmojiTitle: {
|
|
597
|
+
id: string;
|
|
598
|
+
defaultMessage: string;
|
|
599
|
+
description: string;
|
|
600
|
+
};
|
|
601
|
+
deleteEmojiDescription: {
|
|
602
|
+
id: string;
|
|
603
|
+
defaultMessage: string;
|
|
604
|
+
description: string;
|
|
605
|
+
};
|
|
606
|
+
deleteEmojiLabel: {
|
|
607
|
+
id: string;
|
|
608
|
+
defaultMessage: string;
|
|
609
|
+
description: string;
|
|
610
|
+
};
|
|
611
|
+
addCustomEmojiLabel: {
|
|
612
|
+
id: string;
|
|
613
|
+
defaultMessage: string;
|
|
614
|
+
description: string;
|
|
615
|
+
};
|
|
616
|
+
emojiPlaceholder: {
|
|
617
|
+
id: string;
|
|
618
|
+
defaultMessage: string;
|
|
619
|
+
description: string;
|
|
620
|
+
};
|
|
621
|
+
emojiNameAriaLabel: {
|
|
622
|
+
id: string;
|
|
623
|
+
defaultMessage: string;
|
|
624
|
+
description: string;
|
|
625
|
+
};
|
|
626
|
+
emojiChooseFileTitle: {
|
|
627
|
+
id: string;
|
|
628
|
+
defaultMessage: string;
|
|
629
|
+
description: string;
|
|
630
|
+
};
|
|
631
|
+
emojiChooseFileScreenReaderDescription: {
|
|
632
|
+
id: string;
|
|
633
|
+
defaultMessage: string;
|
|
634
|
+
description: string;
|
|
635
|
+
};
|
|
636
|
+
emojiSelectSkinToneButtonAriaLabelText: {
|
|
637
|
+
id: string;
|
|
638
|
+
defaultMessage: string;
|
|
639
|
+
description: string;
|
|
640
|
+
};
|
|
641
|
+
emojiSelectSkinToneListAriaLabelText: {
|
|
642
|
+
id: string;
|
|
643
|
+
defaultMessage: string;
|
|
644
|
+
description: string;
|
|
645
|
+
};
|
|
646
|
+
emojiImageRequirements: {
|
|
647
|
+
id: string;
|
|
648
|
+
defaultMessage: string;
|
|
649
|
+
description: string;
|
|
650
|
+
};
|
|
651
|
+
emojiPreviewTitle: {
|
|
652
|
+
id: string;
|
|
653
|
+
defaultMessage: string;
|
|
654
|
+
description: string;
|
|
655
|
+
};
|
|
656
|
+
emojiPreview: {
|
|
657
|
+
id: string;
|
|
658
|
+
defaultMessage: string;
|
|
659
|
+
description: string;
|
|
660
|
+
};
|
|
661
|
+
addEmojiLabel: {
|
|
662
|
+
id: string;
|
|
663
|
+
defaultMessage: string;
|
|
664
|
+
description: string;
|
|
665
|
+
};
|
|
666
|
+
retryLabel: {
|
|
667
|
+
id: string;
|
|
668
|
+
defaultMessage: string;
|
|
669
|
+
description: string;
|
|
670
|
+
};
|
|
671
|
+
cancelLabel: {
|
|
672
|
+
id: string;
|
|
673
|
+
defaultMessage: string;
|
|
674
|
+
description: string;
|
|
675
|
+
};
|
|
676
|
+
searchPlaceholder: {
|
|
677
|
+
id: string;
|
|
678
|
+
defaultMessage: string;
|
|
679
|
+
description: string;
|
|
680
|
+
};
|
|
681
|
+
searchLabel: {
|
|
682
|
+
id: string;
|
|
683
|
+
defaultMessage: string;
|
|
684
|
+
description: string;
|
|
685
|
+
};
|
|
686
|
+
searchResultsStatus: {
|
|
687
|
+
id: string;
|
|
688
|
+
defaultMessage: string;
|
|
689
|
+
description: string;
|
|
690
|
+
};
|
|
691
|
+
searchResultsStatusSeeAll: {
|
|
692
|
+
id: string;
|
|
693
|
+
defaultMessage: string;
|
|
694
|
+
description: string;
|
|
695
|
+
};
|
|
696
|
+
categoriesSelectorLabel: {
|
|
697
|
+
id: string;
|
|
698
|
+
defaultMessage: string;
|
|
699
|
+
description: string;
|
|
700
|
+
};
|
|
701
|
+
categoriesSearchResults: {
|
|
702
|
+
id: string;
|
|
703
|
+
defaultMessage: string;
|
|
704
|
+
description: string;
|
|
705
|
+
};
|
|
706
|
+
frequentCategory: {
|
|
707
|
+
id: string;
|
|
708
|
+
defaultMessage: string;
|
|
709
|
+
description: string;
|
|
710
|
+
};
|
|
711
|
+
peopleCategory: {
|
|
712
|
+
id: string;
|
|
713
|
+
defaultMessage: string;
|
|
714
|
+
description: string;
|
|
715
|
+
};
|
|
716
|
+
natureCategory: {
|
|
717
|
+
id: string;
|
|
718
|
+
defaultMessage: string;
|
|
719
|
+
description: string;
|
|
720
|
+
};
|
|
721
|
+
foodsCategory: {
|
|
722
|
+
id: string;
|
|
723
|
+
defaultMessage: string;
|
|
724
|
+
description: string;
|
|
725
|
+
};
|
|
726
|
+
activityCategory: {
|
|
727
|
+
id: string;
|
|
728
|
+
defaultMessage: string;
|
|
729
|
+
description: string;
|
|
730
|
+
};
|
|
731
|
+
placesCategory: {
|
|
732
|
+
id: string;
|
|
733
|
+
defaultMessage: string;
|
|
734
|
+
description: string;
|
|
735
|
+
};
|
|
736
|
+
objectsCategory: {
|
|
737
|
+
id: string;
|
|
738
|
+
defaultMessage: string;
|
|
739
|
+
description: string;
|
|
740
|
+
};
|
|
741
|
+
symbolsCategory: {
|
|
742
|
+
id: string;
|
|
743
|
+
defaultMessage: string;
|
|
744
|
+
description: string;
|
|
745
|
+
};
|
|
746
|
+
flagsCategory: {
|
|
747
|
+
id: string;
|
|
748
|
+
defaultMessage: string;
|
|
749
|
+
description: string;
|
|
750
|
+
};
|
|
751
|
+
productivityCategory: {
|
|
752
|
+
id: string;
|
|
753
|
+
defaultMessage: string;
|
|
754
|
+
description: string;
|
|
755
|
+
};
|
|
756
|
+
userUploadsCustomCategory: {
|
|
757
|
+
id: string;
|
|
758
|
+
defaultMessage: string;
|
|
759
|
+
description: string;
|
|
760
|
+
};
|
|
761
|
+
allUploadsCustomCategory: {
|
|
762
|
+
id: string;
|
|
763
|
+
defaultMessage: string;
|
|
764
|
+
description: string;
|
|
765
|
+
};
|
|
766
|
+
deleteEmojiFailed: {
|
|
767
|
+
id: string;
|
|
768
|
+
defaultMessage: string;
|
|
769
|
+
description: string;
|
|
770
|
+
};
|
|
771
|
+
emojiInvalidImage: {
|
|
772
|
+
id: string;
|
|
773
|
+
defaultMessage: string;
|
|
774
|
+
description: string;
|
|
775
|
+
};
|
|
776
|
+
emojiUploadFailed: {
|
|
777
|
+
id: string;
|
|
778
|
+
defaultMessage: string;
|
|
779
|
+
description: string;
|
|
780
|
+
};
|
|
781
|
+
emojiImageTooBig: {
|
|
782
|
+
id: string;
|
|
783
|
+
defaultMessage: string;
|
|
784
|
+
description: string;
|
|
785
|
+
};
|
|
786
|
+
emojiPickerTitle: {
|
|
787
|
+
id: string;
|
|
788
|
+
defaultMessage: string;
|
|
789
|
+
description: string;
|
|
790
|
+
};
|
|
791
|
+
emojiPickerListPanel: {
|
|
792
|
+
id: string;
|
|
793
|
+
defaultMessage: string;
|
|
794
|
+
description: string;
|
|
795
|
+
};
|
|
796
|
+
emojiPickerGrid: {
|
|
797
|
+
id: string;
|
|
798
|
+
defaultMessage: string;
|
|
799
|
+
description: string;
|
|
800
|
+
};
|
|
801
|
+
emojiButtonRoleDescription: {
|
|
802
|
+
id: string;
|
|
803
|
+
defaultMessage: string;
|
|
804
|
+
description: string;
|
|
805
|
+
};
|
|
806
|
+
error: {
|
|
807
|
+
id: string;
|
|
808
|
+
defaultMessage: string;
|
|
809
|
+
description: string;
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
// @public (undocumented)
|
|
814
|
+
export interface OnCategory {
|
|
815
|
+
// (undocumented)
|
|
816
|
+
(categoryId: CategoryId | null): void;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
// @public (undocumented)
|
|
820
|
+
export interface OnEmojiEvent<T = any> {
|
|
821
|
+
// (undocumented)
|
|
822
|
+
(emojiId: EmojiId, emoji: OptionalEmojiDescription, event?: SyntheticEvent<T>): void;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
// @public (undocumented)
|
|
826
|
+
interface OnLifecycle {
|
|
827
|
+
// (undocumented)
|
|
828
|
+
(): void;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
// @public (undocumented)
|
|
832
|
+
export interface OnToneSelected {
|
|
833
|
+
// (undocumented)
|
|
834
|
+
(variation: ToneValueType): void;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
// @public (undocumented)
|
|
838
|
+
export interface OnToneSelectorCancelled {
|
|
839
|
+
// (undocumented)
|
|
840
|
+
(): void;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
// @public (undocumented)
|
|
844
|
+
interface OptimisticImageApiLoaderConfig extends Omit<ServiceConfig, 'url'> {
|
|
845
|
+
// (undocumented)
|
|
846
|
+
getUrl: (emojiId: EmojiId) => string;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
// @public (undocumented)
|
|
850
|
+
export type OptionalEmojiDescription = EmojiDescription | undefined;
|
|
851
|
+
|
|
852
|
+
// @public (undocumented)
|
|
853
|
+
export type OptionalEmojiDescriptionWithVariations = EmojiDescriptionWithVariations | undefined;
|
|
854
|
+
|
|
855
|
+
// @public (undocumented)
|
|
856
|
+
export type OptionalUser = User | undefined;
|
|
857
|
+
|
|
858
|
+
// @public (undocumented)
|
|
859
|
+
interface PickerRefHandler {
|
|
860
|
+
// (undocumented)
|
|
861
|
+
(ref: any): any;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
// @public (undocumented)
|
|
865
|
+
export type PickerSize = 'large' | 'medium' | 'small';
|
|
866
|
+
|
|
867
|
+
// @public (undocumented)
|
|
868
|
+
interface Props extends Omit<React_2.HTMLAttributes<HTMLSpanElement>, 'onFocus' | 'onMouseMove'> {
|
|
869
|
+
autoWidth?: boolean;
|
|
870
|
+
className?: string;
|
|
871
|
+
disableLazyLoad?: boolean;
|
|
872
|
+
emoji: EmojiDescription;
|
|
873
|
+
fitToHeight?: number;
|
|
874
|
+
onDelete?: OnEmojiEvent;
|
|
875
|
+
onFocus?: OnEmojiEvent;
|
|
876
|
+
onLoadError?: OnEmojiEvent<HTMLImageElement>;
|
|
877
|
+
onLoadSuccess?: (emoji: EmojiDescription) => void;
|
|
878
|
+
onMouseMove?: OnEmojiEvent;
|
|
879
|
+
onSelected?: OnEmojiEvent;
|
|
880
|
+
selected?: boolean;
|
|
881
|
+
selectOnHover?: boolean;
|
|
882
|
+
shouldBeInteractive?: boolean;
|
|
883
|
+
showDelete?: boolean;
|
|
884
|
+
showTooltip?: boolean;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
// @public (undocumented)
|
|
888
|
+
interface Props_10 extends BaseResourcedEmojiProps {
|
|
889
|
+
emojiProvider: Promise<EmojiProvider>;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
// @public (undocumented)
|
|
893
|
+
interface Props_11 {
|
|
894
|
+
// (undocumented)
|
|
895
|
+
emoji: EmojiDescription;
|
|
896
|
+
// (undocumented)
|
|
897
|
+
emojiProvider?: EmojiProvider;
|
|
898
|
+
// (undocumented)
|
|
899
|
+
onMouseMove: OnEmojiEvent;
|
|
900
|
+
// (undocumented)
|
|
901
|
+
onSelection: OnEmojiEvent;
|
|
902
|
+
// (undocumented)
|
|
903
|
+
selected: boolean;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
// @public (undocumented)
|
|
907
|
+
interface Props_2 {
|
|
908
|
+
// (undocumented)
|
|
909
|
+
loading?: boolean;
|
|
910
|
+
// (undocumented)
|
|
911
|
+
representation?: EmojiImageRepresentation;
|
|
912
|
+
// (undocumented)
|
|
913
|
+
shortName: string;
|
|
914
|
+
// (undocumented)
|
|
915
|
+
showTooltip?: boolean;
|
|
916
|
+
// (undocumented)
|
|
917
|
+
size?: number;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
// @public (undocumented)
|
|
921
|
+
interface Props_3 extends Props_4 {
|
|
922
|
+
hideToneSelector?: boolean;
|
|
923
|
+
onPickerRef?: PickerRefHandler;
|
|
924
|
+
onSelection?: OnEmojiEvent;
|
|
925
|
+
size?: PickerSize;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
// @public (undocumented)
|
|
929
|
+
interface Props_4 {
|
|
930
|
+
emojiProvider: Promise<EmojiProvider>;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
// @public (undocumented)
|
|
934
|
+
interface Props_5 extends Props_4 {
|
|
935
|
+
// (undocumented)
|
|
936
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
// @public (undocumented)
|
|
940
|
+
interface Props_6 {
|
|
941
|
+
// (undocumented)
|
|
942
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
943
|
+
// (undocumented)
|
|
944
|
+
emojiProvider: EmojiProvider;
|
|
945
|
+
// (undocumented)
|
|
946
|
+
onUploaderRef?: UploadRefHandler;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
// @public (undocumented)
|
|
950
|
+
interface Props_7 extends EmojiTypeAheadBaseProps, Props_4 {
|
|
951
|
+
// (undocumented)
|
|
952
|
+
offsetX?: number;
|
|
953
|
+
// (undocumented)
|
|
954
|
+
offsetY?: number;
|
|
955
|
+
// (undocumented)
|
|
956
|
+
position?: RelativePosition;
|
|
957
|
+
target?: HTMLElement | string;
|
|
958
|
+
// (undocumented)
|
|
959
|
+
zIndex?: number | string;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
// @public (undocumented)
|
|
963
|
+
interface Props_8 extends EmojiTypeAheadBaseProps {
|
|
964
|
+
emojiProvider: EmojiProvider;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
// @public (undocumented)
|
|
968
|
+
interface Props_9 extends Props_10 {
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
// @public
|
|
972
|
+
interface QueueOptions {
|
|
973
|
+
maxDuplicates: number;
|
|
974
|
+
minUniqueItems: number;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
// @public (undocumented)
|
|
978
|
+
export const recordSelectionFailedSli: (options?: {
|
|
979
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
980
|
+
}) => (err: Error) => Promise<never>;
|
|
981
|
+
|
|
982
|
+
// @public (undocumented)
|
|
983
|
+
export const recordSelectionSucceededSli: (options?: {
|
|
984
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
985
|
+
}) => () => void;
|
|
986
|
+
|
|
987
|
+
// @public (undocumented)
|
|
988
|
+
export type RelativePosition = 'above' | 'auto' | 'below';
|
|
989
|
+
|
|
990
|
+
// @public (undocumented)
|
|
991
|
+
interface ResolveReject<T> {
|
|
992
|
+
// (undocumented)
|
|
993
|
+
reject(reason?: any): void;
|
|
994
|
+
// (undocumented)
|
|
995
|
+
resolve(result: T): void;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
// @public (undocumented)
|
|
999
|
+
export const ResourcedEmoji: FC<Props_9>;
|
|
1000
|
+
|
|
1001
|
+
// @public (undocumented)
|
|
1002
|
+
interface Retry<T> {
|
|
1003
|
+
// (undocumented)
|
|
1004
|
+
(): Promise<T> | T;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
// @public (undocumented)
|
|
1008
|
+
type SamplingFunc = (rate: number) => boolean;
|
|
1009
|
+
|
|
1010
|
+
// @public (undocumented)
|
|
1011
|
+
export interface SearchOptions {
|
|
1012
|
+
// (undocumented)
|
|
1013
|
+
limit?: number;
|
|
1014
|
+
// (undocumented)
|
|
1015
|
+
skinTone?: number;
|
|
1016
|
+
// (undocumented)
|
|
1017
|
+
sort?: SearchSort;
|
|
1018
|
+
// (undocumented)
|
|
1019
|
+
source?: SearchSourceTypes;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
// @public (undocumented)
|
|
1023
|
+
export enum SearchSort {
|
|
1024
|
+
// (undocumented)
|
|
1025
|
+
Default = 1,
|
|
1026
|
+
// (undocumented)
|
|
1027
|
+
None = 0,
|
|
1028
|
+
// (undocumented)
|
|
1029
|
+
UsageFrequency = 2
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
// @public (undocumented)
|
|
1033
|
+
enum SearchSourceTypes {
|
|
1034
|
+
// (undocumented)
|
|
1035
|
+
PICKER = "picker",
|
|
1036
|
+
// (undocumented)
|
|
1037
|
+
TYPEAHEAD = "typeahead"
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
// @public (undocumented)
|
|
1041
|
+
export const selected = "emoji-common-selected";
|
|
1042
|
+
|
|
1043
|
+
// @public (undocumented)
|
|
1044
|
+
export const selectOnHover = "emoji-common-select-on-hover";
|
|
1045
|
+
|
|
1046
|
+
// @public (undocumented)
|
|
1047
|
+
interface SingleEmojiApiLoaderConfig extends Omit<ServiceConfig, 'url'> {
|
|
1048
|
+
// (undocumented)
|
|
1049
|
+
getUrl: (emojiId: EmojiId) => string;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
// @public (undocumented)
|
|
1053
|
+
class SiteEmojiResource {
|
|
1054
|
+
constructor(siteServiceConfig: ServiceConfig, mediaApiToken: MediaApiToken);
|
|
1055
|
+
deleteEmoji(emoji: EmojiDescription): Promise<boolean>;
|
|
1056
|
+
// (undocumented)
|
|
1057
|
+
findEmoji(emojiId: EmojiId): Promise<OptionalEmojiDescription>;
|
|
1058
|
+
generateTokenisedMediaURL(emoji: EmojiDescription): Promise<string>;
|
|
1059
|
+
hasUploadToken(): Promise<boolean>;
|
|
1060
|
+
loadMediaEmoji(emoji: EmojiDescription, useAlt?: boolean): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
|
|
1061
|
+
// (undocumented)
|
|
1062
|
+
optimisticRendering(emoji: EmojiDescription, useAlt?: boolean): Promise<boolean> | boolean;
|
|
1063
|
+
// (undocumented)
|
|
1064
|
+
prepareForUpload(): void;
|
|
1065
|
+
// (undocumented)
|
|
1066
|
+
protected tokenManager: TokenManager;
|
|
1067
|
+
// (undocumented)
|
|
1068
|
+
uploadEmoji(upload: EmojiUpload, retry?: boolean, progressCallback?: EmojiProgessCallback): Promise<EmojiDescription>;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
// @public (undocumented)
|
|
1072
|
+
export interface SpriteImageRepresentation extends EmojiImageRepresentation {
|
|
1073
|
+
// (undocumented)
|
|
1074
|
+
x: number;
|
|
1075
|
+
// (undocumented)
|
|
1076
|
+
xIndex: number;
|
|
1077
|
+
// (undocumented)
|
|
1078
|
+
y: number;
|
|
1079
|
+
// (undocumented)
|
|
1080
|
+
yIndex: number;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
// @public
|
|
1084
|
+
export interface SpriteRepresentation extends SpriteImageRepresentation {
|
|
1085
|
+
// (undocumented)
|
|
1086
|
+
sprite: SpriteSheet;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
// @public
|
|
1090
|
+
export interface SpriteServiceRepresentation extends SpriteImageRepresentation {
|
|
1091
|
+
spriteRef: string;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
// @public (undocumented)
|
|
1095
|
+
export interface SpriteSheet {
|
|
1096
|
+
// (undocumented)
|
|
1097
|
+
column: number;
|
|
1098
|
+
// (undocumented)
|
|
1099
|
+
height: number;
|
|
1100
|
+
// (undocumented)
|
|
1101
|
+
row: number;
|
|
1102
|
+
// (undocumented)
|
|
1103
|
+
url: string;
|
|
1104
|
+
// (undocumented)
|
|
1105
|
+
width: number;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
// @public (undocumented)
|
|
1109
|
+
export interface SpriteSheets {
|
|
1110
|
+
// (undocumented)
|
|
1111
|
+
[index: string]: SpriteSheet;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
// @public (undocumented)
|
|
1115
|
+
interface State {
|
|
1116
|
+
// (undocumented)
|
|
1117
|
+
asyncLoadedComponent?: ComponentType<any>;
|
|
1118
|
+
// (undocumented)
|
|
1119
|
+
loadedEmojiProvider?: EmojiProvider;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
// @public (undocumented)
|
|
1123
|
+
export interface Styles {
|
|
1124
|
+
// (undocumented)
|
|
1125
|
+
[index: string]: any;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
// @public (undocumented)
|
|
1129
|
+
export const toEmojiId: (emoji: EmojiDescription) => EmojiId;
|
|
1130
|
+
|
|
1131
|
+
// @public (undocumented)
|
|
1132
|
+
class TokenManager {
|
|
1133
|
+
constructor(siteServiceConfig: ServiceConfig);
|
|
1134
|
+
// (undocumented)
|
|
1135
|
+
addToken(type: TokenType, mediaApiToken: MediaApiToken): void;
|
|
1136
|
+
// (undocumented)
|
|
1137
|
+
fetchNewToken(type: TokenType): Promise<MediaApiToken>;
|
|
1138
|
+
// (undocumented)
|
|
1139
|
+
getToken(type: TokenType, forceRefresh?: boolean): Promise<MediaApiToken>;
|
|
1140
|
+
// (undocumented)
|
|
1141
|
+
isValidToken(mediaApiToken: MediaApiToken): boolean;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
// @public (undocumented)
|
|
1145
|
+
type TokenType = 'read' | 'upload';
|
|
1146
|
+
|
|
1147
|
+
// @public (undocumented)
|
|
1148
|
+
export type ToneSelection = number | undefined;
|
|
1149
|
+
|
|
1150
|
+
// @public (undocumented)
|
|
1151
|
+
type ToneValueType = number;
|
|
1152
|
+
|
|
1153
|
+
// @public (undocumented)
|
|
1154
|
+
export const toOptionalEmojiId: (emoji: OptionalEmojiDescription) => EmojiId | undefined;
|
|
1155
|
+
|
|
1156
|
+
// @public (undocumented)
|
|
1157
|
+
export enum UfoComponentName {
|
|
1158
|
+
// (undocumented)
|
|
1159
|
+
EMOJI = "emoji",
|
|
1160
|
+
// (undocumented)
|
|
1161
|
+
EMOJI_PICKER = "emoji-picker",
|
|
1162
|
+
// (undocumented)
|
|
1163
|
+
EMOJI_PROVIDER = "emoji-provider"
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
// @public (undocumented)
|
|
1167
|
+
export enum UfoExperienceName {
|
|
1168
|
+
// (undocumented)
|
|
1169
|
+
EMOJI_PICKER_OPENED = "emoji-picker-opened",
|
|
1170
|
+
// (undocumented)
|
|
1171
|
+
EMOJI_RENDERED = "emoji-rendered",
|
|
1172
|
+
// (undocumented)
|
|
1173
|
+
EMOJI_RESOURCE_FETCHED = "emoji-resource-fetched",
|
|
1174
|
+
// (undocumented)
|
|
1175
|
+
EMOJI_SEARCHED = "emoji-searched",
|
|
1176
|
+
// (undocumented)
|
|
1177
|
+
EMOJI_SELECTION_RECORDED = "emoji-selection-recorded",
|
|
1178
|
+
// (undocumented)
|
|
1179
|
+
EMOJI_UPLOADED = "emoji-uploaded"
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
// @public (undocumented)
|
|
1183
|
+
export const ufoExperiences: {
|
|
1184
|
+
'emoji-rendered': ConcurrentExperience;
|
|
1185
|
+
'emoji-resource-fetched': ConcurrentExperience;
|
|
1186
|
+
'emoji-picker-opened': UFOExperience;
|
|
1187
|
+
'emoji-selection-recorded': UFOExperience;
|
|
1188
|
+
'emoji-uploaded': UFOExperience;
|
|
1189
|
+
'emoji-searched': UFOExperience;
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
// @public (undocumented)
|
|
1193
|
+
export interface UploadingEmojiProvider extends EmojiProvider {
|
|
1194
|
+
isUploadSupported(): Promise<boolean>;
|
|
1195
|
+
prepareForUpload(): Promise<void>;
|
|
1196
|
+
uploadCustomEmoji(upload: EmojiUpload, retry?: boolean): Promise<EmojiDescription>;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
// @public (undocumented)
|
|
1200
|
+
interface UploadRefHandler {
|
|
1201
|
+
// (undocumented)
|
|
1202
|
+
(ref: HTMLDivElement): void;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
// @public
|
|
1206
|
+
export class UsageFrequencyTracker {
|
|
1207
|
+
constructor(useStorageIfPossible?: boolean);
|
|
1208
|
+
clear(): void;
|
|
1209
|
+
getOrder(): Array<string>;
|
|
1210
|
+
// (undocumented)
|
|
1211
|
+
protected queue: DuplicateLimitedQueue<string>;
|
|
1212
|
+
recordUsage(emoji: EmojiDescription): void;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
// @public (undocumented)
|
|
1216
|
+
export const useEmoji: () => {
|
|
1217
|
+
emojiProvider: EmojiProvider;
|
|
1218
|
+
isUploadSupported: boolean;
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
// @public @deprecated (undocumented)
|
|
1222
|
+
export const useEmojiContext: () => EmojiContextType;
|
|
1223
|
+
|
|
1224
|
+
// @public (undocumented)
|
|
1225
|
+
export interface User {
|
|
1226
|
+
// (undocumented)
|
|
1227
|
+
id: string;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
// @public
|
|
1231
|
+
export const withSampling: (ufoExperience: UFOExperience) => WithSamplingUFOExperience;
|
|
1232
|
+
|
|
1233
|
+
// @public (undocumented)
|
|
1234
|
+
export interface WithSamplingUFOExperience extends Omit<UFOExperience, 'start'> {
|
|
1235
|
+
// (undocumented)
|
|
1236
|
+
start: (options: {
|
|
1237
|
+
samplingRate: number;
|
|
1238
|
+
samplingFunc?: SamplingFunc;
|
|
1239
|
+
startTime?: number;
|
|
1240
|
+
}) => Promise<void>;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
// (No @packageDocumentation comment for this package)
|
|
1244
|
+
|
|
1245
|
+
```
|