evotars 0.0.18 → 0.0.21

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
@@ -41,6 +41,10 @@ declare type AssetsOptions = {
41
41
  weight: string;
42
42
  };
43
43
 
44
+ export declare type BanEntity = {
45
+ userId: string;
46
+ };
47
+
44
48
  declare type Collider = {
45
49
  x: number;
46
50
  y: number;
@@ -121,7 +125,8 @@ declare class Evotar {
121
125
  jumpHit(): void;
122
126
  update(): void;
123
127
  isOnGround(y: number): boolean;
124
- addMessage(message: string): void;
128
+ addMessage(message: string, id?: string): void;
129
+ deleteMessage(id: string): void;
125
130
  spitEmotes(emotes: string[]): Promise<void>;
126
131
  setAnimationState(state: EvotarSpriteTags, force?: boolean): Promise<void>;
127
132
  }
@@ -163,6 +168,8 @@ export declare class Evotars {
163
168
  processAction: (data: UserActionEntity) => Promise<void>;
164
169
  processChatters: (data: TwitchChatterEntity[]) => Promise<void>;
165
170
  processRaid: (data: RaidEntity) => Promise<void>;
171
+ processMessageDelete: (data: MessageDeleteEntity) => void;
172
+ processBan: (data: BanEntity) => void;
166
173
  get manager(): {
167
174
  viewers: Record<string, Evotar | undefined>;
168
175
  viewerArray: string[];
@@ -190,6 +197,8 @@ export declare class Evotars {
190
197
  prepareEvotarProps(name: string, color?: string | undefined, sprite?: string | undefined): EvotarProps;
191
198
  processAction(action: UserActionEntity): Promise<void>;
192
199
  processMessage(data: MessageEntity): Promise<void>;
200
+ processMessageDelete(data: MessageDeleteEntity): void;
201
+ processBan(data: BanEntity): void;
193
202
  resurrect(evotar: Evotar): void;
194
203
  kill(evotar: Evotar): void;
195
204
  addTombStone(object: TombStone): void;
@@ -295,7 +304,12 @@ export declare type JumpUserActionEntity = {
295
304
  };
296
305
  } & UserActionEntity;
297
306
 
307
+ export declare type MessageDeleteEntity = {
308
+ messageId: string;
309
+ };
310
+
298
311
  export declare type MessageEntity = {
312
+ id?: string;
299
313
  userId: string;
300
314
  message: string;
301
315
  emotes: string[];
@@ -1,7 +1,7 @@
1
- import { E as b, U as pt, T as pe, O as q, M as U, N as Fe, c as Me, w as L, j as R, P as gt, t as Re, K as k, L as H, b as Q, B as D, I, Q as mt, V as xt, a as _t, W as re, X as z, R as V, Y as bt, Z as M, _ as E, $ as yt, q as B, a0 as Tt, D as $, a1 as wt, a2 as Z, a3 as vt, m as St, a4 as Ct, a5 as se, n as ge, e as P, a6 as Bt } from "./index-CIFPnF4S.js";
2
- import { U as Y, T as A, R as ne, S as Ae, i as ae, b as ke, c as Ue, j as Ge, e as Pt, r as ze, o as Ft, n as He, a as Mt, g as Rt, k as At, m as kt, B as Ie } from "./colorToUniform-BEK5qDau.js";
3
- import { C as W } from "./CanvasPool-l34IksYw.js";
4
- import { g as Ut } from "./getBatchSamplersUniformGroup-DfRszIW4.js";
1
+ import { E as b, U as pt, T as pe, O as q, M as U, N as Fe, c as Me, w as L, j as R, P as gt, t as Re, K as k, L as H, b as Q, B as D, I, Q as mt, V as xt, a as _t, W as re, X as z, R as V, Y as bt, Z as M, _ as E, $ as yt, q as B, a0 as Tt, D as $, a1 as wt, a2 as Z, a3 as vt, m as St, a4 as Ct, a5 as se, n as ge, e as P, a6 as Bt } from "./index-BmYjCsnc.js";
2
+ import { U as Y, T as A, R as ne, S as Ae, i as ae, b as ke, c as Ue, j as Ge, e as Pt, r as ze, o as Ft, n as He, a as Mt, g as Rt, k as At, m as kt, B as Ie } from "./colorToUniform-qD7JB3lF.js";
3
+ import { C as W } from "./CanvasPool-BgU_IB25.js";
4
+ import { g as Ut } from "./getBatchSamplersUniformGroup-OP9yCw0D.js";
5
5
  class We {
6
6
  /**
7
7
  * Initialize the plugin with scope of application instance
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.18",
2
+ "version": "0.0.21",
3
3
  "name": "evotars",
4
4
  "description": "Show animated characters on stream",
5
5
  "author": "Mikhail Morozov",
@@ -13,12 +13,6 @@
13
13
  "avatars",
14
14
  "chatters"
15
15
  ],
16
- "scripts": {
17
- "dev": "vite",
18
- "build": "tsc && vite build",
19
- "preview": "vite preview",
20
- "lint": "tsc --noEmit"
21
- },
22
16
  "files": [
23
17
  "dist",
24
18
  "LICENSE",
@@ -52,5 +46,10 @@
52
46
  "pixi.js": "^8.1.5",
53
47
  "tinycolor2": "^1.6.0"
54
48
  },
55
- "packageManager": "pnpm@10.9.0+sha512.0486e394640d3c1fb3c9d43d49cf92879ff74f8516959c235308f5a8f62e2e19528a65cdc2a3058f587cde71eba3d5b56327c8c33a97e4c4051ca48a10ca2d5f"
56
- }
49
+ "scripts": {
50
+ "dev": "vite",
51
+ "build": "tsc && vite build",
52
+ "preview": "vite preview",
53
+ "lint": "tsc --noEmit"
54
+ }
55
+ }