@streamlayer/react 1.14.3 → 1.14.5

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.
@@ -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 { t as Ui, s as ee, k as x_, O as L_, i as D_, a as Il, Q as Ko, Y as P_, e as Yo, E as R_, u as N_, T as O_, b as U_, S as Ki, h as M_ } from "./provider.js";
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") || "", a.iconsSupported = !0, a.sessionId = l, a.supportedApiFrameworks = "2,7,9", a.videoHeight = i.clientHeight, a.videoWidth = i.clientWidth;
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.set("givn", p.getNonce()), 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;
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;
@@ -1,12 +1,12 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { Z as s, u } from "./index2.js";
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__ */ e(s, { sdk: r }) : null;
6
+ return r ? /* @__PURE__ */ t(s, { sdk: r }) : null;
7
7
  }, f = ({ close: r, onEvent: n }) => {
8
- const t = o();
9
- return t ? /* @__PURE__ */ e(u, { sdk: t, onEvent: n, close: r }) : null;
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 { K as S, S as o, a1 as i, h as s, u as y, b as L, T as p } from "./provider.js";
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 f, StreamLayerSDKNotificationUI as u } from "./notification.js";
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
- f as StreamLayerSDKNotification,
10
- u as StreamLayerSDKNotificationUI,
9
+ u as StreamLayerSDKNotification,
10
+ D as StreamLayerSDKNotificationUI,
11
11
  i as StreamLayerSDKReact,
12
12
  s as StreamLayerThemeProvider,
13
13
  y as useStreamLayer,