@tixyel/streamelements 3.6.0 → 3.7.0
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/dist/index.d.ts +34 -2
- package/dist/index.es.js +390 -336
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -224,6 +224,25 @@ declare function findEmotesInText(text: string, emotes?: Emote[]): Emote[];
|
|
|
224
224
|
* @returns The text with emotes replaced by HTML image tags.
|
|
225
225
|
*/
|
|
226
226
|
declare function replaceEmotesWithHTML(text: string, emotes: Emote[]): string;
|
|
227
|
+
declare function replaceYoutubeEmotesWithHTML(text: string, emotes?: {
|
|
228
|
+
emojiId: string;
|
|
229
|
+
shortcuts: string[];
|
|
230
|
+
searchTerms: string[];
|
|
231
|
+
image: {
|
|
232
|
+
thumbnails: {
|
|
233
|
+
url: string;
|
|
234
|
+
width: number;
|
|
235
|
+
height: number;
|
|
236
|
+
}[];
|
|
237
|
+
accessibility: {
|
|
238
|
+
accessibilityData: {
|
|
239
|
+
label: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
isCustomEmoji: boolean;
|
|
244
|
+
index: number;
|
|
245
|
+
}[]): string;
|
|
227
246
|
type TwitchResult = {
|
|
228
247
|
keys: Twitch.roles[];
|
|
229
248
|
badges: Twitch.badge[];
|
|
@@ -1441,11 +1460,13 @@ declare namespace Alejo {
|
|
|
1441
1460
|
itits = "It/Its"
|
|
1442
1461
|
}
|
|
1443
1462
|
}
|
|
1463
|
+
function list(): Promise<typeof Pronouns.map>;
|
|
1444
1464
|
type user = {
|
|
1445
1465
|
id: string;
|
|
1446
1466
|
login: string;
|
|
1447
|
-
|
|
1467
|
+
pronoun_id: Pronouns.name;
|
|
1448
1468
|
};
|
|
1469
|
+
function get(username: string): Promise<Pronouns.name | undefined>;
|
|
1449
1470
|
}
|
|
1450
1471
|
|
|
1451
1472
|
declare namespace Simulation {
|
|
@@ -1936,8 +1957,17 @@ declare class Client extends EventProvider<ClientEvents> {
|
|
|
1936
1957
|
overlay: StreamElements.Event.onWidgetLoad['overlay'];
|
|
1937
1958
|
};
|
|
1938
1959
|
cache: {
|
|
1960
|
+
/**
|
|
1961
|
+
* Avatar cache duration in minutes.
|
|
1962
|
+
*/
|
|
1939
1963
|
avatar: number;
|
|
1964
|
+
/**
|
|
1965
|
+
* Pronoun cache duration in minutes.
|
|
1966
|
+
*/
|
|
1940
1967
|
pronoun: number;
|
|
1968
|
+
/**
|
|
1969
|
+
* Emote cache duration in minutes.
|
|
1970
|
+
*/
|
|
1941
1971
|
emote: number;
|
|
1942
1972
|
};
|
|
1943
1973
|
on<K extends keyof ClientEvents>(eventName: K, callback: (this: Client, ...args: ClientEvents[K]) => void): this;
|
|
@@ -2067,13 +2097,15 @@ declare class Logger {
|
|
|
2067
2097
|
declare const USE_SE_API: Promise<StreamElements.SE_API>;
|
|
2068
2098
|
declare const logger: Logger;
|
|
2069
2099
|
declare const Tixyel: {
|
|
2100
|
+
readonly Client: typeof Client;
|
|
2070
2101
|
readonly USE_SE_API: Promise<StreamElements.SE_API>;
|
|
2071
2102
|
readonly Simulation: typeof Simulation;
|
|
2072
|
-
readonly Client: typeof Client;
|
|
2073
2103
|
readonly logger: Logger;
|
|
2104
|
+
readonly Alejo: typeof Alejo;
|
|
2074
2105
|
readonly utils: {
|
|
2075
2106
|
readonly findEmotesInText: typeof findEmotesInText;
|
|
2076
2107
|
readonly replaceEmotesWithHTML: typeof replaceEmotesWithHTML;
|
|
2108
|
+
readonly replaceYoutubeEmotesWithHTML: typeof replaceYoutubeEmotesWithHTML;
|
|
2077
2109
|
readonly generateBadges: typeof generateBadges;
|
|
2078
2110
|
};
|
|
2079
2111
|
readonly modules: {
|