@streamlayer/react-ui 0.98.1 → 0.100.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/assets/style.css +1 -1
- package/lib/hooks/showIn.js +45 -0
- package/lib/{index-jRXrW6ie.js → index-Bicco-Aq.js} +1 -1
- package/lib/{index-z0QjLiEL.js → index-CZvwzN5o.js} +1 -1
- package/lib/index.js +4 -8
- package/lib/ui/app/Features/Gamification/Friends.js +10 -23
- package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +1 -2
- package/lib/ui/app/Features/Gamification/Leaderboard.js +37 -54
- package/lib/ui/app/Features/Gamification/Question.js +33 -65
- package/lib/ui/app/Features/Gamification/QuestionsList.js +8 -34
- package/lib/ui/app/Features/Gamification/Tabs.d.ts +1 -2
- package/lib/ui/app/Features/Gamification/Tabs.js +30 -97
- package/lib/ui/app/Features/Gamification/UserSummary.js +12 -21
- package/lib/ui/app/Features/Gamification/gamification-feature.js +2 -93
- package/lib/ui/app/Features/Gamification/index.d.ts +1 -2
- package/lib/ui/app/Features/Gamification/index.js +68 -143
- package/lib/ui/app/Features/index.d.ts +1 -2
- package/lib/ui/app/Features/index.js +20 -109
- package/lib/ui/app/Navigation/MastersNavigation/index.js +16 -22
- package/lib/ui/app/Navigation/index.js +9 -12
- package/lib/ui/app/Notifications/Onboarding/Notification/index.js +13 -16
- package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +18 -20
- package/lib/ui/app/Notifications/Onboarding/index.js +45 -72
- package/lib/ui/app/Notifications/index.js +96 -148
- package/lib/ui/app/Notifications/styles.js +10 -15
- package/lib/ui/app/Points/index.js +18 -26
- package/lib/ui/app/masters.js +71 -190
- package/lib/ui/app/useClipboardCopy.js +11 -15
- package/lib/ui/app/useMastersApp.js +34 -44
- package/lib/ui/app/useSdkResponsive.js +18 -19
- package/lib/ui/app/useSdkScroll.js +28 -26
- package/lib/ui/button/index.js +3 -4
- package/lib/ui/gamification/copyNotification/index.js +5 -7
- package/lib/ui/gamification/detail/header/index.js +15 -18
- package/lib/ui/gamification/detail/header/styles.js +12 -14
- package/lib/ui/gamification/detail/sponsor/index.js +2 -3
- package/lib/ui/gamification/insight/index.js +5 -6
- package/lib/ui/gamification/insight-list/index.js +3 -6
- package/lib/ui/gamification/invite-link/index.js +11 -17
- package/lib/ui/gamification/invite-link/styles.js +13 -15
- package/lib/ui/gamification/leaderboard/index.js +21 -28
- package/lib/ui/gamification/leaderboard/list-item/index.d.ts +0 -1
- package/lib/ui/gamification/leaderboard/list-item/index.js +17 -20
- package/lib/ui/gamification/leaderboard/list-item/styles.js +16 -18
- package/lib/ui/gamification/leaderboard/static.js +34 -31
- package/lib/ui/gamification/leaderboard/styles.js +1 -1
- package/lib/ui/gamification/onboarding/index.js +51 -73
- package/lib/ui/gamification/onboarding/invitingUser/index.js +10 -11
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +3 -2
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.js +17 -20
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +2 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +21 -11
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +21 -30
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +22 -24
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.js +5 -7
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.js +2 -3
- package/lib/ui/gamification/onboarding/styles.js +14 -17
- package/lib/ui/gamification/points/index.js +9 -15
- package/lib/ui/gamification/points/styles.js +12 -14
- package/lib/ui/gamification/question/index.d.ts +1 -3
- package/lib/ui/gamification/question/index.js +29 -34
- package/lib/ui/gamification/question/insight/index.d.ts +0 -1
- package/lib/ui/gamification/question/insight/index.js +7 -15
- package/lib/ui/gamification/question/list/index.js +20 -57
- package/lib/ui/gamification/question/notification/index.js +22 -35
- package/lib/ui/gamification/question/notification/insight/index.js +12 -17
- package/lib/ui/gamification/question/notification/pill/index.js +7 -9
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.js +11 -12
- package/lib/ui/gamification/question/notification/prediction-result/index.js +45 -51
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +23 -26
- package/lib/ui/gamification/question/notification/styles.js +17 -19
- package/lib/ui/gamification/question/notification/tweet/index.js +8 -18
- package/lib/ui/gamification/question/styles.js +32 -34
- package/lib/ui/gamification/question/twitter/index.d.ts +0 -1
- package/lib/ui/gamification/question/twitter/index.js +8 -20
- package/lib/ui/gamification/question/twitter/styles.js +4 -6
- package/lib/ui/gamification/tabs/index.js +6 -7
- package/lib/ui/gamification/user-statistics/components/rank/index.js +4 -5
- package/lib/ui/gamification/user-statistics/components/statistic/index.js +0 -1
- package/lib/ui/gamification/user-statistics/index.js +2 -6
- package/lib/ui/gamification/vote/alert/index.d.ts +8 -0
- package/lib/ui/gamification/vote/alert/index.js +11 -0
- package/lib/ui/gamification/vote/{expired-alert → alert}/styles.js +7 -7
- package/lib/ui/gamification/vote/feedback/index.js +29 -33
- package/lib/ui/gamification/vote/feedback/styles.js +20 -23
- package/lib/ui/gamification/vote/index.d.ts +1 -0
- package/lib/ui/gamification/vote/index.js +123 -117
- package/lib/ui/gamification/vote/insight-details/index.js +9 -16
- package/lib/ui/gamification/vote/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/styles.js +14 -8
- package/lib/ui/gamification/vote/twitter-details/index.js +7 -17
- package/lib/ui/gamification/vote/vote-option/index.js +38 -41
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/vote-option/styles.js +35 -32
- package/lib/ui/gamification/vote/win-bar/index.js +29 -37
- package/lib/ui/gamification/vote/win-bar/styles.js +16 -19
- package/lib/ui/login/demo.d.ts +1 -0
- package/lib/ui/login/demo.js +5 -17
- package/lib/ui/login/index.js +29 -35
- package/lib/ui/modal/index.js +31 -32
- package/lib/ui/navigation/button/Channels.js +5 -8
- package/lib/ui/navigation/button/FeaturedGroups.js +3 -6
- package/lib/ui/navigation/button/LeaderBoard.js +8 -11
- package/lib/ui/navigation/button/index.js +10 -11
- package/lib/ui/navigation/masters.js +2 -3
- package/lib/ui/questions/insight/index.js +14 -19
- package/lib/ui/questions/twitter/account/index.js +13 -15
- package/lib/ui/questions/twitter/account/styles.js +14 -16
- package/lib/ui/questions/twitter/index.js +31 -38
- package/lib/ui/show-in/index.d.ts +1 -0
- package/lib/ui/show-in/index.js +12 -10
- package/lib/ui/skeleton/index.js +3 -4
- package/lib/ui/theme/index.js +3 -5
- package/lib/ui/video-player/index.js +44 -38
- package/lib/utils/createDemo.js +18 -28
- package/lib/utils/debug/components/copyLogs.js +2 -3
- package/lib/utils/debug/components/developer.js +20 -24
- package/lib/utils/debug/components/eventInput.js +9 -10
- package/lib/utils/debug/components/sdkKey.js +9 -10
- package/lib/utils/debug/index.js +17 -28
- package/lib/utils/debug/storage.js +32 -14
- package/lib/utils/decorators/container.js +5 -9
- package/lib/utils/storage.js +32 -14
- package/package.json +25 -26
- package/lib/ui/gamification/vote/expired-alert/index.d.ts +0 -7
- package/lib/ui/gamification/vote/expired-alert/index.js +0 -13
- /package/lib/{index-uEuzH3jr.js → index-xuotMAFm.js} +0 -0
- /package/lib/{styles_z07sl8-w40geAFS.js → styles_z07sl8-l0sNRNKZ.js} +0 -0
- /package/lib/ui/gamification/vote/{expired-alert → alert}/styles.d.ts +0 -0
|
@@ -1,36 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { styled as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
import "../../icons/index.js";
|
|
8
|
-
import "react";
|
|
9
|
-
const m = /* @__PURE__ */ l("div")({
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { styled as c } from "@linaria/react";
|
|
3
|
+
import { useCallback as f } from "react";
|
|
4
|
+
import m from "react-infinite-scroller";
|
|
5
|
+
import { LeaderboardItem as p } from "./list-item/index.js";
|
|
6
|
+
const u = /* @__PURE__ */ c("div")({
|
|
10
7
|
name: "Container",
|
|
11
8
|
class: "c16btbfp",
|
|
12
9
|
propsAsIs: !1
|
|
13
|
-
}),
|
|
14
|
-
items:
|
|
15
|
-
currentUserId:
|
|
16
|
-
openItemDetail:
|
|
17
|
-
fetchMore:
|
|
18
|
-
scrollNode:
|
|
19
|
-
hasMore:
|
|
20
|
-
}) =>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
10
|
+
}), S = ({
|
|
11
|
+
items: s,
|
|
12
|
+
currentUserId: o,
|
|
13
|
+
openItemDetail: t,
|
|
14
|
+
fetchMore: n,
|
|
15
|
+
scrollNode: i,
|
|
16
|
+
hasMore: l
|
|
17
|
+
}) => {
|
|
18
|
+
const d = f((r) => {
|
|
19
|
+
const a = r.target.getAttribute("data-name");
|
|
20
|
+
a && t(a);
|
|
21
|
+
}, [t]);
|
|
22
|
+
return /* @__PURE__ */ e(m, {
|
|
23
|
+
loadMore: n,
|
|
24
|
+
initialLoad: !1,
|
|
25
|
+
hasMore: l,
|
|
26
|
+
useWindow: !1,
|
|
27
|
+
getScrollParent: () => i.current,
|
|
28
|
+
children: /* @__PURE__ */ e(u, {
|
|
29
|
+
onClick: d,
|
|
30
|
+
children: s.map((r) => /* @__PURE__ */ e(p, {
|
|
31
|
+
...r,
|
|
32
|
+
isCurrentUser: !!o && o === r.userId
|
|
33
|
+
}, r.userId))
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
};
|
|
34
37
|
export {
|
|
35
|
-
|
|
38
|
+
S as LeaderboardStaticList
|
|
36
39
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h, useEffect as v, useMemo as N, useCallback as z } from "react";
|
|
3
3
|
import E from "react-virtualized-auto-sizer";
|
|
4
4
|
import { Skeleton as F } from "../../skeleton/index.js";
|
|
5
5
|
import { OnboardingInstructions as G } from "./slides/onboarding-instructions/index.js";
|
|
@@ -7,97 +7,75 @@ import { OnboardingInviteCard as M } from "./slides/onboarding-invite-card/index
|
|
|
7
7
|
import { OnboardingRules as P } from "./slides/onboarding-rules/index.js";
|
|
8
8
|
import { OnboardingTerms as R } from "./slides/onboarding-terms/index.js";
|
|
9
9
|
import { Container as U, OnboardingHeader as q, CloseBtn as J, IconClose as K, Content as Q, OnboardingFooter as V, OnboardingActionBtn as W } from "./styles.js";
|
|
10
|
-
|
|
11
|
-
import "@linaria/react";
|
|
12
|
-
import "./invitingUser/index.js";
|
|
13
|
-
import "../../../utils/common.js";
|
|
14
|
-
import "./invitingUser/styles.js";
|
|
15
|
-
import "./slides/onboarding-instructions/styles.js";
|
|
16
|
-
import "../../../hooks/analytics.js";
|
|
17
|
-
import "lodash.throttle";
|
|
18
|
-
import "@streamlayer/sdk-web-interfaces";
|
|
19
|
-
import "../../theme/constants.js";
|
|
20
|
-
import "@streamlayer/sdk-web-types";
|
|
21
|
-
import "../../app/useClipboardCopy.js";
|
|
22
|
-
import "../../../index-jRXrW6ie.js";
|
|
23
|
-
import "../../../index-uEuzH3jr.js";
|
|
24
|
-
import "../copyNotification/index.js";
|
|
25
|
-
import "../../icons/index.js";
|
|
26
|
-
import "../copyNotification/styles.js";
|
|
27
|
-
import "./slides/onboarding-invite-card/styles.js";
|
|
28
|
-
import "./slides/onboarding-rules/styles.js";
|
|
29
|
-
import "./slides/onboarding-terms/styles.js";
|
|
30
|
-
import "../../button/index.js";
|
|
31
|
-
import "../../button/styles.js";
|
|
32
|
-
const e = {
|
|
10
|
+
const o = {
|
|
33
11
|
steps: !1,
|
|
34
12
|
rules: !1,
|
|
35
13
|
inviteCard: !1
|
|
36
|
-
},
|
|
37
|
-
gamification:
|
|
38
|
-
steps:
|
|
39
|
-
rules:
|
|
40
|
-
rulesBtnLabel:
|
|
41
|
-
rulesTitle:
|
|
42
|
-
termsTitle:
|
|
43
|
-
termsText:
|
|
44
|
-
primaryColor:
|
|
45
|
-
inviteLink:
|
|
46
|
-
inviteCardTitle:
|
|
47
|
-
inviteCardSubtext:
|
|
48
|
-
inviteCardBtnLabel:
|
|
49
|
-
loading:
|
|
50
|
-
inviterName:
|
|
51
|
-
sdk:
|
|
52
|
-
onClose:
|
|
14
|
+
}, rn = ({
|
|
15
|
+
gamification: I,
|
|
16
|
+
steps: n,
|
|
17
|
+
rules: r,
|
|
18
|
+
rulesBtnLabel: c,
|
|
19
|
+
rulesTitle: T,
|
|
20
|
+
termsTitle: x,
|
|
21
|
+
termsText: u,
|
|
22
|
+
primaryColor: g,
|
|
23
|
+
inviteLink: D,
|
|
24
|
+
inviteCardTitle: k,
|
|
25
|
+
inviteCardSubtext: w,
|
|
26
|
+
inviteCardBtnLabel: b,
|
|
27
|
+
loading: d,
|
|
28
|
+
inviterName: f,
|
|
29
|
+
sdk: C,
|
|
30
|
+
onClose: A
|
|
53
31
|
}) => {
|
|
54
|
-
const [
|
|
55
|
-
|
|
56
|
-
|
|
32
|
+
const [l, O] = h(0), [a, S] = h(!1), [e, t] = h(o);
|
|
33
|
+
v(() => {
|
|
34
|
+
n != null && n.length ? t({ ...o, steps: !0 }) : r != null && r.length ? t({ ...o, rules: !0 }) : t({ ...o, inviteCard: !0 });
|
|
57
35
|
}, []);
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
}, [
|
|
61
|
-
|
|
36
|
+
const j = N(() => e.steps && l === 0 ? "Continue" : e.rules ? a || !c ? "Got it" : c : e.inviteCard ? b || "Play Now" : "Next", [e, l, a, c, b]), p = z(() => {
|
|
37
|
+
n != null && n.length && l < n.length - 1 ? O((m) => ++m) : r != null && r.length && e.steps ? t({ ...o, rules: !0 }) : e.rules && t({ ...o, inviteCard: !0 });
|
|
38
|
+
}, [l, n == null ? void 0 : n.length, r == null ? void 0 : r.length, e, O, t]), H = async () => {
|
|
39
|
+
e.inviteCard ? await I.onboardingStatus.submitInplay() : e.rules && a ? S(!1) : p();
|
|
62
40
|
};
|
|
63
|
-
return
|
|
64
|
-
!
|
|
65
|
-
}, [
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
41
|
+
return v(() => {
|
|
42
|
+
!d && f && C.inviteDisplayed();
|
|
43
|
+
}, [d, f, C]), /* @__PURE__ */ i(E, { children: ({ width: m, height: y }) => /* @__PURE__ */ s(U, { style: { width: m, height: y, maxHeight: y }, children: [
|
|
44
|
+
/* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(J, { onClick: A, children: /* @__PURE__ */ i(K, { name: "icon-close-btn-gray" }) }) }),
|
|
45
|
+
/* @__PURE__ */ s(Q, { children: [
|
|
46
|
+
e.steps && (n == null ? void 0 : n.length) && /* @__PURE__ */ i(
|
|
69
47
|
G,
|
|
70
48
|
{
|
|
71
|
-
loading:
|
|
72
|
-
steps:
|
|
73
|
-
currentStep:
|
|
74
|
-
inviterName:
|
|
49
|
+
loading: d,
|
|
50
|
+
steps: n,
|
|
51
|
+
currentStep: l,
|
|
52
|
+
inviterName: f
|
|
75
53
|
}
|
|
76
54
|
),
|
|
77
|
-
|
|
55
|
+
e.rules && !a && /* @__PURE__ */ i(
|
|
78
56
|
P,
|
|
79
57
|
{
|
|
80
|
-
rules:
|
|
81
|
-
rulesTitle:
|
|
82
|
-
termsText:
|
|
83
|
-
primaryColor:
|
|
84
|
-
openTerms: () =>
|
|
58
|
+
rules: r,
|
|
59
|
+
rulesTitle: T,
|
|
60
|
+
termsText: u,
|
|
61
|
+
primaryColor: g,
|
|
62
|
+
openTerms: () => S(!0)
|
|
85
63
|
}
|
|
86
64
|
),
|
|
87
|
-
|
|
88
|
-
|
|
65
|
+
e.rules && a && /* @__PURE__ */ i(R, { termsTitle: x, termsText: u }),
|
|
66
|
+
e.inviteCard && /* @__PURE__ */ i(
|
|
89
67
|
M,
|
|
90
68
|
{
|
|
91
|
-
inviteLink:
|
|
92
|
-
inviteCardTitle:
|
|
93
|
-
inviteCardSubtext:
|
|
94
|
-
primaryColor:
|
|
69
|
+
inviteLink: D,
|
|
70
|
+
inviteCardTitle: k,
|
|
71
|
+
inviteCardSubtext: w,
|
|
72
|
+
primaryColor: g
|
|
95
73
|
}
|
|
96
74
|
)
|
|
97
75
|
] }),
|
|
98
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ i(V, { children: /* @__PURE__ */ i(F, { loading: d, style: { width: "100%" }, children: /* @__PURE__ */ i(W, { onClick: H, children: j }) }) })
|
|
99
77
|
] }) });
|
|
100
78
|
};
|
|
101
79
|
export {
|
|
102
|
-
|
|
80
|
+
rn as OnboardingUI
|
|
103
81
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
2
|
-
import { abbreviate as
|
|
3
|
-
import { Container as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
r && /* @__PURE__ */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
o,
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { abbreviate as n } from "../../../../utils/common.js";
|
|
3
|
+
import { Container as t, Avatar as c, AvatarPlaceholder as s, Content as l, Name as m } from "./styles.js";
|
|
4
|
+
const p = ({ avatar: r, name: e }) => /* @__PURE__ */ i(t, { children: [
|
|
5
|
+
r && /* @__PURE__ */ o(c, { src: r }),
|
|
6
|
+
!r && /* @__PURE__ */ o(s, { children: n(e || "") }),
|
|
7
|
+
/* @__PURE__ */ i(l, { children: [
|
|
8
|
+
/* @__PURE__ */ i(m, { children: [
|
|
9
|
+
e,
|
|
11
10
|
" "
|
|
12
11
|
] }),
|
|
13
12
|
"is waiting for you!"
|
|
14
13
|
] })
|
|
15
14
|
] });
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
p as InvitingUser
|
|
18
17
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
2
|
type OnboardingInstructionsProps = {
|
|
3
3
|
loading: boolean;
|
|
4
4
|
steps: OnboardingStep[];
|
|
@@ -7,7 +7,8 @@ type OnboardingInstructionsProps = {
|
|
|
7
7
|
};
|
|
8
8
|
export type OnboardingStep = {
|
|
9
9
|
graphicSrc: string;
|
|
10
|
-
headline?: string;
|
|
10
|
+
headline?: ReactElement | string;
|
|
11
|
+
tagline?: ReactElement | string;
|
|
11
12
|
};
|
|
12
13
|
export declare const OnboardingInstructions: React.FC<OnboardingInstructionsProps>;
|
|
13
14
|
export {};
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { InvitingUser as
|
|
3
|
-
import { Skeleton as
|
|
4
|
-
import { Container as
|
|
5
|
-
|
|
6
|
-
import "../../invitingUser/styles.js";
|
|
7
|
-
import "@linaria/react";
|
|
8
|
-
import "../../../../skeleton/styles.js";
|
|
9
|
-
const A = ({
|
|
1
|
+
import { jsxs as h, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { InvitingUser as m } from "../../invitingUser/index.js";
|
|
3
|
+
import { Skeleton as t } from "../../../../skeleton/index.js";
|
|
4
|
+
import { Container as s, TaglineContainer as g, Tagline as p, Content as f, Graphic as I, GraphicImage as v, Headline as C, InvitingUserWrap as x, StepsContainer as y, StepIndicator as b } from "./styles.js";
|
|
5
|
+
const k = ({
|
|
10
6
|
loading: e,
|
|
11
|
-
steps:
|
|
12
|
-
currentStep:
|
|
13
|
-
inviterName:
|
|
7
|
+
steps: a,
|
|
8
|
+
currentStep: i,
|
|
9
|
+
inviterName: l
|
|
14
10
|
}) => {
|
|
15
|
-
const { headline:
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
const { headline: c, tagline: o } = a[i];
|
|
12
|
+
return /* @__PURE__ */ h(s, { children: [
|
|
13
|
+
o && /* @__PURE__ */ n(g, { children: /* @__PURE__ */ n(t, { loading: e, children: /* @__PURE__ */ n(p, { children: o }) }) }),
|
|
14
|
+
/* @__PURE__ */ h(f, { "data-welcome-screen": i === 0, children: [
|
|
15
|
+
/* @__PURE__ */ n(I, { children: /* @__PURE__ */ n(t, { loading: e, children: a.map(({ graphicSrc: d }, r) => /* @__PURE__ */ n(v, { src: d, "data-active": i === r })) }) }),
|
|
16
|
+
c && /* @__PURE__ */ n(t, { loading: e, children: /* @__PURE__ */ n(C, { children: c }) })
|
|
20
17
|
] }),
|
|
21
|
-
|
|
22
|
-
/* @__PURE__ */
|
|
18
|
+
l && i === 0 && /* @__PURE__ */ n(x, { children: /* @__PURE__ */ n(m, { name: l }) }),
|
|
19
|
+
/* @__PURE__ */ n(y, { style: e ? { visibility: "hidden" } : {}, children: Array.from({ length: a.length }).map((d, r) => /* @__PURE__ */ n(b, { "data-active": i === r }, r)) })
|
|
23
20
|
] });
|
|
24
21
|
};
|
|
25
22
|
export {
|
|
26
|
-
|
|
23
|
+
k as OnboardingInstructions
|
|
27
24
|
};
|
|
@@ -3,6 +3,8 @@ export declare const Container: import("@linaria/react").StyledComponent<import(
|
|
|
3
3
|
export declare const Graphic: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
4
|
export declare const GraphicImage: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
5
5
|
export declare const Headline: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
+
export declare const TaglineContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
|
+
export declare const Tagline: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
8
|
export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
9
|
export declare const StepsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
10
|
export declare const StepIndicator: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
@@ -16,29 +16,39 @@ const n = /* @__PURE__ */ s("div")({
|
|
|
16
16
|
class: "h69js65",
|
|
17
17
|
propsAsIs: !1
|
|
18
18
|
}), t = /* @__PURE__ */ s("div")({
|
|
19
|
-
name: "
|
|
20
|
-
class: "
|
|
19
|
+
name: "TaglineContainer",
|
|
20
|
+
class: "tmm7qmo",
|
|
21
21
|
propsAsIs: !1
|
|
22
22
|
}), i = /* @__PURE__ */ s("div")({
|
|
23
|
+
name: "Tagline",
|
|
24
|
+
class: "t17knuw2",
|
|
25
|
+
propsAsIs: !1
|
|
26
|
+
}), l = /* @__PURE__ */ s("div")({
|
|
27
|
+
name: "Content",
|
|
28
|
+
class: "c1b74psg",
|
|
29
|
+
propsAsIs: !1
|
|
30
|
+
}), r = /* @__PURE__ */ s("div")({
|
|
23
31
|
name: "StepsContainer",
|
|
24
|
-
class: "
|
|
32
|
+
class: "s1y99ug7",
|
|
25
33
|
propsAsIs: !1
|
|
26
|
-
}),
|
|
34
|
+
}), c = /* @__PURE__ */ s("span")({
|
|
27
35
|
name: "StepIndicator",
|
|
28
|
-
class: "
|
|
36
|
+
class: "sgf3v5n",
|
|
29
37
|
propsAsIs: !1
|
|
30
|
-
}),
|
|
38
|
+
}), m = /* @__PURE__ */ s("div")({
|
|
31
39
|
name: "InvitingUserWrap",
|
|
32
|
-
class: "
|
|
40
|
+
class: "i1sj6gn8",
|
|
33
41
|
propsAsIs: !1
|
|
34
42
|
});
|
|
35
43
|
export {
|
|
36
44
|
n as Container,
|
|
37
|
-
|
|
45
|
+
l as Content,
|
|
38
46
|
e as Graphic,
|
|
39
47
|
p as GraphicImage,
|
|
40
48
|
o as Headline,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
m as InvitingUserWrap,
|
|
50
|
+
c as StepIndicator,
|
|
51
|
+
r as StepsContainer,
|
|
52
|
+
i as Tagline,
|
|
53
|
+
t as TaglineContainer
|
|
44
54
|
};
|
|
@@ -1,48 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useAnalyticsHandle as
|
|
3
|
-
import { useRef as
|
|
1
|
+
import { jsxs as o, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useAnalyticsHandle as s } from "../../../../../hooks/analytics.js";
|
|
3
|
+
import { useRef as p } from "react";
|
|
4
4
|
import { InvitationFrom as f } from "@streamlayer/sdk-web-types";
|
|
5
5
|
import { useClipboardCopy as h } from "../../../../app/useClipboardCopy.js";
|
|
6
6
|
import { Container as y, IconContainer as C, InviteGameIcon as I, Content as k, Heading as u, Subtext as b, LinkContainer as g, LinkInfo as v, LinkTitle as x, LinkAddress as A, LinkIcon as L } from "./styles.js";
|
|
7
|
-
|
|
8
|
-
import "@streamlayer/sdk-web-interfaces";
|
|
9
|
-
import "../../../../theme/constants.js";
|
|
10
|
-
import "../../../../../index-jRXrW6ie.js";
|
|
11
|
-
import "../../../../../index-uEuzH3jr.js";
|
|
12
|
-
import "../../../copyNotification/index.js";
|
|
13
|
-
import "../../../../icons/index.js";
|
|
14
|
-
import "@linaria/react";
|
|
15
|
-
import "../../../copyNotification/styles.js";
|
|
16
|
-
const B = ({
|
|
7
|
+
const M = ({
|
|
17
8
|
inviteLink: i,
|
|
18
|
-
inviteCardTitle:
|
|
19
|
-
inviteCardSubtext:
|
|
20
|
-
primaryColor:
|
|
21
|
-
className:
|
|
9
|
+
inviteCardTitle: r,
|
|
10
|
+
inviteCardSubtext: t,
|
|
11
|
+
primaryColor: c,
|
|
12
|
+
className: l
|
|
22
13
|
}) => {
|
|
23
|
-
const
|
|
14
|
+
const e = p(null), [a, d] = h(e), [m] = s({
|
|
24
15
|
type: "invitation",
|
|
25
16
|
action: "sent",
|
|
26
17
|
payload: {
|
|
27
18
|
from: f.MENU
|
|
28
19
|
}
|
|
29
20
|
});
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ o(y, { className: l, children: [
|
|
22
|
+
/* @__PURE__ */ n(C, { style: { backgroundColor: c }, children: /* @__PURE__ */ n(I, { name: "invite-game-icon" }) }),
|
|
23
|
+
/* @__PURE__ */ o(k, { children: [
|
|
24
|
+
/* @__PURE__ */ n(u, { children: r || "" }),
|
|
25
|
+
/* @__PURE__ */ n(b, { children: t || "" })
|
|
35
26
|
] }),
|
|
36
|
-
i && /* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
27
|
+
i && /* @__PURE__ */ o(g, { ref: e, onClick: m(() => a(i)), children: [
|
|
28
|
+
/* @__PURE__ */ o(v, { children: [
|
|
29
|
+
/* @__PURE__ */ n(x, { children: "Invite link" }),
|
|
30
|
+
/* @__PURE__ */ n(A, { children: i })
|
|
40
31
|
] }),
|
|
41
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ n(L, { name: "icon-copy" })
|
|
42
33
|
] }),
|
|
43
|
-
|
|
34
|
+
d
|
|
44
35
|
] });
|
|
45
36
|
};
|
|
46
37
|
export {
|
|
47
|
-
|
|
38
|
+
M as OnboardingInviteCard
|
|
48
39
|
};
|
|
@@ -1,62 +1,60 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
2
|
import { SvgIcon as n } from "../../../../icons/index.js";
|
|
3
|
-
|
|
4
|
-
import "react";
|
|
5
|
-
const p = /* @__PURE__ */ s("div")({
|
|
3
|
+
const i = /* @__PURE__ */ s("div")({
|
|
6
4
|
name: "Container",
|
|
7
5
|
class: "c1itm4k7",
|
|
8
6
|
propsAsIs: !1
|
|
9
|
-
}),
|
|
7
|
+
}), c = /* @__PURE__ */ s("div")({
|
|
10
8
|
name: "IconContainer",
|
|
11
9
|
class: "i1w4fsni",
|
|
12
10
|
propsAsIs: !1
|
|
13
|
-
}),
|
|
11
|
+
}), e = () => n, l = /* @__PURE__ */ s(e())({
|
|
14
12
|
name: "InviteGameIcon",
|
|
15
13
|
class: "i19m85r1",
|
|
16
14
|
propsAsIs: !0
|
|
17
|
-
}),
|
|
15
|
+
}), p = /* @__PURE__ */ s("div")({
|
|
18
16
|
name: "Content",
|
|
19
17
|
class: "c1mbu204",
|
|
20
18
|
propsAsIs: !1
|
|
21
|
-
}),
|
|
19
|
+
}), r = /* @__PURE__ */ s("div")({
|
|
22
20
|
name: "Heading",
|
|
23
21
|
class: "h1amdqtv",
|
|
24
22
|
propsAsIs: !1
|
|
25
|
-
}),
|
|
23
|
+
}), m = /* @__PURE__ */ s("div")({
|
|
26
24
|
name: "Subtext",
|
|
27
25
|
class: "s1lhlj9j",
|
|
28
26
|
propsAsIs: !1
|
|
29
|
-
}),
|
|
27
|
+
}), I = /* @__PURE__ */ s("div")({
|
|
30
28
|
name: "LinkContainer",
|
|
31
29
|
class: "l1wot35e",
|
|
32
30
|
propsAsIs: !1
|
|
33
|
-
}),
|
|
31
|
+
}), d = /* @__PURE__ */ s("div")({
|
|
34
32
|
name: "LinkInfo",
|
|
35
33
|
class: "l1jdw39q",
|
|
36
34
|
propsAsIs: !1
|
|
37
|
-
}),
|
|
35
|
+
}), f = /* @__PURE__ */ s("span")({
|
|
38
36
|
name: "LinkTitle",
|
|
39
37
|
class: "l1cr5mk",
|
|
40
38
|
propsAsIs: !1
|
|
41
|
-
}),
|
|
39
|
+
}), v = /* @__PURE__ */ s("span")({
|
|
42
40
|
name: "LinkAddress",
|
|
43
41
|
class: "lvi87q4",
|
|
44
42
|
propsAsIs: !1
|
|
45
|
-
}),
|
|
43
|
+
}), o = () => n, A = /* @__PURE__ */ s(o())({
|
|
46
44
|
name: "LinkIcon",
|
|
47
45
|
class: "l1pqlvw3",
|
|
48
46
|
propsAsIs: !0
|
|
49
47
|
});
|
|
50
48
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
49
|
+
i as Container,
|
|
50
|
+
p as Content,
|
|
51
|
+
r as Heading,
|
|
52
|
+
c as IconContainer,
|
|
53
|
+
l as InviteGameIcon,
|
|
54
|
+
v as LinkAddress,
|
|
55
|
+
I as LinkContainer,
|
|
56
|
+
A as LinkIcon,
|
|
57
|
+
d as LinkInfo,
|
|
58
|
+
f as LinkTitle,
|
|
59
|
+
m as Subtext
|
|
62
60
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { SvgIcon as a } from "../../../../icons/index.js";
|
|
3
3
|
import { Container as h, Content as s, Title as p, RulesList as C, RulesItem as R, RuleIcon as u, RuleText as x, TermsButton as T } from "./styles.js";
|
|
4
|
-
|
|
5
|
-
import "react";
|
|
6
|
-
const k = ({
|
|
4
|
+
const b = ({
|
|
7
5
|
rules: e,
|
|
8
6
|
rulesTitle: t,
|
|
9
7
|
termsText: i,
|
|
@@ -12,13 +10,13 @@ const k = ({
|
|
|
12
10
|
}) => /* @__PURE__ */ r(h, { children: [
|
|
13
11
|
/* @__PURE__ */ r(s, { children: [
|
|
14
12
|
/* @__PURE__ */ n(p, { children: t }),
|
|
15
|
-
/* @__PURE__ */ n(C, { children: e == null ? void 0 : e.map(({ label:
|
|
13
|
+
/* @__PURE__ */ n(C, { children: e == null ? void 0 : e.map(({ label: c, icon: o }, m) => /* @__PURE__ */ r(R, { children: [
|
|
16
14
|
o && /* @__PURE__ */ n(u, { style: { backgroundColor: d }, children: /* @__PURE__ */ n(a, { name: o, "data-icon": o }) }),
|
|
17
|
-
/* @__PURE__ */ n(x, { children:
|
|
18
|
-
] },
|
|
15
|
+
/* @__PURE__ */ n(x, { children: c })
|
|
16
|
+
] }, m)) })
|
|
19
17
|
] }),
|
|
20
18
|
i && /* @__PURE__ */ n(T, { onClick: l, children: "See Terms and Conditions" })
|
|
21
19
|
] });
|
|
22
20
|
export {
|
|
23
|
-
|
|
21
|
+
b as OnboardingRules
|
|
24
22
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { Container as o, Content as t, Title as l, ScrollingText as c } from "./styles.js";
|
|
3
|
-
|
|
4
|
-
const h = ({ termsTitle: n, termsText: e }) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ i(t, { children: [
|
|
3
|
+
const s = ({ termsTitle: n, termsText: e }) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ i(t, { children: [
|
|
5
4
|
/* @__PURE__ */ r(l, { children: n }),
|
|
6
5
|
/* @__PURE__ */ r(c, { children: e })
|
|
7
6
|
] }) });
|
|
8
7
|
export {
|
|
9
|
-
|
|
8
|
+
s as OnboardingTerms
|
|
10
9
|
};
|