@streamlayer/react-ui 1.2.2 → 1.3.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 +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,19 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useStore as
|
|
3
|
-
import { PromotionType as
|
|
4
|
-
import { Banner as
|
|
1
|
+
import { jsxs as t, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { useStore as n } from "@nanostores/react";
|
|
3
|
+
import { PromotionType as i } from "@streamlayer/sdk-web-types";
|
|
4
|
+
import { Banner as o } from "./banner/index.js";
|
|
5
5
|
import { Overlay as u } from "./overlay/index.js";
|
|
6
|
-
import { Sidebar as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import { Sidebar as a } from "./sidebar/index.js";
|
|
7
|
+
import { OverlayContainer as f } from "./overlay/styles.js";
|
|
8
|
+
const y = (r) => (r == null ? void 0 : r.type) === i.INGAME_IAB11_LBAR || (r == null ? void 0 : r.type) === i.INGAME_IAB21_LBAR, I = (r) => (r == null ? void 0 : r.type) === i.INGAME_IAB11 || (r == null ? void 0 : r.type) === i.INGAME_IAB21, E = ({ advertisement: r, layoutMode: s = "side-by-side", sidebar: c, banner: e }) => {
|
|
9
|
+
const l = n(r.data);
|
|
10
|
+
return !l.data && l.loading ? null : l.error ? /* @__PURE__ */ t("div", { children: [
|
|
10
11
|
"error ",
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
] }) :
|
|
12
|
+
/* @__PURE__ */ d("button", { onClick: r.close, children: "close" })
|
|
13
|
+
] }) : l.data ? !c && !e && I(l.data) ? /* @__PURE__ */ d(f, { children: /* @__PURE__ */ d(u, { promotionId: r.id, promotion: l.data, onClose: r.close }) }) : c && y(l.data) ? /* @__PURE__ */ d(a, { direction: c, hiding: r.hiding, children: /* @__PURE__ */ d(u, { promotionId: r.id, promotion: l.data, onClose: r.close }) }) : e ? /* @__PURE__ */ d(o, { promotionId: r.id, hiding: r.hiding, promotion: l.data, direction: e }) : null : /* @__PURE__ */ t("div", { children: [
|
|
13
14
|
"empty promo ",
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
+
/* @__PURE__ */ d("button", { onClick: r.close, children: "close" })
|
|
15
16
|
] });
|
|
16
17
|
};
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
E as AdvertisementUI
|
|
19
20
|
};
|
|
@@ -1,74 +1,77 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"div",
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cx as R } from "@linaria/core";
|
|
3
|
+
import { eventBus as U } from "@streamlayer/sdk-web-interfaces";
|
|
4
|
+
import { PromotionType as D, PromotionLogoMode as n } from "@streamlayer/sdk-web-types";
|
|
5
|
+
import { VideoPlayer as j } from "../../video-player/index.js";
|
|
6
|
+
import { PromoOverlay as G, Header as H, HeaderContent as W, headerContentShift as V, SponsorLogo as F, Sponsor as q, SponsorName as w, SponsorText as z, ADLogo as J, SponsoredText as K, CloseIconWrap as Q, CloseIcon as X, Media as Y, shiftMedia as Z, Content as _, PromoImg as $, Title as ee, hideOnMobile as re, Description as ae, ActionBtnWrap as ne, ActionButton as le } from "./styles.js";
|
|
7
|
+
import { OverlayContainer as ge } from "./styles.js";
|
|
8
|
+
const he = ({ promotion: e, promotionId: t, onClose: k }) => {
|
|
9
|
+
var s, c, d, i, h, b, y, g, f, p, u, v, m, C, x, M, A, B, N, P, T, E, I, L, S, O;
|
|
10
|
+
const l = e.type === D.INGAME_IAB11_LBAR || e.type === D.INGAME_IAB11, o = ((s = e.sponsor) == null ? void 0 : s.logo) && e.logoMode === n.CENTER;
|
|
11
|
+
return /* @__PURE__ */ a(G, { className: "PromoOverlay", children: [
|
|
12
|
+
/* @__PURE__ */ a(H, { children: [
|
|
13
|
+
/* @__PURE__ */ a(W, { className: R(!o && V), children: [
|
|
14
|
+
((c = e.sponsor) == null ? void 0 : c.logo) && e.logoMode === n.LEFT && /* @__PURE__ */ r(F, { src: (d = e.sponsor) == null ? void 0 : d.logo, alt: "promo" }),
|
|
15
|
+
/* @__PURE__ */ a(
|
|
16
|
+
q,
|
|
18
17
|
{
|
|
19
18
|
style: {
|
|
20
|
-
paddingLeft: (
|
|
19
|
+
paddingLeft: (i = e.sponsor) != null && i.logo && e.logoMode === n.LEFT ? "0px" : "8px"
|
|
21
20
|
},
|
|
22
21
|
children: [
|
|
23
|
-
((
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */ r(
|
|
26
|
-
/* @__PURE__ */ r(
|
|
22
|
+
((h = e.sponsor) == null ? void 0 : h.logo) && e.logoMode === n.LEFT && /* @__PURE__ */ r(w, { children: (b = e.sponsor) == null ? void 0 : b.name }),
|
|
23
|
+
/* @__PURE__ */ a(z, { children: [
|
|
24
|
+
/* @__PURE__ */ r(J, { children: "AD" }),
|
|
25
|
+
/* @__PURE__ */ r(K, { children: "SPONSORED" })
|
|
27
26
|
] })
|
|
28
27
|
]
|
|
29
28
|
}
|
|
30
29
|
)
|
|
31
30
|
] }),
|
|
32
|
-
/* @__PURE__ */ r(
|
|
31
|
+
/* @__PURE__ */ r(Q, { onClick: k, children: /* @__PURE__ */ r(X, { name: "icon-cross" }) })
|
|
33
32
|
] }),
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
38
|
-
D,
|
|
39
|
-
{
|
|
40
|
-
source: (y = (u = e.banner) == null ? void 0 : u.video) == null ? void 0 : y.url,
|
|
41
|
-
poster: (f = (x = e.banner) == null ? void 0 : x.video) == null ? void 0 : f.thumbnailUrl,
|
|
42
|
-
aspectRatio: o ? "1/1" : "16/9"
|
|
43
|
-
}
|
|
44
|
-
) : (p = e.banner) != null && p.imageUrl ? /* @__PURE__ */ r(
|
|
45
|
-
q,
|
|
46
|
-
{
|
|
47
|
-
style: o ? { width: "268px", height: "268px" } : {},
|
|
48
|
-
src: (A = e.banner) == null ? void 0 : A.imageUrl,
|
|
49
|
-
alt: "promo"
|
|
50
|
-
}
|
|
51
|
-
) : null,
|
|
52
|
-
!o && /* @__PURE__ */ l(z, { children: [
|
|
53
|
-
/* @__PURE__ */ r(J, { children: (C = e.banner) == null ? void 0 : C.title }),
|
|
54
|
-
/* @__PURE__ */ r(K, { children: (E = e.banner) == null ? void 0 : E.body })
|
|
55
|
-
] })
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r(
|
|
58
|
-
X,
|
|
33
|
+
/* @__PURE__ */ a(Y, { children: [
|
|
34
|
+
o && /* @__PURE__ */ r(F, { className: Z, src: (y = e.sponsor) == null ? void 0 : y.logo, alt: "promo" }),
|
|
35
|
+
/* @__PURE__ */ r(_, { children: (f = (g = e.banner) == null ? void 0 : g.video) != null && f.url ? /* @__PURE__ */ r(
|
|
36
|
+
j,
|
|
59
37
|
{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
38
|
+
source: (u = (p = e.banner) == null ? void 0 : p.video) == null ? void 0 : u.url,
|
|
39
|
+
poster: (m = (v = e.banner) == null ? void 0 : v.video) == null ? void 0 : m.thumbnailUrl,
|
|
40
|
+
aspectRatio: l ? "1/1" : "16/9",
|
|
41
|
+
onPlay: () => {
|
|
42
|
+
U.emit("advertisement", {
|
|
43
|
+
action: "videoPlay",
|
|
44
|
+
payload: {
|
|
45
|
+
advertisementId: t,
|
|
46
|
+
advertisementType: e.type
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
67
50
|
}
|
|
68
|
-
) })
|
|
69
|
-
|
|
51
|
+
) : (C = e.banner) != null && C.imageUrl ? /* @__PURE__ */ r($, { style: l ? { aspectRatio: "1/1" } : {}, src: (x = e.banner) == null ? void 0 : x.imageUrl, alt: "promo" }) : null }),
|
|
52
|
+
!l && /* @__PURE__ */ a(_, { children: [
|
|
53
|
+
((M = e.banner) == null ? void 0 : M.title) && /* @__PURE__ */ r(ee, { className: R(o && re), children: (A = e.banner) == null ? void 0 : A.title }),
|
|
54
|
+
((B = e.banner) == null ? void 0 : B.body) && /* @__PURE__ */ r(ae, { children: (N = e.banner) == null ? void 0 : N.body })
|
|
55
|
+
] })
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ r(ne, { children: /* @__PURE__ */ r(
|
|
58
|
+
le,
|
|
59
|
+
{
|
|
60
|
+
href: (P = e.banner) == null ? void 0 : P.url,
|
|
61
|
+
style: {
|
|
62
|
+
backgroundColor: ((E = (T = e.banner) == null ? void 0 : T.ctaButton) == null ? void 0 : E.color) || "#009dc4",
|
|
63
|
+
color: ((L = (I = e.banner) == null ? void 0 : I.ctaButton) == null ? void 0 : L.textColor) || "#fff"
|
|
64
|
+
},
|
|
65
|
+
"data-analytics": "button",
|
|
66
|
+
"data-promo-id": t,
|
|
67
|
+
"data-promo-type": e.type,
|
|
68
|
+
target: "_blank",
|
|
69
|
+
children: (O = (S = e.banner) == null ? void 0 : S.ctaButton) == null ? void 0 : O.label
|
|
70
|
+
}
|
|
71
|
+
) })
|
|
70
72
|
] });
|
|
71
73
|
};
|
|
72
74
|
export {
|
|
73
|
-
|
|
75
|
+
he as Overlay,
|
|
76
|
+
ge as OverlayContainer
|
|
74
77
|
};
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
+
export declare const OverlayContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const PromoOverlay: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
1
3
|
export declare const Header: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
4
|
export declare const HeaderContent: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const headerContentShift: import('@linaria/core').LinariaClassName;
|
|
3
6
|
export declare const SponsorLogo: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
4
7
|
export declare const SponsorName: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const PromoOverlay: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
8
|
export declare const Media: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
|
-
export declare const
|
|
9
|
+
export declare const PromoImg: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
10
|
+
export declare const shiftMedia: import('@linaria/core').LinariaClassName;
|
|
11
|
+
export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
12
|
export declare const Description: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
13
|
+
export declare const Sponsor: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
14
|
export declare const SponsorText: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
15
|
export declare const ADLogo: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
11
16
|
export declare const SponsoredText: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
12
17
|
export declare const CloseIconWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
13
18
|
export declare const CloseIcon: any;
|
|
14
|
-
export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
15
19
|
export declare const ActionBtnWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
16
20
|
export declare const ActionButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLAnchorElement> & import('react').AnchorHTMLAttributes<HTMLAnchorElement> & Record<never, unknown>>;
|
|
17
|
-
export declare const PromoImg: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
18
21
|
export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
22
|
+
export declare const hideOnMobile: import('@linaria/core').LinariaClassName;
|
|
@@ -1,95 +1,103 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
2
|
import { SvgIcon as o } from "../../icons/index.js";
|
|
3
|
-
const
|
|
3
|
+
const t = /* @__PURE__ */ s("div")({
|
|
4
|
+
name: "OverlayContainer",
|
|
5
|
+
class: "okzhq2w",
|
|
6
|
+
propsAsIs: !1
|
|
7
|
+
}), p = /* @__PURE__ */ s("div")({
|
|
8
|
+
name: "PromoOverlay",
|
|
9
|
+
class: "pmgz5i",
|
|
10
|
+
propsAsIs: !1
|
|
11
|
+
}), r = /* @__PURE__ */ s("div")({
|
|
4
12
|
name: "Header",
|
|
5
|
-
class: "
|
|
13
|
+
class: "hyxi3jt",
|
|
6
14
|
propsAsIs: !1
|
|
7
|
-
}),
|
|
15
|
+
}), c = /* @__PURE__ */ s("div")({
|
|
8
16
|
name: "HeaderContent",
|
|
9
|
-
class: "
|
|
17
|
+
class: "h149e3gp",
|
|
10
18
|
propsAsIs: !1
|
|
11
|
-
}),
|
|
19
|
+
}), l = "h10toh7", i = /* @__PURE__ */ s("img")({
|
|
12
20
|
name: "SponsorLogo",
|
|
13
|
-
class: "
|
|
21
|
+
class: "s1jyea6t",
|
|
14
22
|
propsAsIs: !1
|
|
15
|
-
}),
|
|
23
|
+
}), m = /* @__PURE__ */ s("div")({
|
|
16
24
|
name: "SponsorName",
|
|
17
|
-
class: "
|
|
18
|
-
propsAsIs: !1
|
|
19
|
-
}), l = /* @__PURE__ */ s("div")({
|
|
20
|
-
name: "PromoOverlay",
|
|
21
|
-
class: "p10toh7",
|
|
25
|
+
class: "szpfa3h",
|
|
22
26
|
propsAsIs: !1
|
|
23
|
-
}),
|
|
27
|
+
}), d = /* @__PURE__ */ s("div")({
|
|
24
28
|
name: "Media",
|
|
25
|
-
class: "
|
|
29
|
+
class: "m1crmu01",
|
|
26
30
|
propsAsIs: !1
|
|
27
|
-
}),
|
|
28
|
-
name: "
|
|
29
|
-
class: "
|
|
31
|
+
}), I = /* @__PURE__ */ s("img")({
|
|
32
|
+
name: "PromoImg",
|
|
33
|
+
class: "p1l37r8s",
|
|
30
34
|
propsAsIs: !1
|
|
31
|
-
}),
|
|
35
|
+
}), f = "s1nmch9k", A = /* @__PURE__ */ s("div")({
|
|
36
|
+
name: "Content",
|
|
37
|
+
class: "c1er0ljd",
|
|
38
|
+
propsAsIs: !1
|
|
39
|
+
}), v = /* @__PURE__ */ s("div")({
|
|
32
40
|
name: "Description",
|
|
33
|
-
class: "
|
|
41
|
+
class: "dydopmr",
|
|
34
42
|
propsAsIs: !1
|
|
35
|
-
}),
|
|
43
|
+
}), g = /* @__PURE__ */ s("div")({
|
|
44
|
+
name: "Sponsor",
|
|
45
|
+
class: "s1w6nt04",
|
|
46
|
+
propsAsIs: !1
|
|
47
|
+
}), h = /* @__PURE__ */ s("div")({
|
|
36
48
|
name: "SponsorText",
|
|
37
|
-
class: "
|
|
49
|
+
class: "s1evcmtq",
|
|
38
50
|
propsAsIs: !1
|
|
39
|
-
}),
|
|
51
|
+
}), S = /* @__PURE__ */ s("div")({
|
|
40
52
|
name: "ADLogo",
|
|
41
|
-
class: "
|
|
53
|
+
class: "awodx0x",
|
|
42
54
|
propsAsIs: !1
|
|
43
|
-
}),
|
|
55
|
+
}), x = /* @__PURE__ */ s("span")({
|
|
44
56
|
name: "SponsoredText",
|
|
45
|
-
class: "
|
|
57
|
+
class: "s1q3n6oi",
|
|
46
58
|
propsAsIs: !1
|
|
47
|
-
}),
|
|
59
|
+
}), C = /* @__PURE__ */ s("div")({
|
|
48
60
|
name: "CloseIconWrap",
|
|
49
|
-
class: "
|
|
61
|
+
class: "c8d4xfk",
|
|
50
62
|
propsAsIs: !1
|
|
51
|
-
}), e = () => o,
|
|
63
|
+
}), e = () => o, y = /* @__PURE__ */ s(e())({
|
|
52
64
|
name: "CloseIcon",
|
|
53
|
-
class: "
|
|
65
|
+
class: "ct6oobh",
|
|
54
66
|
propsAsIs: !0
|
|
55
|
-
}),
|
|
56
|
-
name: "Content",
|
|
57
|
-
class: "c1evcmtq",
|
|
58
|
-
propsAsIs: !1
|
|
59
|
-
}), S = /* @__PURE__ */ s("div")({
|
|
67
|
+
}), T = /* @__PURE__ */ s("div")({
|
|
60
68
|
name: "ActionBtnWrap",
|
|
61
|
-
class: "
|
|
69
|
+
class: "a1gyg7tt",
|
|
62
70
|
propsAsIs: !1
|
|
63
|
-
}),
|
|
71
|
+
}), u = /* @__PURE__ */ s("a")({
|
|
64
72
|
name: "ActionButton",
|
|
65
|
-
class: "
|
|
73
|
+
class: "a17rwbtk",
|
|
66
74
|
propsAsIs: !1
|
|
67
|
-
}),
|
|
68
|
-
name: "PromoImg",
|
|
69
|
-
class: "p8d4xfk",
|
|
70
|
-
propsAsIs: !1
|
|
71
|
-
}), h = /* @__PURE__ */ s("div")({
|
|
75
|
+
}), w = /* @__PURE__ */ s("div")({
|
|
72
76
|
name: "Title",
|
|
73
|
-
class: "
|
|
77
|
+
class: "t3vxzaw",
|
|
74
78
|
propsAsIs: !1
|
|
75
|
-
});
|
|
79
|
+
}), O = "h10f3u0j";
|
|
76
80
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
81
|
+
S as ADLogo,
|
|
82
|
+
T as ActionBtnWrap,
|
|
83
|
+
u as ActionButton,
|
|
84
|
+
y as CloseIcon,
|
|
85
|
+
C as CloseIconWrap,
|
|
86
|
+
A as Content,
|
|
87
|
+
v as Description,
|
|
88
|
+
r as Header,
|
|
89
|
+
c as HeaderContent,
|
|
90
|
+
d as Media,
|
|
91
|
+
t as OverlayContainer,
|
|
92
|
+
I as PromoImg,
|
|
93
|
+
p as PromoOverlay,
|
|
94
|
+
g as Sponsor,
|
|
95
|
+
i as SponsorLogo,
|
|
96
|
+
m as SponsorName,
|
|
97
|
+
h as SponsorText,
|
|
98
|
+
x as SponsoredText,
|
|
99
|
+
w as Title,
|
|
100
|
+
l as headerContentShift,
|
|
101
|
+
O as hideOnMobile,
|
|
102
|
+
f as shiftMedia
|
|
95
103
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ScrollNodeRef } from '../../../app/masters';
|
|
2
2
|
import { ScrollStore } from '../../../app/useSdkScroll';
|
|
3
3
|
import { LeaderboardItemProps } from './list-item';
|
|
4
|
-
|
|
5
4
|
type LeaderboardListProps = {
|
|
6
5
|
items: Omit<LeaderboardItemProps, 'openItemDetail'>[];
|
|
7
6
|
currentUserId?: string;
|
|
@@ -3,7 +3,6 @@ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
|
3
3
|
import { OnboardingStep } from './slides/onboarding-instructions';
|
|
4
4
|
import { OnboardingInviteCardProps } from './slides/onboarding-invite-card';
|
|
5
5
|
import { OnboardingRule } from './slides/onboarding-rules';
|
|
6
|
-
|
|
7
6
|
type OnboardingType = OnboardingInviteCardProps & {
|
|
8
7
|
gamification: Gamification;
|
|
9
8
|
sdk: StreamLayerSDK;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Gamification } from '@streamlayer/feature-gamification';
|
|
2
2
|
import { VideoPlayerProps } from '../../../video-player';
|
|
3
|
-
|
|
4
3
|
type FeedItem = Exclude<Awaited<ReturnType<Exclude<Gamification['feedList'], undefined>['getValue']>>, undefined>;
|
|
5
4
|
interface QuestionListProps {
|
|
6
5
|
questions: FeedItem;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Notification } from '@streamlayer/sdk-web-notifications';
|
|
2
2
|
import { InsightHistory, InstantView } from '@streamlayer/sdk-web-types';
|
|
3
3
|
import { VideoPlayerProps } from '../../../../video-player';
|
|
4
|
-
|
|
5
4
|
export type InsightProps = InstantView & {
|
|
6
5
|
imageMode?: InsightHistory['imageMode'];
|
|
7
6
|
action: Notification['action'];
|
package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.d.ts
CHANGED
|
@@ -3,70 +3,70 @@ export declare const BGLineBase: import('@linaria/react').StyledComponent<import
|
|
|
3
3
|
export declare const BGOneLineOne: {
|
|
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 BGOneLineTwo: {
|
|
9
9
|
__wyw_meta: unknown;
|
|
10
10
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
11
|
-
as?:
|
|
11
|
+
as?: React.ElementType;
|
|
12
12
|
}>;
|
|
13
13
|
export declare const BGOneLineThree: {
|
|
14
14
|
__wyw_meta: unknown;
|
|
15
15
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
16
|
-
as?:
|
|
16
|
+
as?: React.ElementType;
|
|
17
17
|
}>;
|
|
18
18
|
export declare const BGTwoLineOne: {
|
|
19
19
|
__wyw_meta: unknown;
|
|
20
20
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
21
|
-
as?:
|
|
21
|
+
as?: React.ElementType;
|
|
22
22
|
}>;
|
|
23
23
|
export declare const BGTwoLineTwo: {
|
|
24
24
|
__wyw_meta: unknown;
|
|
25
25
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
26
|
-
as?:
|
|
26
|
+
as?: React.ElementType;
|
|
27
27
|
}>;
|
|
28
28
|
export declare const BGTwoLineThree: {
|
|
29
29
|
__wyw_meta: unknown;
|
|
30
30
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
31
|
-
as?:
|
|
31
|
+
as?: React.ElementType;
|
|
32
32
|
}>;
|
|
33
33
|
export declare const BGThreeLineOne: {
|
|
34
34
|
__wyw_meta: unknown;
|
|
35
35
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
36
|
-
as?:
|
|
36
|
+
as?: React.ElementType;
|
|
37
37
|
}>;
|
|
38
38
|
export declare const BGThreeLineTwo: {
|
|
39
39
|
__wyw_meta: unknown;
|
|
40
40
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
41
|
-
as?:
|
|
41
|
+
as?: React.ElementType;
|
|
42
42
|
}>;
|
|
43
43
|
export declare const BGThreeLineThree: {
|
|
44
44
|
__wyw_meta: unknown;
|
|
45
45
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
46
|
-
as?:
|
|
46
|
+
as?: React.ElementType;
|
|
47
47
|
}>;
|
|
48
48
|
export declare const BGThreeLineFour: {
|
|
49
49
|
__wyw_meta: unknown;
|
|
50
50
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
51
|
-
as?:
|
|
51
|
+
as?: React.ElementType;
|
|
52
52
|
}>;
|
|
53
53
|
export declare const BGFourLineOne: {
|
|
54
54
|
__wyw_meta: unknown;
|
|
55
55
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
56
|
-
as?:
|
|
56
|
+
as?: React.ElementType;
|
|
57
57
|
}>;
|
|
58
58
|
export declare const BGFourLineTwo: {
|
|
59
59
|
__wyw_meta: unknown;
|
|
60
60
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
61
|
-
as?:
|
|
61
|
+
as?: React.ElementType;
|
|
62
62
|
}>;
|
|
63
63
|
export declare const BGFourLineThree: {
|
|
64
64
|
__wyw_meta: unknown;
|
|
65
65
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
66
|
-
as?:
|
|
66
|
+
as?: React.ElementType;
|
|
67
67
|
}>;
|
|
68
68
|
export declare const BGFourLineFour: {
|
|
69
69
|
__wyw_meta: unknown;
|
|
70
70
|
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
71
|
-
as?:
|
|
71
|
+
as?: React.ElementType;
|
|
72
72
|
}>;
|