@streamlayer/react 1.17.1 → 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.
Files changed (54) hide show
  1. package/lib/app/advertisement.d.ts +1 -0
  2. package/lib/app/app.d.ts +3 -0
  3. package/lib/app/provider.d.ts +4 -1
  4. package/lib/app/useStreamLayerApp.d.ts +2 -1
  5. package/lib/cjs/advertisement.js +36 -36
  6. package/lib/cjs/gamification-feature.js +1 -1
  7. package/lib/cjs/index2.js +2 -2
  8. package/lib/cjs/insight.js +1 -1
  9. package/lib/cjs/masters2.js +3 -3
  10. package/lib/cjs/notification.js +1 -1
  11. package/lib/cjs/points.js +1 -1
  12. package/lib/cjs/provider.js +62 -19
  13. package/lib/cjs/useStreamLayerApp2.js +15 -15
  14. package/lib/classic/app/advertisement.d.ts +1 -0
  15. package/lib/classic/app/app.d.ts +3 -0
  16. package/lib/classic/app/provider.d.ts +4 -1
  17. package/lib/classic/app/useStreamLayerApp.d.ts +2 -1
  18. package/lib/classic/cjs/advertisement.js +36 -36
  19. package/lib/classic/cjs/bet-pack.js +2 -2
  20. package/lib/classic/cjs/gamification-feature.js +1 -1
  21. package/lib/classic/cjs/insight.js +1 -1
  22. package/lib/classic/cjs/notification.js +1 -1
  23. package/lib/classic/cjs/points.js +1 -1
  24. package/lib/classic/cjs/provider.js +57 -14
  25. package/lib/classic/cjs/useStreamLayerApp2.js +15 -15
  26. package/lib/classic/es/advertisement.js +6778 -6620
  27. package/lib/classic/es/bet-pack.js +245 -245
  28. package/lib/classic/es/gamification-feature.js +1 -1
  29. package/lib/classic/es/index.js +3 -3
  30. package/lib/classic/es/insight.js +41 -38
  31. package/lib/classic/es/notification.js +739 -230
  32. package/lib/classic/es/points.js +10 -10
  33. package/lib/classic/es/provider.js +7285 -4829
  34. package/lib/classic/es/useStreamLayerApp.js +1 -1
  35. package/lib/classic/es/useStreamLayerApp2.js +4007 -3787
  36. package/lib/dist/cjs/gamification-feature2.js +1 -1
  37. package/lib/dist/cjs/masters.js +47 -43
  38. package/lib/dist/es/gamification-feature2.js +15 -15
  39. package/lib/dist/es/index.js +3 -3
  40. package/lib/dist/es/masters.js +14631 -12156
  41. package/lib/dist/style.css +1 -1
  42. package/lib/es/advertisement.js +6778 -6620
  43. package/lib/es/gamification-feature.js +1 -1
  44. package/lib/es/index.js +1 -1
  45. package/lib/es/index2.js +362 -362
  46. package/lib/es/insight.js +41 -38
  47. package/lib/es/masters2.js +28 -26
  48. package/lib/es/notification.js +739 -230
  49. package/lib/es/points.js +10 -10
  50. package/lib/es/provider.js +7162 -4706
  51. package/lib/es/useStreamLayerApp.js +1 -1
  52. package/lib/es/useStreamLayerApp2.js +4007 -3787
  53. package/lib/style.css +1 -1
  54. package/package.json +14 -14
@@ -1,5 +1,5 @@
1
- import { jsx as s, jsxs as p, Fragment as S } from "react/jsx-runtime";
2
- import { A as C, s as t, k 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, d as z, z as U, e as O, l as j, g as q, S as B, m as H, h as V, n as Q, i as K } from "./masters.js";
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 $ = ({ 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($, { title: "Home", active: e === "home", onClick: () => n(
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
- }), $e = ({
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
- }), Se = /* @__PURE__ */ t("div")({
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($e, {
194
+ return !o.length && !d ? /* @__PURE__ */ s(Se, {
195
195
  deepLink: l
196
- }) : /* @__PURE__ */ p(S, {
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(Se, {
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(U, { loading: !(a != null && a.summary), ...a == null ? void 0 : a.summary, successRate: (n = a == null ? void 0 : a.percentage) == null ? void 0 : n.correct });
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] = O(), { sdkInDesktopView: A, screen: w } = m(d, { keys: ["sdkInDesktopView"] }), x = (h) => {
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(j, { className: q(n, "SL-Tabs"), style: i, children: [
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
- B,
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(S, { children: [
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
  ] }),
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
- import { B as s, o, q as m, t as S, j as L, r as i } from "./masters.js";
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
- L as StreamLayerSDKPoints,
10
- i as useStreamLayer
9
+ i as StreamLayerSDKPoints,
10
+ L as useStreamLayer
11
11
  };