@streamlayer/react 0.41.2 → 0.41.4

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/es/auth.js CHANGED
@@ -1,15 +1,11 @@
1
1
  import { useEffect as i } from "react";
2
- import { u as m } from "./app.js";
3
- import "react/jsx-runtime";
4
- import "./index2.js";
5
- import "./useStreamLayerApp.js";
6
- import "@streamlayer/sdk-web";
7
- const n = ({ token: r, schema: o }) => {
8
- const t = m();
2
+ import { u as a } from "./app.js";
3
+ const e = ({ token: r, schema: o }) => {
4
+ const t = a();
9
5
  return i(() => {
10
6
  r && o && t && t.authorizationBypass(o, r);
11
7
  }, [r, o, t]), null;
12
8
  };
13
9
  export {
14
- n as StreamLayerLogin
10
+ e as StreamLayerLogin
15
11
  };
@@ -1,18 +1,4 @@
1
- import { s as g } from "./masters2.js";
2
- import "react/jsx-runtime";
3
- import "@nanostores/react";
4
- import "@streamlayer/sdk-web-types";
5
- import "react";
6
- import "react-countup";
7
- import "react-countdown-circle-timer";
8
- import "./index2.js";
9
- import "lodash.throttle";
10
- import "@streamlayer/sdk-web-interfaces";
11
- import "react-infinite-scroller";
12
- import "./index3.js";
13
- import "@streamlayer/sdk-web-notifications";
14
- import "./useStreamLayerApp.js";
15
- import "@streamlayer/sdk-web";
1
+ import { G as f } from "./masters2.js";
16
2
  export {
17
- g as default
3
+ f as default
18
4
  };
package/lib/es/index.js CHANGED
@@ -7,14 +7,10 @@ import "@streamlayer/sdk-web-features";
7
7
  import "@streamlayer/sdk-web-interfaces";
8
8
  import "@streamlayer/sdk-web-notifications";
9
9
  import "@streamlayer/feature-gamification";
10
- import { S as c } from "./index2.js";
11
- import { S as v, u as D } from "./app.js";
12
- import "react/jsx-runtime";
13
- import "react";
14
- import "./useStreamLayerApp.js";
15
- import "@streamlayer/sdk-web";
10
+ import { S as L } from "./index2.js";
11
+ import { S as u, u as x } from "./app.js";
16
12
  export {
17
- c as StreamLayerProvider,
18
- v as StreamLayerSDKReact,
19
- D as useStreamLayer
13
+ L as StreamLayerProvider,
14
+ u as StreamLayerSDKReact,
15
+ x as useStreamLayer
20
16
  };
package/lib/es/index2.js CHANGED
@@ -1,8 +1,8 @@
1
- import { jsx as T } from "react/jsx-runtime";
2
- import { createContext as d, useMemo as O, useEffect as a } from "react";
3
- import { useStreamLayerApp as c } from "./useStreamLayerApp.js";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { createContext as c, useMemo as d, useEffect as T } from "react";
3
+ import { useStreamLayerApp as O } from "./useStreamLayerApp.js";
4
4
  var B = /* @__PURE__ */ ((R) => (R[R.UNSET = 0] = "UNSET", R[R.CONNECTED = 1] = "CONNECTED", R[R.READY = 2] = "READY", R))(B || {});
5
- const Y = d({
5
+ const f = c({
6
6
  status: 0,
7
7
  sdk: null
8
8
  }), P = ({
@@ -12,30 +12,30 @@ const Y = d({
12
12
  production: n = !0,
13
13
  autoEnable: S = !0,
14
14
  onDeepLinkHandled: A,
15
- videoPlayerController: _
15
+ videoPlayerController: r
16
16
  }) => {
17
- const e = c({
17
+ const e = O({
18
18
  sdkKey: R,
19
19
  plugins: E,
20
20
  production: n,
21
21
  autoEnable: S,
22
22
  onDeepLinkHandled: A,
23
- videoPlayerController: _
24
- }), G = O(() => e ? {
23
+ videoPlayerController: r
24
+ }), G = d(() => e ? {
25
25
  sdk: e,
26
26
  status: 2
27
27
  /* READY */
28
28
  } : { status: 1, sdk: null }, [e]);
29
- return a(() => () => {
30
- A && (e == null || e.removeDeepLinkHandler(A)), _ && (e == null || e.removeVideoPlayerController(_));
31
- }, [e]), a(() => {
32
- console.log("StreamLayerProvider mounted with props:", {
29
+ return T(() => () => {
30
+ A && (e == null || e.removeDeepLinkHandler(A)), r && (e == null || e.removeVideoPlayerController(r));
31
+ }, [e]), T(() => {
32
+ localStorage.getItem("SL_DEBUG") && console.log("StreamLayerProvider mounted with props:", {
33
33
  sdkKey: !!R,
34
34
  onDeepLinkHandled: !!A,
35
- videoPlayerController: !!_
35
+ videoPlayerController: !!r
36
36
  });
37
- }, [R, A, _]), /* @__PURE__ */ T(Y.Provider, { value: G, children: t });
38
- }, f = {
37
+ }, [R, A, r]), /* @__PURE__ */ o(f.Provider, { value: G, children: t });
38
+ }, D = {
39
39
  BG_TRANSPARENT: "rgba(0,0,0, .8)",
40
40
  BG_TRANSPARENT_VOTE_CONTAINER: "rgba(10, 14, 19, 0.8)",
41
41
  BG_TRANSPARENT_ITEM: "rgba(0, 0, 0, 0.7)",
@@ -64,7 +64,7 @@ const Y = d({
64
64
  GREY_PRIMARY: "#909395",
65
65
  DIVIDER_COLOR_SECONDARY: "#53565a",
66
66
  GREEN_PRIMARY_BTN: "#009B77"
67
- }, D = {
67
+ }, Y = {
68
68
  PRIMARY_GREEN1: "#107D57",
69
69
  PRIMARY_GREEN2: "#006747",
70
70
  PRIMARY_GREEN3: "#1C4932",
@@ -86,7 +86,7 @@ const Y = d({
86
86
  NEUTRALS_GRAY8: "#53565A",
87
87
  NEUTRALS_GRAY9: "#25282A",
88
88
  NEUTRALS_BLACK: "#000000"
89
- }, s = Object.assign({}, f, D), r = {
89
+ }, i = Object.assign({}, D, Y), _ = {
90
90
  REGULAR: "'Benton Sans', BentonSans, Arial, Helvetica, sans-serif",
91
91
  SERIF: "'Tiempos', 'Tiempos Text', Times New Roman, serif",
92
92
  COLOR: "#fff",
@@ -96,55 +96,56 @@ const Y = d({
96
96
  sm: 576,
97
97
  md: 768,
98
98
  lg: 992,
99
- xl: 1215,
99
+ xl: 1200,
100
100
  xxl: 1440
101
- }, m = {
101
+ }, l = {
102
102
  landscape: "landscape",
103
103
  portrait: "portrait"
104
- }, p = Object.keys(s).reduce((R, E) => {
105
- const t = s[E];
104
+ }, m = Object.keys(i).reduce((R, E) => {
105
+ const t = i[E];
106
106
  return `
107
107
  ${R}
108
108
  --color-${E.toLowerCase().replaceAll("_", "-")}: ${t};
109
109
  `;
110
- }, ""), o = (R) => (E) => `
110
+ }, ""), a = (R) => (E) => `
111
111
  @media only screen and (${R}) {
112
112
  ${E}
113
113
  }
114
- `, C = (R, E) => (t) => `
114
+ `, p = (R, E) => (t) => `
115
115
  @media only screen and (${R}) and (${E}) {
116
116
  ${t}
117
117
  }
118
- `, i = {
118
+ `, s = {
119
119
  up: (R) => {
120
120
  const E = N[R];
121
- return o(`min-width: ${E}px`);
121
+ return a(`min-width: ${E}px`);
122
122
  },
123
123
  down: (R) => {
124
124
  const E = N[R] - 1;
125
- return o(`max-width: ${E}px`);
125
+ return a(`max-width: ${E}px`);
126
126
  },
127
127
  intermediate: (R, E) => {
128
128
  const t = N[R] - 1, n = N[E];
129
- return C(`max-width: ${t}px`, `min-width: ${n}px`);
129
+ return p(`max-width: ${t}px`, `min-width: ${n}px`);
130
130
  },
131
131
  orientation: (R) => {
132
- const E = m[R];
133
- return o(`orientation: ${E}`);
132
+ const E = l[R];
133
+ return a(`orientation: ${E}`);
134
134
  }
135
135
  };
136
- `${p}${r.REGULAR}${r.REGULAR}${r.COLOR}${r.SERIF}${r.WEIGHT_DEFAULT}${i.down("xl")`
136
+ `${m}${_.REGULAR}${_.REGULAR}${_.COLOR}${_.SERIF}${_.WEIGHT_DEFAULT}${s.down("xl")`
137
137
  --header-offset: 56px;
138
- `}${i.intermediate("xl", "lg")`
138
+ --watch-live-header: 46px;
139
+ `}${s.intermediate("xl", "lg")`
139
140
  --header-offset: 76px;
140
141
  `}`;
141
- const u = "StreamLayerCSSReset", F = "ttkj0ah", U = ({ children: R, style: E }) => /* @__PURE__ */ T("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ T("div", { className: F, style: E, children: R }) });
142
+ const U = "StreamLayerCSSReset", x = "ttkj0ah", u = ({ children: R, style: E }) => /* @__PURE__ */ o("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ o("div", { className: x, style: E, children: R }) });
142
143
  export {
143
- s as E,
144
+ i as E,
144
145
  N as O,
145
146
  P as S,
146
- Y as a,
147
+ f as a,
147
148
  B as b,
148
- u as m,
149
+ u as i,
149
150
  U as p
150
151
  };
package/lib/es/masters.js CHANGED
@@ -1,19 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "./index2.js";
3
- import { M as v, a as x } from "./masters2.js";
3
+ import { M as o, a as s } from "./masters2.js";
4
4
  import "react";
5
- import "./useStreamLayerApp.js";
6
- import "@streamlayer/sdk-web";
7
- import "@nanostores/react";
8
- import "lodash.throttle";
9
- import "@streamlayer/sdk-web-interfaces";
10
- import "@streamlayer/sdk-web-types";
11
- import "./index3.js";
12
- import "react-countup";
13
- import "react-countdown-circle-timer";
14
- import "react-infinite-scroller";
15
- import "@streamlayer/sdk-web-notifications";
16
5
  export {
17
- v as MastersStreamLayerProvider,
18
- x as MastersStreamLayerSDKReact
6
+ o as MastersStreamLayerProvider,
7
+ s as MastersStreamLayerSDKReact
19
8
  };