@streamlayer/react 1.21.4 → 1.22.2
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/app/masters.d.ts +2 -5
- package/lib/app/pause-ad.d.ts +1 -10
- package/lib/app/useStreamLayerApp.d.ts +1 -23
- package/lib/cjs/Question.js +1 -0
- package/lib/cjs/advertisement.js +40 -40
- package/lib/cjs/analytics.js +1 -0
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/hooks-B0Qttldg.js +1 -0
- package/lib/cjs/index-DSi8Qgfs.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -0
- package/lib/cjs/index11.js +4 -0
- package/lib/cjs/index12.js +1 -0
- package/lib/cjs/index13.js +1 -0
- package/lib/cjs/index14.js +1 -0
- package/lib/cjs/index15.js +1 -0
- package/lib/cjs/index16.js +5 -0
- package/lib/cjs/index2.js +1 -5
- package/lib/cjs/index3.js +1 -0
- package/lib/cjs/index4.js +5 -0
- package/lib/cjs/index5.js +1 -0
- package/lib/cjs/index6.js +1 -0
- package/lib/cjs/index7.js +5 -0
- package/lib/cjs/index8.js +1 -0
- package/lib/cjs/index9.js +1 -0
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +6 -6
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/sl-types.js +15 -0
- package/lib/cjs/storage.js +1 -0
- package/lib/cjs/theme.js +17 -0
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +9 -9
- package/lib/cjs/utils.js +47 -0
- package/lib/cjs/vast-client.min.js +1 -0
- package/lib/classic/app/masters.d.ts +2 -5
- package/lib/classic/app/pause-ad.d.ts +1 -10
- package/lib/classic/app/useStreamLayerApp.d.ts +1 -23
- package/lib/classic/cjs/Question.js +1 -0
- package/lib/classic/cjs/advertisement.js +40 -40
- package/lib/classic/cjs/analytics.js +1 -0
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +4 -4
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-B0Qttldg.js +1 -0
- package/lib/classic/cjs/index-DSi8Qgfs.js +1 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -0
- package/lib/classic/cjs/index11.js +1 -0
- package/lib/classic/cjs/index12.js +1 -0
- package/lib/classic/cjs/index13.js +4 -0
- package/lib/classic/cjs/index2.js +5 -0
- package/lib/classic/cjs/index3.js +1 -0
- package/lib/classic/cjs/index4.js +1 -0
- package/lib/classic/cjs/index5.js +1 -0
- package/lib/classic/cjs/index6.js +5 -0
- package/lib/classic/cjs/index7.js +1 -0
- package/lib/classic/cjs/index8.js +1 -0
- package/lib/classic/cjs/index9.js +1 -0
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -0
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/sl-types.js +15 -0
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +9 -9
- package/lib/classic/cjs/utils.js +47 -0
- package/lib/classic/cjs/vast-client.min.js +1 -0
- package/lib/classic/es/Question.js +392 -0
- package/lib/classic/es/advertisement.js +10375 -10374
- package/lib/classic/es/analytics.js +28 -0
- package/lib/classic/es/auth.js +4 -4
- package/lib/classic/es/bet-pack.js +56 -51
- package/lib/classic/es/gamification-feature.js +1 -1
- package/lib/classic/es/hooks-B0Qttldg.js +98 -0
- package/lib/classic/es/index-DSi8Qgfs.js +65 -0
- package/lib/classic/es/index.js +14 -15
- package/lib/classic/es/index10.js +87 -0
- package/lib/classic/es/index11.js +2361 -0
- package/lib/classic/es/index12.js +183 -0
- package/lib/classic/es/index13.js +835 -0
- package/lib/classic/es/index2.js +2621 -0
- package/lib/classic/es/index3.js +64 -0
- package/lib/classic/es/index4.js +19 -0
- package/lib/classic/es/index5.js +285 -0
- package/lib/classic/es/{index-l-eyvmpL.js → index6.js} +937 -937
- package/lib/classic/es/index7.js +7 -0
- package/lib/classic/es/index8.js +11 -0
- package/lib/classic/es/index9.js +319 -0
- package/lib/classic/es/insight.js +31 -32
- package/lib/classic/es/notification.js +7 -1006
- package/lib/classic/es/notification2.js +1117 -0
- package/lib/classic/es/pause-ad.js +139 -138
- package/lib/classic/es/points.js +39 -38
- package/lib/classic/es/sl-types.js +258 -0
- package/lib/classic/es/useStreamLayerApp.js +1 -2
- package/lib/classic/es/useStreamLayerApp2.js +2400 -2283
- package/lib/classic/es/utils.js +76 -0
- package/lib/{es/vast-client.min-B0NUra1B.js → classic/es/vast-client.min.js} +338 -338
- package/lib/classic/index.d.ts +5 -13
- package/lib/classic/masters.d.ts +1 -1
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +30 -30
- package/lib/dist/es/index.js +2 -2
- package/lib/dist/es/masters.js +5813 -6063
- package/lib/dist/index.d.ts +1332 -0
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +136 -0
- package/lib/es/advertisement.js +10375 -10374
- package/lib/es/analytics.js +28 -0
- package/lib/es/auth.js +4 -4
- package/lib/es/bet-pack.js +7 -6
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/hooks-B0Qttldg.js +98 -0
- package/lib/es/index-DSi8Qgfs.js +65 -0
- package/lib/es/index.js +13 -14
- package/lib/es/index10.js +267 -0
- package/lib/es/index11.js +835 -0
- package/lib/es/index12.js +183 -0
- package/lib/es/index13.js +319 -0
- package/lib/es/index14.js +87 -0
- package/lib/es/index15.js +2355 -0
- package/lib/es/index16.js +1254 -0
- package/lib/es/index2.js +1349 -3363
- package/lib/es/index3.js +64 -0
- package/lib/es/index4.js +3418 -0
- package/lib/es/index5.js +19 -0
- package/lib/es/index6.js +285 -0
- package/lib/es/{index-l-eyvmpL.js → index7.js} +937 -937
- package/lib/es/index8.js +7 -0
- package/lib/es/index9.js +11 -0
- package/lib/es/insight.js +31 -32
- package/lib/es/masters.js +6 -5
- package/lib/es/masters2.js +189 -176
- package/lib/es/notification.js +124 -119
- package/lib/es/pause-ad.js +140 -139
- package/lib/es/points.js +40 -38
- package/lib/es/sl-types.js +277 -0
- package/lib/es/storage.js +113 -0
- package/lib/es/theme.js +47 -0
- package/lib/es/useStreamLayerApp.js +1 -2
- package/lib/es/useStreamLayerApp2.js +2399 -2282
- package/lib/es/utils.js +76 -0
- package/lib/{classic/es/vast-client.min-B0NUra1B.js → es/vast-client.min.js} +338 -338
- package/lib/index.d.ts +5 -13
- package/lib/masters.d.ts +1 -1
- package/lib/style.css +1 -1
- package/package.json +13 -48
- package/lib/app/event.d.ts +0 -6
- package/lib/app/provider.d.ts +0 -49
- package/lib/cjs/index-l-eyvmpL.js +0 -5
- package/lib/cjs/provider.js +0 -84
- package/lib/cjs/vast-client.min-B0NUra1B.js +0 -1
- package/lib/classic/app/event.d.ts +0 -6
- package/lib/classic/app/provider.d.ts +0 -49
- package/lib/classic/cjs/index-l-eyvmpL.js +0 -5
- package/lib/classic/cjs/provider.js +0 -68
- package/lib/classic/cjs/vast-client.min-B0NUra1B.js +0 -1
- package/lib/classic/es/provider.js +0 -7617
- package/lib/dist/cjs/gamification-feature2.js +0 -1
- package/lib/dist/es/gamification-feature2.js +0 -285
- package/lib/es/provider.js +0 -7693
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { s as p, u as v } from "./sl-types.js";
|
|
3
|
+
import { createContext as z, useContext as F, useRef as Y, useEffect as _, useState as G } from "react";
|
|
4
|
+
import { y as J, d as K, x as M, a as W } from "./index10.js";
|
|
5
|
+
import { e as X, t as Z } from "./index11.js";
|
|
6
|
+
import { y as oo } from "./utils.js";
|
|
7
|
+
import { Q as L, A as eo } from "./useStreamLayerApp2.js";
|
|
8
|
+
const to = z({
|
|
9
|
+
sdk: null,
|
|
10
|
+
topNavigation: !1
|
|
11
|
+
}), so = () => F(to), no = /* @__PURE__ */ p("div")({
|
|
12
|
+
name: "QuestionAdvertisementContainer",
|
|
13
|
+
class: "qwludgs",
|
|
14
|
+
propsAsIs: !1
|
|
15
|
+
}), io = /* @__PURE__ */ p("div")({
|
|
16
|
+
name: "QuestionAdvertisementText",
|
|
17
|
+
class: "qvce6pv",
|
|
18
|
+
propsAsIs: !1
|
|
19
|
+
}), lo = /* @__PURE__ */ p("div")({
|
|
20
|
+
name: "QuestionAdvertisementImage",
|
|
21
|
+
class: "qsid7hx",
|
|
22
|
+
propsAsIs: !1
|
|
23
|
+
}), ao = ({
|
|
24
|
+
sponsorLogo: o,
|
|
25
|
+
id: l,
|
|
26
|
+
hasBanner: r,
|
|
27
|
+
setAdShowed: n
|
|
28
|
+
}) => {
|
|
29
|
+
const i = Y();
|
|
30
|
+
return _(() => (i.current = setTimeout(() => {
|
|
31
|
+
n(!0);
|
|
32
|
+
}, 5e3), () => {
|
|
33
|
+
clearTimeout(i.current);
|
|
34
|
+
}), [n, l, r]), /* @__PURE__ */ m(no, {
|
|
35
|
+
children: [/* @__PURE__ */ t(io, {
|
|
36
|
+
children: "PRESENTED BY"
|
|
37
|
+
}), /* @__PURE__ */ t(lo, {
|
|
38
|
+
children: /* @__PURE__ */ t("img", {
|
|
39
|
+
src: o,
|
|
40
|
+
alt: "ad-sponsor-logo"
|
|
41
|
+
})
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
44
|
+
}, V = /* @__PURE__ */ p("div")({
|
|
45
|
+
name: "QuestionContainer",
|
|
46
|
+
class: "q14ckf9e",
|
|
47
|
+
propsAsIs: !1
|
|
48
|
+
}), ro = ({
|
|
49
|
+
openedQuestion: o,
|
|
50
|
+
muted: l,
|
|
51
|
+
webos: r
|
|
52
|
+
}) => {
|
|
53
|
+
var n, i;
|
|
54
|
+
const {
|
|
55
|
+
sdk: s
|
|
56
|
+
} = so();
|
|
57
|
+
return ((n = o == null ? void 0 : o.attributes) == null ? void 0 : n.attributes.case) === "insight" ? /* @__PURE__ */ t(M, {
|
|
58
|
+
...o.attributes.attributes.value,
|
|
59
|
+
muted: l,
|
|
60
|
+
controlVideo: s == null ? void 0 : s.controlVideoPlayer,
|
|
61
|
+
webos: r
|
|
62
|
+
}) : ((i = o == null ? void 0 : o.attributes) == null ? void 0 : i.attributes.case) === "tweet" ? /* @__PURE__ */ t(W, {
|
|
63
|
+
...o.attributes.attributes.value,
|
|
64
|
+
muted: l,
|
|
65
|
+
controlVideo: s == null ? void 0 : s.controlVideoPlayer
|
|
66
|
+
}) : null;
|
|
67
|
+
}, uo = ({
|
|
68
|
+
extendedQuestion: o,
|
|
69
|
+
vote: l,
|
|
70
|
+
close: r,
|
|
71
|
+
webos: n
|
|
72
|
+
}) => {
|
|
73
|
+
const {
|
|
74
|
+
loading: i,
|
|
75
|
+
data: s
|
|
76
|
+
} = o;
|
|
77
|
+
return s ? /* @__PURE__ */ t(X, {
|
|
78
|
+
webos: n,
|
|
79
|
+
vote: l,
|
|
80
|
+
close: r,
|
|
81
|
+
openedQuestion: s,
|
|
82
|
+
isLoading: !!i
|
|
83
|
+
}) : /* @__PURE__ */ t(Z, {});
|
|
84
|
+
}, Ao = ({
|
|
85
|
+
gamification: o,
|
|
86
|
+
sdk: l,
|
|
87
|
+
muted: r,
|
|
88
|
+
skipAutoClose: n,
|
|
89
|
+
hideSponsor: i,
|
|
90
|
+
className: s,
|
|
91
|
+
hideHeader: B,
|
|
92
|
+
webos: c
|
|
93
|
+
}) => {
|
|
94
|
+
var b, g, h, A, f, Q, w, x, y, T, U, I, S, N, $, k;
|
|
95
|
+
const a = v(o.openedQuestion.$store), e = v(o.openedQuestion.$extendedStore), [D, R] = G(!1), j = v(l.options), q = ((b = a == null ? void 0 : a.attributes) == null ? void 0 : b.type) === L.FACTOID, d = (g = a == null ? void 0 : a.attributes) == null ? void 0 : g.backgroundImage, u = (h = e.data) == null ? void 0 : h.backgroundImage, P = q ? d == null ? void 0 : d.landscapeUrl : u == null ? void 0 : u.landscapeUrl, H = q ? d == null ? void 0 : d.portraitUrl : u == null ? void 0 : u.portraitUrl, C = oo({
|
|
96
|
+
containerId: j.containerId,
|
|
97
|
+
landscapeUrl: P,
|
|
98
|
+
portraitUrl: H
|
|
99
|
+
});
|
|
100
|
+
if (!a)
|
|
101
|
+
return null;
|
|
102
|
+
const E = a.type, O = ((f = (A = e.data) == null ? void 0 : A.options) == null ? void 0 : f.options.case) === "factoid" ? e.data.options.options.value.closeTimer : void 0;
|
|
103
|
+
return e.data && e.data.adUnit === eo.STANDART && !D ? /* @__PURE__ */ m(V, {
|
|
104
|
+
className: s,
|
|
105
|
+
children: [C, /* @__PURE__ */ t(ao, {
|
|
106
|
+
id: e.data.id,
|
|
107
|
+
hasBanner: !!((w = (Q = e.data.promotion) == null ? void 0 : Q.banner) != null && w.imageUrl),
|
|
108
|
+
setAdShowed: R,
|
|
109
|
+
sponsorLogo: ((y = (x = e.data.promotion) == null ? void 0 : x.sponsor) == null ? void 0 : y.logo) || ((T = e.data.sponsorship) == null ? void 0 : T.logo) || ""
|
|
110
|
+
})]
|
|
111
|
+
}) : /* @__PURE__ */ m(V, {
|
|
112
|
+
className: s,
|
|
113
|
+
children: [C, !B && /* @__PURE__ */ t(J, {
|
|
114
|
+
closeTimer: n ? void 0 : O,
|
|
115
|
+
close: o.closeQuestion,
|
|
116
|
+
type: ((U = a.attributes) == null ? void 0 : U.type) || L.UNSET,
|
|
117
|
+
webos: c
|
|
118
|
+
}), E === "question" && /* @__PURE__ */ t(uo, {
|
|
119
|
+
webos: c,
|
|
120
|
+
vote: o.submitAnswer,
|
|
121
|
+
close: o.closeQuestion,
|
|
122
|
+
extendedQuestion: e
|
|
123
|
+
}), E !== "question" && /* @__PURE__ */ t(ro, {
|
|
124
|
+
muted: r,
|
|
125
|
+
openedQuestion: a,
|
|
126
|
+
webos: c
|
|
127
|
+
}), !i && /* @__PURE__ */ t(K, {
|
|
128
|
+
sponsorLogo: ((N = (S = (I = e.data) == null ? void 0 : I.promotion) == null ? void 0 : S.sponsor) == null ? void 0 : N.logo) || ((k = ($ = e.data) == null ? void 0 : $.sponsorship) == null ? void 0 : k.logo)
|
|
129
|
+
})]
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
export {
|
|
133
|
+
to as e,
|
|
134
|
+
Ao as h,
|
|
135
|
+
so as p
|
|
136
|
+
};
|