@streamlayer/react-ui 0.98.0 → 0.99.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 (114) hide show
  1. package/lib/assets/style.css +1 -1
  2. package/lib/hooks/analytics.js +2 -2
  3. package/lib/{index-jRXrW6ie.js → index-Bicco-Aq.js} +1 -1
  4. package/lib/{index-z0QjLiEL.js → index-CZvwzN5o.js} +1 -1
  5. package/lib/index.js +4 -8
  6. package/lib/ui/app/Features/Gamification/Friends.js +10 -23
  7. package/lib/ui/app/Features/Gamification/Leaderboard.js +30 -45
  8. package/lib/ui/app/Features/Gamification/Question.js +31 -63
  9. package/lib/ui/app/Features/Gamification/QuestionsList.js +8 -34
  10. package/lib/ui/app/Features/Gamification/Tabs.js +25 -82
  11. package/lib/ui/app/Features/Gamification/UserSummary.js +12 -21
  12. package/lib/ui/app/Features/Gamification/gamification-feature.js +2 -93
  13. package/lib/ui/app/Features/Gamification/index.js +58 -141
  14. package/lib/ui/app/Features/index.js +21 -109
  15. package/lib/ui/app/Navigation/MastersNavigation/index.js +16 -22
  16. package/lib/ui/app/Navigation/index.js +9 -12
  17. package/lib/ui/app/Notifications/Onboarding/Notification/index.js +13 -16
  18. package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +18 -20
  19. package/lib/ui/app/Notifications/Onboarding/index.js +61 -89
  20. package/lib/ui/app/Notifications/index.js +124 -156
  21. package/lib/ui/app/Notifications/styles.js +10 -15
  22. package/lib/ui/app/Points/index.js +18 -26
  23. package/lib/ui/app/masters.js +74 -195
  24. package/lib/ui/app/useClipboardCopy.js +11 -15
  25. package/lib/ui/app/useMastersApp.js +34 -44
  26. package/lib/ui/app/useSdkResponsive.js +18 -19
  27. package/lib/ui/app/useSdkScroll.js +5 -6
  28. package/lib/ui/button/index.js +3 -4
  29. package/lib/ui/gamification/copyNotification/index.js +5 -7
  30. package/lib/ui/gamification/detail/header/index.js +15 -18
  31. package/lib/ui/gamification/detail/header/styles.js +12 -14
  32. package/lib/ui/gamification/detail/sponsor/index.js +2 -3
  33. package/lib/ui/gamification/insight/index.js +5 -6
  34. package/lib/ui/gamification/insight-list/index.js +3 -6
  35. package/lib/ui/gamification/invite-link/index.js +11 -17
  36. package/lib/ui/gamification/invite-link/styles.js +13 -15
  37. package/lib/ui/gamification/leaderboard/index.js +21 -28
  38. package/lib/ui/gamification/leaderboard/list-item/index.js +19 -22
  39. package/lib/ui/gamification/leaderboard/list-item/styles.js +16 -18
  40. package/lib/ui/gamification/leaderboard/static.js +19 -23
  41. package/lib/ui/gamification/leaderboard/styles.js +1 -1
  42. package/lib/ui/gamification/onboarding/index.js +51 -73
  43. package/lib/ui/gamification/onboarding/invitingUser/index.js +10 -11
  44. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +3 -2
  45. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.js +17 -20
  46. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +2 -0
  47. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +21 -11
  48. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +21 -30
  49. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +22 -24
  50. package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.js +5 -7
  51. package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.js +2 -3
  52. package/lib/ui/gamification/onboarding/styles.js +14 -17
  53. package/lib/ui/gamification/points/index.js +9 -15
  54. package/lib/ui/gamification/points/styles.js +12 -14
  55. package/lib/ui/gamification/question/index.js +22 -26
  56. package/lib/ui/gamification/question/insight/index.js +7 -15
  57. package/lib/ui/gamification/question/list/index.js +33 -54
  58. package/lib/ui/gamification/question/notification/index.js +22 -35
  59. package/lib/ui/gamification/question/notification/insight/index.js +12 -17
  60. package/lib/ui/gamification/question/notification/pill/index.js +7 -9
  61. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.js +11 -12
  62. package/lib/ui/gamification/question/notification/prediction-result/index.js +45 -51
  63. package/lib/ui/gamification/question/notification/prediction-result/styles.js +23 -26
  64. package/lib/ui/gamification/question/notification/styles.js +17 -19
  65. package/lib/ui/gamification/question/notification/tweet/index.js +8 -18
  66. package/lib/ui/gamification/question/styles.js +32 -34
  67. package/lib/ui/gamification/question/twitter/index.js +8 -20
  68. package/lib/ui/gamification/question/twitter/styles.js +4 -6
  69. package/lib/ui/gamification/tabs/index.js +6 -7
  70. package/lib/ui/gamification/user-statistics/components/rank/index.js +4 -5
  71. package/lib/ui/gamification/user-statistics/components/statistic/index.js +0 -1
  72. package/lib/ui/gamification/user-statistics/index.js +2 -6
  73. package/lib/ui/gamification/vote/expired-alert/index.js +8 -10
  74. package/lib/ui/gamification/vote/feedback/index.js +35 -39
  75. package/lib/ui/gamification/vote/feedback/styles.d.ts +1 -0
  76. package/lib/ui/gamification/vote/feedback/styles.js +31 -29
  77. package/lib/ui/gamification/vote/index.js +108 -117
  78. package/lib/ui/gamification/vote/insight-details/index.js +9 -16
  79. package/lib/ui/gamification/vote/twitter-details/index.js +7 -17
  80. package/lib/ui/gamification/vote/vote-option/index.js +33 -34
  81. package/lib/ui/gamification/vote/vote-option/styles.js +24 -26
  82. package/lib/ui/gamification/vote/win-bar/index.js +29 -37
  83. package/lib/ui/gamification/vote/win-bar/styles.js +16 -19
  84. package/lib/ui/login/demo.d.ts +1 -0
  85. package/lib/ui/login/demo.js +5 -17
  86. package/lib/ui/login/index.js +29 -35
  87. package/lib/ui/modal/index.d.ts +0 -1
  88. package/lib/ui/modal/index.js +45 -38
  89. package/lib/ui/navigation/button/Channels.js +5 -8
  90. package/lib/ui/navigation/button/FeaturedGroups.js +3 -6
  91. package/lib/ui/navigation/button/LeaderBoard.js +8 -11
  92. package/lib/ui/navigation/button/index.js +10 -11
  93. package/lib/ui/navigation/masters.js +2 -3
  94. package/lib/ui/questions/insight/index.js +14 -19
  95. package/lib/ui/questions/twitter/account/index.js +13 -15
  96. package/lib/ui/questions/twitter/account/styles.js +14 -16
  97. package/lib/ui/questions/twitter/index.js +31 -38
  98. package/lib/ui/skeleton/index.js +3 -4
  99. package/lib/ui/theme/constants.js +1 -1
  100. package/lib/ui/theme/index.js +3 -5
  101. package/lib/ui/theme/theme.js +16 -14
  102. package/lib/ui/video-player/index.js +44 -38
  103. package/lib/utils/createDemo.js +18 -28
  104. package/lib/utils/debug/components/copyLogs.js +2 -3
  105. package/lib/utils/debug/components/developer.js +20 -24
  106. package/lib/utils/debug/components/eventInput.js +9 -10
  107. package/lib/utils/debug/components/sdkKey.js +9 -10
  108. package/lib/utils/debug/index.js +17 -28
  109. package/lib/utils/debug/storage.js +32 -14
  110. package/lib/utils/decorators/container.js +5 -9
  111. package/lib/utils/storage.js +32 -14
  112. package/package.json +25 -25
  113. /package/lib/{index-uEuzH3jr.js → index-xuotMAFm.js} +0 -0
  114. /package/lib/{styles_z07sl8-w40geAFS.js → styles_z07sl8-l0sNRNKZ.js} +0 -0
@@ -1,165 +1,82 @@
1
- import { jsx as t, jsxs as f } from "react/jsx-runtime";
2
- import { styled as a } from "@linaria/react";
3
- import { useStore as s } from "@nanostores/react";
4
- import { SDKWhiteContainer as h } from "../../styles.js";
5
- import { VoteHeader as C } from "../../../gamification/detail/header/index.js";
6
- import { UserStatistics as k } from "../../../gamification/user-statistics/index.js";
7
- import { ModalPortal as I } from "../../../modal/index.js";
8
- import { ShowIn as S } from "../../../show-in/index.js";
9
- import { Question as U } from "./Question.js";
10
- import { Tabs as w } from "./Tabs.js";
11
- import "@streamlayer/sdk-web-types";
12
- import "../../../gamification/constants.js";
13
- import "../../../gamification/detail/header/styles.js";
14
- import "../../../icons/index.js";
15
- import "react";
16
- import "../../../skeleton/index.js";
17
- import "../../../skeleton/styles.js";
18
- import "../../../../utils/common.js";
19
- import "../../../gamification/user-statistics/components/rank/index.js";
20
- import "../../../gamification/user-statistics/components/rank/styles.js";
21
- import "../../../gamification/user-statistics/components/statistic/index.js";
22
- import "../../../gamification/user-statistics/components/statistic/styles.js";
23
- import "../../../gamification/user-statistics/styles.js";
24
- import "@linaria/core";
25
- import "../../../../index-jRXrW6ie.js";
26
- import "../../../../index-uEuzH3jr.js";
27
- import "../../useMastersContext.js";
28
- import "../../../gamification/detail/sponsor/index.js";
29
- import "../../../gamification/vote/index.js";
30
- import "../../../gamification/vote/expired-alert/index.js";
31
- import "../../../gamification/vote/expired-alert/styles.js";
32
- import "../../../gamification/vote/feedback/index.js";
33
- import "../../../gamification/vote/feedback/styles.js";
34
- import "../../../gamification/vote/styles.js";
35
- import "../../../gamification/vote/vote-option/index.js";
36
- import "../../../animated-counter/index.js";
37
- import "react-countup";
38
- import "../../../gamification/vote/vote-option/styles.js";
39
- import "../../../gamification/vote/win-bar/index.js";
40
- import "../../../timer/index.js";
41
- import "react-countdown-circle-timer";
42
- import "../../../theme/constants.js";
43
- import "../../../gamification/vote/win-bar/styles.js";
44
- import "../../../gamification/vote/insight-details/index.js";
45
- import "../../../questions/insight/index.js";
46
- import "../../../video-player/index.js";
47
- import "../../../video-player/styles.js";
48
- import "../../../questions/insight/styles.js";
49
- import "../../../gamification/vote/insight-details/styles.js";
50
- import "../../../gamification/vote/twitter-details/index.js";
51
- import "../../../questions/twitter/index.js";
52
- import "../../../questions/twitter/account/index.js";
53
- import "../../../questions/twitter/account/styles.js";
54
- import "../../../questions/twitter/styles.js";
55
- import "../../../gamification/vote/twitter-details/styles.js";
56
- import "../../useSdkScroll.js";
57
- import "lodash.throttle";
58
- import "../../../../index-z0QjLiEL.js";
59
- import "../../../gamification/tabs/index.js";
60
- import "../../../gamification/tabs/styles.js";
61
- import "./Leaderboard.js";
62
- import "../../useClipboardCopy.js";
63
- import "../../../gamification/copyNotification/index.js";
64
- import "../../../gamification/copyNotification/styles.js";
65
- import "../../../gamification/invite-link/index.js";
66
- import "../../../../hooks/analytics.js";
67
- import "@streamlayer/sdk-web-interfaces";
68
- import "../../../gamification/invite-link/styles.js";
69
- import "react-virtualized-auto-sizer";
70
- import "react-window";
71
- import "react-window-infinite-loader";
72
- import "../../../gamification/leaderboard/list-item/styles.js";
73
- import "../../../../styles_z07sl8-w40geAFS.js";
74
- import "../../../gamification/leaderboard/static.js";
75
- import "react-infinite-scroller";
76
- import "../../../gamification/leaderboard/list-item/index.js";
77
- import "./Friends.js";
78
- import "../../../gamification/onboarding/slides/onboarding-invite-card/index.js";
79
- import "../../../gamification/onboarding/slides/onboarding-invite-card/styles.js";
80
- import "./QuestionsList.js";
81
- import "../../../gamification/question/list/index.js";
82
- import "../../../gamification/question/index.js";
83
- import "../../../gamification/question/styles.js";
84
- import "../../../gamification/question/insight/index.js";
85
- import "../../../gamification/question/insight/styles.js";
86
- import "../../../gamification/question/twitter/index.js";
87
- import "../../../gamification/question/twitter/styles.js";
88
- import "../../../button/index.js";
89
- import "../../../button/styles.js";
90
- import "../../../gamification/question/list/styles.js";
91
- import "./UserSummary.js";
92
- const x = () => S, c = /* @__PURE__ */ a(x())({
1
+ import { jsx as r, jsxs as u } from "react/jsx-runtime";
2
+ import { styled as p } from "@linaria/react";
3
+ import { useStore as a } from "@nanostores/react";
4
+ import { SDKWhiteContainer as d } from "../../styles.js";
5
+ import { VoteHeader as f } from "../../../gamification/detail/header/index.js";
6
+ import { UserStatistics as h } from "../../../gamification/user-statistics/index.js";
7
+ import { ModalPortal as C } from "../../../modal/index.js";
8
+ import { ShowIn as k } from "../../../show-in/index.js";
9
+ import { Question as S } from "./Question.js";
10
+ import { Tabs as U } from "./Tabs.js";
11
+ const I = () => k, c = /* @__PURE__ */ p(I())({
93
12
  name: "OpenedContainer",
94
13
  class: "oar61gl",
95
14
  propsAsIs: !0
96
- }), y = /* @__PURE__ */ a("div")({
15
+ }), x = /* @__PURE__ */ p("div")({
97
16
  name: "UserContainer",
98
17
  class: "u14zaal4",
99
18
  propsAsIs: !1
100
- }), V = ({
101
- correct: r,
102
- incorrect: i
19
+ }), y = ({
20
+ correct: e,
21
+ incorrect: n
103
22
  }) => {
104
- const o = r + i;
105
- return o === 0 ? 0 : Math.round(r / o * 100);
106
- }, so = ({
107
- gamification: r,
108
- scrollStore: i,
23
+ const o = e + n;
24
+ return o === 0 ? 0 : Math.round(e / o * 100);
25
+ }, G = ({
26
+ gamification: e,
27
+ scrollStore: n,
109
28
  className: o,
110
- appNode: e,
111
- scrollNode: p,
112
- headerNode: m,
113
- responsiveStore: n
114
- }) => /* @__PURE__ */ t(w, {
115
- appNode: e,
116
- headerNode: m,
117
- scrollStore: i,
118
- scrollNode: p,
29
+ appNode: i,
30
+ scrollNode: s,
31
+ headerNode: t,
32
+ responsiveStore: l
33
+ }) => /* @__PURE__ */ r(U, {
34
+ appNode: i,
35
+ headerNode: t,
36
+ scrollStore: n,
37
+ scrollNode: s,
119
38
  className: o,
120
- gamification: r,
121
- responsiveStore: n
122
- }), lo = ({
123
- gamification: r,
124
- className: i,
39
+ gamification: e,
40
+ responsiveStore: l
41
+ }), M = ({
42
+ gamification: e,
43
+ className: n,
125
44
  appNode: o,
126
- responsiveStore: e
45
+ responsiveStore: i
127
46
  }) => {
128
- var l;
129
- const p = s(r.openedQuestion.$store), m = s(r.openedUser), {
130
- sdkInDesktopView: n
131
- } = s(e, {
47
+ const s = a(e.openedQuestion.$store), t = a(e.openedUser), {
48
+ sdkInDesktopView: l
49
+ } = a(i, {
132
50
  keys: ["sdkInDesktopView"]
133
- }), u = (((l = o.current) == null ? void 0 : l.getBoundingClientRect().y) || 0) < 0;
134
- if (!o.current || !p && !m)
51
+ });
52
+ if (!o.current || !s && !t)
135
53
  return null;
136
- const d = p ? /* @__PURE__ */ t(c, {
137
- className: i,
138
- children: /* @__PURE__ */ t(U, {
139
- gamification: r
54
+ const m = s ? /* @__PURE__ */ r(c, {
55
+ className: n,
56
+ children: /* @__PURE__ */ r(S, {
57
+ gamification: e
140
58
  })
141
- }) : m ? /* @__PURE__ */ t(c, {
142
- className: i,
143
- children: /* @__PURE__ */ f(y, {
144
- children: [/* @__PURE__ */ t(C, {
59
+ }) : t ? /* @__PURE__ */ r(c, {
60
+ className: n,
61
+ children: /* @__PURE__ */ u(x, {
62
+ children: [/* @__PURE__ */ r(f, {
145
63
  label: "Friend's Rank",
146
- close: r.closeUser
147
- }), /* @__PURE__ */ t(h, {
148
- children: /* @__PURE__ */ t(k, {
149
- ...m,
150
- successRate: V(m)
64
+ close: e.closeUser
65
+ }), /* @__PURE__ */ r(d, {
66
+ children: /* @__PURE__ */ r(h, {
67
+ ...t,
68
+ successRate: y(t)
151
69
  })
152
70
  })]
153
71
  })
154
72
  }) : null;
155
- return /* @__PURE__ */ t(I, {
73
+ return /* @__PURE__ */ r(C, {
156
74
  container: o,
157
- useContainer: !n,
158
- fixedView: u,
159
- children: d
75
+ useContainer: !l,
76
+ children: m
160
77
  });
161
78
  };
162
79
  export {
163
- so as GamificationOverlay,
164
- lo as GamificationOverlayStandalone
80
+ G as GamificationOverlay,
81
+ M as GamificationOverlayStandalone
165
82
  };
@@ -1,126 +1,38 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { lazy as f, useMemo as c, Suspense as g } from "react";
3
- import { FeatureType as a } from "@streamlayer/sdk-web-types";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { lazy as c, useMemo as g, Suspense as p } from "react";
3
+ import { FeatureType as u } from "@streamlayer/sdk-web-types";
4
4
  import { FeatureProvider as y } from "./FeatureProvider.js";
5
5
  import { GamificationOverlayStandalone as d } from "./Gamification/index.js";
6
- import "@linaria/react";
7
- import "@nanostores/react";
8
- import "@streamlayer/sdk-web-interfaces";
9
- import "../styles.js";
10
- import "../../gamification/detail/header/index.js";
11
- import "../../gamification/constants.js";
12
- import "../../gamification/detail/header/styles.js";
13
- import "../../icons/index.js";
14
- import "../../gamification/user-statistics/index.js";
15
- import "../../skeleton/index.js";
16
- import "../../skeleton/styles.js";
17
- import "../../../utils/common.js";
18
- import "../../gamification/user-statistics/components/rank/index.js";
19
- import "../../gamification/user-statistics/components/rank/styles.js";
20
- import "../../gamification/user-statistics/components/statistic/index.js";
21
- import "../../gamification/user-statistics/components/statistic/styles.js";
22
- import "../../gamification/user-statistics/styles.js";
23
- import "../../modal/index.js";
24
- import "@linaria/core";
25
- import "../../../index-jRXrW6ie.js";
26
- import "../../../index-uEuzH3jr.js";
27
- import "../../show-in/index.js";
28
- import "./Gamification/Question.js";
29
- import "../useMastersContext.js";
30
- import "../../gamification/detail/sponsor/index.js";
31
- import "../../gamification/vote/index.js";
32
- import "../../gamification/vote/expired-alert/index.js";
33
- import "../../gamification/vote/expired-alert/styles.js";
34
- import "../../gamification/vote/feedback/index.js";
35
- import "../../gamification/vote/feedback/styles.js";
36
- import "../../gamification/vote/styles.js";
37
- import "../../gamification/vote/vote-option/index.js";
38
- import "../../animated-counter/index.js";
39
- import "react-countup";
40
- import "../../gamification/vote/vote-option/styles.js";
41
- import "../../gamification/vote/win-bar/index.js";
42
- import "../../timer/index.js";
43
- import "react-countdown-circle-timer";
44
- import "../../theme/constants.js";
45
- import "../../gamification/vote/win-bar/styles.js";
46
- import "../../gamification/vote/insight-details/index.js";
47
- import "../../questions/insight/index.js";
48
- import "../../video-player/index.js";
49
- import "../../video-player/styles.js";
50
- import "../../questions/insight/styles.js";
51
- import "../../gamification/vote/insight-details/styles.js";
52
- import "../../gamification/vote/twitter-details/index.js";
53
- import "../../questions/twitter/index.js";
54
- import "../../questions/twitter/account/index.js";
55
- import "../../questions/twitter/account/styles.js";
56
- import "../../questions/twitter/styles.js";
57
- import "../../gamification/vote/twitter-details/styles.js";
58
- import "./Gamification/Tabs.js";
59
- import "../useSdkScroll.js";
60
- import "lodash.throttle";
61
- import "../../../index-z0QjLiEL.js";
62
- import "../../gamification/tabs/index.js";
63
- import "../../gamification/tabs/styles.js";
64
- import "./Gamification/Leaderboard.js";
65
- import "../useClipboardCopy.js";
66
- import "../../gamification/copyNotification/index.js";
67
- import "../../gamification/copyNotification/styles.js";
68
- import "../../gamification/invite-link/index.js";
69
- import "../../../hooks/analytics.js";
70
- import "../../gamification/invite-link/styles.js";
71
- import "react-virtualized-auto-sizer";
72
- import "react-window";
73
- import "react-window-infinite-loader";
74
- import "../../gamification/leaderboard/list-item/styles.js";
75
- import "../../../styles_z07sl8-w40geAFS.js";
76
- import "../../gamification/leaderboard/static.js";
77
- import "react-infinite-scroller";
78
- import "../../gamification/leaderboard/list-item/index.js";
79
- import "./Gamification/Friends.js";
80
- import "../../gamification/onboarding/slides/onboarding-invite-card/index.js";
81
- import "../../gamification/onboarding/slides/onboarding-invite-card/styles.js";
82
- import "./Gamification/QuestionsList.js";
83
- import "../../gamification/question/list/index.js";
84
- import "../../gamification/question/index.js";
85
- import "../../gamification/question/styles.js";
86
- import "../../gamification/question/insight/index.js";
87
- import "../../gamification/question/insight/styles.js";
88
- import "../../gamification/question/twitter/index.js";
89
- import "../../gamification/question/twitter/styles.js";
90
- import "../../button/index.js";
91
- import "../../button/styles.js";
92
- import "../../gamification/question/list/styles.js";
93
- import "./Gamification/UserSummary.js";
94
- const h = f(() => import("./Gamification/gamification-feature.js")), ri = ({ sdk: i, feature: t, className: r, scrollStore: m, appNode: p, scrollNode: n, headerNode: e, responsiveStore: l }) => {
95
- const u = c(() => t && t.featureConfig.get().type === a.GAMES ? /* @__PURE__ */ o(y, { className: r, sdk: i, feature: t, children: /* @__PURE__ */ o(
6
+ const h = c(() => import("./Gamification/gamification-feature.js")), A = ({ sdk: i, feature: t, className: n, scrollStore: e, appNode: o, scrollNode: l, headerNode: a, responsiveStore: m }) => {
7
+ const f = g(() => t && t.featureConfig.get().type === u.GAMES ? /* @__PURE__ */ r(y, { className: n, sdk: i, feature: t, children: /* @__PURE__ */ r(
96
8
  h,
97
9
  {
98
- appNode: p,
99
- scrollStore: m,
100
- scrollNode: n,
101
- headerNode: e,
102
- className: r,
103
- responsiveStore: l,
10
+ appNode: o,
11
+ scrollStore: e,
12
+ scrollNode: l,
13
+ headerNode: a,
14
+ className: n,
15
+ responsiveStore: m,
104
16
  gamification: t
105
17
  }
106
- ) }) : null, [i, t, r, l, m, n, p, e]);
107
- return /* @__PURE__ */ o(
108
- g,
18
+ ) }) : null, [i, t, n, m, e, l, o, a]);
19
+ return /* @__PURE__ */ r(
20
+ p,
109
21
  {
110
- fallback: /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
111
- children: u
22
+ fallback: /* @__PURE__ */ r("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
23
+ children: f
112
24
  }
113
25
  );
114
- }, oi = ({ feature: i, className: t, appNode: r, responsiveStore: m }) => i && i.featureConfig.get().type === a.GAMES ? /* @__PURE__ */ o(
26
+ }, C = ({ feature: i, className: t, appNode: n, responsiveStore: e }) => i && i.featureConfig.get().type === u.GAMES ? /* @__PURE__ */ r(
115
27
  d,
116
28
  {
117
29
  className: t,
118
- appNode: r,
119
- responsiveStore: m,
30
+ appNode: n,
31
+ responsiveStore: e,
120
32
  gamification: i
121
33
  }
122
34
  ) : null;
123
35
  export {
124
- ri as ActiveFeature,
125
- oi as StandaloneFeature
36
+ A as ActiveFeature,
37
+ C as StandaloneFeature
126
38
  };
@@ -2,46 +2,40 @@ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
2
  import { useStore as B } from "@nanostores/react";
3
3
  import { forwardRef as l } from "react";
4
4
  import { ChannelsButton as c, ChannelsButtonId as t } from "../../../navigation/button/Channels.js";
5
- import { FeaturedGroupsButton as x, FeaturedGroupsButtonId as i } from "../../../navigation/button/FeaturedGroups.js";
6
- import { LeaderBoardButtonId as P } from "../../../navigation/button/LeaderBoard.js";
5
+ import { FeaturedGroupsButton as x, FeaturedGroupsButtonId as n } from "../../../navigation/button/FeaturedGroups.js";
6
+ import { LeaderBoardButtonId as S } from "../../../navigation/button/LeaderBoard.js";
7
7
  import { Navigation as I, NavigationItems as h } from "../../../navigation/masters.js";
8
- import { BREAKPOINTS as p } from "../../../theme/constants.js";
9
- import "@linaria/react";
10
- import "../../../icons/index.js";
11
- import "../../../navigation/button/index.js";
12
- import "@linaria/core";
13
- import "../../../navigation/button/styles.js";
14
- import "../../../navigation/index.js";
15
- const K = l(
16
- ({ activeOverlay: o, setActiveOverlay: m, scrollToTop: n, sdkReady: d, className: u, responsiveStore: a }, f) => {
17
- const { screen: e } = B(a, { keys: ["screen"] });
18
- return /* @__PURE__ */ s(I, { className: u, children: [
8
+ import { BREAKPOINTS as d } from "../../../theme/constants.js";
9
+ const z = l(
10
+ ({ activeOverlay: o, setActiveOverlay: e, scrollToTop: i, sdkReady: u, className: a, responsiveStore: f }, p) => {
11
+ const { screen: m } = B(f, { keys: ["screen"] });
12
+ return /* @__PURE__ */ s(I, { className: a, children: [
19
13
  /* @__PURE__ */ s(h, { children: [
20
14
  /* @__PURE__ */ r(
21
15
  c,
22
16
  {
23
17
  active: o === t,
24
18
  onClick: () => {
25
- m(t), o !== t && n();
19
+ e(t), o !== t && i();
26
20
  }
27
21
  }
28
22
  ),
29
23
  /* @__PURE__ */ r(
30
24
  x,
31
25
  {
32
- active: o === i,
33
- disabled: !d,
26
+ active: o === n,
27
+ disabled: !u,
34
28
  onClick: () => {
35
- m(i), o !== i && n();
29
+ e(n), o !== n && i();
36
30
  },
37
- labelFull: e.size >= p.md && e.size < p.xl
31
+ labelFull: m.size >= d.md && m.size < d.xl
38
32
  }
39
33
  )
40
34
  ] }),
41
35
  /* @__PURE__ */ r(
42
36
  "div",
43
37
  {
44
- ref: f
38
+ ref: p
45
39
  }
46
40
  )
47
41
  ] });
@@ -49,7 +43,7 @@ const K = l(
49
43
  );
50
44
  export {
51
45
  t as ChannelsButtonId,
52
- i as FeaturedGroupsButtonId,
53
- P as LeaderBoardButtonId,
54
- K as MastersNavigation
46
+ n as FeaturedGroupsButtonId,
47
+ S as LeaderBoardButtonId,
48
+ z as MastersNavigation
55
49
  };
@@ -1,19 +1,16 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { useStore as s } from "@nanostores/react";
3
- import { useMemo as m } from "react";
3
+ import { useMemo as e } from "react";
4
4
  import { AvailableFeatures as d } from "@streamlayer/sdk-web-features";
5
5
  import { Navigation as v } from "../../navigation/index.js";
6
6
  import { Button as b } from "../../navigation/button/index.js";
7
- import "@linaria/react";
8
- import "@linaria/core";
9
- import "../../navigation/button/styles.js";
10
- const h = ({ customOverlays: p, activeButton: e, sdk: i }) => {
11
- const t = s(i.sdkStore.organizationSettings), r = s(i.sdkStore.streamSettings), a = m(() => {
7
+ const x = ({ customOverlays: a, activeButton: c, sdk: i }) => {
8
+ const t = s(i.sdkStore.organizationSettings), r = s(i.sdkStore.streamSettings), p = e(() => {
12
9
  const o = (r == null ? void 0 : r.data) || (t == null ? void 0 : t.data);
13
10
  return o != null && o.overlays ? o.overlays : [];
14
- }, [t, r]), c = m(
11
+ }, [t, r]), m = e(
15
12
  () => [
16
- ...a.filter(({ enableSdkButton: o }) => o).map((o) => ({
13
+ ...p.filter(({ enableSdkButton: o }) => o).map((o) => ({
17
14
  id: o.type,
18
15
  onClick: () => i.openFeature(o.type),
19
16
  disabled: !(o.type in d),
@@ -22,12 +19,12 @@ const h = ({ customOverlays: p, activeButton: e, sdk: i }) => {
22
19
  /** multiplied by 10 to add the ability to insert custom buttons between our buttons */
23
20
  position: o.position * 10
24
21
  })),
25
- ...Object.values(p).map(({ button: o }) => o)
22
+ ...Object.values(a).map(({ button: o }) => o)
26
23
  ].sort((o, l) => o.position - l.position),
27
- [a, i, p]
24
+ [p, i, a]
28
25
  );
29
- return /* @__PURE__ */ n(v, { children: c.map((o) => /* @__PURE__ */ n(b, { ...o, active: o.id === e })) });
26
+ return /* @__PURE__ */ n(v, { children: m.map((o) => /* @__PURE__ */ n(b, { ...o, active: o.id === c })) });
30
27
  };
31
28
  export {
32
- h as SDKNavigation
29
+ x as SDKNavigation
33
30
  };
@@ -1,21 +1,18 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { Container as x, CloseIconWrap as L, CloseIcon as P, Title as T, SponsorLogo as f, PresentsTitle as j, Subtitle as k, Description as E, ActionButton as I } from "./styles.js";
3
- import "@linaria/react";
4
- import "../../../../icons/index.js";
5
- import "react";
6
- const D = ({ close: u, action: S, onboarding: t }) => {
7
- var l, s, c, p, C, m, h, i;
8
- return /* @__PURE__ */ r(x, { children: [
9
- /* @__PURE__ */ e(L, { onClick: u, children: /* @__PURE__ */ e(P, { name: "icon-cross" }) }),
10
- ((s = (l = t == null ? void 0 : t.titleCard) == null ? void 0 : l.media) == null ? void 0 : s.sponsorLogo) && /* @__PURE__ */ r(T, { children: [
11
- /* @__PURE__ */ e(f, { alt: "sponsor-logo", src: (p = (c = t == null ? void 0 : t.titleCard) == null ? void 0 : c.media) == null ? void 0 : p.sponsorLogo }),
12
- /* @__PURE__ */ e(j, { children: "PRESENTS" })
1
+ import { jsxs as S, jsx as e } from "react/jsx-runtime";
2
+ import { Container as L, CloseIconWrap as P, CloseIcon as T, Title as f, SponsorLogo as j, PresentsTitle as k, Subtitle as r, Description as E, ActionButton as I } from "./styles.js";
3
+ const y = ({ close: i, action: x, onboarding: t }) => {
4
+ var l, s, c, C, p, h, m, u;
5
+ return /* @__PURE__ */ S(L, { children: [
6
+ /* @__PURE__ */ e(P, { onClick: i, children: /* @__PURE__ */ e(T, { name: "icon-cross" }) }),
7
+ ((s = (l = t == null ? void 0 : t.titleCard) == null ? void 0 : l.media) == null ? void 0 : s.sponsorLogo) && /* @__PURE__ */ S(f, { children: [
8
+ /* @__PURE__ */ e(j, { alt: "sponsor-logo", src: (C = (c = t == null ? void 0 : t.titleCard) == null ? void 0 : c.media) == null ? void 0 : C.sponsorLogo }),
9
+ /* @__PURE__ */ e(k, { children: "PRESENTS" })
13
10
  ] }),
14
- ((C = t == null ? void 0 : t.titleCard) == null ? void 0 : C.title) && /* @__PURE__ */ e(k, { children: (m = t == null ? void 0 : t.titleCard) == null ? void 0 : m.title }),
15
- ((h = t == null ? void 0 : t.titleCard) == null ? void 0 : h.subtitle) && /* @__PURE__ */ e(E, { children: (i = t == null ? void 0 : t.titleCard) == null ? void 0 : i.subtitle }),
16
- /* @__PURE__ */ e(I, { onClick: S, children: "Play Now" })
11
+ ((p = t == null ? void 0 : t.titleCard) == null ? void 0 : p.title) && /* @__PURE__ */ e(r, { children: (h = t == null ? void 0 : t.titleCard) == null ? void 0 : h.title }),
12
+ ((m = t == null ? void 0 : t.titleCard) == null ? void 0 : m.subtitle) && /* @__PURE__ */ e(E, { children: (u = t == null ? void 0 : t.titleCard) == null ? void 0 : u.subtitle }),
13
+ /* @__PURE__ */ e(I, { onClick: x, children: "Play Now" })
17
14
  ] });
18
15
  };
19
16
  export {
20
- D as Onboarding
17
+ y as Onboarding
21
18
  };
@@ -1,52 +1,50 @@
1
1
  import { styled as s } from "@linaria/react";
2
2
  import { SvgIcon as o } from "../../../../icons/index.js";
3
- import "react/jsx-runtime";
4
- import "react";
5
- const a = /* @__PURE__ */ s("div")({
3
+ const c = /* @__PURE__ */ s("div")({
6
4
  name: "Container",
7
5
  class: "cocfo2g",
8
6
  propsAsIs: !1
9
- }), l = /* @__PURE__ */ s("div")({
7
+ }), a = /* @__PURE__ */ s("div")({
10
8
  name: "CloseIconWrap",
11
9
  class: "c1pdhxdk",
12
10
  propsAsIs: !1
13
- }), t = () => o, r = /* @__PURE__ */ s(t())({
11
+ }), n = () => o, l = /* @__PURE__ */ s(n())({
14
12
  name: "CloseIcon",
15
13
  class: "c1funj3r",
16
14
  propsAsIs: !0
17
- }), i = /* @__PURE__ */ s("div")({
15
+ }), p = /* @__PURE__ */ s("div")({
18
16
  name: "Title",
19
17
  class: "t1okg06y",
20
18
  propsAsIs: !1
21
- }), m = /* @__PURE__ */ s("img")({
19
+ }), r = /* @__PURE__ */ s("img")({
22
20
  name: "SponsorLogo",
23
21
  class: "sb1n923",
24
22
  propsAsIs: !1
25
- }), I = /* @__PURE__ */ s("div")({
23
+ }), i = /* @__PURE__ */ s("div")({
26
24
  name: "PresentsTitle",
27
25
  class: "p1stllxd",
28
26
  propsAsIs: !1
29
- }), f = /* @__PURE__ */ s("div")({
27
+ }), m = /* @__PURE__ */ s("div")({
30
28
  name: "Subtitle",
31
29
  class: "s13kvdzw",
32
30
  propsAsIs: !1
33
- }), d = /* @__PURE__ */ s("div")({
31
+ }), I = /* @__PURE__ */ s("div")({
34
32
  name: "Description",
35
33
  class: "dfvmv3t",
36
34
  propsAsIs: !1
37
- }), A = /* @__PURE__ */ s("button")({
35
+ }), f = /* @__PURE__ */ s("button")({
38
36
  name: "ActionButton",
39
37
  class: "ay8e3j9",
40
38
  propsAsIs: !1
41
39
  });
42
40
  export {
43
- A as ActionButton,
44
- r as CloseIcon,
45
- l as CloseIconWrap,
46
- a as Container,
47
- d as Description,
48
- I as PresentsTitle,
49
- m as SponsorLogo,
50
- f as Subtitle,
51
- i as Title
41
+ f as ActionButton,
42
+ l as CloseIcon,
43
+ a as CloseIconWrap,
44
+ c as Container,
45
+ I as Description,
46
+ i as PresentsTitle,
47
+ r as SponsorLogo,
48
+ m as Subtitle,
49
+ p as Title
52
50
  };