@streamlayer/react 1.14.3 → 1.14.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/advertisement.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/index2.js +5 -5
- package/lib/cjs/masters2.js +8 -3
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/provider.js +32 -16
- package/lib/cjs/useStreamLayerApp2.js +2 -2
- package/lib/classic/cjs/advertisement.js +1 -1
- package/lib/classic/cjs/bet-pack.js +1 -1
- package/lib/classic/cjs/index2.js +5 -5
- package/lib/classic/cjs/masters2.js +8 -3
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/provider.js +32 -16
- package/lib/classic/cjs/useStreamLayerApp2.js +2 -2
- package/lib/classic/es/advertisement.js +3 -3
- package/lib/classic/es/bet-pack.js +5 -5
- package/lib/classic/es/index.js +4 -4
- package/lib/classic/es/index2.js +1228 -1344
- package/lib/classic/es/masters2.js +404 -399
- package/lib/classic/es/notification.js +42 -40
- package/lib/classic/es/provider.js +3847 -3786
- package/lib/classic/es/useStreamLayerApp2.js +65 -49
- package/lib/classic/style.css +1 -1
- package/lib/dist/cjs/masters.js +48 -27
- package/lib/dist/es/masters.js +11377 -11416
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +3 -3
- package/lib/es/bet-pack.js +5 -5
- package/lib/es/index.js +4 -4
- package/lib/es/index2.js +1228 -1344
- package/lib/es/masters2.js +404 -399
- package/lib/es/notification.js +42 -40
- package/lib/es/provider.js +3844 -3783
- package/lib/es/useStreamLayerApp2.js +65 -49
- package/lib/style.css +1 -1
- package/package.json +14 -14
package/lib/es/advertisement.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as Y, jsxs as ke, Fragment as Cd } from "react/jsx-runtime";
|
|
2
2
|
import { useState as Ad, useRef as Ur, useEffect as pi, useCallback as Bs } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { v as Ui, s as ee, k as x_, T as L_, i as D_, a as Il, U as Ko, Y as P_, e as Yo, J as R_, u as N_, V as O_, b as U_, S as Ki, h as M_ } from "./provider.js";
|
|
4
4
|
import { u as B_, N as Ri, a as Id, b as xd, C as Ld, c as Dd, v as wc, P as xn, d as ar, A as F_, e as q_, S as $_ } from "./useStreamLayerApp2.js";
|
|
5
5
|
const j_ = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
|
6
6
|
function Pd(i) {
|
|
@@ -1632,9 +1632,9 @@ const Pb = (i, e) => {
|
|
|
1632
1632
|
try {
|
|
1633
1633
|
const s = new URL(e), a = new t.NonceRequest();
|
|
1634
1634
|
let l = localStorage.getItem("sl-device-id") || wc(), u = sessionStorage.getItem("sl-ad-session-id");
|
|
1635
|
-
u || (u = wc(), sessionStorage.setItem("sl-ad-session-id", u)), Pd(l) || (l = Qs(`https://${l}`, Qs.URL)), a.adWillAutoPlay = s.searchParams.get("vpa") === "auto", a.adWillPlayMuted = s.searchParams.get("vpmute") === "1", a.continuousPlayback = !0, a.descriptionUrl = s.searchParams.get("description_url")
|
|
1635
|
+
u || (u = wc(), sessionStorage.setItem("sl-ad-session-id", u)), Pd(l) || (l = Qs(`https://${l}`, Qs.URL)), s.searchParams.get("url") || s.searchParams.set("url", "https://streamlayer.io"), s.searchParams.get("description_url") || s.searchParams.set("description_url", "https://streamlayer.io"), a.adWillAutoPlay = s.searchParams.get("vpa") === "auto", a.adWillPlayMuted = s.searchParams.get("vpmute") === "1", a.continuousPlayback = !0, a.descriptionUrl = s.searchParams.get("description_url"), a.iconsSupported = !0, a.sessionId = l, a.supportedApiFrameworks = "2,7,9", a.videoHeight = i.clientHeight, a.videoWidth = i.clientWidth;
|
|
1636
1636
|
const p = await n.loadNonceManager(a);
|
|
1637
|
-
return s.searchParams.
|
|
1637
|
+
return s.searchParams.get("is_lat") === "[placeholder]" && s.searchParams.set("is_lat", "1"), s.searchParams.get("rdid") === "[placeholder]" && s.searchParams.set("rdid", l), s.searchParams.get("correlator") === "[placeholder]" && s.searchParams.set("correlator", u), s.searchParams.set("wta", "1"), s.searchParams.set("givn", p.getNonce()), s;
|
|
1638
1638
|
} catch (s) {
|
|
1639
1639
|
console.log("AdsManager could not be started", s);
|
|
1640
1640
|
return;
|
package/lib/es/bet-pack.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { K as s, e as u } from "./index2.js";
|
|
3
3
|
import { u as o } from "./provider.js";
|
|
4
4
|
const c = () => {
|
|
5
5
|
const r = o();
|
|
6
|
-
return r ? /* @__PURE__ */
|
|
6
|
+
return r ? /* @__PURE__ */ t(s, { sdk: r }) : null;
|
|
7
7
|
}, f = ({ close: r, onEvent: n }) => {
|
|
8
|
-
const
|
|
9
|
-
return
|
|
8
|
+
const e = o();
|
|
9
|
+
return e ? /* @__PURE__ */ t(u, { sdk: e, onEvent: n, close: r }) : null;
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
12
|
f as BetPackOverlayProvider,
|
package/lib/es/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as S, S as o, a3 as i, h as s, u as y, b as L, V as p } from "./provider.js";
|
|
2
2
|
import "./useStreamLayerApp2.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
|
-
import { StreamLayerSDKNotification as
|
|
5
|
+
import { StreamLayerSDKNotification as u, StreamLayerSDKNotificationUI as D } from "./notification.js";
|
|
6
6
|
export {
|
|
7
7
|
S as StreamLayerProvider,
|
|
8
8
|
o as StreamLayerSDKEvent,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
u as StreamLayerSDKNotification,
|
|
10
|
+
D as StreamLayerSDKNotificationUI,
|
|
11
11
|
i as StreamLayerSDKReact,
|
|
12
12
|
s as StreamLayerThemeProvider,
|
|
13
13
|
y as useStreamLayer,
|