@streamlayer/react-ui 1.32.3 → 1.33.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/app/Advertisement/index.d.ts +1 -1
- package/lib/app/app/Advertisement/index.js +14 -15
- package/lib/app/app/Banner/index.d.ts +1 -1
- package/lib/app/app/Features/FeatureProvider.d.ts +2 -2
- package/lib/app/app/Features/Gamification/Leaderboard.d.ts +1 -1
- package/lib/app/app/Features/Gamification/Leaderboard.js +46 -36
- package/lib/app/app/Features/Gamification/Question.d.ts +2 -2
- package/lib/app/app/Features/Gamification/Question.js +42 -42
- package/lib/app/app/Features/Gamification/QuestionAdvertisement.js +19 -25
- package/lib/app/app/Features/Gamification/QuestionsList.d.ts +1 -1
- package/lib/app/app/Features/Gamification/Tabs.d.ts +1 -1
- package/lib/app/app/Features/Gamification/UserSummary.d.ts +1 -1
- package/lib/app/app/Features/Gamification/index.d.ts +2 -2
- package/lib/app/app/Features/Gamification/index.js +29 -28
- package/lib/app/app/Features/index.d.ts +2 -2
- package/lib/app/app/InApp/index.d.ts +1 -1
- package/lib/app/app/Insight/index.d.ts +2 -2
- package/lib/app/app/Layout/index.d.ts +1 -1
- package/lib/app/app/Navigation/index.d.ts +1 -1
- package/lib/app/app/Notifications/Onboarding/Notification/index.d.ts +2 -2
- package/lib/app/app/Notifications/Onboarding/index.d.ts +2 -2
- package/lib/app/app/Notifications/Onboarding/index.js +45 -42
- package/lib/app/app/Notifications/index.d.ts +1 -1
- package/lib/app/app/Points/index.d.ts +1 -1
- package/lib/app/app/index.d.ts +1 -1
- package/lib/app/app/story/index.js +24 -24
- package/lib/app/app/story/insight/index.js +14 -15
- package/lib/app/app/story/insight/video.js +3 -3
- package/lib/app/app/story/promotion/content.js +5 -5
- package/lib/app/app/story/promotion/index.d.ts +1 -0
- package/lib/app/app/story/promotion/index.js +24 -25
- package/lib/app/app/story/promotion/video.d.ts +0 -1
- package/lib/app/app/story/promotion/video.js +41 -43
- package/lib/app/app/story/promotion-notification/index.js +15 -16
- package/lib/app/app/story/promotion-notification/video.d.ts +0 -1
- package/lib/app/app/story/promotion-notification/video.js +22 -30
- package/lib/app/app/story/settings/index.js +6 -6
- package/lib/app/app/story/settings/login.js +1 -1
- package/lib/app/app/story/video.js +28 -28
- package/lib/app/app/useApp.d.ts +1 -1
- package/lib/app/app/useAppContext.d.ts +1 -1
- package/lib/app/login/demo.js +19 -18
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.d.ts +0 -1
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +17 -17
- package/lib/app/masters/BetPack/BetPackContent/QuestionScreen/index.d.ts +2 -2
- package/lib/app/masters/BetPack/BetPackContent/index.d.ts +1 -1
- package/lib/app/masters/BetPack/BetPackOverlay/index.d.ts +1 -1
- package/lib/app/masters/BetPack/index.d.ts +1 -1
- package/lib/app/masters/Features/FeatureProvider.d.ts +2 -2
- package/lib/app/masters/Features/Gamification/Question.d.ts +1 -1
- package/lib/app/masters/Features/Gamification/QuestionsList.d.ts +1 -1
- package/lib/app/masters/Features/Gamification/Tabs.d.ts +1 -1
- package/lib/app/masters/Features/Gamification/UserSummary.d.ts +1 -1
- package/lib/app/masters/Features/Gamification/index.d.ts +1 -1
- package/lib/app/masters/Features/index.d.ts +2 -2
- package/lib/app/masters/Notifications/Onboarding/Notification/index.d.ts +2 -2
- package/lib/app/masters/Notifications/Onboarding/index.d.ts +2 -2
- package/lib/app/masters/Notifications/Onboarding/index.js +42 -39
- package/lib/app/masters/Notifications/index.d.ts +1 -1
- package/lib/app/masters/Points/index.d.ts +1 -1
- package/lib/app/masters/masters.d.ts +2 -1
- package/lib/app/masters/masters.js +34 -32
- package/lib/app/masters/provider.d.ts +4 -0
- package/lib/app/masters/provider.js +23 -0
- package/lib/app/masters/story/components.js +48 -52
- package/lib/app/masters/story/index.js +16 -15
- package/lib/app/masters/useMastersApp.d.ts +1 -1
- package/lib/app/masters/useMastersContext.d.ts +1 -1
- package/lib/app/tgl/index.d.ts +1 -0
- package/lib/app/tgl/index.js +19 -20
- package/lib/app/tgl/video.d.ts +0 -1
- package/lib/app/tgl/video.js +40 -42
- package/lib/app/useSdkFeature.d.ts +3 -3
- package/lib/app/webos/Advertisement/AdvertisementUI.d.ts +1 -1
- package/lib/app/webos/Advertisement/index.d.ts +1 -1
- package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +1 -1
- package/lib/app/webos/ExposedPauseAd/PauseAd.js +68 -68
- package/lib/app/webos/Question/index.d.ts +1 -1
- package/lib/app/webos/index.d.ts +1 -1
- package/lib/app/webos/story.js +26 -26
- package/lib/app/webos/ui/Sidebar/PromoAction.d.ts +1 -1
- package/lib/app/webos/ui/Sidebar/index.d.ts +2 -2
- package/lib/app/webos/ui/Sidebar/styles.js +82 -888
- package/lib/app/webos/ui/insight/index.d.ts +1 -1
- package/lib/assets/style.css +1 -1
- package/lib/core/app.d.ts +7 -0
- package/lib/core/app.js +14 -0
- package/lib/core/event.d.ts +6 -0
- package/lib/core/event.js +5 -0
- package/lib/core/hooks.d.ts +16 -0
- package/lib/core/hooks.js +8 -0
- package/lib/core/provider.d.ts +49 -0
- package/lib/core/provider.js +9 -0
- package/lib/hooks/analytics.d.ts +1 -1
- package/lib/hooks-B0Qttldg.js +99 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +2 -4
- package/lib/ui/advertisement/banner/index.d.ts +3 -3
- package/lib/ui/advertisement/index.d.ts +1 -1
- package/lib/ui/advertisement/mock.d.ts +1 -1
- package/lib/ui/advertisement/notification/index.d.ts +1 -1
- package/lib/ui/advertisement/notification/lower-third/index.d.ts +1 -1
- package/lib/ui/advertisement/notification/lower-third/index.js +34 -30
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +100 -33212
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.js +13 -13
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.d.ts +1 -1
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +63 -204
- package/lib/ui/advertisement/overlay/index.d.ts +2 -2
- package/lib/ui/close-btn/index.d.ts +1 -1
- package/lib/ui/gamification/constants.d.ts +1 -1
- package/lib/ui/gamification/detail/header/index.d.ts +1 -1
- package/lib/ui/gamification/insight/index.d.ts +1 -1
- package/lib/ui/gamification/insight-list/index.d.ts +1 -1
- package/lib/ui/gamification/leaderboard/list-item/index.d.ts +1 -1
- package/lib/ui/gamification/leaderboard/static.d.ts +1 -1
- package/lib/ui/gamification/onboarding/index.d.ts +2 -2
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.d.ts +2 -2
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.js +1 -1
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/notification/NotificationMedia/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/notification/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/onboarding/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/prediction-result/frames/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/prediction-result/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/prediction-result-ad/index.d.ts +1 -1
- package/lib/ui/gamification/question/index.d.ts +1 -1
- package/lib/ui/gamification/question/list/index.d.ts +1 -1
- package/lib/ui/gamification/question/notification/index.d.ts +1 -1
- package/lib/ui/gamification/question/notification/insight/index.d.ts +2 -2
- package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +1 -1
- package/lib/ui/gamification/question/notification/tweet/index.d.ts +1 -1
- package/lib/ui/gamification/vote/feedback/index.d.ts +1 -1
- package/lib/ui/gamification/vote/index.d.ts +1 -1
- package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -1
- package/lib/ui/gamification/vote/win-bar/index.d.ts +1 -1
- package/lib/ui/icons/index.d.ts +198 -66
- package/lib/ui/navigation/button/index.d.ts +1 -1
- package/lib/ui/questions/insight/index.d.ts +1 -1
- package/lib/ui/questions/twitter/index.d.ts +1 -1
- package/lib/ui/video-player/index.js +26 -23
- package/lib/useStreamLayerApp.d.ts +23 -0
- package/lib/useStreamLayerApp.js +167 -0
- package/lib/utils/debug/components/bypassLogin.d.ts +1 -1
- package/lib/utils/debug/components/developer.d.ts +1 -1
- package/lib/utils/debug/components/eventInput.d.ts +1 -1
- package/lib/utils/debug/index.js +8 -8
- package/lib/utils/debug/storage.d.ts +1 -1
- package/lib/utils/storage.d.ts +1 -1
- package/package.json +42 -35
- package/lib/index-l-eyvmpL.js +0 -3758
- package/lib/utils/createDemo.d.ts +0 -12
- package/lib/utils/createDemo.js +0 -49
- package/lib/vast-client.min-B0NUra1B.js +0 -1060
package/lib/app/webos/story.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as p, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { d as y, u as d } from "../../hooks-B0Qttldg.js";
|
|
2
3
|
import c from "hls.js";
|
|
3
|
-
import { useRef as m, useState as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
const e = m(), n = m(), [t, o] = d(r);
|
|
4
|
+
import { useRef as m, useState as l, useEffect as i } from "react";
|
|
5
|
+
import { anonymous as S } from "@streamlayer/sdk-web-anonymous-auth";
|
|
6
|
+
import { useStreamLayerDebug as h } from "../../utils/debug/index.js";
|
|
7
|
+
import { StreamLayerSDKTv as b } from "./index.js";
|
|
8
|
+
const g = ({ src: r }) => {
|
|
9
|
+
const e = m(), a = m(), [t, o] = l(r);
|
|
10
10
|
return i(() => {
|
|
11
11
|
o(r);
|
|
12
12
|
}, [r]), i(() => () => {
|
|
13
|
-
|
|
13
|
+
a.current && clearTimeout(a.current);
|
|
14
14
|
}, []), i(() => {
|
|
15
15
|
if (t && t.includes("m3u8"))
|
|
16
16
|
if (c.isSupported() && e.current) {
|
|
@@ -24,7 +24,7 @@ const w = ({ src: r }) => {
|
|
|
24
24
|
var u;
|
|
25
25
|
console.error(s), (u = e.current) == null || u.play();
|
|
26
26
|
}));
|
|
27
|
-
}, [t]), /* @__PURE__ */
|
|
27
|
+
}, [t]), /* @__PURE__ */ n(
|
|
28
28
|
"video",
|
|
29
29
|
{
|
|
30
30
|
src: t || "https://storage.googleapis.com/cdn.streamlayer.io/assets/sdk-web/Own%20The%20Game%201080p%20RF18.mp4",
|
|
@@ -39,35 +39,35 @@ const w = ({ src: r }) => {
|
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
}, v = () => {
|
|
42
|
-
const r =
|
|
42
|
+
const r = d(), [e, a] = l("");
|
|
43
43
|
return i(() => r ? r.streamSummary().subscribe((t) => {
|
|
44
44
|
var o, s;
|
|
45
|
-
(s = (o = t.data) == null ? void 0 : o.summary) != null && s.stream &&
|
|
45
|
+
(s = (o = t.data) == null ? void 0 : o.summary) != null && s.stream && a(t.data.summary.stream);
|
|
46
46
|
}) : () => {
|
|
47
|
-
}, [r]), /* @__PURE__ */
|
|
48
|
-
|
|
47
|
+
}, [r]), /* @__PURE__ */ n(
|
|
48
|
+
g,
|
|
49
49
|
{
|
|
50
50
|
src: e || "https://storage.googleapis.com/cdn.streamlayer.io/assets/sdk-web/Own%20The%20Game%201080p%20RF18.mp4"
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
},
|
|
53
|
+
}, w = ({ sdk: r }) => (i(() => {
|
|
54
54
|
r.anonymousAuthorization();
|
|
55
|
-
}, [r]), null),
|
|
56
|
-
const e =
|
|
55
|
+
}, [r]), null), k = ({ persistent: r }) => {
|
|
56
|
+
const e = d();
|
|
57
57
|
return e ? /* @__PURE__ */ p(f, { children: [
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ n(w, { sdk: e }),
|
|
59
|
+
/* @__PURE__ */ n(b, { sdk: e, persistent: r, children: /* @__PURE__ */ n(v, {}) })
|
|
60
60
|
] }) : null;
|
|
61
|
-
},
|
|
62
|
-
const o =
|
|
63
|
-
return /* @__PURE__ */
|
|
61
|
+
}, L = /* @__PURE__ */ new Set([S]), K = ({ sdkKey: r, eventId: e, persistent: a, production: t }) => {
|
|
62
|
+
const o = h({ sdkKey: r, eventId: e, production: t });
|
|
63
|
+
return /* @__PURE__ */ n(
|
|
64
64
|
y,
|
|
65
65
|
{
|
|
66
66
|
event: o.event,
|
|
67
67
|
sdkKey: o.sdkKey,
|
|
68
68
|
production: o.env === "production",
|
|
69
69
|
themeMode: "dark",
|
|
70
|
-
plugins:
|
|
70
|
+
plugins: L,
|
|
71
71
|
autoEnable: !0,
|
|
72
72
|
withAd: !0,
|
|
73
73
|
skipOnboarding: !0,
|
|
@@ -75,11 +75,11 @@ const w = ({ src: r }) => {
|
|
|
75
75
|
friendsTab: "disabled",
|
|
76
76
|
hideFriends: !0,
|
|
77
77
|
webOS: !0,
|
|
78
|
-
children: /* @__PURE__ */
|
|
78
|
+
children: /* @__PURE__ */ n(k, { persistent: a })
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
81
|
};
|
|
82
82
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
g as Player,
|
|
84
|
+
K as WebOSStory
|
|
85
85
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Advertisement } from '
|
|
2
|
-
import { PromotionOptions } from '
|
|
1
|
+
import { Advertisement } from '../../../../packages/feature-gamification/src/index.ts';
|
|
2
|
+
import { PromotionOptions } from '../../../../packages/sdk-web-types/src/index.ts';
|
|
3
3
|
import { ControlVideoCb } from '../../../../ui/video-player';
|
|
4
4
|
export type OverlayProps = {
|
|
5
5
|
promotionId: string;
|