@tixyel/streamelements 6.4.9 → 6.5.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 CHANGED
@@ -1622,7 +1622,16 @@ type BttvEmote = {
1622
1622
  height: number;
1623
1623
  };
1624
1624
  };
1625
- type Emote = TwitchEmote | BttvEmote | SeventvEmote;
1625
+ type Emoji = {
1626
+ type: 'emoji';
1627
+ name: string;
1628
+ id: string;
1629
+ gif: boolean;
1630
+ urls: {
1631
+ '1': string;
1632
+ };
1633
+ };
1634
+ type Emote = TwitchEmote | BttvEmote | SeventvEmote | Emoji;
1626
1635
 
1627
1636
  /**
1628
1637
  * EventProvider class for managing event listeners and emitters.
@@ -2345,6 +2354,13 @@ declare namespace Helper {
2345
2354
  * @returns The text with emotes replaced by HTML image tags.
2346
2355
  */
2347
2356
  function replaceEmotesWithHTML(text: string, emotes: Emote[]): string;
2357
+ /**
2358
+ * Checks if the text contains only emotes and whitespace.
2359
+ * @param text - The text to check.
2360
+ * @param emotes - An array of emotes with their positions in the text.
2361
+ * @returns True if the text contains only emotes and whitespace, false otherwise.
2362
+ */
2363
+ function hasOnlyEmotes(text: string, emotes: Emote[]): boolean;
2348
2364
  /**
2349
2365
  * Replaces YouTube emotes in the text with corresponding HTML image tags.
2350
2366
  * @param text - The text containing YouTube emotes.
@@ -2996,4 +3012,4 @@ declare global {
2996
3012
  }
2997
3013
 
2998
3014
  export { Alejo, Button, Command, EventProvider, StreamElements, StreamElementsEvents, Twitch, TwitchEvents, YoutubeEvents, main as default, useComfyJs, useLogger, useQueue, useStorage };
2999
- export type { BttvEmote, ClientEvents$1 as ClientEvents, Emote, Provider$1 as Provider, SeventvEmote, TwitchEmote };
3015
+ export type { BttvEmote, ClientEvents$1 as ClientEvents, Emoji, Emote, Provider$1 as Provider, SeventvEmote, TwitchEmote };