@streamlayer/react-ui 1.26.1 → 1.27.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/Advertisement/index.d.ts +1 -0
- package/lib/app/app/Advertisement/index.js +125 -92
- package/lib/app/app/Banner/index.d.ts +6 -0
- package/lib/app/app/Banner/index.js +6 -0
- package/lib/app/app/Features/Gamification/Question.d.ts +4 -0
- package/lib/app/app/Features/Gamification/Question.js +79 -50
- package/lib/app/app/Features/Gamification/QuestionAdvertisement.d.ts +6 -0
- package/lib/app/app/Features/Gamification/QuestionAdvertisement.js +46 -0
- package/lib/app/app/Features/Gamification/Tabs.js +12 -12
- package/lib/app/app/Features/Gamification/index.d.ts +3 -0
- package/lib/app/app/Features/Gamification/index.js +56 -52
- package/lib/app/app/Features/index.d.ts +1 -0
- package/lib/app/app/Features/index.js +6 -4
- package/lib/app/app/InApp/index.d.ts +1 -0
- package/lib/app/app/InApp/index.js +44 -17
- package/lib/app/app/Insight/index.d.ts +3 -0
- package/lib/app/app/Insight/index.js +33 -30
- package/lib/app/app/Layout/index.d.ts +17 -0
- package/lib/app/app/Layout/index.js +105 -0
- package/lib/app/app/Layout/styles.d.ts +12 -0
- package/lib/app/app/Layout/styles.js +64 -0
- package/lib/app/app/Notifications/Onboarding/Notification/styles.d.ts +7 -1
- package/lib/app/app/Notifications/styles.d.ts +18 -2
- package/lib/app/app/index.d.ts +1 -0
- package/lib/app/app/index.js +91 -85
- package/lib/app/app/story/index.js +56 -58
- package/lib/app/app/story/promotion/index.js +31 -36
- package/lib/app/app/story/promotion/styles.d.ts +3 -1
- package/lib/app/app/story/promotion/video.js +63 -81
- package/lib/app/app/story/promotion-notification/styles.d.ts +3 -1
- package/lib/app/app/story/styles.d.ts +5 -1
- package/lib/app/app/story/styles.js +36 -16
- package/lib/app/app/story/video.d.ts +5 -1
- package/lib/app/app/story/video.js +70 -33
- package/lib/app/app/useApp.d.ts +1 -2
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +7 -1
- package/lib/app/masters/BetPack/BetPackContent/index.js +175 -187
- package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +84 -84
- package/lib/app/masters/BetPack/BetPackOverlay/styles.d.ts +14 -2
- package/lib/app/masters/Features/Gamification/Question.js +19 -17
- package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +7 -1
- package/lib/app/masters/Notifications/styles.d.ts +18 -2
- package/lib/app/masters/masters.d.ts +4 -1
- package/lib/app/masters/useMastersApp.d.ts +1 -1
- package/lib/app/tgl/styles.d.ts +3 -1
- package/lib/app/{tvos → webos/Advertisement}/AdvertisementUI.d.ts +7 -1
- package/lib/app/webos/Advertisement/AdvertisementUI.js +63 -0
- package/lib/app/{tvos/Advertisement.d.ts → webos/Advertisement/index.d.ts} +3 -1
- package/lib/app/webos/Advertisement/index.js +119 -0
- package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +15 -0
- package/lib/app/webos/ExposedPauseAd/PauseAd.js +93 -0
- package/lib/app/webos/ExposedPauseAd/styles.d.ts +12 -0
- package/lib/app/webos/ExposedPauseAd/styles.js +64 -0
- package/lib/app/webos/Question/index.d.ts +9 -0
- package/lib/app/webos/Question/index.js +56 -0
- package/lib/app/webos/index.d.ts +24 -0
- package/lib/app/webos/index.js +65 -0
- package/lib/app/webos/story.d.ts +9 -0
- package/lib/app/webos/story.js +74 -0
- package/lib/app/webos/styles.js +4 -0
- package/lib/app/webos/ui/Layout/index.js +78 -0
- package/lib/app/{tvos → webos}/ui/Layout/styles.js +25 -25
- package/lib/app/webos/ui/Sidebar/PromoAction.d.ts +7 -0
- package/lib/app/webos/ui/Sidebar/PromoAction.js +63 -0
- package/lib/app/{tvos → webos}/ui/Sidebar/index.d.ts +6 -0
- package/lib/app/webos/ui/Sidebar/index.js +176 -0
- package/lib/app/{tvos → webos}/ui/Sidebar/styles.d.ts +7 -3
- package/lib/app/{tvos → webos}/ui/Sidebar/styles.js +175 -170
- package/lib/app/webos/ui/insight/index.d.ts +9 -0
- package/lib/app/webos/ui/insight/index.js +100 -0
- package/lib/app/webos/ui/insight/styles.d.ts +12 -0
- package/lib/app/webos/ui/insight/styles.js +51 -0
- package/lib/app/webos/useTvButton.d.ts +9 -0
- package/lib/app/webos/useTvButton.js +23 -0
- package/lib/assets/style.css +1 -1
- package/lib/hooks/analytics.d.ts +14 -0
- package/lib/hooks/showIn.d.ts +9 -0
- package/lib/hooks/useKeyboardNavigation.d.ts +15 -0
- package/lib/hooks/useKeyboardNavigation.js +74 -0
- package/lib/index-T1iiS0ZO.js +17 -0
- package/lib/ui/advertisement/banner/index.d.ts +3 -0
- package/lib/ui/advertisement/banner/index.js +29 -17
- package/lib/ui/advertisement/banner/styles.d.ts +5 -1
- package/lib/ui/advertisement/index.d.ts +4 -1
- package/lib/ui/advertisement/index.js +56 -44
- package/lib/ui/advertisement/notification/index.d.ts +2 -0
- package/lib/ui/advertisement/notification/index.js +50 -34
- package/lib/ui/advertisement/notification/lower-third/index.d.ts +2 -0
- package/lib/ui/advertisement/notification/lower-third/index.js +42 -26
- package/lib/ui/advertisement/notification/lower-third/styles.d.ts +11 -0
- package/lib/ui/advertisement/notification/lower-third/styles.js +39 -24
- package/lib/ui/advertisement/notification/styles.d.ts +18 -1
- package/lib/ui/advertisement/notification/styles.js +48 -33
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.d.ts +2 -2
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +1 -1
- package/lib/ui/advertisement/overlay/index.d.ts +4 -1
- package/lib/ui/advertisement/overlay/index.js +135 -77
- package/lib/ui/gamification/detail/header/index.d.ts +2 -0
- package/lib/ui/gamification/detail/header/index.js +19 -16
- package/lib/ui/gamification/detail/header/styles.d.ts +15 -3
- package/lib/ui/gamification/detail/header/styles.js +1 -1
- package/lib/ui/gamification/detail/sponsor/index.d.ts +1 -0
- package/lib/ui/gamification/detail/sponsor/index.js +25 -13
- package/lib/ui/gamification/invite-link/styles.d.ts +14 -2
- package/lib/ui/gamification/leaderboard/list-item/styles.d.ts +7 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +14 -2
- package/lib/ui/gamification/onboarding/styles.d.ts +10 -2
- package/lib/ui/gamification/points/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.d.ts +48 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.js +94 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.d.ts +9 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.js +99 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.d.ts +42 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.js +117 -0
- package/lib/ui/gamification/question/inapp/notification/NotificationMedia/index.js +9 -8
- package/lib/ui/gamification/question/inapp/notification/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/onboarding/index.js +12 -12
- package/lib/ui/gamification/question/inapp/onboarding/styles.d.ts +18 -2
- package/lib/ui/gamification/question/inapp/prediction-result/frames/content.js +9 -9
- package/lib/ui/gamification/question/inapp/prediction-result/frames/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.d.ts +5 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.js +49 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.d.ts +12 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.js +56 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.d.ts +1 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.js +34 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.d.ts +1 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.js +19 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.d.ts +4 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.js +34 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.d.ts +7 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.js +43 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.d.ts +9 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.js +20 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/index.d.ts +10 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/index.js +20 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.d.ts +11 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.js +34 -0
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +38 -5
- package/lib/ui/gamification/question/notification/styles.d.ts +14 -2
- package/lib/ui/gamification/question/styles.d.ts +26 -4
- package/lib/ui/gamification/vote/alert/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/feedback/styles.d.ts +19 -2
- package/lib/ui/gamification/vote/feedbackAlert/index.d.ts +9 -0
- package/lib/ui/gamification/vote/feedbackAlert/index.js +11 -0
- package/lib/ui/gamification/vote/feedbackAlert/styles.d.ts +11 -0
- package/lib/ui/gamification/vote/feedbackAlert/styles.js +30 -0
- package/lib/ui/gamification/vote/index.d.ts +3 -1
- package/lib/ui/gamification/vote/index.js +160 -130
- package/lib/ui/gamification/vote/insight-details/index.js +8 -7
- package/lib/ui/gamification/vote/insight-details/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/styles.d.ts +29 -4
- package/lib/ui/gamification/vote/vote-option/index.d.ts +3 -0
- package/lib/ui/gamification/vote/vote-option/index.js +72 -64
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/win-bar/styles.d.ts +19 -2
- package/lib/ui/icons/index.d.ts +1 -0
- package/lib/ui/icons/index.js +80 -79
- package/lib/ui/modal/index.js +12 -17
- package/lib/ui/questions/insight/index.d.ts +4 -1
- package/lib/ui/questions/insight/index.js +29 -26
- package/lib/ui/questions/twitter/account/styles.d.ts +7 -1
- package/lib/ui/questions/twitter/index.d.ts +1 -0
- package/lib/ui/questions/twitter/index.js +27 -19
- package/lib/ui/theme/constants.d.ts +2 -0
- package/lib/ui/theme/constants.js +2 -0
- package/lib/ui/theme/masters-theme.js +1 -0
- package/lib/ui/theme/utils.d.ts +10 -0
- package/lib/ui/theme/utils.js +77 -0
- package/lib/ui/video-player/index.d.ts +10 -2
- package/lib/ui/video-player/index.js +189 -110
- package/lib/ui/video-player/styles.d.ts +36 -0
- package/lib/ui/video-player/styles.js +59 -11
- package/lib/utils/common.d.ts +6 -0
- package/lib/utils/createDemo.d.ts +12 -0
- package/lib/utils/debug/components/bypassLogin.d.ts +6 -0
- package/lib/utils/debug/components/copyLogs.d.ts +1 -0
- package/lib/utils/debug/components/developer.d.ts +14 -0
- package/lib/utils/debug/components/envToggle.d.ts +6 -0
- package/lib/utils/debug/components/eventInput.d.ts +8 -0
- package/lib/utils/debug/components/sdkKey.d.ts +6 -0
- package/lib/utils/debug/components/styles.d.ts +1 -0
- package/lib/utils/debug/index.d.ts +36 -0
- package/lib/utils/debug/storage.d.ts +14 -0
- package/lib/utils/decorators/container.d.ts +6 -0
- package/lib/utils/decorators/container.js +5 -5
- package/lib/utils/decorators/masters.d.ts +2 -0
- package/lib/utils/decorators/styles.d.ts +2 -0
- package/lib/utils/login.d.ts +3 -0
- package/lib/utils/storage.d.ts +14 -0
- package/package.json +27 -20
- package/lib/app/tvos/Advertisement.js +0 -88
- package/lib/app/tvos/AdvertisementUI.js +0 -40
- package/lib/app/tvos/index.d.ts +0 -16
- package/lib/app/tvos/index.js +0 -23
- package/lib/app/tvos/story.d.ts +0 -6
- package/lib/app/tvos/story.js +0 -34
- package/lib/app/tvos/styles.js +0 -4
- package/lib/app/tvos/ui/Layout/index.js +0 -76
- package/lib/app/tvos/ui/Sidebar/PromoAction.d.ts +0 -2
- package/lib/app/tvos/ui/Sidebar/PromoAction.js +0 -62
- package/lib/app/tvos/ui/Sidebar/index.js +0 -114
- /package/lib/app/{tvos → webos}/styles.d.ts +0 -0
- /package/lib/app/{tvos → webos}/ui/Layout/index.d.ts +0 -0
- /package/lib/app/{tvos → webos}/ui/Layout/styles.d.ts +0 -0
package/lib/app/app/index.js
CHANGED
|
@@ -1,112 +1,118 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { cx as
|
|
3
|
-
import { SDKContainer as
|
|
4
|
-
import { useSdkFeature as
|
|
5
|
-
import { useSdkResponsive as
|
|
6
|
-
import { useSdkScroll as
|
|
7
|
-
import { useAnalyticsListener as
|
|
8
|
-
import { useRef as
|
|
9
|
-
import { useStore as
|
|
10
|
-
import { resetCss as
|
|
11
|
-
import { ActiveFeature as
|
|
12
|
-
import { SDKNavigation as
|
|
13
|
-
import { SDKNotifications as
|
|
14
|
-
import { useAppApp as
|
|
15
|
-
import { AppContext as
|
|
16
|
-
const
|
|
1
|
+
import { jsx as n, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { cx as A } from "@linaria/core";
|
|
3
|
+
import { SDKContainer as y, SDKScrollContainer as C } from "./styles.js";
|
|
4
|
+
import { useSdkFeature as D } from "../useSdkFeature.js";
|
|
5
|
+
import { useSdkResponsive as K } from "../useSdkResponsive.js";
|
|
6
|
+
import { useSdkScroll as L } from "../useSdkScroll.js";
|
|
7
|
+
import { useAnalyticsListener as R, newTabLinkListener as b } from "../../hooks/analytics.js";
|
|
8
|
+
import { useState as j, useRef as F, useMemo as w, useEffect as E } from "react";
|
|
9
|
+
import { useStore as v } from "@streamlayer/react-polyfills";
|
|
10
|
+
import { resetCss as u } from "../../ui/theme/theme.js";
|
|
11
|
+
import { ActiveFeature as H, StandaloneFeature as I } from "./Features/index.js";
|
|
12
|
+
import { SDKNavigation as M, SDKHeader as P } from "./Navigation/index.js";
|
|
13
|
+
import { SDKNotifications as V } from "./Notifications/index.js";
|
|
14
|
+
import { useAppApp as Y } from "./useApp.js";
|
|
15
|
+
import { AppContext as q } from "./useAppContext.js";
|
|
16
|
+
const z = ({
|
|
17
17
|
sdk: e,
|
|
18
|
-
className:
|
|
19
|
-
scrollStore:
|
|
20
|
-
appNode:
|
|
21
|
-
scrollNode:
|
|
22
|
-
responsiveStore:
|
|
18
|
+
className: l,
|
|
19
|
+
scrollStore: o,
|
|
20
|
+
appNode: a,
|
|
21
|
+
scrollNode: m,
|
|
22
|
+
responsiveStore: r
|
|
23
23
|
}) => {
|
|
24
|
-
const [,
|
|
25
|
-
return /* @__PURE__ */ n(
|
|
26
|
-
className:
|
|
27
|
-
scrollNode:
|
|
28
|
-
appNode:
|
|
29
|
-
scrollStore:
|
|
30
|
-
feature:
|
|
31
|
-
responsiveStore:
|
|
24
|
+
const [, t] = D(e);
|
|
25
|
+
return /* @__PURE__ */ n(H, {
|
|
26
|
+
className: l,
|
|
27
|
+
scrollNode: m,
|
|
28
|
+
appNode: a,
|
|
29
|
+
scrollStore: o,
|
|
30
|
+
feature: t,
|
|
31
|
+
responsiveStore: r,
|
|
32
32
|
sdk: e
|
|
33
33
|
});
|
|
34
|
-
},
|
|
34
|
+
}, B = ({
|
|
35
35
|
sdk: e,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
muted: l,
|
|
37
|
+
className: o,
|
|
38
|
+
appNode: a,
|
|
39
|
+
responsiveStore: m
|
|
39
40
|
}) => {
|
|
40
|
-
const
|
|
41
|
-
return
|
|
42
|
-
const i = e.getFeature(
|
|
43
|
-
return i ? /* @__PURE__ */ n(
|
|
44
|
-
className:
|
|
45
|
-
|
|
41
|
+
const r = v(e.featuresList.getStore());
|
|
42
|
+
return r ? Array.from(r, (t) => {
|
|
43
|
+
const i = e.getFeature(t);
|
|
44
|
+
return i ? /* @__PURE__ */ n(I, {
|
|
45
|
+
className: o,
|
|
46
|
+
muted: l,
|
|
47
|
+
appNode: a,
|
|
46
48
|
feature: i,
|
|
47
|
-
responsiveStore:
|
|
49
|
+
responsiveStore: m,
|
|
48
50
|
sdk: e
|
|
49
|
-
},
|
|
51
|
+
}, t) : null;
|
|
50
52
|
}) : null;
|
|
51
|
-
},
|
|
53
|
+
}, oe = ({
|
|
52
54
|
sdk: e,
|
|
53
|
-
|
|
55
|
+
muted: l,
|
|
56
|
+
topNavigation: o
|
|
54
57
|
}) => {
|
|
55
|
-
const r =
|
|
56
|
-
sdkReady:
|
|
57
|
-
activeFeature:
|
|
58
|
-
isLogged:
|
|
59
|
-
} =
|
|
60
|
-
|
|
61
|
-
enabled:
|
|
58
|
+
const [a, m] = j(!0), r = F(null), t = v(e.uiState), i = F(null), [c] = K(r), [p, d] = L(r, c), {
|
|
59
|
+
sdkReady: x,
|
|
60
|
+
activeFeature: f,
|
|
61
|
+
isLogged: N
|
|
62
|
+
} = Y(e), s = !!x;
|
|
63
|
+
R(r, {
|
|
64
|
+
enabled: s,
|
|
62
65
|
event: "click",
|
|
63
|
-
listener:
|
|
66
|
+
listener: b
|
|
64
67
|
});
|
|
65
|
-
const
|
|
68
|
+
const g = w(() => ({
|
|
66
69
|
sdk: e,
|
|
67
|
-
topNavigation:
|
|
68
|
-
}), [e,
|
|
69
|
-
return
|
|
70
|
+
topNavigation: o
|
|
71
|
+
}), [e, o]);
|
|
72
|
+
return E(() => {
|
|
70
73
|
import("./Features/Gamification/gamification-feature.js");
|
|
71
|
-
}, []), /* @__PURE__ */ n(
|
|
72
|
-
value:
|
|
73
|
-
children: /* @__PURE__ */
|
|
74
|
-
ref:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
}, []), /* @__PURE__ */ n(q.Provider, {
|
|
75
|
+
value: g,
|
|
76
|
+
children: /* @__PURE__ */ h(y, {
|
|
77
|
+
ref: (S) => {
|
|
78
|
+
r.current = S, m(!!S);
|
|
79
|
+
},
|
|
80
|
+
className: o ? "" : "c10llmat",
|
|
81
|
+
children: [s && o && t.app && /* @__PURE__ */ n(M, {
|
|
82
|
+
className: A(u, "sl-hide-on-modal"),
|
|
78
83
|
sdk: e,
|
|
79
|
-
ref:
|
|
80
|
-
}),
|
|
81
|
-
className:
|
|
84
|
+
ref: i
|
|
85
|
+
}), s && !o && !!f && t.app && /* @__PURE__ */ n(P, {
|
|
86
|
+
className: A(u, "sl-hide-on-modal"),
|
|
82
87
|
sdk: e,
|
|
83
|
-
ref:
|
|
84
|
-
}), /* @__PURE__ */
|
|
88
|
+
ref: i
|
|
89
|
+
}), /* @__PURE__ */ h(C, {
|
|
85
90
|
className: "sl-hide-on-modal",
|
|
86
|
-
ref:
|
|
87
|
-
"data-nav": (!!
|
|
88
|
-
children: [
|
|
91
|
+
ref: p,
|
|
92
|
+
"data-nav": (!!f && s).toString(),
|
|
93
|
+
children: [s && t.app && /* @__PURE__ */ n(V, {
|
|
89
94
|
sdk: e,
|
|
90
|
-
scrollNode:
|
|
91
|
-
headerNode:
|
|
95
|
+
scrollNode: p,
|
|
96
|
+
headerNode: i,
|
|
92
97
|
appNode: r,
|
|
93
|
-
scrollStore:
|
|
94
|
-
responsiveStore:
|
|
95
|
-
hasActiveFeature: !!
|
|
96
|
-
}),
|
|
97
|
-
scrollStore:
|
|
98
|
-
responsiveStore:
|
|
99
|
-
scrollNode:
|
|
98
|
+
scrollStore: d,
|
|
99
|
+
responsiveStore: c,
|
|
100
|
+
hasActiveFeature: !!f
|
|
101
|
+
}), s && t.app && /* @__PURE__ */ n(z, {
|
|
102
|
+
scrollStore: d,
|
|
103
|
+
responsiveStore: c,
|
|
104
|
+
scrollNode: p,
|
|
100
105
|
appNode: r,
|
|
101
|
-
className:
|
|
106
|
+
className: u,
|
|
102
107
|
sdk: e
|
|
103
|
-
}), a && /* @__PURE__ */ n(
|
|
104
|
-
|
|
108
|
+
}), s && a && /* @__PURE__ */ n(B, {
|
|
109
|
+
muted: l,
|
|
110
|
+
responsiveStore: c,
|
|
105
111
|
appNode: r,
|
|
106
|
-
className:
|
|
112
|
+
className: u,
|
|
107
113
|
sdk: e
|
|
108
114
|
})]
|
|
109
|
-
}),
|
|
115
|
+
}), s && !N && a && t.app && /* @__PURE__ */ n("div", {
|
|
110
116
|
style: {
|
|
111
117
|
display: "flex",
|
|
112
118
|
alignItems: "center",
|
|
@@ -120,5 +126,5 @@ const I = ({
|
|
|
120
126
|
});
|
|
121
127
|
};
|
|
122
128
|
export {
|
|
123
|
-
|
|
129
|
+
oe as App
|
|
124
130
|
};
|
|
@@ -1,65 +1,63 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { jsxs as i, jsx as t, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { App as m } from "../index.js";
|
|
3
|
+
import { StreamLayerSDKAdvertisement as u } from "../Advertisement/index.js";
|
|
4
|
+
import { StreamLayerSDKNotification as c } from "../InApp/index.js";
|
|
5
|
+
import { Layout as l } from "../Layout/index.js";
|
|
6
|
+
import { useState as f } from "react";
|
|
7
|
+
import { StreamLayerProvider as S, StreamLayerSDKEvent as b, useStreamLayer as d, useStreamLayerUI as h } from "@streamlayer/react";
|
|
8
|
+
import { useStreamLayerDebug as y } from "../../../utils/debug/index.js";
|
|
9
|
+
import { Video as v } from "./video.js";
|
|
10
|
+
import { VideoContainer as A, VideoMuteButton as L } from "./styles.js";
|
|
7
11
|
const s = () => {
|
|
8
12
|
console.log("deep link handled cb");
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
13
|
+
}, k = ({ withSidebarNotification: r }) => {
|
|
14
|
+
const o = d(), e = h();
|
|
15
|
+
return !o || !e.app && !e.appNotification && !e.appSidebar || !e.app && !e.appSidebar && e.appNotification && !r ? null : /* @__PURE__ */ t(m, { sdk: o, onDeepLinkHandled: s });
|
|
16
|
+
}, g = () => {
|
|
17
|
+
const r = d(), [o, e] = f(!1);
|
|
18
|
+
return r ? /* @__PURE__ */ t(
|
|
19
|
+
l,
|
|
20
|
+
{
|
|
21
|
+
sdk: r,
|
|
22
|
+
banner: /* @__PURE__ */ t(u, { sdk: r, banner: "bottom", persistent: !0 }),
|
|
23
|
+
sidebar: /* @__PURE__ */ i(p, { children: [
|
|
24
|
+
/* @__PURE__ */ t(u, { sdk: r, sidebar: "right", muted: !o, skipAutoClose: !0, externalAd: !0, persistent: !0 }),
|
|
25
|
+
/* @__PURE__ */ t(k, { withSidebarNotification: !1 })
|
|
26
|
+
] }),
|
|
27
|
+
notification: /* @__PURE__ */ i(p, { children: [
|
|
28
|
+
/* @__PURE__ */ t(u, { sdk: r, notification: !0, persistent: !0 }),
|
|
29
|
+
/* @__PURE__ */ t(c, { sdk: r })
|
|
30
|
+
] }),
|
|
31
|
+
children: /* @__PURE__ */ i(A, { className: "divAnchor", children: [
|
|
32
|
+
/* @__PURE__ */ t(v, { muted: o, toggleMute: e }),
|
|
33
|
+
/* @__PURE__ */ t(L, { onClick: () => e((n) => !n), children: o ? "unmute" : "mute" })
|
|
34
|
+
] })
|
|
35
|
+
}
|
|
36
|
+
) : null;
|
|
37
|
+
}, M = ({
|
|
38
|
+
sdkKey: r,
|
|
39
|
+
eventId: o,
|
|
34
40
|
production: e,
|
|
35
|
-
friendsTab:
|
|
41
|
+
friendsTab: n
|
|
36
42
|
}) => {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
withSidebarNotification: !1
|
|
55
|
-
})
|
|
56
|
-
})
|
|
57
|
-
})]
|
|
58
|
-
}), /* @__PURE__ */ o(d, {
|
|
59
|
-
event: t.event
|
|
60
|
-
})]
|
|
61
|
-
});
|
|
43
|
+
const a = y({ sdkKey: r, eventId: o, production: e });
|
|
44
|
+
return /* @__PURE__ */ i(
|
|
45
|
+
S,
|
|
46
|
+
{
|
|
47
|
+
sdkKey: a.sdkKey,
|
|
48
|
+
production: a.env === "production",
|
|
49
|
+
autoEnable: !0,
|
|
50
|
+
onDeepLinkHandled: s,
|
|
51
|
+
withAd: !0,
|
|
52
|
+
withAdNotification: !0,
|
|
53
|
+
friendsTab: n,
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ t(g, {}),
|
|
56
|
+
/* @__PURE__ */ t(b, { event: a.event })
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
62
60
|
};
|
|
63
61
|
export {
|
|
64
|
-
|
|
62
|
+
M as AppStory
|
|
65
63
|
};
|
|
@@ -1,57 +1,52 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { styled as
|
|
3
|
-
import { StreamLayerProvider as
|
|
4
|
-
import { useStreamLayerDebug as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const u = /* @__PURE__ */ t("div")({
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { styled as r } from "@linaria/react";
|
|
3
|
+
import { StreamLayerProvider as l } from "@streamlayer/react";
|
|
4
|
+
import { useStreamLayerDebug as y } from "../../../../utils/debug/index.js";
|
|
5
|
+
import { Video as u } from "./video.js";
|
|
6
|
+
const v = /* @__PURE__ */ r("div")({
|
|
8
7
|
name: "Body",
|
|
9
8
|
class: "bqh4lcc",
|
|
10
9
|
propsAsIs: !1
|
|
11
|
-
}),
|
|
10
|
+
}), f = /* @__PURE__ */ r("div")({
|
|
12
11
|
name: "Main",
|
|
13
12
|
class: "mgga81b",
|
|
14
13
|
propsAsIs: !1
|
|
15
|
-
}),
|
|
16
|
-
isMobileScreen:
|
|
14
|
+
}), k = ({
|
|
15
|
+
isMobileScreen: t,
|
|
17
16
|
promotionId: s,
|
|
18
|
-
sdkKey:
|
|
19
|
-
eventId:
|
|
20
|
-
sidebar:
|
|
21
|
-
skipAutoClose:
|
|
22
|
-
production:
|
|
17
|
+
sdkKey: n,
|
|
18
|
+
eventId: i,
|
|
19
|
+
sidebar: d,
|
|
20
|
+
skipAutoClose: m,
|
|
21
|
+
production: a,
|
|
23
22
|
banner: c,
|
|
24
23
|
layoutMode: p = "side-by-side"
|
|
25
24
|
}) => {
|
|
26
|
-
const
|
|
27
|
-
sdkKey:
|
|
28
|
-
eventId:
|
|
29
|
-
production:
|
|
25
|
+
const e = y({
|
|
26
|
+
sdkKey: n,
|
|
27
|
+
eventId: i,
|
|
28
|
+
production: a
|
|
30
29
|
});
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
children: /* @__PURE__ */ l
|
|
33
|
-
sdkKey:
|
|
34
|
-
event:
|
|
35
|
-
production:
|
|
30
|
+
return /* @__PURE__ */ o(f, {
|
|
31
|
+
children: /* @__PURE__ */ o(l, {
|
|
32
|
+
sdkKey: e.sdkKey,
|
|
33
|
+
event: e.event,
|
|
34
|
+
production: e.env === "production",
|
|
36
35
|
autoEnable: !0,
|
|
37
|
-
children:
|
|
38
|
-
children: /* @__PURE__ */
|
|
39
|
-
event:
|
|
36
|
+
children: /* @__PURE__ */ o(v, {
|
|
37
|
+
children: /* @__PURE__ */ o(u, {
|
|
38
|
+
event: e.event,
|
|
40
39
|
banner: c,
|
|
41
|
-
sidebar:
|
|
40
|
+
sidebar: d,
|
|
42
41
|
layoutMode: p,
|
|
43
42
|
promotionId: s,
|
|
44
|
-
skipAutoClose:
|
|
45
|
-
isMobileScreen:
|
|
43
|
+
skipAutoClose: m,
|
|
44
|
+
isMobileScreen: t
|
|
46
45
|
})
|
|
47
|
-
})
|
|
48
|
-
children: "Overlay View (should appear between two text blocks)"
|
|
49
|
-
}), /* @__PURE__ */ e(b, {
|
|
50
|
-
skipAutoClose: r
|
|
51
|
-
})]
|
|
46
|
+
})
|
|
52
47
|
})
|
|
53
48
|
});
|
|
54
49
|
};
|
|
55
50
|
export {
|
|
56
|
-
|
|
51
|
+
k as PromotionStory
|
|
57
52
|
};
|
|
@@ -3,4 +3,6 @@ export declare const VideoFrame: import('@linaria/react').StyledComponent<import
|
|
|
3
3
|
export declare const AdvSidebar: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
4
|
export declare const AdvContent: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
5
|
export declare const AdvBanner: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
-
export declare const PromoButton:
|
|
6
|
+
export declare const PromoButton: {
|
|
7
|
+
__wyw_meta: unknown;
|
|
8
|
+
} & import('react').FC<import('../../../../ui/button').ButtonProps>;
|
|
@@ -1,56 +1,71 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useStreamLayer as
|
|
4
|
-
import { StreamLayerSDKAdvertisement as
|
|
5
|
-
import {
|
|
6
|
-
import { PromoButton as
|
|
7
|
-
const
|
|
8
|
-
const e =
|
|
9
|
-
|
|
1
|
+
import { jsxs as d, Fragment as g, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as v, useState as y, useCallback as V, useEffect as x } from "react";
|
|
3
|
+
import { useStreamLayer as P } from "@streamlayer/react";
|
|
4
|
+
import { StreamLayerSDKAdvertisement as l } from "../../Advertisement/index.js";
|
|
5
|
+
import { Layout as b } from "../../Layout/index.js";
|
|
6
|
+
import { PromoButton as w, VideoFrame as F } from "./styles.js";
|
|
7
|
+
const D = ({ isMobileScreen: o, skipAutoClose: a, sidebar: u, banner: p, event: m, promotionId: n, layoutMode: i }) => {
|
|
8
|
+
const e = P(), c = v(null), [h, f] = y(!1), s = V(({ muted: t }) => {
|
|
9
|
+
f(t);
|
|
10
10
|
}, []);
|
|
11
|
-
return
|
|
12
|
-
e == null || e.removeVideoPlayerController(
|
|
13
|
-
}), [e,
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
(
|
|
17
|
-
e == null || e.getFeature(12).background.advertisement.show(
|
|
11
|
+
return x(() => (e == null || e.addVideoPlayerController(s), () => {
|
|
12
|
+
e == null || e.removeVideoPlayerController(s);
|
|
13
|
+
}), [e, s]), /* @__PURE__ */ d(g, { children: [
|
|
14
|
+
n && /* @__PURE__ */ d(w, { onClick: () => {
|
|
15
|
+
var t;
|
|
16
|
+
(t = c.current) == null || t.scrollIntoView({ behavior: "smooth" }), setTimeout(() => {
|
|
17
|
+
e == null || e.getFeature(12).background.advertisement.show(n);
|
|
18
18
|
}, 200);
|
|
19
19
|
}, children: [
|
|
20
20
|
"open promotion: ",
|
|
21
|
-
|
|
21
|
+
n
|
|
22
22
|
] }),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
23
|
+
/* @__PURE__ */ r(F, { ref: c, "data-testid": "video-frame", children: e && /* @__PURE__ */ r(
|
|
24
|
+
b,
|
|
25
|
+
{
|
|
26
|
+
sdk: e,
|
|
27
|
+
sidebar: /* @__PURE__ */ r(
|
|
28
|
+
l,
|
|
29
|
+
{
|
|
30
|
+
isMobileScreen: o,
|
|
31
|
+
event: m,
|
|
32
|
+
sdk: e,
|
|
33
|
+
sidebar: u,
|
|
34
|
+
layoutMode: i,
|
|
35
|
+
skipAutoClose: a,
|
|
36
|
+
externalAd: !0,
|
|
37
|
+
persistent: !0
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
banner: /* @__PURE__ */ r(
|
|
41
|
+
l,
|
|
42
|
+
{
|
|
43
|
+
isMobileScreen: o,
|
|
44
|
+
event: m,
|
|
45
|
+
sdk: e,
|
|
46
|
+
banner: p,
|
|
47
|
+
layoutMode: i,
|
|
48
|
+
skipAutoClose: a,
|
|
49
|
+
persistent: !0
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
overlay: /* @__PURE__ */ r(
|
|
53
|
+
l,
|
|
54
|
+
{
|
|
55
|
+
isMobileScreen: o,
|
|
56
|
+
event: m,
|
|
57
|
+
sdk: e,
|
|
58
|
+
sidebar: u,
|
|
59
|
+
layoutMode: i,
|
|
60
|
+
skipAutoClose: a,
|
|
61
|
+
persistent: !0
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
children: /* @__PURE__ */ r("div", { className: "divAnchor", children: /* @__PURE__ */ r(
|
|
50
65
|
"video",
|
|
51
66
|
{
|
|
52
67
|
src: "https://storage.googleapis.com/gvabox/media/samples/stock.mp4",
|
|
53
|
-
muted:
|
|
68
|
+
muted: h,
|
|
54
69
|
width: "100%",
|
|
55
70
|
height: "100%",
|
|
56
71
|
autoplay: "autoplay",
|
|
@@ -58,44 +73,11 @@ const K = ({ isMobileScreen: o, skipAutoClose: n, sidebar: l, banner: p, event:
|
|
|
58
73
|
playsInline: !0,
|
|
59
74
|
controls: !0
|
|
60
75
|
}
|
|
61
|
-
) })
|
|
62
|
-
/* @__PURE__ */ r(
|
|
63
|
-
S,
|
|
64
|
-
{
|
|
65
|
-
style: {
|
|
66
|
-
...t === "cover" ? { position: "absolute" } : {},
|
|
67
|
-
...p === "top" ? { top: 0, order: -1 } : { bottom: 0 }
|
|
68
|
-
},
|
|
69
|
-
children: e && /* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(
|
|
70
|
-
d,
|
|
71
|
-
{
|
|
72
|
-
isMobileScreen: o,
|
|
73
|
-
event: m,
|
|
74
|
-
sdk: e,
|
|
75
|
-
banner: p,
|
|
76
|
-
layoutMode: t,
|
|
77
|
-
skipAutoClose: n,
|
|
78
|
-
persistent: !0
|
|
79
|
-
}
|
|
80
|
-
) })
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
] })
|
|
84
|
-
] }),
|
|
85
|
-
/* @__PURE__ */ r(T, { children: e && /* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(
|
|
86
|
-
d,
|
|
87
|
-
{
|
|
88
|
-
isMobileScreen: o,
|
|
89
|
-
event: m,
|
|
90
|
-
sdk: e,
|
|
91
|
-
sidebar: l,
|
|
92
|
-
layoutMode: t,
|
|
93
|
-
skipAutoClose: n,
|
|
94
|
-
persistent: !0
|
|
76
|
+
) })
|
|
95
77
|
}
|
|
96
|
-
) })
|
|
78
|
+
) })
|
|
97
79
|
] });
|
|
98
80
|
};
|
|
99
81
|
export {
|
|
100
|
-
|
|
82
|
+
D as Video
|
|
101
83
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const VideoPlayerWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
2
|
export declare const VideoFrame: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
3
|
export declare const AdvBanner: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const PromoButton:
|
|
4
|
+
export declare const PromoButton: {
|
|
5
|
+
__wyw_meta: unknown;
|
|
6
|
+
} & import('react').FC<import('../../../../ui/button').ButtonProps>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
export declare const VideoContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const VideoMuteButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
1
3
|
export declare const PointsContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
4
|
export declare const VideoPlayerWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
5
|
export declare const VideoFrame: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
6
|
export declare const LinkToLogin: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLAnchorElement> & import('react').AnchorHTMLAttributes<HTMLAnchorElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const
|
|
7
|
+
export declare const VideoTag: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLVideoElement> & import('react').VideoHTMLAttributes<HTMLVideoElement> & Record<never, unknown>>;
|
|
8
|
+
export declare const VideoIFrame: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLIFrameElement> & import('react').IframeHTMLAttributes<HTMLIFrameElement> & Record<never, unknown>>;
|
|
9
|
+
export declare const Preload: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|