@streamlayer/react-ui 0.96.2 → 0.97.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/assets/style.css +1 -1
- package/lib/hooks/analytics.js +50 -0
- package/lib/index-z0QjLiEL.js +75 -0
- package/lib/ui/app/Features/FeatureProvider.d.ts +1 -0
- package/lib/ui/app/Features/FeatureProvider.js +34 -6
- package/lib/ui/app/Features/Gamification/Friends.d.ts +0 -2
- package/lib/ui/app/Features/Gamification/Friends.js +20 -23
- package/lib/ui/app/Features/Gamification/Leaderboard.js +31 -25
- package/lib/ui/app/Features/Gamification/Question.js +4 -2
- package/lib/ui/app/Features/Gamification/QuestionsList.js +11 -8
- package/lib/ui/app/Features/Gamification/Tabs.js +30 -25
- package/lib/ui/app/Features/Gamification/UserSummary.js +14 -12
- package/lib/ui/app/Features/Gamification/gamification-feature.js +6 -2
- package/lib/ui/app/Features/Gamification/index.d.ts +10 -0
- package/lib/ui/app/Features/Gamification/index.js +73 -68
- package/lib/ui/app/Features/index.d.ts +8 -0
- package/lib/ui/app/Features/index.js +112 -16
- package/lib/ui/app/Navigation/MastersNavigation/index.js +5 -4
- package/lib/ui/app/Navigation/index.js +7 -6
- package/lib/ui/app/Notifications/Onboarding/index.d.ts +2 -0
- package/lib/ui/app/Notifications/Onboarding/index.js +76 -78
- package/lib/ui/app/Notifications/index.js +98 -91
- package/lib/ui/app/Points/index.js +20 -17
- package/lib/ui/app/masters.js +167 -86
- package/lib/ui/app/useMastersApp.js +12 -11
- package/lib/ui/app/useSdkFeature.js +13 -16
- package/lib/ui/app/useSdkResponsive.js +1 -1
- package/lib/ui/app/useSdkScroll.d.ts +1 -1
- package/lib/ui/app/useSdkScroll.js +28 -25
- package/lib/ui/gamification/invite-link/index.js +26 -12
- package/lib/ui/gamification/onboarding/index.d.ts +0 -2
- package/lib/ui/gamification/onboarding/index.js +46 -46
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +2 -2
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.js +21 -20
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +1 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +20 -15
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +0 -3
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +34 -29
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +0 -3
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +17 -32
- package/lib/ui/gamification/points/index.d.ts +1 -0
- package/lib/ui/gamification/points/index.js +9 -9
- package/lib/ui/gamification/question/index.d.ts +1 -0
- package/lib/ui/gamification/question/index.js +31 -24
- package/lib/ui/gamification/question/insight/index.js +11 -15
- package/lib/ui/gamification/question/list/index.d.ts +3 -1
- package/lib/ui/gamification/question/list/index.js +50 -34
- package/lib/ui/gamification/question/notification/index.js +23 -25
- package/lib/ui/gamification/question/notification/insight/index.js +10 -9
- package/lib/ui/gamification/question/notification/tweet/index.js +3 -2
- package/lib/ui/gamification/question/styles.d.ts +2 -0
- package/lib/ui/gamification/question/styles.js +39 -28
- package/lib/ui/gamification/question/twitter/index.js +14 -18
- package/lib/ui/gamification/user-statistics/index.d.ts +3 -2
- package/lib/ui/gamification/user-statistics/index.js +48 -45
- package/lib/ui/gamification/vote/feedback/index.d.ts +3 -2
- package/lib/ui/gamification/vote/feedback/index.js +74 -58
- package/lib/ui/gamification/vote/feedback/styles.d.ts +2 -0
- package/lib/ui/gamification/vote/feedback/styles.js +33 -21
- package/lib/ui/gamification/vote/index.js +94 -83
- package/lib/ui/gamification/vote/insight-details/index.js +7 -6
- package/lib/ui/gamification/vote/twitter-details/index.js +3 -2
- package/lib/ui/gamification/vote/vote-option/index.d.ts +2 -1
- package/lib/ui/gamification/vote/vote-option/index.js +47 -39
- package/lib/ui/icons/index.d.ts +1 -2
- package/lib/ui/icons/index.js +122 -49
- package/lib/ui/modal/index.js +27 -21
- package/lib/ui/navigation/button/Channels.js +6 -5
- package/lib/ui/navigation/button/FeaturedGroups.js +4 -3
- package/lib/ui/navigation/button/LeaderBoard.js +6 -5
- package/lib/ui/navigation/button/index.js +20 -7
- package/lib/ui/navigation/button/styles.d.ts +3 -0
- package/lib/ui/navigation/button/styles.js +9 -6
- package/lib/ui/questions/insight/index.js +16 -16
- package/lib/ui/questions/twitter/index.js +3 -2
- package/lib/ui/show-in/index.d.ts +2 -0
- package/lib/ui/show-in/index.js +24 -14
- package/lib/ui/timer/index.js +32 -28
- package/lib/ui/video-player/index.js +41 -39
- package/lib/ui/video-player/styles.d.ts +1 -0
- package/lib/ui/video-player/styles.js +10 -9
- package/package.json +22 -21
- package/lib/index-keh7OLCY.js +0 -67
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.97.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -35,26 +35,27 @@
|
|
|
35
35
|
"package.json"
|
|
36
36
|
],
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@lottiefiles/react-lottie-player": "
|
|
39
|
-
"@streamlayer/sl-eslib": "^5.
|
|
40
|
-
"nanoid": "3.3.7",
|
|
38
|
+
"@lottiefiles/react-lottie-player": "^3.5.3",
|
|
39
|
+
"@streamlayer/sl-eslib": "^5.83.1",
|
|
41
40
|
"@types/lodash.throttle": "^4.1.9",
|
|
42
41
|
"lodash.throttle": "^4.1.1",
|
|
42
|
+
"nanoid": "3.3.7",
|
|
43
43
|
"react-infinite-scroller": "^1.2.6",
|
|
44
44
|
"react-virtualized-auto-sizer": "^1.0.21",
|
|
45
45
|
"react-window": "^1.8.10",
|
|
46
46
|
"react-window-infinite-loader": "^1.0.9",
|
|
47
|
-
"@streamlayer/feature-gamification": "^0.
|
|
48
|
-
"@streamlayer/sdk-web": "^0.
|
|
49
|
-
"@streamlayer/sdk-web
|
|
50
|
-
"@streamlayer/sdk-web-
|
|
51
|
-
"@streamlayer/sdk-web-
|
|
52
|
-
"@streamlayer/sdk-web-features": "^0.11.
|
|
53
|
-
"@streamlayer/sdk-web-
|
|
54
|
-
"@streamlayer/sdk-web-
|
|
55
|
-
"@streamlayer/sdk-web-
|
|
56
|
-
"@streamlayer/sdk-web-
|
|
57
|
-
"@streamlayer/sdk-web-
|
|
47
|
+
"@streamlayer/feature-gamification": "^0.39.0",
|
|
48
|
+
"@streamlayer/sdk-web-analytics": "^0.1.0",
|
|
49
|
+
"@streamlayer/sdk-web": "^0.33.0",
|
|
50
|
+
"@streamlayer/sdk-web-anonymous-auth": "^0.11.42",
|
|
51
|
+
"@streamlayer/sdk-web-api": "^0.24.0",
|
|
52
|
+
"@streamlayer/sdk-web-features": "^0.11.24",
|
|
53
|
+
"@streamlayer/sdk-web-logger": "^0.5.18",
|
|
54
|
+
"@streamlayer/sdk-web-core": "^0.22.0",
|
|
55
|
+
"@streamlayer/sdk-web-interfaces": "^0.21.0",
|
|
56
|
+
"@streamlayer/sdk-web-notifications": "^0.15.0",
|
|
57
|
+
"@streamlayer/sdk-web-storage": "^0.4.5",
|
|
58
|
+
"@streamlayer/sdk-web-types": "^0.23.0"
|
|
58
59
|
},
|
|
59
60
|
"nx": {
|
|
60
61
|
"implicitDependencies": [
|
|
@@ -69,32 +70,32 @@
|
|
|
69
70
|
"@linaria/babel-preset": "^5.0.4",
|
|
70
71
|
"@linaria/core": "^6.0.0",
|
|
71
72
|
"@linaria/react": "^6.0.0",
|
|
72
|
-
"@nanostores/react": "^0.7.
|
|
73
|
+
"@nanostores/react": "^0.7.2",
|
|
73
74
|
"@storybook/addon-docs": "^7.6.11",
|
|
74
75
|
"@storybook/addon-styling": "^1.3.7",
|
|
75
76
|
"@storybook/addon-viewport": "^7.6.11",
|
|
76
77
|
"@storybook/blocks": "^7.6.11",
|
|
77
|
-
"@storybook/jest": "
|
|
78
|
+
"@storybook/jest": "~0.2.3",
|
|
78
79
|
"@storybook/react": "^7.6.11",
|
|
79
|
-
"@storybook/testing-library": "
|
|
80
|
+
"@storybook/testing-library": "~0.2.2",
|
|
80
81
|
"@types/react-infinite-scroller": "^1.2.5",
|
|
81
82
|
"@types/react-window": "^1.8.8",
|
|
82
83
|
"@types/react-window-infinite-loader": "^1.0.9",
|
|
83
84
|
"@wyw-in-js/vite": "^0.2.2",
|
|
84
85
|
"esbuild-plugin-babel": "^0.2.3",
|
|
85
86
|
"glob": "^10.3.10",
|
|
86
|
-
"react": "
|
|
87
|
+
"react": "18.2.0",
|
|
87
88
|
"react-auth-code-input": "^3.2.1",
|
|
88
89
|
"react-countdown-circle-timer": "^3.2.1",
|
|
89
90
|
"react-countup": "^6.5.0",
|
|
90
91
|
"react-phone-number-input": "^3.3.9",
|
|
91
92
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
92
93
|
"tslib": "^2.6.2",
|
|
93
|
-
"vite": "
|
|
94
|
+
"vite": "5.0.12",
|
|
94
95
|
"vite-plugin-node-polyfills": "^0.19.0",
|
|
95
96
|
"vite-plugin-svgr": "^4.2.0",
|
|
96
97
|
"vite-svg-loader": "^5.1.0",
|
|
97
98
|
"vite-tsconfig-paths": "^4.3.1",
|
|
98
|
-
"@streamlayer/react": "^0.
|
|
99
|
+
"@streamlayer/react": "^0.41.0"
|
|
99
100
|
}
|
|
100
101
|
}
|
package/lib/index-keh7OLCY.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { p as a } from "./index-uEuzH3jr.js";
|
|
2
|
-
let v = Symbol("clean"), t = [], p = (o, n) => {
|
|
3
|
-
let i = [], e = {
|
|
4
|
-
get() {
|
|
5
|
-
return e.lc || e.listen(() => {
|
|
6
|
-
})(), e.value;
|
|
7
|
-
},
|
|
8
|
-
l: n || 0,
|
|
9
|
-
lc: 0,
|
|
10
|
-
listen(f, u) {
|
|
11
|
-
return e.lc = i.push(f, u || e.l) / 2, () => {
|
|
12
|
-
let l = i.indexOf(f);
|
|
13
|
-
~l && (i.splice(l, 2), --e.lc || e.off());
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
notify(f) {
|
|
17
|
-
let u = !t.length;
|
|
18
|
-
for (let l = 0; l < i.length; l += 2)
|
|
19
|
-
t.push(
|
|
20
|
-
i[l],
|
|
21
|
-
i[l + 1],
|
|
22
|
-
e.value,
|
|
23
|
-
f
|
|
24
|
-
);
|
|
25
|
-
if (u) {
|
|
26
|
-
for (let l = 0; l < t.length; l += 4) {
|
|
27
|
-
let r;
|
|
28
|
-
for (let s = l + 1; !r && (s += 4) < t.length; )
|
|
29
|
-
t[s] < t[l + 1] && (r = t.push(
|
|
30
|
-
t[l],
|
|
31
|
-
t[l + 1],
|
|
32
|
-
t[l + 2],
|
|
33
|
-
t[l + 3]
|
|
34
|
-
));
|
|
35
|
-
r || t[l](t[l + 2], t[l + 3]);
|
|
36
|
-
}
|
|
37
|
-
t.length = 0;
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
off() {
|
|
41
|
-
},
|
|
42
|
-
/* It will be called on last listener unsubscribing.
|
|
43
|
-
We will redefine it in onMount and onStop. */
|
|
44
|
-
set(f) {
|
|
45
|
-
e.value !== f && (e.value = f, e.notify());
|
|
46
|
-
},
|
|
47
|
-
subscribe(f, u) {
|
|
48
|
-
let l = e.listen(f, u);
|
|
49
|
-
return f(e.value), l;
|
|
50
|
-
},
|
|
51
|
-
value: o
|
|
52
|
-
};
|
|
53
|
-
return a.env.NODE_ENV !== "production" && (e[v] = () => {
|
|
54
|
-
i = [], e.lc = 0, e.off();
|
|
55
|
-
}), e;
|
|
56
|
-
}, h = (o = {}) => {
|
|
57
|
-
let n = p(o);
|
|
58
|
-
return n.setKey = function(i, e) {
|
|
59
|
-
typeof e > "u" ? i in n.value && (n.value = { ...n.value }, delete n.value[i], n.notify(i)) : n.value[i] !== e && (n.value = {
|
|
60
|
-
...n.value,
|
|
61
|
-
[i]: e
|
|
62
|
-
}, n.notify(i));
|
|
63
|
-
}, n;
|
|
64
|
-
};
|
|
65
|
-
export {
|
|
66
|
-
h as m
|
|
67
|
-
};
|