@streamlayer/react-ui 1.31.7 → 1.32.1
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/webos/ExposedPauseAd/PauseAd.d.ts +6 -3
- package/lib/app/webos/ExposedPauseAd/PauseAd.js +99 -79
- package/lib/app/webos/ExposedPauseAd/styles.d.ts +1 -2
- package/lib/app/webos/ExposedPauseAd/styles.js +26 -31
- package/lib/app/webos/index.d.ts +5 -2
- package/lib/app/webos/index.js +22 -21
- package/lib/assets/style.css +1 -1
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.d.ts +1 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.js +56 -31
- package/package.json +16 -16
|
@@ -1,17 +1,20 @@
|
|
|
1
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
1
2
|
import { StreamLayerSDKTvOptions } from '..';
|
|
2
3
|
export interface PauseAdProps {
|
|
3
4
|
vastUrls: Array<{
|
|
4
5
|
template?: 'default';
|
|
5
6
|
url: string;
|
|
6
7
|
}>;
|
|
7
|
-
onClose
|
|
8
|
+
onClose?: () => void;
|
|
8
9
|
title?: string;
|
|
9
10
|
caption?: string;
|
|
10
|
-
onPlay?: () => void;
|
|
11
11
|
showPauseAd?: boolean;
|
|
12
12
|
onRender?: (params: {
|
|
13
13
|
rendered: boolean;
|
|
14
14
|
}) => void;
|
|
15
15
|
options?: StreamLayerSDKTvOptions;
|
|
16
|
+
isDesktop?: boolean;
|
|
16
17
|
}
|
|
17
|
-
export declare const PauseAd: React.FC<PauseAdProps
|
|
18
|
+
export declare const PauseAd: React.FC<PauseAdProps & {
|
|
19
|
+
sdk: StreamLayerSDK;
|
|
20
|
+
}>;
|
|
@@ -1,116 +1,136 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cx as
|
|
3
|
-
import { useFocusable as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useStore as
|
|
1
|
+
import { jsx as a, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { cx as F } from "@linaria/core";
|
|
3
|
+
import { useFocusable as G } from "@noriginmedia/norigin-spatial-navigation";
|
|
4
|
+
import { useState as w, useRef as L, useCallback as B, useEffect as P } from "react";
|
|
5
|
+
import { useStore as I } from "@streamlayer/react-polyfills";
|
|
6
6
|
import { eventBus as S } from "@streamlayer/sdk-web-interfaces";
|
|
7
|
-
import { useLoadGAMStatic as
|
|
8
|
-
import { PauseAdOverlay as
|
|
9
|
-
const
|
|
10
|
-
var
|
|
11
|
-
const [,
|
|
12
|
-
return (
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
import { useLoadGAMStatic as C } from "../../../ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.js";
|
|
8
|
+
import { PauseAdOverlay as N, PauseAdContent as j, PauseAdTopLeft as K, PauseAdTitle as O, PauseAdCaption as V, PauseAdBottomLeft as $, PauseAdPlayButton as _, PauseAdSidebarGradient as q, PauseAdSidebar as z, PauseAdTitleDescription as H, ExternalAdContainer as D } from "./styles.js";
|
|
9
|
+
const J = ({ vastUrl: r, isDesktop: n }) => {
|
|
10
|
+
var u;
|
|
11
|
+
const [, y] = C(), e = I(y, { keys: [r] });
|
|
12
|
+
return P(() => {
|
|
13
|
+
e && e[r] && e[r].imageSrc && e[r].id && S.emit("exposedPauseAd", {
|
|
14
|
+
action: "rendered",
|
|
15
|
+
payload: {
|
|
16
|
+
id: e[r].id
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}, [e, r]), (u = e == null ? void 0 : e[r]) != null && u.imageSrc ? !e[r].adUrl || !n ? /* @__PURE__ */ a(D, { src: e[r].imageSrc }) : /* @__PURE__ */ a(
|
|
20
|
+
"a",
|
|
21
|
+
{
|
|
22
|
+
onClick: () => {
|
|
23
|
+
S.emit("exposedPauseAd", {
|
|
24
|
+
action: "navigated",
|
|
25
|
+
payload: {
|
|
26
|
+
id: e[r].id
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
},
|
|
30
|
+
href: e[r].adUrl,
|
|
31
|
+
target: "_blank",
|
|
32
|
+
rel: "noopener noreferrer",
|
|
33
|
+
children: /* @__PURE__ */ a(D, { src: e[r].imageSrc })
|
|
34
|
+
}
|
|
35
|
+
) : null;
|
|
36
|
+
}, Q = ({ isClosing: r, title: n, caption: y, onPlay: e, onClose: u, vastUrl: f, options: t, isDesktop: m }) => {
|
|
37
|
+
const T = (t == null ? void 0 : t.showPauseButton) ?? !0, { ref: d, focusSelf: p } = G({
|
|
15
38
|
focusKey: "sl-pause-ad-play",
|
|
16
|
-
onEnterRelease:
|
|
39
|
+
onEnterRelease: e,
|
|
17
40
|
isFocusBoundary: !0,
|
|
18
41
|
forceFocus: !0
|
|
19
42
|
});
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
}, [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
43
|
+
return P(() => {
|
|
44
|
+
d.current && p();
|
|
45
|
+
}, [d, p]), P(() => {
|
|
46
|
+
if (!u)
|
|
47
|
+
return () => {
|
|
48
|
+
};
|
|
49
|
+
const h = (A) => {
|
|
50
|
+
const s = A.keyCode;
|
|
51
|
+
if (s === 461 || s === 10009 || s === 27 || s === 8) {
|
|
52
|
+
A.preventDefault(), A.stopPropagation(), A.stopImmediatePropagation(), u();
|
|
27
53
|
return;
|
|
28
54
|
}
|
|
29
55
|
};
|
|
30
|
-
return window.addEventListener("keydown",
|
|
31
|
-
}, [
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */ e(N, { children: d }),
|
|
36
|
-
/* @__PURE__ */ e($, { children: u })
|
|
56
|
+
return window.addEventListener("keydown", h, { capture: !0 }), () => window.removeEventListener("keydown", h, { capture: !0 });
|
|
57
|
+
}, [u]), /* @__PURE__ */ a(N, { className: F("SL_PauseAdOverlay", r && "pause-ad-closing"), children: /* @__PURE__ */ x(j, { children: [
|
|
58
|
+
/* @__PURE__ */ x(K, { children: [
|
|
59
|
+
/* @__PURE__ */ a(O, { children: n }),
|
|
60
|
+
/* @__PURE__ */ a(V, { children: y })
|
|
37
61
|
] }),
|
|
38
|
-
|
|
39
|
-
|
|
62
|
+
T && /* @__PURE__ */ a($, { children: /* @__PURE__ */ a(
|
|
63
|
+
_,
|
|
40
64
|
{
|
|
41
|
-
ref:
|
|
42
|
-
onClick:
|
|
43
|
-
onMouseEnter: () =>
|
|
65
|
+
ref: d,
|
|
66
|
+
onClick: e,
|
|
67
|
+
onMouseEnter: () => d.current.focus(),
|
|
44
68
|
"aria-label": "Resume playback"
|
|
45
69
|
}
|
|
46
70
|
) }),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
] })
|
|
71
|
+
/* @__PURE__ */ a(q, { className: "SL_PauseAdSidebar", children: /* @__PURE__ */ x(z, { children: [
|
|
72
|
+
f && /* @__PURE__ */ a(J, { isDesktop: m, vastUrl: f }),
|
|
73
|
+
/* @__PURE__ */ a(H, { children: "ADVERTISEMENT" })
|
|
74
|
+
] }) })
|
|
51
75
|
] }) });
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return h(() => {
|
|
66
|
-
if (t && i) {
|
|
76
|
+
}, re = ({ showPauseAd: r, vastUrls: n, title: y, caption: e, sdk: u, onClose: f, onRender: t, options: m, isDesktop: T }) => {
|
|
77
|
+
const d = (m == null ? void 0 : m.pauseAdDelay) ?? 5e3, [p, h] = w(!1), [A, s] = w(!1), c = L(), i = n == null ? void 0 : n[0].url, g = L(i);
|
|
78
|
+
g.current = i;
|
|
79
|
+
const [b, E] = C(), o = B(() => {
|
|
80
|
+
f && (S.emit("exposedPauseAd", {
|
|
81
|
+
action: "closed",
|
|
82
|
+
payload: {}
|
|
83
|
+
}), f());
|
|
84
|
+
}, [f]), M = B(() => {
|
|
85
|
+
u.controlVideoPlayer({ play: !0 });
|
|
86
|
+
}, [u]);
|
|
87
|
+
return P(() => {
|
|
88
|
+
if (r && i) {
|
|
67
89
|
S.emit("exposedPauseAd", {
|
|
68
90
|
action: "enabled",
|
|
69
91
|
payload: {}
|
|
70
|
-
}),
|
|
71
|
-
|
|
92
|
+
}), b(i).then((l) => {
|
|
93
|
+
g.current === i && (l == null ? void 0 : l.success) !== !0 && (clearTimeout(c.current), o == null || o());
|
|
72
94
|
}).catch(() => {
|
|
73
|
-
|
|
95
|
+
g.current === i && (clearTimeout(c.current), o == null || o());
|
|
74
96
|
});
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
payload: {}
|
|
80
|
-
})) : c.current = setTimeout(() => {
|
|
81
|
-
w();
|
|
97
|
+
const k = () => {
|
|
98
|
+
const l = E.get()[g.current];
|
|
99
|
+
l != null && l.imageSrc ? (clearTimeout(c.current), s(!1), h(!0)) : c.current = setTimeout(() => {
|
|
100
|
+
k();
|
|
82
101
|
}, 200);
|
|
83
102
|
};
|
|
84
103
|
c.current = setTimeout(() => {
|
|
85
|
-
|
|
86
|
-
},
|
|
104
|
+
k();
|
|
105
|
+
}, d);
|
|
87
106
|
} else
|
|
88
107
|
S.emit("exposedPauseAd", {
|
|
89
108
|
action: "disabled",
|
|
90
109
|
payload: {}
|
|
91
|
-
}),
|
|
92
|
-
|
|
110
|
+
}), s(!0), c.current = setTimeout(() => {
|
|
111
|
+
h(!1);
|
|
93
112
|
}, 400);
|
|
94
113
|
return () => {
|
|
95
114
|
c.current && clearTimeout(c.current);
|
|
96
115
|
};
|
|
97
|
-
}, [E,
|
|
98
|
-
|
|
99
|
-
}, [
|
|
100
|
-
|
|
101
|
-
}, [
|
|
102
|
-
|
|
116
|
+
}, [E, b, o, d, r, i]), P(() => {
|
|
117
|
+
t == null || t({ rendered: p });
|
|
118
|
+
}, [p, t]), P(() => () => {
|
|
119
|
+
t == null || t({ rendered: !1 });
|
|
120
|
+
}, [t]), p ? /* @__PURE__ */ a(
|
|
121
|
+
Q,
|
|
103
122
|
{
|
|
104
|
-
onClose:
|
|
105
|
-
isClosing:
|
|
106
|
-
title:
|
|
107
|
-
caption:
|
|
108
|
-
onPlay:
|
|
123
|
+
onClose: o,
|
|
124
|
+
isClosing: A,
|
|
125
|
+
title: y,
|
|
126
|
+
caption: e,
|
|
127
|
+
onPlay: M,
|
|
109
128
|
vastUrl: i,
|
|
110
|
-
options: m
|
|
129
|
+
options: m,
|
|
130
|
+
isDesktop: T
|
|
111
131
|
}
|
|
112
132
|
) : null;
|
|
113
133
|
};
|
|
114
134
|
export {
|
|
115
|
-
|
|
135
|
+
re as PauseAd
|
|
116
136
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export declare const PauseAdOverlay: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
2
|
export declare const PauseAdContent: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const PauseAdGradientRight: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const PauseAdGradientBottom: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
3
|
export declare const PauseAdTopLeft: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
4
|
export declare const PauseAdTitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLHeadingElement> & import('react').HTMLAttributes<HTMLHeadingElement> & Record<never, unknown>>;
|
|
7
5
|
export declare const PauseAdCaption: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLParagraphElement> & import('react').HTMLAttributes<HTMLParagraphElement> & Record<never, unknown>>;
|
|
8
6
|
export declare const PauseAdBottomLeft: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
7
|
export declare const PauseAdPlayButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
8
|
+
export declare const PauseAdSidebarGradient: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
9
|
export declare const PauseAdSidebar: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
11
10
|
export declare const PauseAdTitleDescription: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
12
11
|
export declare const ExternalAdContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
@@ -7,58 +7,53 @@ const e = /* @__PURE__ */ s("div")({
|
|
|
7
7
|
name: "PauseAdContent",
|
|
8
8
|
class: "p8lpomy",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
11
|
-
name: "
|
|
10
|
+
}), p = /* @__PURE__ */ s("div")({
|
|
11
|
+
name: "PauseAdTopLeft",
|
|
12
12
|
class: "pv7u167",
|
|
13
13
|
propsAsIs: !1
|
|
14
|
-
}),
|
|
15
|
-
name: "
|
|
14
|
+
}), o = /* @__PURE__ */ s("h2")({
|
|
15
|
+
name: "PauseAdTitle",
|
|
16
16
|
class: "p1kh2yb0",
|
|
17
17
|
propsAsIs: !1
|
|
18
|
-
}), n = /* @__PURE__ */ s("
|
|
19
|
-
name: "
|
|
18
|
+
}), n = /* @__PURE__ */ s("p")({
|
|
19
|
+
name: "PauseAdCaption",
|
|
20
20
|
class: "pl8f94x",
|
|
21
21
|
propsAsIs: !1
|
|
22
|
-
}), d = /* @__PURE__ */ s("
|
|
23
|
-
name: "
|
|
22
|
+
}), d = /* @__PURE__ */ s("div")({
|
|
23
|
+
name: "PauseAdBottomLeft",
|
|
24
24
|
class: "p1m6zmrt",
|
|
25
25
|
propsAsIs: !1
|
|
26
|
-
}), l = /* @__PURE__ */ s("
|
|
27
|
-
name: "
|
|
26
|
+
}), l = /* @__PURE__ */ s("button")({
|
|
27
|
+
name: "PauseAdPlayButton",
|
|
28
28
|
class: "pm3vwfa",
|
|
29
29
|
propsAsIs: !1
|
|
30
30
|
}), A = /* @__PURE__ */ s("div")({
|
|
31
|
-
name: "
|
|
31
|
+
name: "PauseAdSidebarGradient",
|
|
32
32
|
class: "p1tibuhw",
|
|
33
33
|
propsAsIs: !1
|
|
34
|
-
}), r = /* @__PURE__ */ s("
|
|
35
|
-
name: "PauseAdPlayButton",
|
|
36
|
-
class: "ptqqrqd",
|
|
37
|
-
propsAsIs: !1
|
|
38
|
-
}), i = /* @__PURE__ */ s("div")({
|
|
34
|
+
}), r = /* @__PURE__ */ s("div")({
|
|
39
35
|
name: "PauseAdSidebar",
|
|
40
|
-
class: "
|
|
36
|
+
class: "ptqqrqd",
|
|
41
37
|
propsAsIs: !1
|
|
42
|
-
}),
|
|
38
|
+
}), i = /* @__PURE__ */ s("span")({
|
|
43
39
|
name: "PauseAdTitleDescription",
|
|
44
|
-
class: "
|
|
40
|
+
class: "p14estxv",
|
|
45
41
|
propsAsIs: !1
|
|
46
|
-
}),
|
|
42
|
+
}), u = /* @__PURE__ */ s("img")({
|
|
47
43
|
name: "ExternalAdContainer",
|
|
48
|
-
class: "
|
|
44
|
+
class: "e1dpvfl1",
|
|
49
45
|
propsAsIs: !1
|
|
50
46
|
});
|
|
51
47
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
u as ExternalAdContainer,
|
|
49
|
+
d as PauseAdBottomLeft,
|
|
50
|
+
n as PauseAdCaption,
|
|
55
51
|
t as PauseAdContent,
|
|
56
|
-
p as PauseAdGradientBottom,
|
|
57
|
-
o as PauseAdGradientRight,
|
|
58
52
|
e as PauseAdOverlay,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
53
|
+
l as PauseAdPlayButton,
|
|
54
|
+
r as PauseAdSidebar,
|
|
55
|
+
A as PauseAdSidebarGradient,
|
|
56
|
+
o as PauseAdTitle,
|
|
57
|
+
i as PauseAdTitleDescription,
|
|
58
|
+
p as PauseAdTopLeft
|
|
64
59
|
};
|
package/lib/app/webos/index.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
-
import {
|
|
3
|
+
import { StreamLayerSDKAdvertisementWebOS } from './Advertisement';
|
|
4
|
+
import { PauseAd, PauseAdProps } from './ExposedPauseAd/PauseAd';
|
|
5
|
+
import { StreamLayerSDKQuestionWebOS } from './Question';
|
|
6
|
+
export { StreamLayerSDKAdvertisementWebOS, StreamLayerSDKQuestionWebOS, PauseAd, type PauseAdProps };
|
|
4
7
|
export type StreamLayerSDKTvOptions = {
|
|
5
8
|
showPauseButton?: boolean;
|
|
6
9
|
pauseAdDelay?: number;
|
|
7
10
|
};
|
|
8
11
|
export type StreamLayerSDKTvProps = {
|
|
9
12
|
persistent?: boolean;
|
|
10
|
-
children
|
|
13
|
+
children?: React.ReactNode;
|
|
11
14
|
sdk: StreamLayerSDK;
|
|
12
15
|
showPauseAd?: boolean;
|
|
13
16
|
pauseAdVastUrl?: PauseAdProps['vastUrls'];
|
package/lib/app/webos/index.js
CHANGED
|
@@ -1,47 +1,45 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { init as
|
|
1
|
+
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { init as l } from "@noriginmedia/norigin-spatial-navigation";
|
|
3
3
|
import { Layout as b } from "../app/Layout/index.js";
|
|
4
|
-
import { Component as
|
|
4
|
+
import { Component as d, useCallback as D } from "react";
|
|
5
5
|
import { useStore as x } from "@streamlayer/react-polyfills";
|
|
6
6
|
import { StreamLayerSDKAdvertisementWebOS as u } from "./Advertisement/index.js";
|
|
7
7
|
import { PauseAd as v } from "./ExposedPauseAd/PauseAd.js";
|
|
8
|
-
import { StreamLayerSDKQuestionWebOS as
|
|
9
|
-
|
|
8
|
+
import { StreamLayerSDKQuestionWebOS as c } from "./Question/index.js";
|
|
9
|
+
l({
|
|
10
10
|
shouldFocusDOMNode: !0
|
|
11
11
|
});
|
|
12
|
-
const
|
|
12
|
+
const y = ({
|
|
13
13
|
persistent: e,
|
|
14
14
|
children: o,
|
|
15
15
|
sdk: r,
|
|
16
|
-
showPauseAd:
|
|
16
|
+
showPauseAd: s,
|
|
17
17
|
pauseAdVastUrl: m,
|
|
18
|
-
onClosePauseAd:
|
|
18
|
+
onClosePauseAd: i,
|
|
19
19
|
onRenderPauseAd: f,
|
|
20
20
|
options: S
|
|
21
21
|
}) => {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
}, [
|
|
25
|
-
|
|
26
|
-
}, [r]);
|
|
27
|
-
return /* @__PURE__ */ d(
|
|
22
|
+
const n = x(r.uiState), p = D(() => {
|
|
23
|
+
i == null || i();
|
|
24
|
+
}, [i]);
|
|
25
|
+
return /* @__PURE__ */ h(
|
|
28
26
|
b,
|
|
29
27
|
{
|
|
30
28
|
sdk: r,
|
|
31
|
-
sidebar: ({ promo:
|
|
32
|
-
notification: ({ promo:
|
|
33
|
-
banner:
|
|
29
|
+
sidebar: ({ promo: a }) => n.exposedPauseAd ? null : a ? /* @__PURE__ */ t(u, { sdk: r, persistent: e, sidebar: "right" }) : /* @__PURE__ */ t(c, { sdk: r, persistent: e }),
|
|
30
|
+
notification: ({ promo: a }) => n.exposedPauseAd ? null : a ? /* @__PURE__ */ t(u, { sdk: r, notification: !0, persistent: e }) : /* @__PURE__ */ t(c, { notification: !0, sdk: r, persistent: e }),
|
|
31
|
+
banner: n.exposedPauseAd ? null : /* @__PURE__ */ t(u, { sdk: r, persistent: e, banner: "bottom" }),
|
|
34
32
|
webos: !0,
|
|
35
33
|
children: [
|
|
36
34
|
o,
|
|
37
35
|
m && /* @__PURE__ */ t(
|
|
38
36
|
v,
|
|
39
37
|
{
|
|
40
|
-
showPauseAd:
|
|
38
|
+
showPauseAd: s,
|
|
41
39
|
vastUrls: m,
|
|
40
|
+
sdk: r,
|
|
42
41
|
onClose: p,
|
|
43
42
|
onRender: f,
|
|
44
|
-
onPlay: h,
|
|
45
43
|
options: S
|
|
46
44
|
}
|
|
47
45
|
)
|
|
@@ -49,7 +47,7 @@ const L = ({
|
|
|
49
47
|
}
|
|
50
48
|
);
|
|
51
49
|
};
|
|
52
|
-
class W extends
|
|
50
|
+
class W extends d {
|
|
53
51
|
constructor(o) {
|
|
54
52
|
super(o), this.state = { hasError: !1 };
|
|
55
53
|
}
|
|
@@ -60,9 +58,12 @@ class W extends D {
|
|
|
60
58
|
console.error("StreamLayerSDKTv error:", o, r.componentStack);
|
|
61
59
|
}
|
|
62
60
|
render() {
|
|
63
|
-
return this.state.hasError ? this.props.children : /* @__PURE__ */ t(
|
|
61
|
+
return this.state.hasError ? this.props.children : /* @__PURE__ */ t(y, { ...this.props });
|
|
64
62
|
}
|
|
65
63
|
}
|
|
66
64
|
export {
|
|
65
|
+
v as PauseAd,
|
|
66
|
+
u as StreamLayerSDKAdvertisementWebOS,
|
|
67
|
+
c as StreamLayerSDKQuestionWebOS,
|
|
67
68
|
W as StreamLayerSDKTv
|
|
68
69
|
};
|