@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.
Files changed (69) hide show
  1. package/lib/app/app/Notifications/index.js +1 -1
  2. package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.js +12 -8
  3. package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +42 -14
  4. package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.d.ts +12 -0
  5. package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.js +40 -20
  6. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.js +8 -4
  7. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.d.ts +4 -0
  8. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.js +27 -0
  9. package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.js +21 -19
  10. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +1 -0
  11. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.js +22 -17
  12. package/lib/app/masters/BetPack/BetPackContent/index.js +88 -62
  13. package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +1 -0
  14. package/lib/app/masters/BetPack/BetPackContent/styles.js +8 -7
  15. package/lib/app/masters/BetPack/index.js +59 -53
  16. package/lib/app/masters/Features/Gamification/Question.js +3 -3
  17. package/lib/app/masters/Features/Gamification/Tabs.d.ts +0 -7
  18. package/lib/app/masters/Features/Gamification/Tabs.js +9 -42
  19. package/lib/app/masters/Features/Gamification/UserSummary.js +15 -14
  20. package/lib/app/masters/Features/Gamification/index.d.ts +1 -6
  21. package/lib/app/masters/Features/Gamification/index.js +37 -76
  22. package/lib/app/masters/Features/index.d.ts +1 -6
  23. package/lib/app/masters/Features/index.js +15 -25
  24. package/lib/app/masters/Header/index.d.ts +3 -0
  25. package/lib/app/masters/Header/index.js +38 -0
  26. package/lib/app/masters/Notifications/index.js +1 -1
  27. package/lib/app/masters/masters.d.ts +1 -0
  28. package/lib/app/masters/masters.js +75 -92
  29. package/lib/app/masters/story/index.d.ts +1 -0
  30. package/lib/app/masters/story/index.js +21 -22
  31. package/lib/app/masters/styles.d.ts +0 -10
  32. package/lib/app/masters/styles.js +13 -23
  33. package/lib/app/masters/useSdkResponsive.js +1 -1
  34. package/lib/app/masters/useSdkScroll.js +1 -1
  35. package/lib/app/useClipboardCopy.js +1 -1
  36. package/lib/app/useSdkResponsive.js +1 -1
  37. package/lib/app/useSdkScroll.js +1 -1
  38. package/lib/assets/style.css +1 -1
  39. package/lib/index-BEm7B1u1.js +72 -0
  40. package/lib/index-DALxy-8N.js +5437 -0
  41. package/lib/ui/gamification/user-statistics/index.d.ts +1 -0
  42. package/lib/ui/gamification/user-statistics/index.js +47 -39
  43. package/lib/ui/gamification/user-statistics/styles.d.ts +2 -0
  44. package/lib/ui/gamification/user-statistics/styles.js +34 -24
  45. package/lib/ui/gamification/vote/feedback/index.d.ts +1 -0
  46. package/lib/ui/gamification/vote/feedback/index.js +60 -47
  47. package/lib/ui/gamification/vote/feedback/styles.d.ts +12 -0
  48. package/lib/ui/gamification/vote/feedback/styles.js +47 -27
  49. package/lib/ui/gamification/vote/index.js +145 -136
  50. package/lib/ui/gamification/vote/styles.d.ts +3 -1
  51. package/lib/ui/gamification/vote/styles.js +42 -32
  52. package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -0
  53. package/lib/ui/gamification/vote/vote-option/index.js +59 -60
  54. package/lib/ui/gamification/vote/vote-option/styles.d.ts +1 -0
  55. package/lib/ui/gamification/vote/vote-option/styles.js +16 -11
  56. package/lib/ui/icons/index.d.ts +3 -0
  57. package/lib/ui/icons/index.js +69 -51
  58. package/lib/ui/loader/index.js +4 -3
  59. package/lib/ui/modal/index.js +1 -1
  60. package/lib/ui/theme/masters-theme.js +152 -32
  61. package/lib/ui/theme/theme.js +66 -20
  62. package/package.json +16 -15
  63. package/lib/app/masters/Features/Gamification/Friends.d.ts +0 -3
  64. package/lib/app/masters/Features/Gamification/Friends.js +0 -19
  65. package/lib/app/masters/Features/Gamification/Leaderboard.d.ts +0 -8
  66. package/lib/app/masters/Features/Gamification/Leaderboard.js +0 -56
  67. package/lib/index-B1QdimmR.js +0 -19047
  68. package/lib/index-CZvwzN5o.js +0 -75
  69. package/lib/index-xuotMAFm.js +0 -118
@@ -1,5 +1,6 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- const r = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%20200'%3e%3cradialGradient%20id='a9'%20cx='.66'%20fx='.66'%20cy='.3125'%20fy='.3125'%20gradientTransform='scale(1.5)'%3e%3cstop%20offset='0'%20stop-color='%23FFFFFF'%3e%3c/stop%3e%3cstop%20offset='.3'%20stop-color='%23FFFFFF'%20stop-opacity='.9'%3e%3c/stop%3e%3cstop%20offset='.6'%20stop-color='%23FFFFFF'%20stop-opacity='.6'%3e%3c/stop%3e%3cstop%20offset='.8'%20stop-color='%23FFFFFF'%20stop-opacity='.3'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23FFFFFF'%20stop-opacity='0'%3e%3c/stop%3e%3c/radialGradient%3e%3ccircle%20transform-origin='center'%20fill='none'%20stroke='url(%23a9)'%20stroke-width='17'%20stroke-linecap='round'%20stroke-dasharray='200%201000'%20stroke-dashoffset='0'%20cx='100'%20cy='100'%20r='70'%3e%3canimateTransform%20type='rotate'%20attributeName='transform'%20calcMode='spline'%20dur='1.8'%20values='360;0'%20keyTimes='0;1'%20keySplines='0%200%201%201'%20repeatCount='indefinite'%3e%3c/animateTransform%3e%3c/circle%3e%3ccircle%20transform-origin='center'%20fill='none'%20opacity='.2'%20stroke='%23FFFFFF'%20stroke-width='17'%20stroke-linecap='round'%20cx='100'%20cy='100'%20r='70'%3e%3c/circle%3e%3c/svg%3e", c = ({ height: o = "37px", width: t = "37px" }) => /* @__PURE__ */ e("div", { style: { height: o, width: t }, children: /* @__PURE__ */ e("img", { alt: "loader", src: r }) });
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { SvgIcon as m } from "../icons/index.js";
3
+ const d = ({ height: r = "37px", width: e = "37px" }) => /* @__PURE__ */ o("div", { style: { height: r, width: e }, children: /* @__PURE__ */ o(m, { name: "loader" }) });
3
4
  export {
4
- c as Loader
5
+ d as Loader
5
6
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
2
  import { styled as w } from "@linaria/react";
3
3
  import { useState as c, useEffect as d } from "react";
4
- import { r as a } from "../../index-B1QdimmR.js";
4
+ import { r as a } from "../../index-DALxy-8N.js";
5
5
  import { BREAKPOINTS as u } from "../theme/constants.js";
6
6
  const h = /* @__PURE__ */ w("div")({
7
7
  name: "StaticContainer",
@@ -1,7 +1,7 @@
1
- import { breakpoints as T } from "./breakpoints.js";
2
- import { COLORS as F, FONT as _ } from "./constants.js";
3
- const t = {
4
- ...F,
1
+ import { breakpoints as n } from "./breakpoints.js";
2
+ import { COLORS as i, FONT as t } from "./constants.js";
3
+ const c = {
4
+ ...i,
5
5
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
6
  // @ts-expect-error
7
7
  BG_TRANSPARENT: "rgba(0,0,0, .8)",
@@ -66,34 +66,36 @@ const t = {
66
66
  IN_APP_QUESTION_QUOTE: "rgba(10, 14, 19, 0.70)",
67
67
  IN_APP_QUESTION_RESULT_SUBTITLE_BG: "#1D7BFF",
68
68
  IN_APP_QUESTION_RESULT_LINE: "#babfc5"
69
- }, E = {
70
- ..._,
69
+ }, e = {
70
+ ...t,
71
71
  REGULAR: "'Benton Sans', BentonSans, Arial, Helvetica, sans-serif",
72
72
  SERIF: "'Tiempos', 'Tiempos Text', Times New Roman, serif",
73
+ SERIF1: "'Tiempos', 'Tiempos Headline', Times New Roman, serif",
73
74
  COLOR: "#fff",
74
75
  WEIGHT_DEFAULT: "500"
75
- }, N = Object.entries(t).reduce((R, [e, S]) => `
76
- ${R}
77
- --color-${e.toLowerCase().replaceAll("_", "-")}: ${S};
78
- `, ""), i = `
79
- ${N}
80
- --font-family: ${E.REGULAR};
81
- --font-regular: ${E.REGULAR};
82
- --font-color: ${E.COLOR};
83
- --font-serif: ${E.SERIF};
84
- --font-weight-default: ${E.WEIGHT_DEFAULT};
85
- --font-weight-default1: ${E.WEIGHT_DEFAULT1};
86
- --font-weight-default2: ${E.WEIGHT_DEFAULT2};
87
- --font-weight-default3: ${E.WEIGHT_DEFAULT3};
88
- --font-size-default: ${_.SIZE_DEFAULT};
89
- --font-size-secondary: ${_.SIZE_DEFAULT1};
90
- --font-size-small: ${_.SIZE_DEFAULT2};
91
- --line-height-default: ${_.LINE_HEIGHT};
92
- --margin-title-default: ${_.MARGIN_TITLE_DEFAULT};
93
- --font-header-title: 0.75rem;
76
+ }, f = Object.entries(c).reduce((o, [a, r]) => `
77
+ ${o}
78
+ --color-${a.toLowerCase().replaceAll("_", "-")}: ${r};
79
+ `, ""), _ = `
80
+ ${f}
81
+ --font-family: ${e.REGULAR};
82
+ --font-regular: ${e.REGULAR};
83
+ --font-color: ${e.COLOR};
84
+ --font-serif: ${e.SERIF};
85
+ --font-serif1: ${e.SERIF1};
86
+ --font-weight-default: ${e.WEIGHT_DEFAULT};
87
+ --font-weight-default1: ${e.WEIGHT_DEFAULT1};
88
+ --font-weight-default2: ${e.WEIGHT_DEFAULT2};
89
+ --font-weight-default3: ${e.WEIGHT_DEFAULT3};
90
+ --font-size-default: ${t.SIZE_DEFAULT};
91
+ --font-size-secondary: ${t.SIZE_DEFAULT1};
92
+ --font-size-small: ${t.SIZE_DEFAULT2};
93
+ --line-height-default: ${t.LINE_HEIGHT};
94
+ --margin-title-default: ${t.MARGIN_TITLE_DEFAULT};
95
+ --font-header-title: 20px;
94
96
 
95
97
  --header-offset: 0px;
96
- --header-height: 0px;
98
+ --header-height: 54px;
97
99
  --watch-live-header: 0px;
98
100
  --animation-duration: 0.5s;
99
101
  --animation-function: ease;
@@ -117,17 +119,135 @@ const t = {
117
119
  --welcome-screen-graphic-size-xl: 125px;
118
120
  --insight-image-ratio: 16/9;
119
121
 
120
- ${T.down("xl")`
122
+ ${n.down("xl")`
121
123
  --header-offset: 0px;
122
124
  --watch-live-header: 0px;
123
125
  `}
124
126
 
125
- ${T.intermediate("xl", "lg")`
127
+ ${n.intermediate("xl", "lg")`
126
128
  --header-offset: 0px;
127
129
  `}
128
- `, A = "m1ojpy2l";
130
+
131
+ --bet-pack-bg-color-loader-container: transparent;
132
+ --bet-pack-loader-svg-color: #006944;
133
+ --bet-pack-color-emergency-container: #006944;
134
+ --bet-pack-bg-emergency-container: #fff;
135
+ --bet-pack-color-emergency-btn: #006944;
136
+ --bet-pack-border-emergency-btn: 1px solid #d9d9d6;
137
+
138
+ .isMobile {
139
+ --bet-pack-bg-color-loader-container: #000;
140
+ --bet-pack-loader-svg-color: #fff;
141
+ --bet-pack-color-emergency-container: #fff;
142
+ --bet-pack-bg-emergency-container: #000;
143
+ --bet-pack-color-emergency-btn: #fff;
144
+ --bet-pack-border-emergency-btn: none;
145
+ }
146
+
147
+ --padding-question-content: 16px 16px 0px 16px;
148
+ --gap-vote-options: 8px;
149
+ --fz-feedback-header: 1em;
150
+ --letter-spacing-feedback-header: normal;
151
+ --size-transparent-icon: 51px;
152
+ --padding-feedback-container: 8px 0px 24px;
153
+ --fz-feedbackContainer: 14px;
154
+ --margin-top-feedback-text: 10px;
155
+ --margin-top-feedback-dynamic-text: 0px;
156
+ --fz-feedback-text: 1em;
157
+ --fz-feedback-dynamic-text: 1em;
158
+ --letter-spacing-feedback-text: normal;
159
+ --display-dynamic-wrap: inline;
160
+ --padding-question-title: 0em;
161
+ --text-align-question-title: start;
162
+ --line-height-question-title: 24px;
163
+ --fz-question-title: 16px;
164
+ --padding-vote-answer: 5px 15px 5px 9px;
165
+ --fz-vote-answer: 12px;
166
+ --border-radius-vote-btn: 4px;
167
+ --min-height-vote-btn: 44px;
168
+ --justify-content-feedback-container: start;
169
+ --bg-color-feedback-container: transparent;
170
+ --padding-feedback-wrap: 0px;
171
+ --border-radius-feedback-container: 0px;
172
+ --color-feedback-description: #25282A;
173
+ --text-align-feedback-description: start;
174
+ --color-feedback-text: rgba(10, 14, 19, 0.70);
175
+ --fz-vote-answer-title: 1em;
176
+ --size-vote-answer-icon: 32px;
177
+ --margin-left-vote-answer-indicator: 8px;
178
+ --size-vote-answer-indicator: 16px;
179
+ --path-fill-vote-answer-indicator: #107D57;
180
+ --font-weight-percentage: normal;
181
+ --margin-left-percentage: 8px;
182
+ --line-height-percentage: 17px;
183
+ --line-height-percentage: 1.55em;
184
+ --border-color-btn-correct: #107D57;
185
+ --border-color-btn-voted: #107D57;
186
+ --opacity-voted-btn-rct: 1;
187
+ --opacity-vote-btn-not-selected: 1;
188
+ --color-vote-btn-not-checked-bg: #fff;
189
+ --vote-options-margin-bottom: 0px;
190
+ --fw-feedback: inherit;
191
+ --letter-spacing-question-title: normal;
192
+
193
+ .betPack {
194
+ --padding-question-content: 0.8em 0.8em 0em 0.8em;
195
+ --gap-vote-options: 0.4em;
196
+ --fz-feedback-header: 0.82em;
197
+ --letter-spacing-feedback-header: 0.005em;
198
+ --size-transparent-icon: 2.5em;
199
+ --padding-feedback-container: 0em 0em 0.4em;
200
+ --fz-feedbackContainer: 1em;
201
+ --margin-top-feedback-text: 0.35em;
202
+ --margin-top-feedback-dynamic-text: 0.35em;
203
+ --fz-feedback-text: 0.64em;
204
+ --fz-feedback-dynamic-text: 0.8em;
205
+ --letter-spacing-feedback-text: 0.01em;
206
+ --display-dynamic-wrap: block;
207
+ --padding-question-title: 1.04em;
208
+ --text-align-question-title: center;
209
+ --line-height-question-title: 1.3em;
210
+ --fz-question-title: 0.9em;
211
+ --padding-vote-answer: 0.31em 0.93em 0.31em 0.55em;
212
+ --fz-vote-answer: 1em;
213
+ --color-vote-btn-bg: rgba(255, 255, 255, 0.1);
214
+ --color-vote-btn-border: transparent;
215
+ --border-radius-vote-btn: 8px;
216
+ --min-height-vote-btn: 2.26em;
217
+ --justify-content-feedback-container: center;
218
+ --bg-color-feedback-container: rgba(255, 255, 255, 0.1);
219
+ --padding-feedback-wrap: 0.7em;
220
+ --border-radius-feedback-container: 8px;
221
+ --color-feedback-description: #fff;
222
+ --text-align-feedback-description: center;
223
+ --color-feedback-text: #fff;
224
+ --fz-vote-answer-title: 0.7em;
225
+ --size-vote-answer-icon: 1.65em;
226
+ --margin-left-vote-answer-indicator: 0.8em;
227
+ --size-vote-answer-indicator: 1.4em;
228
+ --path-fill-vote-answer-indicator: #fff;
229
+ --font-weight-percentage: 500;
230
+ --margin-left-percentage: 0.72em;
231
+ --line-height-percentage: 1.55em;
232
+ --border-color-btn-correct: #fff;
233
+ --border-color-btn-voted: #fff;
234
+ --color-vote-btn-not-selected-border: rgba(255, 255, 255, 0.1);
235
+ --color-vote-btn-disabled-border: #fff;
236
+ --color-voted-btn-rct-bg: #fff;
237
+ --opacity-voted-btn-rct: 0.3;
238
+ --opacity-vote-btn-not-selected: 0.1;
239
+ --color-vote-btn-not-checked-bg: rgba(255, 255, 255, 0.1);
240
+ --color-vote-btn-selected-bg: rgba(255, 255, 255, 0.1);
241
+ --color-vote-btn-selected-border: transparent;
242
+ --color-unsuccess: #fff;
243
+ --color-success: #fff;
244
+ --vote-options-margin-bottom: 0.5em;
245
+ --fw-feedback: 600;
246
+ --letter-spacing-question-title: -0.03em;
247
+ }
248
+ `, p = "m1ojpy2l";
129
249
  export {
130
- t as MASTERS_COLORS,
131
- A as mastersTheme,
132
- i as mastersThemeStr
250
+ c as MASTERS_COLORS,
251
+ p as mastersTheme,
252
+ _ as mastersThemeStr
133
253
  };
@@ -1,5 +1,5 @@
1
- import { jsx as i, jsxs as t } from "react/jsx-runtime";
2
- import { breakpoints as d } from "./breakpoints.js";
1
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
+ import { breakpoints as n } from "./breakpoints.js";
3
3
  import { colors as p, colorsAdvertisement as s, FONT as e } from "./constants.js";
4
4
  const l = `
5
5
  ${p}
@@ -54,16 +54,15 @@ const l = `
54
54
  --promo-animation-duration: 0.5s;
55
55
  --promo-animation-function: ease-in;
56
56
 
57
- ${d.down("xl")`
57
+ ${n.down("xl")`
58
58
  --header-offset: 0px;
59
59
  `}
60
60
 
61
- ${d.intermediate("xl", "lg")`
61
+ ${n.intermediate("xl", "lg")`
62
62
  --header-offset: 0px;
63
63
  `}
64
64
 
65
65
  --insight-image-ratio: 16/9;
66
-
67
66
  --adv-side-indents: 16px;
68
67
  --adv-top-indent: 12px;
69
68
  --adv-header-height: 52px;
@@ -94,24 +93,71 @@ const l = `
94
93
  --adv-sponsor-logo-size: 28px;
95
94
  --adv-sponsor-font-size: 12px;
96
95
  }
97
- `, f = "StreamLayerCSSReset", c = "ttkj0ah", g = () => /* @__PURE__ */ i("table", {
98
- children: /* @__PURE__ */ t("table", {
99
- children: [/* @__PURE__ */ i("thead", {
100
- children: /* @__PURE__ */ t("tr", {
101
- children: [/* @__PURE__ */ i("th", {
96
+
97
+ --padding-question-content: 16px 16px 0px 16px;
98
+ --gap-vote-options: 8px;
99
+ --fz-feedback-header: 1em;
100
+ --letter-spacing-feedback-header: normal;
101
+ --size-transparent-icon: 51px;
102
+ --padding-feedback-container: 8px 0px 24px;
103
+ --fz-feedbackContainer: 14px;
104
+ --margin-top-feedback-text: 10px;
105
+ --margin-top-feedback-dynamic-text: 0px;
106
+ --fz-feedback-text: 1em;
107
+ --fz-feedback-dynamic-text: 1em;
108
+ --letter-spacing-feedback-text: normal;
109
+ --display-dynamic-wrap: inline;
110
+ --padding-question-title: 0em;
111
+ --text-align-question-title: start;
112
+ --line-height-question-title: 24px;
113
+ --fz-question-title: 16px;
114
+ --padding-vote-answer: 5px 15px 5px 9px;
115
+ --fz-vote-answer: 12px;
116
+ --border-radius-vote-btn: 4px;
117
+ --min-height-vote-btn: 44px;
118
+ --justify-content-feedback-container: start;
119
+ --bg-color-feedback-container: transparent;
120
+ --padding-feedback-wrap: 0px;
121
+ --border-radius-feedback-container: 0px;
122
+ --text-align-feedback-description: start;
123
+ --color-feedback-description: #090E13;
124
+ --color-feedback-text: rgba(10, 14, 19, 0.70);
125
+ --fz-vote-answer-title: 1em;
126
+ --size-vote-answer-icon: 32px;
127
+ --margin-left-vote-answer-indicator: 8px;
128
+ --size-vote-answer-indicator: 16px;
129
+ --path-fill-vote-answer-indicator: #107D57;
130
+ --font-weight-percentage: normal;
131
+ --margin-left-percentage: 8px;
132
+ --line-height-percentage: 17px;
133
+ --line-height-percentage: 1.55em;
134
+ --border-color-btn-correct: #107D57;
135
+ --border-color-btn-voted: #1D7BFF;
136
+ --opacity-voted-btn-rct: 1;
137
+ --opacity-vote-btn-not-selected: 1;
138
+ --color-vote-btn-not-checked-bg: #fff;
139
+ --vote-options-margin-bottom: 0px;
140
+ --fw-feedback: inherit;
141
+ --letter-spacing-question-title: normal;
142
+
143
+ `, h = "StreamLayerCSSReset", m = "ttkj0ah", g = () => /* @__PURE__ */ t("table", {
144
+ children: /* @__PURE__ */ i("table", {
145
+ children: [/* @__PURE__ */ t("thead", {
146
+ children: /* @__PURE__ */ i("tr", {
147
+ children: [/* @__PURE__ */ t("th", {
102
148
  children: "name"
103
- }), /* @__PURE__ */ i("th", {
149
+ }), /* @__PURE__ */ t("th", {
104
150
  children: "value"
105
151
  })]
106
152
  })
107
- }), /* @__PURE__ */ i("tbody", {
108
- children: l.split(";").map((n) => {
109
- const a = n.trim(), [o, r] = a.split(":");
110
- return /* @__PURE__ */ t("tr", {
111
- children: [/* @__PURE__ */ i("td", {
112
- children: o
113
- }), /* @__PURE__ */ i("td", {
153
+ }), /* @__PURE__ */ t("tbody", {
154
+ children: l.split(";").map((o) => {
155
+ const a = o.trim(), [r, d] = a.split(":");
156
+ return /* @__PURE__ */ i("tr", {
157
+ children: [/* @__PURE__ */ t("td", {
114
158
  children: r
159
+ }), /* @__PURE__ */ t("td", {
160
+ children: d
115
161
  })]
116
162
  }, a);
117
163
  })
@@ -120,7 +166,7 @@ const l = `
120
166
  });
121
167
  export {
122
168
  g as ThemeVariables,
123
- f as resetCss,
124
- c as theme,
169
+ h as resetCss,
170
+ m as theme,
125
171
  l as themeStr
126
172
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "1.18.1",
3
+ "version": "1.19.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -69,19 +69,19 @@
69
69
  "react-virtualized-auto-sizer": "^1.0.24",
70
70
  "react-window": "^1.8.10",
71
71
  "react-window-infinite-loader": "^1.0.9",
72
- "@streamlayer/feature-gamification": "^1.14.1",
73
- "@streamlayer/sdk-web-analytics": "^1.6.1",
74
- "@streamlayer/sdk-web-api": "^1.7.1",
75
- "@streamlayer/sdk-web-core": "^1.10.1",
76
- "@streamlayer/sdk-web": "^1.8.1",
77
- "@streamlayer/sdk-web-features": "^1.0.44",
78
- "@streamlayer/sdk-web-interfaces": "^1.4.10",
79
- "@streamlayer/sdk-web-logger": "^1.0.44",
80
- "@streamlayer/sdk-web-anonymous-auth": "^1.1.23",
81
- "@streamlayer/sdk-web-storage": "^1.0.44",
82
- "@streamlayer/sdk-web-notifications": "^1.3.6",
83
- "@streamlayer/sdk-web-types": "^1.10.1",
84
- "@streamlayer/react-polyfills": "^0.1.4"
72
+ "@streamlayer/feature-gamification": "^1.15.0",
73
+ "@streamlayer/sdk-web": "^1.9.0",
74
+ "@streamlayer/sdk-web-analytics": "^1.6.2",
75
+ "@streamlayer/sdk-web-anonymous-auth": "^1.1.24",
76
+ "@streamlayer/sdk-web-core": "^1.11.0",
77
+ "@streamlayer/sdk-web-api": "^1.7.2",
78
+ "@streamlayer/sdk-web-features": "^1.0.45",
79
+ "@streamlayer/react-polyfills": "^0.1.5",
80
+ "@streamlayer/sdk-web-interfaces": "^1.4.11",
81
+ "@streamlayer/sdk-web-logger": "^1.0.45",
82
+ "@streamlayer/sdk-web-notifications": "^1.3.7",
83
+ "@streamlayer/sdk-web-storage": "^1.0.45",
84
+ "@streamlayer/sdk-web-types": "^1.10.2"
85
85
  },
86
86
  "nx": {
87
87
  "implicitDependencies": [
@@ -116,12 +116,13 @@
116
116
  "react-slick": "^0.30.3",
117
117
  "rollup-plugin-node-polyfills": "^0.2.1",
118
118
  "screenfull": "^6.0.2",
119
+ "slick-carousel": "^1.8.1",
119
120
  "tslib": "^2.7.0",
120
121
  "vite": "5.4.8",
121
122
  "vite-plugin-node-polyfills": "^0.22.0",
122
123
  "vite-plugin-svgr": "^4.2.0",
123
124
  "vite-svg-loader": "^5.1.0",
124
125
  "vite-tsconfig-paths": "^5.0.1",
125
- "@streamlayer/react": "^1.12.1"
126
+ "@streamlayer/react": "^1.13.0"
126
127
  }
127
128
  }
@@ -1,3 +0,0 @@
1
- export declare const Friends: React.FC<{
2
- deepLink?: string;
3
- }>;
@@ -1,19 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { styled as i } from "@linaria/react";
3
- import { OnboardingInviteCard as n } from "../../../../ui/gamification/onboarding/slides/onboarding-invite-card/index.js";
4
- const r = /* @__PURE__ */ i("div")({
5
- name: "InviteFriendsContainer",
6
- class: "i1b9agwt",
7
- propsAsIs: !1
8
- }), d = ({
9
- deepLink: t
10
- }) => /* @__PURE__ */ e(r, {
11
- children: /* @__PURE__ */ e(n, {
12
- inviteLink: t,
13
- inviteCardTitle: "It’s More Fun With Friends",
14
- inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
15
- })
16
- });
17
- export {
18
- d as Friends
19
- };
@@ -1,8 +0,0 @@
1
- import { ScrollNodeRef } from '../../..';
2
- import { ScrollStore } from '../../useSdkScroll';
3
- import { Gamification } from '@streamlayer/feature-gamification';
4
- export declare const Leaderboard: React.FC<{
5
- gamification: Gamification;
6
- scrollNode: ScrollNodeRef;
7
- scrollStore: ScrollStore;
8
- }>;
@@ -1,56 +0,0 @@
1
- import { jsx as r, jsxs as f, Fragment as L } from "react/jsx-runtime";
2
- import { styled as h } from "@linaria/react";
3
- import { useClipboardCopy as k } from "../../../useClipboardCopy.js";
4
- import { useRef as u } from "react";
5
- import { useStore as i } from "@streamlayer/react-polyfills";
6
- import { InviteLink as I } from "../../../../ui/gamification/invite-link/index.js";
7
- import "react-virtualized-auto-sizer";
8
- import "react-window";
9
- import "react-window-infinite-loader";
10
- import "@storybook/blocks";
11
- import "../../../../ui/icons/index.js";
12
- import "../../../../ui/gamification/leaderboard/list-item/styles.js";
13
- /* empty css */
14
- import { LeaderboardStaticList as y } from "../../../../ui/gamification/leaderboard/static.js";
15
- import { Friends as C } from "./Friends.js";
16
- const b = /* @__PURE__ */ h("div")({
17
- name: "InviteLinkContainer",
18
- class: "ij36hcn",
19
- propsAsIs: !1
20
- }), z = ({
21
- gamification: e,
22
- scrollNode: s,
23
- scrollStore: p
24
- }) => {
25
- const o = u(null), {
26
- data: n,
27
- hasMore: d,
28
- loading: m,
29
- key: l
30
- } = i(e.leaderboardList.$store), {
31
- data: t
32
- } = i(e.deepLink.$store), [a, c] = k(o);
33
- return !n.length && !m ? /* @__PURE__ */ r(C, {
34
- deepLink: t
35
- }) : /* @__PURE__ */ f(L, {
36
- children: [/* @__PURE__ */ r(y, {
37
- items: n,
38
- scrollNode: s,
39
- scrollStore: p,
40
- fetchMore: e.leaderboardList.fetchMore,
41
- hasMore: d,
42
- openItemDetail: e.openUser,
43
- currentUserId: e.currentUserId.get()
44
- }, l), t && /* @__PURE__ */ r(b, {
45
- ref: o,
46
- children: /* @__PURE__ */ r(I, {
47
- onClick: () => a(t),
48
- title: "Invite Friends",
49
- description: "Challenge them now!"
50
- })
51
- }), c]
52
- });
53
- };
54
- export {
55
- z as Leaderboard
56
- };