@streamlayer/react 1.17.0 → 1.18.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/advertisement.d.ts +1 -0
- package/lib/app/app.d.ts +3 -0
- package/lib/app/provider.d.ts +4 -1
- package/lib/app/useStreamLayerApp.d.ts +2 -1
- package/lib/cjs/advertisement.js +40 -40
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index2.js +2 -2
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters2.js +4 -4
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +62 -19
- package/lib/cjs/useStreamLayerApp2.js +15 -15
- package/lib/classic/app/advertisement.d.ts +1 -0
- package/lib/classic/app/app.d.ts +3 -0
- package/lib/classic/app/provider.d.ts +4 -1
- package/lib/classic/app/useStreamLayerApp.d.ts +2 -1
- package/lib/classic/cjs/advertisement.js +40 -40
- package/lib/classic/cjs/bet-pack.js +5 -1
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +57 -30
- package/lib/classic/cjs/useStreamLayerApp2.js +15 -15
- package/lib/classic/es/advertisement.js +6989 -6764
- package/lib/classic/es/bet-pack.js +3431 -12
- package/lib/classic/es/gamification-feature.js +1 -1
- package/lib/classic/es/index.js +4 -6
- package/lib/classic/es/insight.js +44 -41
- package/lib/classic/es/notification.js +739 -230
- package/lib/classic/es/points.js +13 -13
- package/lib/classic/es/provider.js +7109 -4730
- package/lib/classic/es/useStreamLayerApp.js +1 -1
- package/lib/classic/es/useStreamLayerApp2.js +4044 -3824
- package/lib/classic/index.d.ts +1 -2
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/masters.js +48 -44
- package/lib/dist/es/gamification-feature2.js +15 -15
- package/lib/dist/es/index.js +3 -3
- package/lib/dist/es/masters.js +12653 -10178
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +6989 -6764
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/index.js +3 -5
- package/lib/es/index2.js +380 -380
- package/lib/es/insight.js +44 -41
- package/lib/es/masters2.js +22 -20
- package/lib/es/notification.js +739 -230
- package/lib/es/points.js +13 -13
- package/lib/es/provider.js +7162 -4706
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/es/useStreamLayerApp2.js +4044 -3824
- package/lib/index.d.ts +1 -2
- package/lib/style.css +1 -1
- package/package.json +16 -26
- package/lib/app/tvos.d.ts +0 -5
- package/lib/cjs/index3.js +0 -1
- package/lib/cjs/tvos.js +0 -1
- package/lib/classic/app/tvos.d.ts +0 -5
- package/lib/classic/cjs/gamification-feature2.js +0 -1
- package/lib/classic/cjs/index2.js +0 -5
- package/lib/classic/cjs/index3.js +0 -1
- package/lib/classic/cjs/masters.js +0 -1
- package/lib/classic/cjs/masters2.js +0 -13
- package/lib/classic/cjs/tvos.js +0 -1
- package/lib/classic/es/gamification-feature2.js +0 -4
- package/lib/classic/es/index2.js +0 -3426
- package/lib/classic/es/index3.js +0 -76
- package/lib/classic/es/masters.js +0 -9
- package/lib/classic/es/masters2.js +0 -868
- package/lib/classic/es/tvos.js +0 -1352
- package/lib/classic/style.css +0 -1
- package/lib/es/index3.js +0 -76
- package/lib/es/tvos.js +0 -1352
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as s, jsxs as p, Fragment as
|
|
2
|
-
import { A as C, s as t,
|
|
1
|
+
import { jsx as s, jsxs as p, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { A as C, s as t, B as b, f as M, I as D, a as L, b as T, c as E, M as P, u as m, T as R, p as F, k as z, z as B, d as U, l as O, e as j, S as q, m as H, g as V, n as Q, h as K } from "./masters.js";
|
|
3
3
|
import { useCallback as W, useRef as _, useState as y, useEffect as f } from "react";
|
|
4
4
|
const G = (e, n, a) => {
|
|
5
5
|
const r = n >= C.lg && n < C.xl ? 75 : 52;
|
|
@@ -25,13 +25,13 @@ const G = (e, n, a) => {
|
|
|
25
25
|
propsAsIs: !1
|
|
26
26
|
});
|
|
27
27
|
var v = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(v || {});
|
|
28
|
-
const
|
|
29
|
-
/* @__PURE__ */ s(
|
|
28
|
+
const S = ({ title: e, active: n, onClick: a }) => /* @__PURE__ */ s(Y, { "data-a": "intr", onClick: a, "data-selected": n, children: /* @__PURE__ */ s(Z, { "data-a": "intr", children: e }) }), ee = ({ activePage: e = "home", toggleActivePage: n }) => /* @__PURE__ */ s(J, { children: /* @__PURE__ */ p(X, { "data-position": e === "home" ? "left" : "right", children: [
|
|
29
|
+
/* @__PURE__ */ s(S, { title: "Home", active: e === "home", onClick: () => n(
|
|
30
30
|
"home"
|
|
31
31
|
/* HOME */
|
|
32
32
|
) }),
|
|
33
33
|
/* @__PURE__ */ s(
|
|
34
|
-
|
|
34
|
+
S,
|
|
35
35
|
{
|
|
36
36
|
title: "Friends",
|
|
37
37
|
active: e === "leaderboard",
|
|
@@ -166,7 +166,7 @@ const $ = ({ title: e, active: n, onClick: a }) => /* @__PURE__ */ s(Y, { "data-
|
|
|
166
166
|
name: "InviteFriendsContainer",
|
|
167
167
|
class: "i1c9dygq",
|
|
168
168
|
propsAsIs: !1
|
|
169
|
-
}),
|
|
169
|
+
}), Se = ({
|
|
170
170
|
deepLink: e
|
|
171
171
|
}) => /* @__PURE__ */ s(Ce, {
|
|
172
172
|
children: /* @__PURE__ */ s(P, {
|
|
@@ -174,7 +174,7 @@ const $ = ({ title: e, active: n, onClick: a }) => /* @__PURE__ */ s(Y, { "data-
|
|
|
174
174
|
inviteCardTitle: "It’s More Fun With Friends",
|
|
175
175
|
inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
|
|
176
176
|
})
|
|
177
|
-
}),
|
|
177
|
+
}), $e = /* @__PURE__ */ t("div")({
|
|
178
178
|
name: "InviteLinkContainer",
|
|
179
179
|
class: "i1odbhm4",
|
|
180
180
|
propsAsIs: !1
|
|
@@ -191,9 +191,9 @@ const $ = ({ title: e, active: n, onClick: a }) => /* @__PURE__ */ s(Y, { "data-
|
|
|
191
191
|
} = m(e.leaderboardList.$store), {
|
|
192
192
|
data: l
|
|
193
193
|
} = m(e.deepLink.$store), [u, I] = R(r);
|
|
194
|
-
return !o.length && !d ? /* @__PURE__ */ s(
|
|
194
|
+
return !o.length && !d ? /* @__PURE__ */ s(Se, {
|
|
195
195
|
deepLink: l
|
|
196
|
-
}) : /* @__PURE__ */ p(
|
|
196
|
+
}) : /* @__PURE__ */ p($, {
|
|
197
197
|
children: [/* @__PURE__ */ s(ke, {
|
|
198
198
|
items: o,
|
|
199
199
|
scrollNode: n,
|
|
@@ -202,7 +202,7 @@ const $ = ({ title: e, active: n, onClick: a }) => /* @__PURE__ */ s(Y, { "data-
|
|
|
202
202
|
hasMore: i,
|
|
203
203
|
openItemDetail: e.openUser,
|
|
204
204
|
currentUserId: e.currentUserId.get()
|
|
205
|
-
}, c), l && /* @__PURE__ */ s(
|
|
205
|
+
}, c), l && /* @__PURE__ */ s($e, {
|
|
206
206
|
ref: r,
|
|
207
207
|
children: /* @__PURE__ */ s(le, {
|
|
208
208
|
"data-a": "intr",
|
|
@@ -225,9 +225,9 @@ const $ = ({ title: e, active: n, onClick: a }) => /* @__PURE__ */ s(Y, { "data-
|
|
|
225
225
|
return () => {
|
|
226
226
|
o();
|
|
227
227
|
};
|
|
228
|
-
}, [e]), /* @__PURE__ */ s(
|
|
228
|
+
}, [e]), /* @__PURE__ */ s(B, { loading: !(a != null && a.summary), ...a == null ? void 0 : a.summary, successRate: (n = a == null ? void 0 : a.percentage) == null ? void 0 : n.correct });
|
|
229
229
|
}, xe = ({ gamification: e, className: n, scrollStore: a, scrollNode: r, appNode: o, style: i, responsiveStore: d }) => {
|
|
230
|
-
const { tabsShown: c } = m(a, { keys: ["tabsShown"] }), l = m(e.friendsTabEnabled), [u, I] = y(v.HOME), [, N] =
|
|
230
|
+
const { tabsShown: c } = m(a, { keys: ["tabsShown"] }), l = m(e.friendsTabEnabled), [u, I] = y(v.HOME), [, N] = U(), { sdkInDesktopView: A, screen: w } = m(d, { keys: ["sdkInDesktopView"] }), x = (h) => {
|
|
231
231
|
N(() => {
|
|
232
232
|
var k;
|
|
233
233
|
I(h), A === !1 && (((k = o.current) == null ? void 0 : k.getBoundingClientRect().y) || 0) < 0 && G(o, w.size, { behavior: "instant" });
|
|
@@ -243,9 +243,9 @@ const $ = ({ title: e, active: n, onClick: a }) => /* @__PURE__ */ s(Y, { "data-
|
|
|
243
243
|
l || I(v.HOME);
|
|
244
244
|
}, [l]);
|
|
245
245
|
let g = "0px";
|
|
246
|
-
return A ? g = c ? "0px" : "calc(0px - var(--header-height))" : g = c ? "var(--header-height)" : "0px", /* @__PURE__ */ p(
|
|
246
|
+
return A ? g = c ? "0px" : "calc(0px - var(--header-height))" : g = c ? "var(--header-height)" : "0px", /* @__PURE__ */ p(O, { className: j(n, "SL-Tabs", "sl-hide-on-modal"), style: i, children: [
|
|
247
247
|
l && /* @__PURE__ */ s(
|
|
248
|
-
|
|
248
|
+
q,
|
|
249
249
|
{
|
|
250
250
|
style: {
|
|
251
251
|
top: g
|
|
@@ -253,7 +253,7 @@ const $ = ({ title: e, active: n, onClick: a }) => /* @__PURE__ */ s(Y, { "data-
|
|
|
253
253
|
children: /* @__PURE__ */ s(ee, { activePage: u, toggleActivePage: x })
|
|
254
254
|
}
|
|
255
255
|
),
|
|
256
|
-
u === v.HOME && /* @__PURE__ */ p(
|
|
256
|
+
u === v.HOME && /* @__PURE__ */ p($, { children: [
|
|
257
257
|
/* @__PURE__ */ s(H, { children: /* @__PURE__ */ s(V, { children: /* @__PURE__ */ s(we, { userSummary: e.userSummary }) }) }),
|
|
258
258
|
/* @__PURE__ */ s(Q, { style: { flex: 1 }, children: /* @__PURE__ */ s(Ne, { openQuestion: e.openQuestion, store: e.feedList.getStore() }) })
|
|
259
259
|
] }),
|
package/lib/dist/es/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { i as s, o, q as m, t as S, j as i, r as L } from "./masters.js";
|
|
3
3
|
import "react";
|
|
4
4
|
export {
|
|
5
5
|
s as BetPackStandalone,
|
|
6
6
|
o as MastersStreamLayerProvider,
|
|
7
7
|
m as MastersStreamLayerSDKReact,
|
|
8
8
|
S as StreamLayerLogin,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
i as StreamLayerSDKPoints,
|
|
10
|
+
L as useStreamLayer
|
|
11
11
|
};
|