UNPKG

1.38 kBTypeScriptView Raw
1/**
2 * Confluence glyphs ac:name of <ac:emoticon /> map to new emojis
3 * {
4 * [ac:name] : ['emoji-id', 'emoji-shortName', 'emoji-fallback']
5 * ...
6 * }
7 * Glyphs that do not map to Fabric Emoji
8 * will be mapped to Emoji Id '2b50' (:star:) with preserving ac:name as shortName attribute;
9 */
10declare const acNameToEmojiMap: {
11 smile: string[];
12 sad: string[];
13 cheeky: string[];
14 laugh: string[];
15 wink: string[];
16 information: string[];
17 tick: string[];
18 cross: string[];
19 warning: string[];
20 plus: string[];
21 minus: string[];
22 question: string[];
23 'thumbs-up': string[];
24 'thumbs-down': string[];
25 'light-on': string[];
26 'yellow-star': string[];
27 'light-off': string[];
28 'red-star': string[];
29 'green-star': string[];
30 'blue-star': string[];
31 heart: string[];
32 'broken-heart': string[];
33};
34export declare type NameToEmoji = keyof typeof acNameToEmojiMap;
35export declare function acNameToEmoji(acName: NameToEmoji): {
36 id: string;
37 shortName: string;
38 text: string;
39};
40export declare function emojiIdToAcName(emojiId: string): never;
41export declare function acShortcutToEmoji(hipchatEmoticonShortName: string): {
42 id: string;
43 shortName: string;
44 text: string;
45};
46export declare function getEmojiAcName({ id, shortName, }: {
47 id: string;
48 shortName: string;
49}): string;
50export {};