@streamlayer/react 0.41.1 → 0.41.3
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/gamification-feature.js +1 -1
- package/lib/cjs/index2.js +10 -9
- package/lib/cjs/masters2.js +37 -39
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/dist/cjs/index.js +74 -75
- package/lib/dist/es/index.js +15960 -15815
- package/lib/dist/index.d.ts +41 -11
- package/lib/dist/style.css +1 -1
- package/lib/es/gamification-feature.js +2 -2
- package/lib/es/index2.js +40 -39
- package/lib/es/masters2.js +8076 -8000
- package/lib/es/points.js +36 -36
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +9 -9
package/lib/es/index2.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
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 = ({
|
|
9
9
|
sdkKey: R,
|
|
10
10
|
plugins: E,
|
|
11
11
|
children: t,
|
|
12
|
-
production:
|
|
12
|
+
production: a = !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
|
-
production:
|
|
20
|
+
production: a,
|
|
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
|
+
}, p = {
|
|
102
102
|
landscape: "landscape",
|
|
103
103
|
portrait: "portrait"
|
|
104
|
-
},
|
|
105
|
-
const t =
|
|
104
|
+
}, l = 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
|
+
}, ""), n = (R) => (E) => `
|
|
111
111
|
@media only screen and (${R}) {
|
|
112
112
|
${E}
|
|
113
113
|
}
|
|
114
|
-
`,
|
|
114
|
+
`, m = (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 n(`min-width: ${E}px`);
|
|
122
122
|
},
|
|
123
123
|
down: (R) => {
|
|
124
124
|
const E = N[R] - 1;
|
|
125
|
-
return
|
|
125
|
+
return n(`max-width: ${E}px`);
|
|
126
126
|
},
|
|
127
127
|
intermediate: (R, E) => {
|
|
128
|
-
const t = N[R] - 1,
|
|
129
|
-
return
|
|
128
|
+
const t = N[R] - 1, a = N[E];
|
|
129
|
+
return m(`max-width: ${t}px`, `min-width: ${a}px`);
|
|
130
130
|
},
|
|
131
131
|
orientation: (R) => {
|
|
132
|
-
const E =
|
|
133
|
-
return
|
|
132
|
+
const E = p[R];
|
|
133
|
+
return n(`orientation: ${E}`);
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
|
-
`${
|
|
136
|
+
`${l}${_.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
|
-
|
|
149
|
-
|
|
149
|
+
U as c,
|
|
150
|
+
u as p
|
|
150
151
|
};
|