@streamlayer/react 1.8.3 → 1.8.5

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as s, jsxs as f, Fragment as b } from "react/jsx-runtime";
2
- import { r as y, M as C, s as k, u as d, T as L, S as D, C as M, p as T, k as $, O as A, m as g, c as E, a as F, b as P, d as R, n as V, e as O, f as Q, l as q } from "./masters.js";
2
+ import { C as y, M as x, s as k, u as d, T as L, S as D, a as M, p as $, k as T, O as A, m as g, l as E, c as F, b as P, d as R, e as V, f as O, n as Q, g as q } from "./masters.js";
3
3
  import { useRef as K, useState as w, useEffect as I, useTransition as U } from "react";
4
4
  const j = (o, t, e) => {
5
5
  const r = t >= y.lg && t < y.xl ? 75 : 52;
@@ -14,7 +14,7 @@ const j = (o, t, e) => {
14
14
  }), H = ({
15
15
  deepLink: o
16
16
  }) => /* @__PURE__ */ s(B, {
17
- children: /* @__PURE__ */ s(C, {
17
+ children: /* @__PURE__ */ s(x, {
18
18
  inviteLink: o,
19
19
  inviteCardTitle: "It’s More Fun With Friends",
20
20
  inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
@@ -56,9 +56,9 @@ const j = (o, t, e) => {
56
56
  })
57
57
  }), m]
58
58
  });
59
- }, G = ({ store: o, openQuestion: t }) => {
60
- const { sdk: e } = T(), r = d(o);
61
- return /* @__PURE__ */ s($, { openQuestion: t, questions: r.data, controlVideo: e == null ? void 0 : e.controlVideoPlayer });
59
+ }, J = ({ store: o, openQuestion: t }) => {
60
+ const { sdk: e } = $(), r = d(o);
61
+ return /* @__PURE__ */ s(T, { openQuestion: t, questions: r.data, controlVideo: e == null ? void 0 : e.controlVideoPlayer });
62
62
  }, W = ({ userSummary: o }) => {
63
63
  var t;
64
64
  const [e, r] = w(void 0);
@@ -70,8 +70,8 @@ const j = (o, t, e) => {
70
70
  n();
71
71
  };
72
72
  }, [o]), /* @__PURE__ */ s(A, { loading: !(e != null && e.summary), ...e == null ? void 0 : e.summary, successRate: (t = e == null ? void 0 : e.percentage) == null ? void 0 : t.correct });
73
- }, J = ({ gamification: o, className: t, scrollStore: e, scrollNode: r, appNode: n, style: i, responsiveStore: l }) => {
74
- const { tabsShown: u } = d(e, { keys: ["tabsShown"] }), [a, p] = w(g.HOME), [, m] = U(), { sdkInDesktopView: v, screen: N } = d(l, { keys: ["sdkInDesktopView"] }), x = (c) => {
73
+ }, G = ({ gamification: o, className: t, scrollStore: e, scrollNode: r, appNode: n, style: i, responsiveStore: l }) => {
74
+ const { tabsShown: u } = d(e, { keys: ["tabsShown"] }), [a, p] = w(g.HOME), [, m] = U(), { sdkInDesktopView: v, screen: N } = d(l, { keys: ["sdkInDesktopView"] }), C = (c) => {
75
75
  m(() => {
76
76
  var S;
77
77
  p(c), v === !1 && (((S = n.current) == null ? void 0 : S.getBoundingClientRect().y) || 0) < 0 && j(n, N.size, { behavior: "instant" });
@@ -92,12 +92,12 @@ const j = (o, t, e) => {
92
92
  style: {
93
93
  top: h
94
94
  },
95
- children: /* @__PURE__ */ s(R, { activePage: a, toggleActivePage: x })
95
+ children: /* @__PURE__ */ s(R, { activePage: a, toggleActivePage: C })
96
96
  }
97
97
  ),
98
98
  a === g.HOME && /* @__PURE__ */ f(b, { children: [
99
- /* @__PURE__ */ s(V, { style: { paddingTop: "8px" }, children: /* @__PURE__ */ s(O, { children: /* @__PURE__ */ s(W, { userSummary: o.userSummary }) }) }),
100
- /* @__PURE__ */ s(Q, { style: { flex: 1 }, children: /* @__PURE__ */ s(G, { openQuestion: o.openQuestion, store: o.feedList.getStore() }) })
99
+ /* @__PURE__ */ s(V, { children: /* @__PURE__ */ s(O, { children: /* @__PURE__ */ s(W, { userSummary: o.userSummary }) }) }),
100
+ /* @__PURE__ */ s(Q, { style: { flex: 1 }, children: /* @__PURE__ */ s(J, { openQuestion: o.openQuestion, store: o.feedList.getStore() }) })
101
101
  ] }),
102
102
  a === g.LEADERBOARD && /* @__PURE__ */ s(q, { children: /* @__PURE__ */ s(z, { scrollStore: e, scrollNode: r, gamification: o }) })
103
103
  ] });
@@ -108,7 +108,7 @@ const j = (o, t, e) => {
108
108
  appNode: r,
109
109
  scrollNode: n,
110
110
  responsiveStore: i
111
- }) => /* @__PURE__ */ s(J, {
111
+ }) => /* @__PURE__ */ s(G, {
112
112
  appNode: r,
113
113
  scrollStore: t,
114
114
  scrollNode: n,
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
- import { h as s, i as m, j as o, g as i } from "./masters.js";
2
+ import { i as s, j as o, o as m, h as i } from "./masters.js";
3
3
  import "react";
4
4
  export {
5
5
  s as MastersStreamLayerProvider,
6
- m as MastersStreamLayerSDKReact,
7
- o as StreamLayerLogin,
6
+ o as MastersStreamLayerSDKReact,
7
+ m as StreamLayerLogin,
8
8
  i as StreamLayerSDKPoints
9
9
  };