@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.
Files changed (83) hide show
  1. package/lib/assets/style.css +1 -1
  2. package/lib/hooks/analytics.js +50 -0
  3. package/lib/index-z0QjLiEL.js +75 -0
  4. package/lib/ui/app/Features/FeatureProvider.d.ts +1 -0
  5. package/lib/ui/app/Features/FeatureProvider.js +34 -6
  6. package/lib/ui/app/Features/Gamification/Friends.d.ts +0 -2
  7. package/lib/ui/app/Features/Gamification/Friends.js +20 -23
  8. package/lib/ui/app/Features/Gamification/Leaderboard.js +31 -25
  9. package/lib/ui/app/Features/Gamification/Question.js +4 -2
  10. package/lib/ui/app/Features/Gamification/QuestionsList.js +11 -8
  11. package/lib/ui/app/Features/Gamification/Tabs.js +30 -25
  12. package/lib/ui/app/Features/Gamification/UserSummary.js +14 -12
  13. package/lib/ui/app/Features/Gamification/gamification-feature.js +6 -2
  14. package/lib/ui/app/Features/Gamification/index.d.ts +10 -0
  15. package/lib/ui/app/Features/Gamification/index.js +73 -68
  16. package/lib/ui/app/Features/index.d.ts +8 -0
  17. package/lib/ui/app/Features/index.js +112 -16
  18. package/lib/ui/app/Navigation/MastersNavigation/index.js +5 -4
  19. package/lib/ui/app/Navigation/index.js +7 -6
  20. package/lib/ui/app/Notifications/Onboarding/index.d.ts +2 -0
  21. package/lib/ui/app/Notifications/Onboarding/index.js +76 -78
  22. package/lib/ui/app/Notifications/index.js +98 -91
  23. package/lib/ui/app/Points/index.js +20 -17
  24. package/lib/ui/app/masters.js +167 -86
  25. package/lib/ui/app/useMastersApp.js +12 -11
  26. package/lib/ui/app/useSdkFeature.js +13 -16
  27. package/lib/ui/app/useSdkResponsive.js +1 -1
  28. package/lib/ui/app/useSdkScroll.d.ts +1 -1
  29. package/lib/ui/app/useSdkScroll.js +28 -25
  30. package/lib/ui/gamification/invite-link/index.js +26 -12
  31. package/lib/ui/gamification/onboarding/index.d.ts +0 -2
  32. package/lib/ui/gamification/onboarding/index.js +46 -46
  33. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +2 -2
  34. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.js +21 -20
  35. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +1 -0
  36. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +20 -15
  37. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +0 -3
  38. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +34 -29
  39. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +0 -3
  40. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +17 -32
  41. package/lib/ui/gamification/points/index.d.ts +1 -0
  42. package/lib/ui/gamification/points/index.js +9 -9
  43. package/lib/ui/gamification/question/index.d.ts +1 -0
  44. package/lib/ui/gamification/question/index.js +31 -24
  45. package/lib/ui/gamification/question/insight/index.js +11 -15
  46. package/lib/ui/gamification/question/list/index.d.ts +3 -1
  47. package/lib/ui/gamification/question/list/index.js +50 -34
  48. package/lib/ui/gamification/question/notification/index.js +23 -25
  49. package/lib/ui/gamification/question/notification/insight/index.js +10 -9
  50. package/lib/ui/gamification/question/notification/tweet/index.js +3 -2
  51. package/lib/ui/gamification/question/styles.d.ts +2 -0
  52. package/lib/ui/gamification/question/styles.js +39 -28
  53. package/lib/ui/gamification/question/twitter/index.js +14 -18
  54. package/lib/ui/gamification/user-statistics/index.d.ts +3 -2
  55. package/lib/ui/gamification/user-statistics/index.js +48 -45
  56. package/lib/ui/gamification/vote/feedback/index.d.ts +3 -2
  57. package/lib/ui/gamification/vote/feedback/index.js +74 -58
  58. package/lib/ui/gamification/vote/feedback/styles.d.ts +2 -0
  59. package/lib/ui/gamification/vote/feedback/styles.js +33 -21
  60. package/lib/ui/gamification/vote/index.js +94 -83
  61. package/lib/ui/gamification/vote/insight-details/index.js +7 -6
  62. package/lib/ui/gamification/vote/twitter-details/index.js +3 -2
  63. package/lib/ui/gamification/vote/vote-option/index.d.ts +2 -1
  64. package/lib/ui/gamification/vote/vote-option/index.js +47 -39
  65. package/lib/ui/icons/index.d.ts +1 -2
  66. package/lib/ui/icons/index.js +122 -49
  67. package/lib/ui/modal/index.js +27 -21
  68. package/lib/ui/navigation/button/Channels.js +6 -5
  69. package/lib/ui/navigation/button/FeaturedGroups.js +4 -3
  70. package/lib/ui/navigation/button/LeaderBoard.js +6 -5
  71. package/lib/ui/navigation/button/index.js +20 -7
  72. package/lib/ui/navigation/button/styles.d.ts +3 -0
  73. package/lib/ui/navigation/button/styles.js +9 -6
  74. package/lib/ui/questions/insight/index.js +16 -16
  75. package/lib/ui/questions/twitter/index.js +3 -2
  76. package/lib/ui/show-in/index.d.ts +2 -0
  77. package/lib/ui/show-in/index.js +24 -14
  78. package/lib/ui/timer/index.js +32 -28
  79. package/lib/ui/video-player/index.js +41 -39
  80. package/lib/ui/video-player/styles.d.ts +1 -0
  81. package/lib/ui/video-player/styles.js +10 -9
  82. package/package.json +22 -21
  83. 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.96.2",
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.67.0",
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.37.4",
48
- "@streamlayer/sdk-web": "^0.32.2",
49
- "@streamlayer/sdk-web-anonymous-auth": "^0.11.40",
50
- "@streamlayer/sdk-web-api": "^0.22.0",
51
- "@streamlayer/sdk-web-core": "^0.21.2",
52
- "@streamlayer/sdk-web-features": "^0.11.22",
53
- "@streamlayer/sdk-web-interfaces": "^0.20.5",
54
- "@streamlayer/sdk-web-notifications": "^0.14.1",
55
- "@streamlayer/sdk-web-logger": "^0.5.16",
56
- "@streamlayer/sdk-web-storage": "^0.4.3",
57
- "@streamlayer/sdk-web-types": "^0.22.3"
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.1",
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": "^0.2.3",
78
+ "@storybook/jest": "~0.2.3",
78
79
  "@storybook/react": "^7.6.11",
79
- "@storybook/testing-library": "^0.2.2",
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": "^18.2.0",
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": "^5.0.12",
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.40.2"
99
+ "@streamlayer/react": "^0.41.0"
99
100
  }
100
101
  }
@@ -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
- };