@streamlayer/react-ui 1.31.6 → 1.32.0
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/app/Notifications/index.js +34 -34
- package/lib/app/masters/Notifications/index.js +40 -40
- package/lib/app/useClipboardCopy.js +8 -8
- package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +6 -3
- package/lib/app/webos/ExposedPauseAd/PauseAd.js +99 -77
- 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/useGAMPlayer.js +6 -6
- 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/lib/ui/modal/index.js +16 -16
- package/package.json +17 -16
- package/lib/index-DALxy-8N.js +0 -5437
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
|
};
|