@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/cjs/app.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index2.js +10 -9
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +35 -37
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -0
- package/lib/dist/cjs/index.js +1 -198
- package/lib/dist/cjs/masters.js +197 -0
- package/lib/dist/es/gamification-feature.js +4 -0
- package/lib/dist/es/index.js +5 -44774
- package/lib/dist/es/masters.js +44936 -0
- package/lib/dist/index.d.ts +34 -16
- package/lib/dist/style.css +1 -1
- package/lib/es/app.js +6 -6
- package/lib/es/auth.js +4 -8
- package/lib/es/gamification-feature.js +2 -16
- package/lib/es/index.js +5 -9
- package/lib/es/index2.js +36 -35
- package/lib/es/masters.js +3 -14
- package/lib/es/masters2.js +7555 -7500
- package/lib/es/points.js +26 -29
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +29 -29
package/lib/es/auth.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { useEffect as i } from "react";
|
|
2
|
-
import { u as
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
10
|
+
e as StreamLayerLogin
|
|
15
11
|
};
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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
|
|
11
|
-
import { S as
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { useStreamLayerApp as
|
|
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
|
|
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 =
|
|
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 =
|
|
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
|
|
30
|
-
A && (e == null || e.removeDeepLinkHandler(A)),
|
|
31
|
-
}, [e]),
|
|
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,
|
|
38
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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:
|
|
99
|
+
xl: 1200,
|
|
100
100
|
xxl: 1440
|
|
101
|
-
},
|
|
101
|
+
}, l = {
|
|
102
102
|
landscape: "landscape",
|
|
103
103
|
portrait: "portrait"
|
|
104
|
-
},
|
|
105
|
-
const t =
|
|
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
|
-
}, ""),
|
|
110
|
+
}, ""), a = (R) => (E) => `
|
|
111
111
|
@media only screen and (${R}) {
|
|
112
112
|
${E}
|
|
113
113
|
}
|
|
114
|
-
`,
|
|
114
|
+
`, p = (R, E) => (t) => `
|
|
115
115
|
@media only screen and (${R}) and (${E}) {
|
|
116
116
|
${t}
|
|
117
117
|
}
|
|
118
|
-
`,
|
|
118
|
+
`, s = {
|
|
119
119
|
up: (R) => {
|
|
120
120
|
const E = N[R];
|
|
121
|
-
return
|
|
121
|
+
return a(`min-width: ${E}px`);
|
|
122
122
|
},
|
|
123
123
|
down: (R) => {
|
|
124
124
|
const E = N[R] - 1;
|
|
125
|
-
return
|
|
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
|
|
129
|
+
return p(`max-width: ${t}px`, `min-width: ${n}px`);
|
|
130
130
|
},
|
|
131
131
|
orientation: (R) => {
|
|
132
|
-
const E =
|
|
133
|
-
return
|
|
132
|
+
const E = l[R];
|
|
133
|
+
return a(`orientation: ${E}`);
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
|
-
`${
|
|
136
|
+
`${m}${_.REGULAR}${_.REGULAR}${_.COLOR}${_.SERIF}${_.WEIGHT_DEFAULT}${s.down("xl")`
|
|
137
137
|
--header-offset: 56px;
|
|
138
|
-
|
|
138
|
+
--watch-live-header: 46px;
|
|
139
|
+
`}${s.intermediate("xl", "lg")`
|
|
139
140
|
--header-offset: 76px;
|
|
140
141
|
`}`;
|
|
141
|
-
const
|
|
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
|
-
|
|
144
|
+
i as E,
|
|
144
145
|
N as O,
|
|
145
146
|
P as S,
|
|
146
|
-
|
|
147
|
+
f as a,
|
|
147
148
|
B as b,
|
|
148
|
-
u as
|
|
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
|
|
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
|
-
|
|
18
|
-
|
|
6
|
+
o as MastersStreamLayerProvider,
|
|
7
|
+
s as MastersStreamLayerSDKReact
|
|
19
8
|
};
|