@streamlayer/react-ui 1.2.2 → 1.3.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 +2 -1
- package/lib/app/app/Advertisement/index.js +66 -47
- package/lib/app/app/Features/FeatureProvider.d.ts +0 -1
- package/lib/app/app/Features/Gamification/Leaderboard.d.ts +0 -1
- package/lib/app/app/Features/Gamification/Question.d.ts +3 -1
- package/lib/app/app/Features/Gamification/Question.js +45 -41
- package/lib/app/app/Features/Gamification/QuestionsList.d.ts +0 -1
- package/lib/app/app/Features/Gamification/Tabs.d.ts +0 -1
- package/lib/app/app/Features/Gamification/UserSummary.d.ts +0 -1
- package/lib/app/app/Features/Gamification/gamification-feature.d.ts +0 -1
- package/lib/app/app/Features/Gamification/index.d.ts +0 -1
- package/lib/app/app/Features/index.d.ts +0 -1
- package/lib/app/app/Insight/index.d.ts +18 -0
- package/lib/app/app/Insight/index.js +62 -0
- package/lib/app/app/Navigation/index.d.ts +0 -1
- package/lib/app/app/Navigation/index.js +39 -31
- package/lib/app/app/Notifications/Onboarding/Notification/index.d.ts +0 -1
- package/lib/app/app/Notifications/Onboarding/index.d.ts +0 -1
- package/lib/app/app/Notifications/index.d.ts +0 -1
- package/lib/app/app/Notifications/styles.d.ts +1 -1
- package/lib/app/app/Points/index.d.ts +0 -1
- package/lib/app/app/index.d.ts +0 -1
- package/lib/app/app/story/index.d.ts +2 -10
- package/lib/app/app/story/index.js +44 -89
- package/lib/app/app/story/insight/index.d.ts +8 -0
- package/lib/app/app/story/insight/index.js +57 -0
- package/lib/app/app/story/insight/styles.d.ts +6 -0
- package/lib/app/app/story/insight/styles.js +30 -0
- package/lib/app/app/story/insight/video.d.ts +4 -0
- package/lib/app/app/story/insight/video.js +30 -0
- package/lib/app/app/story/promotion/content.d.ts +3 -0
- package/lib/app/app/story/{content.js → promotion/content.js} +22 -18
- package/lib/app/app/story/promotion/index.d.ts +9 -0
- package/lib/app/app/story/promotion/index.js +54 -0
- package/lib/app/app/story/promotion/styles.d.ts +6 -0
- package/lib/app/app/story/promotion/styles.js +35 -0
- package/lib/app/app/story/promotion/video.d.ts +8 -0
- package/lib/app/app/story/promotion/video.js +98 -0
- package/lib/app/app/story/settings/index.d.ts +1 -0
- package/lib/app/app/story/settings/index.js +14 -0
- package/lib/app/app/story/styles.d.ts +1 -6
- package/lib/app/app/story/styles.js +9 -34
- package/lib/app/app/story/video.d.ts +1 -10
- package/lib/app/app/story/video.js +35 -62
- package/lib/app/app/useApp.d.ts +0 -1
- package/lib/app/app/useAppContext.d.ts +0 -1
- package/lib/app/login/demo.d.ts +0 -1
- package/lib/app/login/demo.js +23 -9
- package/lib/app/masters/Features/FeatureProvider.d.ts +0 -1
- package/lib/app/masters/Features/Gamification/Leaderboard.d.ts +0 -1
- package/lib/app/masters/Features/Gamification/Question.d.ts +0 -1
- package/lib/app/masters/Features/Gamification/QuestionsList.d.ts +0 -1
- package/lib/app/masters/Features/Gamification/Tabs.d.ts +0 -1
- package/lib/app/masters/Features/Gamification/UserSummary.d.ts +0 -1
- package/lib/app/masters/Features/Gamification/gamification-feature.d.ts +0 -1
- package/lib/app/masters/Features/Gamification/index.d.ts +0 -1
- package/lib/app/masters/Features/index.d.ts +0 -1
- package/lib/app/masters/Navigation/MastersNavigation/index.d.ts +0 -1
- package/lib/app/masters/Notifications/Onboarding/Notification/index.d.ts +0 -1
- package/lib/app/masters/Notifications/Onboarding/index.d.ts +0 -1
- package/lib/app/masters/Notifications/index.d.ts +0 -1
- package/lib/app/masters/Notifications/styles.d.ts +1 -1
- package/lib/app/masters/Points/index.d.ts +0 -1
- package/lib/app/masters/masters.d.ts +0 -1
- package/lib/app/masters/useMastersApp.d.ts +0 -1
- package/lib/app/masters/useMastersContext.d.ts +0 -1
- package/lib/app/styles.d.ts +3 -3
- package/lib/app/useClipboardCopy.d.ts +0 -1
- package/lib/app/useSdkFeature.d.ts +0 -1
- package/lib/app/useSdkResponsive.d.ts +0 -1
- package/lib/app/useSdkScroll.d.ts +0 -1
- package/lib/assets/style.css +1 -1
- package/lib/ui/advertisement/banner/index.d.ts +1 -2
- package/lib/ui/advertisement/banner/index.js +16 -28
- package/lib/ui/advertisement/banner/styles.d.ts +3 -0
- package/lib/ui/advertisement/banner/styles.js +20 -0
- package/lib/ui/advertisement/index.d.ts +0 -1
- package/lib/ui/advertisement/index.js +13 -12
- package/lib/ui/advertisement/mock.d.ts +0 -1
- package/lib/ui/advertisement/overlay/index.d.ts +2 -1
- package/lib/ui/advertisement/overlay/index.js +61 -58
- package/lib/ui/advertisement/overlay/styles.d.ts +8 -4
- package/lib/ui/advertisement/overlay/styles.js +70 -62
- package/lib/ui/animated-counter/index.d.ts +0 -1
- package/lib/ui/gamification/constants.d.ts +0 -1
- package/lib/ui/gamification/detail/header/index.d.ts +0 -1
- package/lib/ui/gamification/insight/index.d.ts +0 -1
- package/lib/ui/gamification/insight-list/index.d.ts +0 -1
- package/lib/ui/gamification/leaderboard/index.d.ts +0 -1
- package/lib/ui/gamification/leaderboard/list-item/index.d.ts +0 -1
- package/lib/ui/gamification/leaderboard/static.d.ts +0 -1
- package/lib/ui/gamification/onboarding/index.d.ts +0 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +0 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +0 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.d.ts +0 -1
- package/lib/ui/gamification/question/index.d.ts +0 -1
- package/lib/ui/gamification/question/insight/index.d.ts +0 -1
- package/lib/ui/gamification/question/list/index.d.ts +0 -1
- package/lib/ui/gamification/question/notification/index.d.ts +0 -1
- package/lib/ui/gamification/question/notification/insight/index.d.ts +0 -1
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.d.ts +14 -14
- package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +0 -1
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +1 -1
- package/lib/ui/gamification/question/notification/tweet/index.d.ts +0 -1
- package/lib/ui/gamification/question/twitter/index.d.ts +0 -1
- package/lib/ui/gamification/vote/alert/index.d.ts +0 -1
- package/lib/ui/gamification/vote/feedback/index.d.ts +0 -1
- package/lib/ui/gamification/vote/index.d.ts +0 -1
- package/lib/ui/gamification/vote/insight-details/index.d.ts +0 -1
- package/lib/ui/gamification/vote/insight-details/index.js +7 -8
- package/lib/ui/gamification/vote/insight-details/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/insight-details/styles.js +10 -4
- package/lib/ui/gamification/vote/twitter-details/index.d.ts +0 -1
- package/lib/ui/gamification/vote/vote-option/index.d.ts +0 -1
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +2 -2
- package/lib/ui/gamification/vote/win-bar/index.d.ts +0 -1
- package/lib/ui/link/index.d.ts +1 -0
- package/lib/ui/link/index.js +9 -0
- package/lib/ui/navigation/button/Channels.d.ts +0 -1
- package/lib/ui/navigation/button/FeaturedGroups.d.ts +0 -1
- package/lib/ui/navigation/button/LeaderBoard.d.ts +0 -1
- package/lib/ui/navigation/button/index.d.ts +0 -1
- package/lib/ui/navigation/index.d.ts +0 -1
- package/lib/ui/questions/insight/index.d.ts +0 -1
- package/lib/ui/questions/twitter/index.d.ts +0 -1
- package/lib/ui/questions/twitter/styles.d.ts +2 -2
- package/lib/ui/show-in/index.d.ts +0 -1
- package/lib/ui/theme/breakpoints.d.ts +0 -1
- package/lib/ui/theme/index.d.ts +1 -0
- package/lib/ui/theme/index.js +4 -3
- package/lib/ui/theme/masters-theme.d.ts +0 -1
- package/lib/ui/theme/theme.js +42 -16
- package/lib/ui/timer/index.d.ts +0 -1
- package/lib/ui/video-player/index.d.ts +1 -0
- package/lib/ui/video-player/index.js +43 -43
- package/lib/utils/debug/index.js +45 -19
- package/package.json +26 -26
- package/lib/app/app/story/content.d.ts +0 -4
- package/lib/app/app/story/useResponsive.d.ts +0 -1
- package/lib/app/app/story/useResponsive.js +0 -15
- /package/lib/app/app/story/{login.d.ts → settings/login.d.ts} +0 -0
- /package/lib/app/app/story/{login.js → settings/login.js} +0 -0
|
@@ -1,49 +1,24 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
const
|
|
2
|
+
const o = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "PointsContainer",
|
|
4
4
|
class: "p10yam33",
|
|
5
5
|
propsAsIs: !1
|
|
6
|
-
}),
|
|
6
|
+
}), e = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "VideoPlayerWrap",
|
|
8
8
|
class: "v13be41a",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
11
11
|
name: "VideoFrame",
|
|
12
12
|
class: "v18d3gas",
|
|
13
13
|
propsAsIs: !1
|
|
14
|
-
}),
|
|
15
|
-
name: "
|
|
14
|
+
}), i = /* @__PURE__ */ s("a")({
|
|
15
|
+
name: "LinkToLogin",
|
|
16
16
|
class: "l1aq3x2u",
|
|
17
17
|
propsAsIs: !1
|
|
18
|
-
}), r = /* @__PURE__ */ s("button")({
|
|
19
|
-
name: "FullscreenButton",
|
|
20
|
-
class: "f6hlblg",
|
|
21
|
-
propsAsIs: !1
|
|
22
|
-
}), l = /* @__PURE__ */ s("div")({
|
|
23
|
-
name: "AdvSidebar",
|
|
24
|
-
class: "a1ir4g01",
|
|
25
|
-
propsAsIs: !1
|
|
26
|
-
}), p = /* @__PURE__ */ s("div")({
|
|
27
|
-
name: "AdvContent",
|
|
28
|
-
class: "aq35lm3",
|
|
29
|
-
propsAsIs: !1
|
|
30
|
-
}), i = /* @__PURE__ */ s("div")({
|
|
31
|
-
name: "AdvBanner",
|
|
32
|
-
class: "a1trv37l",
|
|
33
|
-
propsAsIs: !1
|
|
34
|
-
}), d = /* @__PURE__ */ s("button")({
|
|
35
|
-
name: "PromoButton",
|
|
36
|
-
class: "plx7e50",
|
|
37
|
-
propsAsIs: !1
|
|
38
18
|
});
|
|
39
19
|
export {
|
|
40
|
-
i as
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
t as LoginContainer,
|
|
45
|
-
n as PointsContainer,
|
|
46
|
-
d as PromoButton,
|
|
47
|
-
e as VideoFrame,
|
|
48
|
-
o as VideoPlayerWrap
|
|
20
|
+
i as LinkToLogin,
|
|
21
|
+
o as PointsContainer,
|
|
22
|
+
n as VideoFrame,
|
|
23
|
+
e as VideoPlayerWrap
|
|
49
24
|
};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
export declare const Video: React.FC
|
|
2
|
-
sidebar: 'left' | 'right';
|
|
3
|
-
banner: 'top' | 'bottom';
|
|
4
|
-
layoutMode: 'cover' | 'side-by-side';
|
|
5
|
-
hidePoints?: boolean;
|
|
6
|
-
fullscreen?: boolean;
|
|
7
|
-
hideLogin?: boolean;
|
|
8
|
-
event?: string;
|
|
9
|
-
promotionId?: string;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Video: React.FC;
|
|
@@ -1,67 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useStreamLayer as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const Q = ({ toggleFullscreen: p, fullscreen: h, hideLogin: u, hidePoints: f, sidebar: i, banner: a, event: n, promotionId: c, layoutMode: o }) => {
|
|
11
|
-
const e = b(), [g, y] = P(!0), d = G(), l = L(({ muted: S }) => {
|
|
12
|
-
y(S);
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as n, useCallback as m, useEffect as s } from "react";
|
|
3
|
+
import { useStreamLayer as d } from "@streamlayer/react";
|
|
4
|
+
import { StreamLayerSDKPoints as p } from "../Points/index.js";
|
|
5
|
+
import { StreamLayerThemeProvider as u } from "../../../ui/theme/index.js";
|
|
6
|
+
import { VideoFrame as c, PointsContainer as h, VideoPlayerWrap as f, LinkToLogin as y } from "./styles.js";
|
|
7
|
+
const S = () => {
|
|
8
|
+
const e = d(), [t, i] = n(!0), o = m(({ muted: a }) => {
|
|
9
|
+
i(a);
|
|
13
10
|
}, []);
|
|
14
|
-
|
|
15
|
-
e == null || e.removeVideoPlayerController(
|
|
16
|
-
}), [e,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
muted: g,
|
|
40
|
-
width: "100%",
|
|
41
|
-
height: "100%",
|
|
42
|
-
autoplay: "autoplay",
|
|
43
|
-
loop: !0,
|
|
44
|
-
playsInline: !0,
|
|
45
|
-
playing: !0
|
|
46
|
-
}
|
|
47
|
-
),
|
|
48
|
-
/* @__PURE__ */ r(
|
|
49
|
-
K,
|
|
50
|
-
{
|
|
51
|
-
style: {
|
|
52
|
-
...o === "cover" ? { position: "absolute" } : {},
|
|
53
|
-
...a === "top" ? { top: 0, order: -1 } : { bottom: 0 }
|
|
54
|
-
},
|
|
55
|
-
children: e && /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(s, { event: n, sdk: e, banner: a, layoutMode: o }) })
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
] }),
|
|
59
|
-
c && /* @__PURE__ */ r(R, { onClick: v, children: "open promotion" }),
|
|
60
|
-
/* @__PURE__ */ r(T, { onClick: p, children: "fullscreen" })
|
|
61
|
-
] }),
|
|
62
|
-
d && /* @__PURE__ */ r(E, { children: e && /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(s, { event: n, sdk: e, sidebar: i, layoutMode: o }) }) })
|
|
11
|
+
return s(() => (e == null || e.addVideoPlayerController(o), () => {
|
|
12
|
+
e == null || e.removeVideoPlayerController(o);
|
|
13
|
+
}), [e, o]), /* @__PURE__ */ l(c, { "data-testid": "video-frame", children: [
|
|
14
|
+
e && /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(p, { sdk: e }) }) }),
|
|
15
|
+
/* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
|
|
16
|
+
"video",
|
|
17
|
+
{
|
|
18
|
+
src: "https://storage.googleapis.com/cdn.streamlayer.io/assets/sdk-web/Own%20The%20Game%201080p%20RF18.mp4",
|
|
19
|
+
muted: t,
|
|
20
|
+
width: "100%",
|
|
21
|
+
height: "100%",
|
|
22
|
+
autoplay: "autoplay",
|
|
23
|
+
loop: !0,
|
|
24
|
+
playsInline: !0,
|
|
25
|
+
playing: !0
|
|
26
|
+
}
|
|
27
|
+
) }),
|
|
28
|
+
/* @__PURE__ */ r(
|
|
29
|
+
y,
|
|
30
|
+
{
|
|
31
|
+
href: "./iframe.html?args=&globals=viewport:appDesktop&id=app-login--login&viewMode=story",
|
|
32
|
+
rel: "noreferrer",
|
|
33
|
+
children: "login"
|
|
34
|
+
}
|
|
35
|
+
)
|
|
63
36
|
] });
|
|
64
37
|
};
|
|
65
38
|
export {
|
|
66
|
-
|
|
39
|
+
S as Video
|
|
67
40
|
};
|
package/lib/app/app/useApp.d.ts
CHANGED
package/lib/app/login/demo.d.ts
CHANGED
package/lib/app/login/demo.js
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useStore as
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useStore as a } from "@nanostores/react";
|
|
3
3
|
import "@streamlayer/sdk-web-anonymous-auth";
|
|
4
|
-
import { Login as
|
|
5
|
-
const
|
|
4
|
+
import { Login as s } from "./index.js";
|
|
5
|
+
const y = ({ sdk: o }) => a(o.getUserStore()).data ? /* @__PURE__ */ i("div", { children: [
|
|
6
|
+
/* @__PURE__ */ t(
|
|
7
|
+
"a",
|
|
8
|
+
{
|
|
9
|
+
href: "#",
|
|
10
|
+
onClick: () => {
|
|
11
|
+
window.history.go(-1);
|
|
12
|
+
},
|
|
13
|
+
children: "go back"
|
|
14
|
+
}
|
|
15
|
+
),
|
|
16
|
+
/* @__PURE__ */ t("button", { onClick: o.logout, children: "logout" })
|
|
17
|
+
] }) : /* @__PURE__ */ t(s, { login: async (r) => {
|
|
6
18
|
try {
|
|
7
|
-
await o.authorizationBypass("streamlayer:streamlayer",
|
|
8
|
-
} catch (
|
|
9
|
-
throw console.log("login err",
|
|
19
|
+
await o.authorizationBypass("streamlayer:streamlayer", r), window.history.go(-1);
|
|
20
|
+
} catch (n) {
|
|
21
|
+
throw console.log("login err", n), n;
|
|
10
22
|
}
|
|
11
|
-
}, anonymousLogin:
|
|
23
|
+
}, anonymousLogin: async () => {
|
|
24
|
+
await o.anonymousAuthorization(), window.history.go(-1);
|
|
25
|
+
}, host: o.host });
|
|
12
26
|
export {
|
|
13
|
-
|
|
27
|
+
y as LoginComponent
|
|
14
28
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Features } from '@streamlayer/sdk-web-features';
|
|
2
2
|
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
-
|
|
4
3
|
/** Here we check data, render loaders, load data and perform some side effects for the active feature */
|
|
5
4
|
export declare const FeatureProvider: React.FC<{
|
|
6
5
|
feature: Features;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ScrollNodeRef } from '../../..';
|
|
2
2
|
import { ScrollStore } from '../../../useSdkScroll';
|
|
3
3
|
import { Gamification } from '@streamlayer/feature-gamification';
|
|
4
|
-
|
|
5
4
|
export declare const Leaderboard: React.FC<{
|
|
6
5
|
gamification: Gamification;
|
|
7
6
|
scrollNode: ScrollNodeRef;
|
|
@@ -2,7 +2,6 @@ import { AppNodeRef, ScrollNodeRef } from '../../..';
|
|
|
2
2
|
import { ResponsiveStore } from '../../../useSdkResponsive';
|
|
3
3
|
import { ScrollStore } from '../../../useSdkScroll';
|
|
4
4
|
import { Gamification } from '@streamlayer/feature-gamification';
|
|
5
|
-
|
|
6
5
|
export declare const Tabs: React.FC<{
|
|
7
6
|
appNode: AppNodeRef;
|
|
8
7
|
gamification: Gamification;
|
|
@@ -2,7 +2,6 @@ import { AppNodeRef, ScrollNodeRef } from '../../..';
|
|
|
2
2
|
import { ResponsiveStore } from '../../../useSdkResponsive';
|
|
3
3
|
import { ScrollStore } from '../../../useSdkScroll';
|
|
4
4
|
import { Gamification as GamificationClass } from '@streamlayer/feature-gamification';
|
|
5
|
-
|
|
6
5
|
export declare const GamificationOverlay: React.FC<{
|
|
7
6
|
gamification: GamificationClass;
|
|
8
7
|
className?: string;
|
|
@@ -3,7 +3,6 @@ import { ResponsiveStore } from '../../useSdkResponsive';
|
|
|
3
3
|
import { ScrollStore } from '../../useSdkScroll';
|
|
4
4
|
import { Features } from '@streamlayer/sdk-web-features';
|
|
5
5
|
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
6
|
-
|
|
7
6
|
/** render feature by type */
|
|
8
7
|
export declare const ActiveFeature: React.FC<{
|
|
9
8
|
sdk: StreamLayerSDK;
|
|
@@ -2,7 +2,6 @@ import { ResponsiveStore } from '../../../useSdkResponsive';
|
|
|
2
2
|
import { ChannelsButtonId } from '../../../../ui/navigation/button/Channels';
|
|
3
3
|
import { FeaturedGroupsButtonId } from '../../../../ui/navigation/button/FeaturedGroups';
|
|
4
4
|
import { LeaderBoardButtonId } from '../../../../ui/navigation/button/LeaderBoard';
|
|
5
|
-
|
|
6
5
|
export { ChannelsButtonId, LeaderBoardButtonId, FeaturedGroupsButtonId };
|
|
7
6
|
export type AvailableOverlays = typeof ChannelsButtonId | typeof LeaderBoardButtonId | typeof FeaturedGroupsButtonId;
|
|
8
7
|
type MastersNavigationProps = {
|
|
@@ -2,7 +2,6 @@ import { AppNodeRef } from '../../..';
|
|
|
2
2
|
import { ResponsiveStore } from '../../../useSdkResponsive';
|
|
3
3
|
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
4
4
|
import { Notification } from '@streamlayer/sdk-web-notifications';
|
|
5
|
-
|
|
6
5
|
export declare const Onboarding: React.FC<{
|
|
7
6
|
sdk: StreamLayerSDK;
|
|
8
7
|
notification: Notification;
|
|
@@ -2,7 +2,6 @@ import { AppNodeRef, ScrollNodeRef, HeaderNodeRef } from '../..';
|
|
|
2
2
|
import { ResponsiveStore } from '../../useSdkResponsive';
|
|
3
3
|
import { ScrollStore } from '../../useSdkScroll';
|
|
4
4
|
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
5
|
-
|
|
6
5
|
export declare const SDKNotifications: React.FC<{
|
|
7
6
|
sdk: StreamLayerSDK;
|
|
8
7
|
scrollNode: ScrollNodeRef;
|
|
@@ -3,7 +3,7 @@ export declare const InnerContainer: import('@linaria/react').StyledComponent<im
|
|
|
3
3
|
export declare const HiddenContainer: {
|
|
4
4
|
__wyw_meta: unknown;
|
|
5
5
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
6
|
-
as?:
|
|
6
|
+
as?: React.ElementType;
|
|
7
7
|
}>;
|
|
8
8
|
export declare const NotificationRefreshing: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
9
|
export declare const Pill: any;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
2
2
|
import { AvailableOverlays } from './Navigation/MastersNavigation';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* A hook that provides functionality for managing the StreamLayerSDK in the Masters app.
|
|
6
5
|
* - On activate FG+ button, the SDK is initialized and the FG+ overlay is opened.
|
package/lib/app/styles.d.ts
CHANGED
|
@@ -4,17 +4,17 @@ export declare const SDKContentContainer: import('@linaria/react').StyledCompone
|
|
|
4
4
|
export declare const SDKWhiteContainer: {
|
|
5
5
|
__wyw_meta: unknown;
|
|
6
6
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
7
|
-
as?:
|
|
7
|
+
as?: React.ElementType;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const TabsContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
10
|
export declare const LeaderboardContainer: {
|
|
11
11
|
__wyw_meta: unknown;
|
|
12
12
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
13
|
-
as?:
|
|
13
|
+
as?: React.ElementType;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const TabsNavContainer: {
|
|
16
16
|
__wyw_meta: unknown;
|
|
17
17
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
18
|
-
as?:
|
|
18
|
+
as?: React.ElementType;
|
|
19
19
|
}>;
|
|
20
20
|
export declare const UserSummaryContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Features } from '@streamlayer/sdk-web-features';
|
|
2
2
|
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
3
|
import { FeatureType } from '@streamlayer/sdk-web-types';
|
|
4
|
-
|
|
5
4
|
/**
|
|
6
5
|
* A hook that manages the active feature of a StreamLayerSDK instance.
|
|
7
6
|
* @param sdk - The StreamLayerSDK instance to manage the feature for.
|