@streamlayer/react 1.9.6 → 1.9.7

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 e, jsxs as v, Fragment as po } from "react/jsx-runtime";
2
- import { useRef as F, useState as R, useCallback as ko, useEffect as M } from "react";
3
- import { e as k, s as n, h as Po, g as mo, i as D, Y as Lo, a as uo, L as Mo, u as Oo, j as _o, b as Bo, S as T, d as xo } from "./index2.js";
2
+ import { useRef as F, useState as R, useCallback as Po, useEffect as M } from "react";
3
+ import { e as P, s as n, h as ko, g as mo, i as D, Y as Lo, a as uo, L as Mo, u as Oo, j as _o, b as Bo, S as T, d as xo } from "./index2.js";
4
4
  import { N, a as vo, b as Ao, C as go, c as ho, P as L, d as S, A as Ro, e as Do, S as qo } from "./useStreamLayerApp2.js";
5
5
  const wo = /* @__PURE__ */ n("div")({
6
6
  name: "Container",
@@ -16,7 +16,7 @@ const wo = /* @__PURE__ */ n("div")({
16
16
  onAnimationEnd: c
17
17
  }) => /* @__PURE__ */ e(wo, {
18
18
  style: s,
19
- className: k(i, Vo, Ho(r), t && !l && Go(r), t && l && Wo(r)),
19
+ className: P(i, Vo, Ho(r), t && !l && Go(r), t && l && Wo(r)),
20
20
  onAnimationEnd: c,
21
21
  children: o
22
22
  }), Ko = /* @__PURE__ */ n("a")({
@@ -177,11 +177,11 @@ const wo = /* @__PURE__ */ n("div")({
177
177
  name: "CtaIcon",
178
178
  class: "ckq1frv",
179
179
  propsAsIs: !1
180
- }), ke = /* @__PURE__ */ n("button")({
180
+ }), Pe = /* @__PURE__ */ n("button")({
181
181
  name: "Button",
182
182
  class: "bis90pl",
183
183
  propsAsIs: !1
184
- }), Pe = () => Po, Le = /* @__PURE__ */ n(Pe())({
184
+ }), ke = () => ko, Le = /* @__PURE__ */ n(ke())({
185
185
  name: "StyledChevronRight",
186
186
  class: "s9mjmz3",
187
187
  propsAsIs: !0
@@ -213,7 +213,7 @@ const wo = /* @__PURE__ */ n("div")({
213
213
  r && /* @__PURE__ */ e(he, { children: r }),
214
214
  c && /* @__PURE__ */ e(Ie, { children: c })
215
215
  ] }),
216
- /* @__PURE__ */ v(ke, { name: "promo-button", style: { color: p == null ? void 0 : p.textColor, backgroundColor: p == null ? void 0 : p.color }, children: [
216
+ /* @__PURE__ */ v(Pe, { name: "promo-button", style: { color: p == null ? void 0 : p.textColor, backgroundColor: p == null ? void 0 : p.color }, children: [
217
217
  (p == null ? void 0 : p.ctaIcon) && (p == null ? void 0 : p.ctaIconMode) === go.CTA_ICON_TRANSPARENT && /* @__PURE__ */ e(Ee, { src: p == null ? void 0 : p.ctaIcon, alt: "cta-icon" }),
218
218
  (p == null ? void 0 : p.label) || "Open"
219
219
  ] }),
@@ -359,7 +359,7 @@ const wo = /* @__PURE__ */ n("div")({
359
359
  skipAutoClose: r
360
360
  }) => {
361
361
  var c;
362
- const m = F(null), [A, a] = R(!1), [g, u] = R(0), [p, I] = R(0), [$, h] = R(0), y = F(), b = ko(() => {
362
+ const m = F(null), [A, a] = R(!1), [g, u] = R(0), [p, I] = R(0), [$, h] = R(0), y = F(), b = Po(() => {
363
363
  u(0), I(0), h(0), a(!1), s == null || s({
364
364
  muted: !1
365
365
  });
@@ -396,7 +396,7 @@ const wo = /* @__PURE__ */ n("div")({
396
396
  className: "PromoOverlay",
397
397
  children: [/* @__PURE__ */ v(bo, {
398
398
  children: [/* @__PURE__ */ e(fo, {
399
- className: k(!O && No),
399
+ className: P(!O && No),
400
400
  children: /* @__PURE__ */ e(Co, {
401
401
  style: {
402
402
  transform: "scale(1.5)"
@@ -417,7 +417,7 @@ const wo = /* @__PURE__ */ n("div")({
417
417
  })]
418
418
  })]
419
419
  }), /* @__PURE__ */ e($o, {
420
- className: k(Xe, A && on, !A && en),
420
+ className: P(Xe, A && on, !A && en),
421
421
  children: /* @__PURE__ */ e(Ze, {
422
422
  ref: m
423
423
  })
@@ -445,13 +445,13 @@ const wo = /* @__PURE__ */ n("div")({
445
445
  _ == null || _({ muted: !1 });
446
446
  }, [_]), so)
447
447
  return /* @__PURE__ */ e(nn, { ...o, externalAd: so });
448
- let P = (l = d.banner) == null ? void 0 : l.url;
449
- P && P.indexOf("http") !== 0 && (P = `https://${P}`);
448
+ let k = (l = d.banner) == null ? void 0 : l.url;
449
+ k && k.indexOf("http") !== 0 && (k = `https://${k}`);
450
450
  let U = !0;
451
451
  return to && (!To || !x ? U = !0 : U = !1), /* @__PURE__ */ v(yo, { className: "PromoOverlay", children: [
452
452
  /* @__PURE__ */ v(bo, { children: [
453
- /* @__PURE__ */ v(fo, { className: k(!j && No), children: [
454
- ((r = d.sponsor) == null ? void 0 : r.logo) && d.logoMode === L.LEFT && /* @__PURE__ */ e(ao, { src: (c = d.sponsor) == null ? void 0 : c.logo, alt: "promo" }),
453
+ /* @__PURE__ */ v(fo, { className: P(!j && No), children: [
454
+ ((r = d.sponsor) == null ? void 0 : r.logo) && d.logoMode === L.LEFT && /* @__PURE__ */ e(ao, { className: "PromoSponsorLogo", src: (c = d.sponsor) == null ? void 0 : c.logo, alt: "promo" }),
455
455
  /* @__PURE__ */ v(
456
456
  Ve,
457
457
  {
@@ -504,14 +504,14 @@ const wo = /* @__PURE__ */ n("div")({
504
504
  }
505
505
  ) : (f = d.banner) != null && f.imageUrl ? /* @__PURE__ */ e(De, { style: V ? { aspectRatio: "1/1" } : {}, src: (C = d.banner) == null ? void 0 : C.imageUrl, alt: "promo" }) : null }),
506
506
  !V && /* @__PURE__ */ v(ro, { children: [
507
- ((W = d.banner) == null ? void 0 : W.title) && /* @__PURE__ */ e(Ge, { className: k("AdvTitle", j && We), children: (H = d.banner) == null ? void 0 : H.title }),
507
+ ((W = d.banner) == null ? void 0 : W.title) && /* @__PURE__ */ e(Ge, { className: P("AdvTitle", j && We), children: (H = d.banner) == null ? void 0 : H.title }),
508
508
  ((K = d.banner) == null ? void 0 : K.body) && /* @__PURE__ */ e(we, { className: "AdvDescription", children: (Y = d.banner) == null ? void 0 : Y.body })
509
509
  ] })
510
510
  ] }),
511
511
  d.buttonType !== Do.NO_BUTTON && /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(
512
512
  ze,
513
513
  {
514
- href: P,
514
+ href: k,
515
515
  style: {
516
516
  backgroundColor: ((Z = (J = d.banner) == null ? void 0 : J.ctaButton) == null ? void 0 : Z.color) || "#009dc4",
517
517
  color: ((X = (Q = d.banner) == null ? void 0 : Q.ctaButton) == null ? void 0 : X.textColor) || "#fff"
@@ -651,7 +651,7 @@ const wo = /* @__PURE__ */ n("div")({
651
651
  style: {
652
652
  height: y ? "auto" : "100%"
653
653
  },
654
- className: k("SL-AdvertisementUIWrap", m && "mobile-view", b && "SL-AdvertisementUIWrap--lower-third"),
654
+ className: P("SL-AdvertisementUIWrap", m && "mobile-view", b && "SL-AdvertisementUIWrap--lower-third"),
655
655
  children: /* @__PURE__ */ e(ln, {
656
656
  skipTypeCheck: t,
657
657
  sidebar: l,
@@ -17950,7 +17950,7 @@ const sE = ({
17950
17950
  f = !0;
17951
17951
  };
17952
17952
  const T = tE(e, n, a, {
17953
- version: "1.9.6",
17953
+ version: "1.9.7",
17954
17954
  onDeepLinkHandled: s,
17955
17955
  videoPlayerController: o,
17956
17956
  onContentActivate: r,