@streamlayer/react-ui 0.89.7 → 0.90.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/{index-ba93b6b2.js → index-jRXrW6ie.js} +11 -11
- package/lib/index-uEuzH3jr.js +118 -0
- package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +1 -1
- package/lib/ui/app/Features/Gamification/Leaderboard.js +7 -7
- package/lib/ui/app/Features/Gamification/Tabs.d.ts +1 -1
- package/lib/ui/app/Features/Gamification/Tabs.js +1 -1
- package/lib/ui/app/Features/Gamification/gamification-feature.js +3 -3
- package/lib/ui/app/Features/Gamification/index.d.ts +1 -1
- package/lib/ui/app/Features/Gamification/index.js +7 -7
- package/lib/ui/app/Features/index.d.ts +1 -1
- package/lib/ui/app/Navigation/MastersNavigation/index.js +3 -3
- package/lib/ui/app/Navigation/index.d.ts +1 -1
- package/lib/ui/app/Navigation/index.js +1 -1
- package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +2 -2
- package/lib/ui/app/Notifications/Onboarding/index.js +68 -69
- package/lib/ui/app/Notifications/index.d.ts +1 -1
- package/lib/ui/app/Notifications/index.js +37 -38
- package/lib/ui/app/Notifications/styles.d.ts +3 -0
- package/lib/ui/app/Notifications/styles.js +17 -12
- package/lib/ui/app/Points/index.js +15 -15
- package/lib/ui/app/masters.js +5 -5
- package/lib/ui/app/styles.d.ts +6 -6
- package/lib/ui/app/styles.js +7 -7
- package/lib/ui/app/useMastersApp.js +3 -3
- package/lib/ui/app/useSdkFeature.d.ts +1 -1
- package/lib/ui/app/useSdkFeature.js +1 -1
- package/lib/ui/app/useSdkScroll.js +5 -5
- package/lib/ui/gamification/copyNotification/styles.js +4 -4
- package/lib/ui/gamification/insight/index.js +17 -17
- package/lib/ui/gamification/insight/styles.js +4 -4
- package/lib/ui/gamification/insight-list/styles.js +4 -4
- package/lib/ui/gamification/invite-link/index.js +9 -9
- package/lib/ui/gamification/leaderboard/index.d.ts +1 -1
- package/lib/ui/gamification/leaderboard/index.js +1 -1
- package/lib/ui/gamification/leaderboard/static.d.ts +1 -1
- package/lib/ui/gamification/leaderboard/static.js +8 -8
- package/lib/ui/gamification/leaderboard/styles.js +1 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +4 -4
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +6 -6
- package/lib/ui/gamification/points/styles.js +4 -4
- package/lib/ui/gamification/question/insight/styles.js +2 -2
- package/lib/ui/gamification/question/list/styles.js +2 -2
- package/lib/ui/gamification/question/notification/insight/styles.js +2 -2
- package/lib/ui/gamification/question/notification/pill/styles.js +4 -4
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.d.ts +28 -28
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.js +14 -14
- package/lib/ui/gamification/question/notification/prediction-result/index.js +61 -61
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +2 -2
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +6 -6
- package/lib/ui/gamification/question/notification/tweet/styles.js +4 -4
- package/lib/ui/gamification/question/twitter/styles.js +5 -5
- package/lib/ui/gamification/tabs/styles.js +2 -2
- package/lib/ui/gamification/user-statistics/components/rank/styles.js +6 -6
- package/lib/ui/gamification/user-statistics/components/statistic/styles.js +2 -2
- package/lib/ui/gamification/user-statistics/index.js +42 -42
- package/lib/ui/gamification/vote/expired-alert/styles.js +4 -4
- package/lib/ui/gamification/vote/feedback/index.js +15 -15
- package/lib/ui/gamification/vote/feedback/styles.js +4 -4
- package/lib/ui/gamification/vote/insight-details/styles.js +2 -2
- package/lib/ui/gamification/vote/styles.js +2 -2
- package/lib/ui/gamification/vote/twitter-details/styles.js +4 -4
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +4 -4
- package/lib/ui/gamification/vote/win-bar/styles.js +10 -10
- package/lib/ui/icons/index.js +1 -2
- package/lib/ui/login/styles.js +6 -6
- package/lib/ui/navigation/button/Channels.js +7 -7
- package/lib/ui/navigation/button/FeaturedGroups.js +3 -3
- package/lib/ui/navigation/button/LeaderBoard.js +1 -1
- package/lib/ui/navigation/index.js +1 -1
- package/lib/ui/navigation/masters.d.ts +1 -1
- package/lib/ui/navigation/masters.js +2 -2
- package/lib/ui/questions/insight/styles.js +8 -8
- package/lib/ui/questions/twitter/styles.js +4 -4
- package/lib/ui/show-in/index.js +8 -8
- package/lib/ui/timer/index.js +20 -20
- package/lib/ui/video-player/styles.js +8 -8
- package/lib/utils/debug/components/bypassLogin.js +14 -14
- package/lib/utils/debug/components/developer.js +18 -18
- package/lib/utils/debug/components/envToggle.js +9 -9
- package/lib/utils/debug/components/styles.js +2 -2
- package/lib/utils/debug/storage.js +14 -32
- package/lib/utils/storage.js +14 -32
- package/package.json +32 -33
- package/lib/index-39a0b9b6.js +0 -1168
- /package/lib/{LeaderBoard_16p26hz-4ed993c7.js → LeaderBoard_fzzlxb-w40geAFS.js} +0 -0
- /package/lib/{index_4nhkck-4ed993c7.js → index_ej4hfx-w40geAFS.js} +0 -0
- /package/lib/{masters_1wv7w2k-4ed993c7.js → masters_m6itlr-w40geAFS.js} +0 -0
- /package/lib/{styles_hxnaic-4ed993c7.js → styles_z07sl8-w40geAFS.js} +0 -0
|
@@ -1,31 +1,36 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
import { Pill as
|
|
3
|
-
import { ShowIn as
|
|
2
|
+
import { Pill as n } from "../../gamification/question/notification/pill/index.js";
|
|
3
|
+
import { ShowIn as o } from "../../show-in/index.js";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "../../icons/index.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "../../gamification/question/notification/pill/styles.js";
|
|
8
8
|
import "@linaria/core";
|
|
9
|
-
const
|
|
9
|
+
const i = () => o, h = /* @__PURE__ */ s(i())({
|
|
10
10
|
name: "Container",
|
|
11
11
|
class: "ctckejh",
|
|
12
12
|
propsAsIs: !0
|
|
13
|
-
}),
|
|
13
|
+
}), r = /* @__PURE__ */ s("div")({
|
|
14
14
|
name: "InnerContainer",
|
|
15
15
|
class: "i1ri7tzr",
|
|
16
16
|
propsAsIs: !1
|
|
17
|
-
}),
|
|
17
|
+
}), t = () => r, C = /* @__PURE__ */ s(t())({
|
|
18
|
+
name: "HiddenContainer",
|
|
19
|
+
class: "h1ng1qh5",
|
|
20
|
+
propsAsIs: !0
|
|
21
|
+
}), u = /* @__PURE__ */ s("div")({
|
|
18
22
|
name: "NotificationRefreshing",
|
|
19
|
-
class: "
|
|
23
|
+
class: "nruq6ik",
|
|
20
24
|
propsAsIs: !1
|
|
21
|
-
}),
|
|
25
|
+
}), e = () => n, A = /* @__PURE__ */ s(e())({
|
|
22
26
|
name: "Pill",
|
|
23
|
-
class: "
|
|
27
|
+
class: "pj6uyys",
|
|
24
28
|
propsAsIs: !0
|
|
25
29
|
});
|
|
26
30
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
h as Container,
|
|
32
|
+
C as HiddenContainer,
|
|
33
|
+
r as InnerContainer,
|
|
34
|
+
u as NotificationRefreshing,
|
|
35
|
+
A as Pill
|
|
31
36
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useEffect as u } from "react";
|
|
3
|
+
import { FeatureType as a } from "@streamlayer/sdk-web-types";
|
|
4
|
+
import { useSdkFeature as c } from "../useSdkFeature.js";
|
|
5
5
|
import { Points as f } from "../../gamification/points/index.js";
|
|
6
|
+
import "@nanostores/react";
|
|
7
|
+
import "@streamlayer/sdk-web-interfaces";
|
|
6
8
|
import "../../animated-counter/index.js";
|
|
7
9
|
import "react-countup";
|
|
8
10
|
import "../../theme/theme.js";
|
|
@@ -11,22 +13,20 @@ import "../../gamification/points/styles.js";
|
|
|
11
13
|
import "@linaria/react";
|
|
12
14
|
import "../../icons/index.js";
|
|
13
15
|
const S = ({ userSummary: t }) => {
|
|
14
|
-
const [o, r] =
|
|
15
|
-
return
|
|
16
|
+
const [o, r] = p(0);
|
|
17
|
+
return u(() => {
|
|
16
18
|
const n = t.subscribe((e) => {
|
|
17
|
-
var
|
|
18
|
-
(
|
|
19
|
+
var i, m;
|
|
20
|
+
(m = (i = e.data) == null ? void 0 : i.summary) != null && m.points && r(e.data.summary.points);
|
|
19
21
|
});
|
|
20
22
|
return () => {
|
|
21
23
|
n();
|
|
22
24
|
};
|
|
23
|
-
}, [t]), /* @__PURE__ */
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const r = t.getFeature(c.GAMES);
|
|
28
|
-
return r ? /* @__PURE__ */ m(S, { userSummary: r.userSummary.getStore() }) : null;
|
|
25
|
+
}, [t]), /* @__PURE__ */ s(f, { points: o });
|
|
26
|
+
}, k = ({ sdk: t }) => {
|
|
27
|
+
const [o, r] = c(t);
|
|
28
|
+
return o !== a.GAMES || !r ? null : /* @__PURE__ */ s(S, { userSummary: r.userSummary.getStore() });
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
k as StreamLayerSDKPoints
|
|
32
32
|
};
|
package/lib/ui/app/masters.js
CHANGED
|
@@ -19,10 +19,10 @@ import "@streamlayer/sdk-web-interfaces";
|
|
|
19
19
|
import "../navigation/masters.js";
|
|
20
20
|
import "@linaria/react";
|
|
21
21
|
import "../navigation/index.js";
|
|
22
|
-
import "../../
|
|
23
|
-
import "../../
|
|
24
|
-
import "../../index-
|
|
25
|
-
import "../../index-
|
|
22
|
+
import "../../index_ej4hfx-w40geAFS.js";
|
|
23
|
+
import "../../masters_m6itlr-w40geAFS.js";
|
|
24
|
+
import "../../index-jRXrW6ie.js";
|
|
25
|
+
import "../../index-uEuzH3jr.js";
|
|
26
26
|
import "@streamlayer/sdk-web-notifications";
|
|
27
27
|
import "../gamification/constants.js";
|
|
28
28
|
import "../gamification/question/notification/index.js";
|
|
@@ -62,7 +62,7 @@ import "./Notifications/styles.js";
|
|
|
62
62
|
import "../gamification/question/notification/pill/index.js";
|
|
63
63
|
import "../gamification/question/notification/pill/styles.js";
|
|
64
64
|
import "../navigation/button/styles.js";
|
|
65
|
-
import "../../
|
|
65
|
+
import "../../LeaderBoard_fzzlxb-w40geAFS.js";
|
|
66
66
|
import "../navigation/button/index.js";
|
|
67
67
|
import "lodash.throttle";
|
|
68
68
|
const K = ({ sdk: t, className: p, scrollStore: e, appNode: r, scrollNode: a }) => {
|
package/lib/ui/app/styles.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
export declare const SDKContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
3
|
export declare const SDKScrollContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
4
|
export declare const SDKContentContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const SDKWhiteContainer: import("@linaria/react").
|
|
6
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
export declare const SDKWhiteContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
6
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
7
|
}>;
|
|
8
8
|
export declare const TabsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
|
-
export declare const LeaderboardContainer: import("@linaria/react").
|
|
10
|
-
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
export declare const LeaderboardContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
10
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const TabsNavContainer: import("@linaria/react").
|
|
13
|
-
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
export declare const TabsNavContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
13
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
14
|
}>;
|
package/lib/ui/app/styles.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
const
|
|
2
|
+
const i = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "SDKContainer",
|
|
4
4
|
class: "stu11h7",
|
|
5
5
|
propsAsIs: !1
|
|
6
|
-
}),
|
|
6
|
+
}), c = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "SDKScrollContainer",
|
|
8
8
|
class: "s1ucohr1",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), a = /* @__PURE__ */ s("div")({
|
|
11
11
|
name: "SDKContentContainer",
|
|
12
12
|
class: "s1el4wvm",
|
|
13
13
|
propsAsIs: !1
|
|
14
|
-
}),
|
|
14
|
+
}), e = () => a, n = /* @__PURE__ */ s(e())({
|
|
15
15
|
name: "SDKWhiteContainer",
|
|
16
16
|
class: "s1oe3036",
|
|
17
17
|
propsAsIs: !0
|
|
@@ -30,9 +30,9 @@ const c = /* @__PURE__ */ s("div")({
|
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
32
32
|
l as LeaderboardContainer,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
i as SDKContainer,
|
|
34
|
+
a as SDKContentContainer,
|
|
35
|
+
c as SDKScrollContainer,
|
|
36
36
|
n as SDKWhiteContainer,
|
|
37
37
|
p as TabsContainer,
|
|
38
38
|
C as TabsNavContainer
|
|
@@ -7,9 +7,9 @@ import { FeaturedGroupsButtonId as n } from "../navigation/button/FeaturedGroups
|
|
|
7
7
|
import "@linaria/react";
|
|
8
8
|
import "../icons/index.js";
|
|
9
9
|
import "../navigation/button/styles.js";
|
|
10
|
-
import "../../
|
|
11
|
-
import "../../
|
|
12
|
-
import "../../
|
|
10
|
+
import "../../LeaderBoard_fzzlxb-w40geAFS.js";
|
|
11
|
+
import "../../index_ej4hfx-w40geAFS.js";
|
|
12
|
+
import "../../masters_m6itlr-w40geAFS.js";
|
|
13
13
|
import "../navigation/button/index.js";
|
|
14
14
|
const U = (t) => {
|
|
15
15
|
const a = h(""), [f, l] = d(!1), A = m(t.status), r = m(t.userId()), i = A === "ready", [s, u] = d(n), p = F(
|
|
@@ -6,4 +6,4 @@ import { FeatureType } from '@streamlayer/sdk-web-types';
|
|
|
6
6
|
* @param sdk - The StreamLayerSDK instance to manage the feature for.
|
|
7
7
|
* @returns A tuple containing the active feature type and the active feature instance, or null if there is no active feature.
|
|
8
8
|
*/
|
|
9
|
-
export declare const useSdkFeature: (sdk: StreamLayerSDK) => [FeatureType, Features | null];
|
|
9
|
+
export declare const useSdkFeature: (sdk: StreamLayerSDK) => [FeatureType | undefined, Features | null];
|
|
@@ -7,7 +7,7 @@ const d = (r) => {
|
|
|
7
7
|
const u = r.getFeatures();
|
|
8
8
|
if (s)
|
|
9
9
|
for (const [e, t] of u)
|
|
10
|
-
e === s ? t.status.get() === a.Suspended &&
|
|
10
|
+
e === s ? (t.status.get() === a.Suspended && t.enable(), f(t)) : t.status.get() === a.Ready && t.disable();
|
|
11
11
|
else {
|
|
12
12
|
for (const [, e] of u)
|
|
13
13
|
e.status.get() === a.Ready && e.disable();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import a from "lodash.throttle";
|
|
2
|
-
import { useRef as f, useState as v, useCallback as
|
|
3
|
-
import {
|
|
2
|
+
import { useRef as f, useState as v, useCallback as p, useEffect as d } from "react";
|
|
3
|
+
import { p as m } from "../../index-uEuzH3jr.js";
|
|
4
4
|
let h = Symbol("clean"), n = [], b = (i, r) => {
|
|
5
5
|
let l = [], e = {
|
|
6
6
|
get() {
|
|
@@ -52,7 +52,7 @@ let h = Symbol("clean"), n = [], b = (i, r) => {
|
|
|
52
52
|
},
|
|
53
53
|
value: i
|
|
54
54
|
};
|
|
55
|
-
return m.
|
|
55
|
+
return m.env.NODE_ENV !== "production" && (e[h] = () => {
|
|
56
56
|
l = [], e.lc = 0, e.off();
|
|
57
57
|
}), e;
|
|
58
58
|
}, g = (i = {}) => {
|
|
@@ -70,7 +70,7 @@ const w = () => {
|
|
|
70
70
|
scrollPosition: 0,
|
|
71
71
|
scrollDirection: "forward"
|
|
72
72
|
})
|
|
73
|
-
), e =
|
|
73
|
+
), e = p(
|
|
74
74
|
a((o) => {
|
|
75
75
|
const s = o.target;
|
|
76
76
|
if (!s)
|
|
@@ -80,7 +80,7 @@ const w = () => {
|
|
|
80
80
|
}, 200),
|
|
81
81
|
[]
|
|
82
82
|
);
|
|
83
|
-
return
|
|
83
|
+
return d(() => {
|
|
84
84
|
const o = i.current;
|
|
85
85
|
return o ? (o.addEventListener("scroll", e), () => {
|
|
86
86
|
o.removeEventListener("scroll", e);
|
|
@@ -3,17 +3,17 @@ const n = /* @__PURE__ */ s("button")({
|
|
|
3
3
|
name: "Container",
|
|
4
4
|
class: "cpjnajb",
|
|
5
5
|
propsAsIs: !1
|
|
6
|
-
}),
|
|
6
|
+
}), a = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "Content",
|
|
8
8
|
class: "c4m6kaz",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), e = /* @__PURE__ */ s("span")({
|
|
11
11
|
name: "Title",
|
|
12
12
|
class: "t1h8t9cc",
|
|
13
13
|
propsAsIs: !1
|
|
14
14
|
});
|
|
15
15
|
export {
|
|
16
16
|
n as Container,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
a as Content,
|
|
18
|
+
e as Title
|
|
19
19
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { QuestionImages as
|
|
3
|
-
import { Container as
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionImages as c } from "@streamlayer/sdk-web-types";
|
|
3
|
+
import { Container as h, Graphic as l, Content as C, Title as g, NextIcon as a, InsightIconDefault as I, InsightIconAbsolute as d, InsightIconCircle as u } from "./styles.js";
|
|
4
4
|
import "@linaria/react";
|
|
5
|
-
const
|
|
6
|
-
switch (
|
|
7
|
-
case
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
case
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
case
|
|
12
|
-
return /* @__PURE__ */
|
|
5
|
+
const m = "data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Chevron'%3e%3cpath%20id='Chevron_2'%20d='M12%208.17222C12%208.28783%2011.9781%208.39553%2011.9342%208.49533C11.8903%208.59513%2011.822%208.68992%2011.7292%208.7797L6.36949%2013.9439C6.21462%2014.0965%206.02742%2014.1729%205.80787%2014.1729C5.65752%2014.1729%205.52191%2014.1379%205.40104%2014.0679C5.28016%2013.998%205.1831%2013.9039%205.10986%2013.7856C5.03662%2013.6673%205%2013.5345%205%2013.3873C5%2013.1721%205.08288%2012.9818%205.24863%2012.8164L10.0807%208.17095L5.24863%203.52799C5.08288%203.36425%205%203.17439%205%202.95841C5%202.81118%205.03662%202.67842%205.10986%202.56013C5.1831%202.44183%205.28016%202.34771%205.40104%202.27777C5.52191%202.20782%205.65752%202.17285%205.80787%202.17285C6.02742%202.17285%206.21462%202.24731%206.36949%202.39624L11.7292%207.56473C11.8211%207.65451%2011.889%207.74909%2011.9329%207.84846C11.9768%207.94784%2011.9991%208.05576%2012%208.17222Z'%20fill='%23FFFFFF'/%3e%3c/g%3e%3c/svg%3e", p = (i, n) => {
|
|
6
|
+
switch (i) {
|
|
7
|
+
case c.ROUNDED:
|
|
8
|
+
return /* @__PURE__ */ t(u, { alt: "insight-icon", src: n });
|
|
9
|
+
case c.TRANSPARENT:
|
|
10
|
+
return /* @__PURE__ */ t(d, { alt: "insight-icon", src: n });
|
|
11
|
+
case c.CENTERED:
|
|
12
|
+
return /* @__PURE__ */ t(I, { alt: "insight-icon", src: n });
|
|
13
13
|
default:
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
|
-
},
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
16
|
+
}, F = ({ title: i, image: n, questionId: r, imageMode: o, openInsight: s }) => /* @__PURE__ */ e(h, { onClick: () => s(r), children: [
|
|
17
|
+
/* @__PURE__ */ t(l, { children: n && p(o, n) }),
|
|
18
|
+
/* @__PURE__ */ e(C, { children: [
|
|
19
|
+
/* @__PURE__ */ t(g, { children: i || "" }),
|
|
20
|
+
/* @__PURE__ */ t(a, { alt: "next-icon", src: m })
|
|
21
21
|
] })
|
|
22
22
|
] });
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
F as Insight
|
|
25
25
|
};
|
|
@@ -7,11 +7,11 @@ const e = /* @__PURE__ */ s("div")({
|
|
|
7
7
|
name: "Content",
|
|
8
8
|
class: "c71yvf9",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), a = /* @__PURE__ */ s("div")({
|
|
11
11
|
name: "Graphic",
|
|
12
12
|
class: "gao3b2f",
|
|
13
13
|
propsAsIs: !1
|
|
14
|
-
}),
|
|
14
|
+
}), t = /* @__PURE__ */ s("img")({
|
|
15
15
|
name: "InsightIconDefault",
|
|
16
16
|
class: "i1k4eec3",
|
|
17
17
|
propsAsIs: !1
|
|
@@ -35,10 +35,10 @@ const e = /* @__PURE__ */ s("div")({
|
|
|
35
35
|
export {
|
|
36
36
|
e as Container,
|
|
37
37
|
o as Content,
|
|
38
|
-
|
|
38
|
+
a as Graphic,
|
|
39
39
|
i as InsightIconAbsolute,
|
|
40
40
|
c as InsightIconCircle,
|
|
41
|
-
|
|
41
|
+
t as InsightIconDefault,
|
|
42
42
|
p as NextIcon,
|
|
43
43
|
l as Title
|
|
44
44
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
const
|
|
2
|
+
const n = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "Container",
|
|
4
4
|
class: "cddmj9e",
|
|
5
5
|
propsAsIs: !1
|
|
6
|
-
}),
|
|
6
|
+
}), t = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "ItemsContainer",
|
|
8
8
|
class: "i16t83sg",
|
|
9
9
|
propsAsIs: !1
|
|
10
10
|
});
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
n as Container,
|
|
13
|
+
t as ItemsContainer
|
|
14
14
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Container as
|
|
1
|
+
import { jsxs as i, jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { Container as o, FriendsIcon as c, Content as l, Title as s, Description as h, ArrowInviteIcon as d } from "./styles.js";
|
|
3
3
|
import "@linaria/react";
|
|
4
4
|
import "../../icons/index.js";
|
|
5
5
|
import "react";
|
|
6
|
-
const
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
6
|
+
const p = "data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='32'%20height='32'%20rx='16'%20fill='white'/%3e%3cpath%20d='M10.4615%2012.6875C9.44231%2012.6875%208.61538%2013.4665%208.61538%2014.4266C8.61538%2015.3868%209.44231%2016.1658%2010.4615%2016.1658C11.4808%2016.1658%2012.3077%2015.3868%2012.3077%2014.4266C12.3077%2013.4665%2011.4808%2012.6875%2010.4615%2012.6875ZM10.4615%2016.1658C9.10817%2016.1658%208%2017.2097%208%2018.4846V19.7527C8%2019.7527%208.61538%2020.2237%2010.4615%2020.2237C12.3077%2020.2237%2012.9231%2019.7527%2012.9231%2019.7527V18.4846C12.9231%2017.2097%2011.8149%2016.1658%2010.4615%2016.1658ZM21.5385%2012.6875C20.5192%2012.6875%2019.6923%2013.4665%2019.6923%2014.4266C19.6923%2015.3868%2020.5192%2016.1658%2021.5385%2016.1658C22.5577%2016.1658%2023.3846%2015.3868%2023.3846%2014.4266C23.3846%2013.4665%2022.5577%2012.6875%2021.5385%2012.6875ZM21.5385%2016.1658C20.1851%2016.1658%2019.0769%2017.2097%2019.0769%2018.4846V19.7527C19.0769%2019.7527%2019.6923%2020.2237%2021.5385%2020.2237C23.3846%2020.2237%2024%2019.7527%2024%2019.7527V18.4846C24%2017.2097%2022.8918%2016.1658%2021.5385%2016.1658ZM16%2015.0063C14.9808%2015.0063%2014.1538%2015.7853%2014.1538%2016.7455C14.1538%2017.7056%2014.9808%2018.4846%2016%2018.4846C17.0192%2018.4846%2017.8462%2017.7056%2017.8462%2016.7455C17.8462%2015.7853%2017.0192%2015.0063%2016%2015.0063ZM16%2018.4846C14.6466%2018.4846%2013.5385%2019.5285%2013.5385%2020.8034V22.0715C13.5385%2022.0715%2014.1538%2022.5425%2016%2022.5425C17.8462%2022.5425%2018.4615%2022.0715%2018.4615%2022.0715V20.8034C18.4615%2019.5285%2017.3534%2018.4846%2016%2018.4846Z'%20fill='%23107D57'/%3e%3cpath%20opacity='0.5'%20d='M13.3908%209C12.3103%209%2011.4336%209.82584%2011.4336%2010.8437C11.4336%2011.8616%2012.3103%2012.6875%2013.3908%2012.6875C14.4713%2012.6875%2015.348%2011.8616%2015.348%2010.8437C15.348%209.82584%2014.4713%209%2013.3908%209ZM13.3908%2012.6875C13.1946%2012.6875%2012.9958%2012.6827%2012.7996%2012.7451C13.192%2013.2372%2013.3908%2013.8542%2013.3908%2014.5312C13.3908%2014.7761%2013.3296%2015.0161%2013.3296%2015.261C13.8521%2014.524%2014.6956%2014.0391%2015.6742%2013.9166C15.218%2013.1796%2014.3694%2012.6875%2013.3908%2012.6875ZM18.61%209C17.5295%209%2016.6528%209.82584%2016.6528%2010.8437C16.6528%2011.8616%2017.5295%2012.6875%2018.61%2012.6875C19.6905%2012.6875%2020.5672%2011.8616%2020.5672%2010.8437C20.5672%209.82584%2019.6905%209%2018.61%209ZM18.61%2012.6875C17.6314%2012.6875%2016.7828%2013.1796%2016.3266%2013.9166C17.3052%2014.0391%2018.1487%2014.524%2018.6712%2015.261C18.6712%2015.0161%2018.61%2014.7761%2018.61%2014.5312C18.61%2013.8542%2018.8088%2013.2372%2019.2012%2012.7451C19.005%2012.6827%2018.8062%2012.6875%2018.61%2012.6875Z'%20fill='%23107D57'/%3e%3c/svg%3e", f = ({ title: t, description: e, onClick: n, className: r }) => /* @__PURE__ */ i(o, { onClick: n, className: r, children: [
|
|
7
|
+
/* @__PURE__ */ C(c, { alt: "friends-icon", src: p }),
|
|
8
|
+
/* @__PURE__ */ i(l, { children: [
|
|
9
|
+
/* @__PURE__ */ C(s, { children: t }),
|
|
10
|
+
/* @__PURE__ */ C(h, { children: e })
|
|
11
11
|
] }),
|
|
12
|
-
/* @__PURE__ */
|
|
12
|
+
/* @__PURE__ */ C(d, { name: "icon-copy" })
|
|
13
13
|
] });
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
f as InviteLink
|
|
16
16
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ListProps } from 'react-window';
|
|
3
|
-
import { LeaderboardItemProps } from '
|
|
3
|
+
import { LeaderboardItemProps } from './list-item';
|
|
4
4
|
type LeaderboardListProps = {
|
|
5
5
|
items: Omit<LeaderboardItemProps, 'openItemDetail'>[];
|
|
6
6
|
currentUserId?: string;
|
|
@@ -10,7 +10,7 @@ import "./list-item/styles.js";
|
|
|
10
10
|
import "@linaria/react";
|
|
11
11
|
import "../../icons/index.js";
|
|
12
12
|
import "react";
|
|
13
|
-
import "../../../
|
|
13
|
+
import "../../../styles_z07sl8-w40geAFS.js";
|
|
14
14
|
import "react-infinite-scroller";
|
|
15
15
|
const M = ({
|
|
16
16
|
items: r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ScrollStore } from '../../app/useSdkScroll';
|
|
3
|
-
import { LeaderboardItemProps } from '
|
|
3
|
+
import { LeaderboardItemProps } from './list-item';
|
|
4
4
|
type LeaderboardListProps = {
|
|
5
5
|
items: Omit<LeaderboardItemProps, 'openItemDetail'>[];
|
|
6
6
|
currentUserId?: string;
|
|
@@ -11,23 +11,23 @@ const m = /* @__PURE__ */ l("div")({
|
|
|
11
11
|
class: "c16btbfp",
|
|
12
12
|
propsAsIs: !1
|
|
13
13
|
}), h = ({
|
|
14
|
-
items:
|
|
15
|
-
currentUserId:
|
|
14
|
+
items: t,
|
|
15
|
+
currentUserId: e,
|
|
16
16
|
openItemDetail: i,
|
|
17
|
-
fetchMore:
|
|
18
|
-
scrollNode:
|
|
17
|
+
fetchMore: a,
|
|
18
|
+
scrollNode: s,
|
|
19
19
|
hasMore: n
|
|
20
20
|
}) => /* @__PURE__ */ o(p, {
|
|
21
|
-
loadMore:
|
|
21
|
+
loadMore: a,
|
|
22
22
|
initialLoad: !1,
|
|
23
23
|
hasMore: n,
|
|
24
24
|
useWindow: !1,
|
|
25
|
-
getScrollParent: () =>
|
|
25
|
+
getScrollParent: () => s.current,
|
|
26
26
|
children: /* @__PURE__ */ o(m, {
|
|
27
|
-
children:
|
|
27
|
+
children: t.map((r) => /* @__PURE__ */ o(d, {
|
|
28
28
|
...r,
|
|
29
29
|
openItemDetail: () => i(r.userId),
|
|
30
|
-
isCurrentUser: !!
|
|
30
|
+
isCurrentUser: !!e && e === r.userId
|
|
31
31
|
}, r.userId))
|
|
32
32
|
})
|
|
33
33
|
});
|
|
@@ -7,11 +7,11 @@ const a = /* @__PURE__ */ s("div")({
|
|
|
7
7
|
name: "Content",
|
|
8
8
|
class: "cjyzpp7",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), o = /* @__PURE__ */ s("div")({
|
|
11
11
|
name: "Graphic",
|
|
12
12
|
class: "g16mldgz",
|
|
13
13
|
propsAsIs: !1
|
|
14
|
-
}),
|
|
14
|
+
}), t = /* @__PURE__ */ s("div")({
|
|
15
15
|
name: "Headline",
|
|
16
16
|
class: "h69js65",
|
|
17
17
|
propsAsIs: !1
|
|
@@ -27,8 +27,8 @@ const a = /* @__PURE__ */ s("div")({
|
|
|
27
27
|
export {
|
|
28
28
|
a as Container,
|
|
29
29
|
e as Content,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
o as Graphic,
|
|
31
|
+
t as Headline,
|
|
32
32
|
c as StepIndicator,
|
|
33
33
|
p as StepsContainer
|
|
34
34
|
};
|
|
@@ -26,15 +26,15 @@ const l = /* @__PURE__ */ s("div")({
|
|
|
26
26
|
name: "Subtext",
|
|
27
27
|
class: "s1lhlj9j",
|
|
28
28
|
propsAsIs: !1
|
|
29
|
-
}),
|
|
29
|
+
}), L = /* @__PURE__ */ s("div")({
|
|
30
30
|
name: "LinkContainer",
|
|
31
31
|
class: "l1wot35e",
|
|
32
32
|
propsAsIs: !1
|
|
33
|
-
}),
|
|
33
|
+
}), d = /* @__PURE__ */ s("div")({
|
|
34
34
|
name: "LinkInfo",
|
|
35
35
|
class: "l1jdw39q",
|
|
36
36
|
propsAsIs: !1
|
|
37
|
-
}),
|
|
37
|
+
}), f = /* @__PURE__ */ s("span")({
|
|
38
38
|
name: "LinkTitle",
|
|
39
39
|
class: "l1cr5mk",
|
|
40
40
|
propsAsIs: !1
|
|
@@ -66,10 +66,10 @@ export {
|
|
|
66
66
|
p as IconContainer,
|
|
67
67
|
r as InviteGameIcon,
|
|
68
68
|
A as LinkAddress,
|
|
69
|
-
|
|
69
|
+
L as LinkContainer,
|
|
70
70
|
v as LinkIcon,
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
d as LinkInfo,
|
|
72
|
+
f as LinkTitle,
|
|
73
73
|
S as SocialLink,
|
|
74
74
|
b as SocialLinkLabel,
|
|
75
75
|
C as SocialLinksContainer,
|
|
@@ -10,11 +10,11 @@ const a = /* @__PURE__ */ s("div")({
|
|
|
10
10
|
name: "PointsIcon",
|
|
11
11
|
class: "p1gqe4lh",
|
|
12
12
|
propsAsIs: !1
|
|
13
|
-
}), n = () => o,
|
|
13
|
+
}), n = () => o, r = /* @__PURE__ */ s(n())({
|
|
14
14
|
name: "PointsSvg",
|
|
15
15
|
class: "p15syg2y",
|
|
16
16
|
propsAsIs: !0
|
|
17
|
-
}),
|
|
17
|
+
}), c = /* @__PURE__ */ s("div")({
|
|
18
18
|
name: "PointsBody",
|
|
19
19
|
class: "p12n4f2h",
|
|
20
20
|
propsAsIs: !1
|
|
@@ -28,10 +28,10 @@ const a = /* @__PURE__ */ s("div")({
|
|
|
28
28
|
propsAsIs: !1
|
|
29
29
|
});
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
c as PointsBody,
|
|
32
32
|
a as PointsContainer,
|
|
33
33
|
l as PointsIcon,
|
|
34
|
-
|
|
34
|
+
r as PointsSvg,
|
|
35
35
|
m as PointsTitle,
|
|
36
36
|
P as PointsValue
|
|
37
37
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
const
|
|
2
|
+
const t = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "Container",
|
|
4
4
|
class: "cll3md7",
|
|
5
5
|
propsAsIs: !1
|
|
@@ -10,5 +10,5 @@ const n = /* @__PURE__ */ s("div")({
|
|
|
10
10
|
});
|
|
11
11
|
export {
|
|
12
12
|
o as ActionBtn,
|
|
13
|
-
|
|
13
|
+
t as Container
|
|
14
14
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
const
|
|
2
|
+
const e = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "QuestionsContainer",
|
|
4
4
|
class: "qvghv3l",
|
|
5
5
|
propsAsIs: !1
|
|
6
6
|
});
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
e as QuestionsContainer
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
const
|
|
2
|
+
const t = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "InsightContainer",
|
|
4
4
|
class: "i1pqqgpo",
|
|
5
5
|
propsAsIs: !1
|
|
@@ -28,7 +28,7 @@ export {
|
|
|
28
28
|
p as ActionBtn,
|
|
29
29
|
i as Description,
|
|
30
30
|
e as Image,
|
|
31
|
-
|
|
31
|
+
t as InsightContainer,
|
|
32
32
|
o as InsightContent,
|
|
33
33
|
a as Title
|
|
34
34
|
};
|
|
@@ -3,17 +3,17 @@ const n = /* @__PURE__ */ s("button")({
|
|
|
3
3
|
name: "Container",
|
|
4
4
|
class: "crkmfw1",
|
|
5
5
|
propsAsIs: !1
|
|
6
|
-
}),
|
|
6
|
+
}), e = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "Content",
|
|
8
8
|
class: "c11awpy4",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), o = /* @__PURE__ */ s("span")({
|
|
11
11
|
name: "Title",
|
|
12
12
|
class: "t154z7mh",
|
|
13
13
|
propsAsIs: !1
|
|
14
14
|
});
|
|
15
15
|
export {
|
|
16
16
|
n as Container,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
e as Content,
|
|
18
|
+
o as Title
|
|
19
19
|
};
|