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