@allior/wmake-streamelements-events 2.0.2 → 2.0.3

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.
Files changed (50) hide show
  1. package/package.json +3 -10
  2. package/src/react/hooks/index.ts +0 -3
  3. package/src/react/hooks/use-event-listener.ts +0 -20
  4. package/src/react/hooks/use-on-event-received.ts +0 -108
  5. package/src/react/hooks/use-on-widget-load.ts +0 -15
  6. package/src/react/index.ts +0 -3
  7. package/src/react/types/index.ts +0 -1
  8. package/src/react/types/window-events.ts +0 -6
  9. package/src/root/aggregate.ts +0 -257
  10. package/src/root/classifier.ts +0 -271
  11. package/src/root/commands.ts +0 -39
  12. package/src/root/data/field-value.ts +0 -2
  13. package/src/root/data/index.ts +0 -2
  14. package/src/root/data/widget-load.ts +0 -5
  15. package/src/root/guards/index.ts +0 -1
  16. package/src/root/guards/on-event-received.ts +0 -58
  17. package/src/root/index.ts +0 -11
  18. package/src/root/keys.ts +0 -14
  19. package/src/root/message/index.ts +0 -1
  20. package/src/root/message/twitch/index.ts +0 -2
  21. package/src/root/message/twitch/message.ts +0 -48
  22. package/src/root/message/twitch/user-message-data.ts +0 -112
  23. package/src/root/queue/alert-queue.ts +0 -31
  24. package/src/root/queue/index.ts +0 -2
  25. package/src/root/queue/next-alert-callback.ts +0 -7
  26. package/src/root/sources/alerts.ts +0 -163
  27. package/src/root/sources/index.ts +0 -5
  28. package/src/root/sources/messages.ts +0 -1611
  29. package/src/root/sources/on-widget-load-detail.ts +0 -968
  30. package/src/root/types/index.ts +0 -2
  31. package/src/root/types/on-event-received/base.ts +0 -94
  32. package/src/root/types/on-event-received/cheer.ts +0 -10
  33. package/src/root/types/on-event-received/donation.ts +0 -29
  34. package/src/root/types/on-event-received/follower.ts +0 -9
  35. package/src/root/types/on-event-received/index.ts +0 -58
  36. package/src/root/types/on-event-received/message.ts +0 -13
  37. package/src/root/types/on-event-received/moderation.ts +0 -7
  38. package/src/root/types/on-event-received/other.ts +0 -14
  39. package/src/root/types/on-event-received/raid.ts +0 -10
  40. package/src/root/types/on-event-received/subscriber.ts +0 -77
  41. package/src/root/types/on-widget-load/base.ts +0 -35
  42. package/src/root/types/on-widget-load/index.ts +0 -3
  43. package/src/root/types/on-widget-load/recents.ts +0 -33
  44. package/src/root/types/on-widget-load/session.ts +0 -102
  45. package/src/root/window-event-map.ts +0 -9
  46. package/tsconfig.app.json +0 -31
  47. package/tsconfig.json +0 -8
  48. package/tsconfig.node.json +0 -25
  49. package/vite.config.ts +0 -36
  50. package/vite.iife.config.ts +0 -52
@@ -1,163 +0,0 @@
1
- export const testAlerts = {
2
- follower: {
3
- listener: "follower-latest",
4
- event: {
5
- name: "An1by",
6
- },
7
- },
8
- communityGiftAnonymous: {
9
- listener: "event",
10
- event: {
11
- type: "communityGiftPurchase",
12
- provider: "twitch",
13
- channel: "663b10ba6cd449c4162a2230",
14
- activityGroup: "41a50a915794e4ae7cf5e600fd3445d4",
15
- data: {
16
- amount: 2,
17
- username: "anonymous",
18
- displayName: "AnAnonymousGifter",
19
- tier: "2000",
20
- sender: "Anonymous",
21
- },
22
- _id: "699868d7df734989ec85d393",
23
- activityId: "699868d7df734989ec85d393",
24
- },
25
- },
26
- communityGift: {
27
- listener: "event",
28
- event: {
29
- type: "communityGiftPurchase",
30
- provider: "twitch",
31
- channel: "663b10ba6cd449c4162a2230",
32
- activityGroup: "841592c0bccbf3e1e7de71e1c8f4d9f0",
33
- data: {
34
- amount: 1,
35
- username: "rishamon",
36
- displayName: "rishamon",
37
- tier: "1000",
38
- sender: "rishamon",
39
- },
40
- _id: "699867c7fef23197a6a089f5",
41
- activityId: "699867c7fef23197a6a089f5",
42
- },
43
- },
44
- sub: {
45
- listener: "subscriber-latest",
46
- event: {
47
- name: "An1by",
48
- amount: 1,
49
- },
50
- },
51
- selfSub: {
52
- listener: "event",
53
- event: {
54
- type: "subscriber",
55
- provider: "twitch",
56
- channel: "663b10ba6cd449c4162a2230",
57
- data: {
58
- amount: 1,
59
- username: "rishamon",
60
- displayName: "rishamon",
61
- tier: "1000",
62
- },
63
- _id: "6998676317aed69e62b8f283",
64
- activityId: "6998676317aed69e62b8f283",
65
- },
66
- },
67
- soloSubToSomeone: {
68
- listener: "event",
69
- event: {
70
- type: "subscriber",
71
- provider: "twitch",
72
- channel: "663b10ba6cd449c4162a2230",
73
- data: {
74
- amount: 1,
75
- username: "encry_s",
76
- displayName: "encry_s",
77
- message:
78
- "rishamon gifted a Tier 1 sub to encry_s! This is their first Gift Sub in the channel!",
79
- tier: "1000",
80
- sender: "rishamon",
81
- gifted: true,
82
- },
83
- _id: "699866e82d9cd9a70854baf2",
84
- activityId: "699866e82d9cd9a70854baf2",
85
- },
86
- },
87
- subRenewal: {
88
- listener: "event",
89
- event: {
90
- type: "subscriber",
91
- provider: "twitch",
92
- channel: "663b10ba6cd449c4162a2230",
93
- data: {
94
- amount: 8,
95
- username: "silgestian",
96
- displayName: "SilgeStian",
97
- tier: "1000",
98
- },
99
- _id: "69986dfaf25724ff4162bd1a",
100
- activityId: "69986dfaf25724ff4162bd1a",
101
- },
102
- },
103
- bits: {
104
- listener: "cheer-latest",
105
- event: {
106
- name: "An1by",
107
- amount: 30,
108
- },
109
- },
110
- raid: {
111
- listener: "raid-latest",
112
- event: {
113
- name: "An1by",
114
- amount: 50,
115
- },
116
- },
117
- donationShortText: {
118
- listener: "donation",
119
- event: {
120
- data: {
121
- alert_type: "1",
122
- currency: "RUB",
123
- billing_system: "CARD",
124
- id: 5,
125
- amount_main: 500,
126
- amount: 500,
127
- username: "An1by",
128
- message: "Simple message text",
129
- },
130
- },
131
- },
132
- donationLongText: {
133
- listener: "donation",
134
- event: {
135
- data: {
136
- alert_type: "1",
137
- currency: "RUB",
138
- billing_system: "CARD",
139
- id: 5,
140
- amount_main: 500,
141
- amount: 500,
142
- username: "An1by",
143
- message:
144
- "A plain gray stone lay on the shore, basking in the sun's warmth. A shove broke its peace—a thoughtless toss sent it flying. The stone splashed into water. Ripples spread, yet none noticed. It sank to the bottom, heavy with loneliness. \"Didn't I deserve to stay where I was happy still?\" it wondered.",
145
- },
146
- },
147
- },
148
- donation: {
149
- listener: "donation",
150
- event: {
151
- data: {
152
- alert_type: "1",
153
- currency: "RUB",
154
- billing_system: "CARD",
155
- id: 5,
156
- amount_main: 500,
157
- amount: 500,
158
- username: "An1by",
159
- message: "",
160
- },
161
- },
162
- },
163
- };
@@ -1,5 +0,0 @@
1
- import testOnWidgetLoadDetail from "./on-widget-load-detail.js";
2
-
3
- export * from "./alerts.js";
4
- export * from "./messages.js";
5
- export { testOnWidgetLoadDetail };