@streamlayer/react-ui 1.18.1 → 1.19.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/lib/app/app/Notifications/index.js +1 -1
- package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.js +12 -8
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +42 -14
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.d.ts +12 -0
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.js +40 -20
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.js +8 -4
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.d.ts +4 -0
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.js +27 -0
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.js +21 -19
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +1 -0
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.js +22 -17
- package/lib/app/masters/BetPack/BetPackContent/index.js +88 -62
- package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +1 -0
- package/lib/app/masters/BetPack/BetPackContent/styles.js +8 -7
- package/lib/app/masters/BetPack/index.js +59 -53
- package/lib/app/masters/Features/Gamification/Question.js +3 -3
- package/lib/app/masters/Features/Gamification/Tabs.d.ts +0 -7
- package/lib/app/masters/Features/Gamification/Tabs.js +9 -42
- package/lib/app/masters/Features/Gamification/UserSummary.js +15 -14
- package/lib/app/masters/Features/Gamification/index.d.ts +1 -6
- package/lib/app/masters/Features/Gamification/index.js +37 -76
- package/lib/app/masters/Features/index.d.ts +1 -6
- package/lib/app/masters/Features/index.js +15 -25
- package/lib/app/masters/Header/index.d.ts +3 -0
- package/lib/app/masters/Header/index.js +38 -0
- package/lib/app/masters/Notifications/index.js +1 -1
- package/lib/app/masters/masters.d.ts +1 -0
- package/lib/app/masters/masters.js +75 -92
- package/lib/app/masters/story/index.d.ts +1 -0
- package/lib/app/masters/story/index.js +21 -22
- package/lib/app/masters/styles.d.ts +0 -10
- package/lib/app/masters/styles.js +13 -23
- package/lib/app/masters/useSdkResponsive.js +1 -1
- package/lib/app/masters/useSdkScroll.js +1 -1
- package/lib/app/useClipboardCopy.js +1 -1
- package/lib/app/useSdkResponsive.js +1 -1
- package/lib/app/useSdkScroll.js +1 -1
- package/lib/assets/style.css +1 -1
- package/lib/index-BEm7B1u1.js +72 -0
- package/lib/index-DALxy-8N.js +5437 -0
- package/lib/ui/gamification/user-statistics/index.d.ts +1 -0
- package/lib/ui/gamification/user-statistics/index.js +47 -39
- package/lib/ui/gamification/user-statistics/styles.d.ts +2 -0
- package/lib/ui/gamification/user-statistics/styles.js +34 -24
- package/lib/ui/gamification/vote/feedback/index.d.ts +1 -0
- package/lib/ui/gamification/vote/feedback/index.js +60 -47
- package/lib/ui/gamification/vote/feedback/styles.d.ts +12 -0
- package/lib/ui/gamification/vote/feedback/styles.js +47 -27
- package/lib/ui/gamification/vote/index.js +145 -136
- package/lib/ui/gamification/vote/styles.d.ts +3 -1
- package/lib/ui/gamification/vote/styles.js +42 -32
- package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -0
- package/lib/ui/gamification/vote/vote-option/index.js +59 -60
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/vote-option/styles.js +16 -11
- package/lib/ui/icons/index.d.ts +3 -0
- package/lib/ui/icons/index.js +69 -51
- package/lib/ui/loader/index.js +4 -3
- package/lib/ui/modal/index.js +1 -1
- package/lib/ui/theme/masters-theme.js +152 -32
- package/lib/ui/theme/theme.js +66 -20
- package/package.json +16 -15
- package/lib/app/masters/Features/Gamification/Friends.d.ts +0 -3
- package/lib/app/masters/Features/Gamification/Friends.js +0 -19
- package/lib/app/masters/Features/Gamification/Leaderboard.d.ts +0 -8
- package/lib/app/masters/Features/Gamification/Leaderboard.js +0 -56
- package/lib/index-B1QdimmR.js +0 -19047
- package/lib/index-CZvwzN5o.js +0 -75
- package/lib/index-xuotMAFm.js +0 -118
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
let t = [], v = (r, u) => {
|
|
2
|
+
let i = [], e = {
|
|
3
|
+
get() {
|
|
4
|
+
return e.lc || e.listen(() => {
|
|
5
|
+
})(), e.value;
|
|
6
|
+
},
|
|
7
|
+
l: u || 0,
|
|
8
|
+
lc: 0,
|
|
9
|
+
listen(n, f) {
|
|
10
|
+
return e.lc = i.push(n, f || e.l) / 2, () => {
|
|
11
|
+
let a = i.indexOf(n);
|
|
12
|
+
~a && (i.splice(a, 2), --e.lc || e.off());
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
notify(n, f) {
|
|
16
|
+
let a = !t.length;
|
|
17
|
+
for (let l = 0; l < i.length; l += 2)
|
|
18
|
+
t.push(
|
|
19
|
+
i[l],
|
|
20
|
+
i[l + 1],
|
|
21
|
+
e.value,
|
|
22
|
+
n,
|
|
23
|
+
f
|
|
24
|
+
);
|
|
25
|
+
if (a) {
|
|
26
|
+
for (let l = 0; l < t.length; l += 5) {
|
|
27
|
+
let o;
|
|
28
|
+
for (let s = l + 1; !o && (s += 5) < t.length; )
|
|
29
|
+
t[s] < t[l + 1] && (o = t.push(
|
|
30
|
+
t[l],
|
|
31
|
+
t[l + 1],
|
|
32
|
+
t[l + 2],
|
|
33
|
+
t[l + 3],
|
|
34
|
+
t[l + 4]
|
|
35
|
+
));
|
|
36
|
+
o || t[l](
|
|
37
|
+
t[l + 2],
|
|
38
|
+
t[l + 3],
|
|
39
|
+
t[l + 4]
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
t.length = 0;
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
/* It will be called on last listener unsubscribing.
|
|
46
|
+
We will redefine it in onMount and onStop. */
|
|
47
|
+
off() {
|
|
48
|
+
},
|
|
49
|
+
set(n) {
|
|
50
|
+
let f = e.value;
|
|
51
|
+
f !== n && (e.value = n, e.notify(f));
|
|
52
|
+
},
|
|
53
|
+
subscribe(n, f) {
|
|
54
|
+
let a = e.listen(n, f);
|
|
55
|
+
return n(e.value), a;
|
|
56
|
+
},
|
|
57
|
+
value: r
|
|
58
|
+
};
|
|
59
|
+
return e;
|
|
60
|
+
}, p = (r = {}) => {
|
|
61
|
+
let u = v(r);
|
|
62
|
+
return u.setKey = function(i, e) {
|
|
63
|
+
let n = u.value;
|
|
64
|
+
typeof e > "u" && i in u.value ? (u.value = { ...u.value }, delete u.value[i], u.notify(n, i)) : u.value[i] !== e && (u.value = {
|
|
65
|
+
...u.value,
|
|
66
|
+
[i]: e
|
|
67
|
+
}, u.notify(n, i));
|
|
68
|
+
}, u;
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
p as m
|
|
72
|
+
};
|