@streamlayer/react-ui 0.98.0 → 0.99.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/analytics.js +2 -2
- 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.js +30 -45
- package/lib/ui/app/Features/Gamification/Question.js +31 -63
- package/lib/ui/app/Features/Gamification/QuestionsList.js +8 -34
- package/lib/ui/app/Features/Gamification/Tabs.js +25 -82
- 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.js +58 -141
- package/lib/ui/app/Features/index.js +21 -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 +61 -89
- package/lib/ui/app/Notifications/index.js +124 -156
- package/lib/ui/app/Notifications/styles.js +10 -15
- package/lib/ui/app/Points/index.js +18 -26
- package/lib/ui/app/masters.js +74 -195
- 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 +5 -6
- 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.js +19 -22
- package/lib/ui/gamification/leaderboard/list-item/styles.js +16 -18
- package/lib/ui/gamification/leaderboard/static.js +19 -23
- 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.js +22 -26
- package/lib/ui/gamification/question/insight/index.js +7 -15
- package/lib/ui/gamification/question/list/index.js +33 -54
- 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.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/expired-alert/index.js +8 -10
- package/lib/ui/gamification/vote/feedback/index.js +35 -39
- package/lib/ui/gamification/vote/feedback/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/feedback/styles.js +31 -29
- package/lib/ui/gamification/vote/index.js +108 -117
- package/lib/ui/gamification/vote/insight-details/index.js +9 -16
- package/lib/ui/gamification/vote/twitter-details/index.js +7 -17
- package/lib/ui/gamification/vote/vote-option/index.js +33 -34
- package/lib/ui/gamification/vote/vote-option/styles.js +24 -26
- 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.d.ts +0 -1
- package/lib/ui/modal/index.js +45 -38
- 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/skeleton/index.js +3 -4
- package/lib/ui/theme/constants.js +1 -1
- package/lib/ui/theme/index.js +3 -5
- package/lib/ui/theme/theme.js +16 -14
- 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 -25
- /package/lib/{index-uEuzH3jr.js → index-xuotMAFm.js} +0 -0
- /package/lib/{styles_z07sl8-w40geAFS.js → styles_z07sl8-l0sNRNKZ.js} +0 -0
|
@@ -1,37 +1,35 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
2
|
import { SvgIcon as o } from "../../icons/index.js";
|
|
3
|
-
|
|
4
|
-
import "react";
|
|
5
|
-
const a = /* @__PURE__ */ s("div")({
|
|
3
|
+
const e = /* @__PURE__ */ s("div")({
|
|
6
4
|
name: "PointsContainer",
|
|
7
5
|
class: "psiob9b",
|
|
8
6
|
propsAsIs: !1
|
|
9
|
-
}),
|
|
7
|
+
}), p = /* @__PURE__ */ s("div")({
|
|
10
8
|
name: "PointsIcon",
|
|
11
9
|
class: "p1gqe4lh",
|
|
12
10
|
propsAsIs: !1
|
|
13
|
-
}), n = () => o,
|
|
11
|
+
}), n = () => o, a = /* @__PURE__ */ s(n())({
|
|
14
12
|
name: "PointsSvg",
|
|
15
13
|
class: "p15syg2y",
|
|
16
14
|
propsAsIs: !0
|
|
17
|
-
}),
|
|
15
|
+
}), l = /* @__PURE__ */ s("div")({
|
|
18
16
|
name: "PointsBody",
|
|
19
17
|
class: "p12n4f2h",
|
|
20
18
|
propsAsIs: !1
|
|
21
|
-
}),
|
|
19
|
+
}), c = /* @__PURE__ */ s("div")({
|
|
22
20
|
name: "PointsTitle",
|
|
23
21
|
class: "poqmx89",
|
|
24
22
|
propsAsIs: !1
|
|
25
|
-
}),
|
|
23
|
+
}), r = /* @__PURE__ */ s("div")({
|
|
26
24
|
name: "PointsValue",
|
|
27
25
|
class: "prj9b3v",
|
|
28
26
|
propsAsIs: !1
|
|
29
27
|
});
|
|
30
28
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
l as PointsBody,
|
|
30
|
+
e as PointsContainer,
|
|
31
|
+
p as PointsIcon,
|
|
32
|
+
a as PointsSvg,
|
|
33
|
+
c as PointsTitle,
|
|
34
|
+
r as PointsValue
|
|
37
35
|
};
|
|
@@ -1,53 +1,49 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { PickHistoryStatus as e, QuestionType as a, QuestionStatus as
|
|
3
|
-
import { QuestionTypeData as
|
|
1
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { PickHistoryStatus as e, QuestionType as a, QuestionStatus as Q } from "@streamlayer/sdk-web-types";
|
|
3
|
+
import { QuestionTypeData as p } from "../constants.js";
|
|
4
4
|
import { Skeleton as l } from "../../skeleton/index.js";
|
|
5
5
|
import { QuestionActionIcon as i, SkeletonContainer as I, SkeletonButton as S, QuestionItem as k, QuestionContent as f, QuestionCaption as A, QuestionTypeIcon as T, QuestionTypeLabel as L, QuestionBody as P, QuestionAction as w, PlayButton as x } from "./styles.js";
|
|
6
|
-
import "../../skeleton/styles.js";
|
|
7
|
-
import "@linaria/react";
|
|
8
|
-
import "../../icons/index.js";
|
|
9
|
-
import "react";
|
|
10
6
|
const C = {
|
|
11
7
|
[e.LOST]: /* @__PURE__ */ t(i, { name: "incorrectVoted" }),
|
|
12
8
|
[e.WON]: /* @__PURE__ */ t(i, { name: "icon-check" }),
|
|
13
9
|
[e.UNSET]: /* @__PURE__ */ t(i, { name: "icon-arrow" }),
|
|
14
10
|
[e.DNP]: /* @__PURE__ */ t(i, { name: "icon-arrow" })
|
|
15
|
-
},
|
|
11
|
+
}, B = () => /* @__PURE__ */ n(I, { children: [
|
|
16
12
|
/* @__PURE__ */ t(l, { loading: !0, style: { width: "35%" } }),
|
|
17
13
|
/* @__PURE__ */ t(l, { loading: !0, style: { width: "70%" } }),
|
|
18
14
|
/* @__PURE__ */ t(S, {})
|
|
19
|
-
] }),
|
|
15
|
+
] }), R = ({
|
|
20
16
|
questionId: s,
|
|
21
|
-
questionType:
|
|
22
|
-
questionStatus:
|
|
23
|
-
subject:
|
|
24
|
-
openForVoting:
|
|
17
|
+
questionType: o,
|
|
18
|
+
questionStatus: u,
|
|
19
|
+
subject: d,
|
|
20
|
+
openForVoting: m,
|
|
25
21
|
openQuestion: r,
|
|
26
|
-
status:
|
|
22
|
+
status: h
|
|
27
23
|
}) => {
|
|
28
|
-
const c =
|
|
29
|
-
return c ? /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
24
|
+
const c = p[o], y = C[h];
|
|
25
|
+
return c ? /* @__PURE__ */ n(k, { onClick: () => r == null ? void 0 : r(s), children: [
|
|
26
|
+
/* @__PURE__ */ n(f, { children: [
|
|
27
|
+
/* @__PURE__ */ n(A, { children: [
|
|
32
28
|
/* @__PURE__ */ t(
|
|
33
29
|
T,
|
|
34
30
|
{
|
|
35
|
-
"data-type-trivia":
|
|
36
|
-
"data-type-poll":
|
|
31
|
+
"data-type-trivia": o === a.TRIVIA,
|
|
32
|
+
"data-type-poll": o === a.POLL,
|
|
37
33
|
name: c.iconName
|
|
38
34
|
}
|
|
39
35
|
),
|
|
40
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ n(L, { children: [
|
|
41
37
|
c.label,
|
|
42
|
-
|
|
38
|
+
o === a.TRIVIA && u === Q.RESOLVED && " • Expired"
|
|
43
39
|
] })
|
|
44
40
|
] }),
|
|
45
|
-
/* @__PURE__ */ t(P, { children:
|
|
41
|
+
/* @__PURE__ */ t(P, { children: d || "" })
|
|
46
42
|
] }),
|
|
47
|
-
/* @__PURE__ */ t(w, { children:
|
|
43
|
+
/* @__PURE__ */ t(w, { children: m ? /* @__PURE__ */ t(x, { children: "Play" }) : y })
|
|
48
44
|
] }) : null;
|
|
49
45
|
};
|
|
50
46
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
R as Question,
|
|
48
|
+
B as QuestionSkeleton
|
|
53
49
|
};
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { InsightContent as
|
|
3
|
-
import { Container as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import "react";
|
|
8
|
-
import "../../../icons/index.js";
|
|
9
|
-
import "@linaria/react";
|
|
10
|
-
import "../../../video-player/styles.js";
|
|
11
|
-
import "../../../questions/insight/styles.js";
|
|
12
|
-
const k = ({ openInsight: r, questionId: t, ...o }) => /* @__PURE__ */ m(p, { children: [
|
|
13
|
-
/* @__PURE__ */ i(n, { questionId: t, ...o }),
|
|
14
|
-
r && /* @__PURE__ */ i(c, { onClick: () => r(t), children: "View Insight" })
|
|
1
|
+
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { InsightContent as c } from "../../../questions/insight/index.js";
|
|
3
|
+
import { Container as f, ActionBtn as l } from "./styles.js";
|
|
4
|
+
const j = ({ openInsight: r, questionId: t, ...m }) => /* @__PURE__ */ o(f, { onClick: () => r == null ? void 0 : r(t), children: [
|
|
5
|
+
/* @__PURE__ */ i(c, { questionId: t, ...m }),
|
|
6
|
+
r && /* @__PURE__ */ i(l, { children: "View Insight" })
|
|
15
7
|
] });
|
|
16
8
|
export {
|
|
17
|
-
|
|
9
|
+
j as Insight
|
|
18
10
|
};
|
|
@@ -1,68 +1,47 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { QuestionSkeleton as
|
|
3
|
-
import { Insight as
|
|
4
|
-
import { Twitter as
|
|
5
|
-
import { pauseAllVideos as
|
|
6
|
-
import { QuestionsContainer as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "../../../skeleton/styles.js";
|
|
11
|
-
import "@linaria/react";
|
|
12
|
-
import "../styles.js";
|
|
13
|
-
import "../../../icons/index.js";
|
|
14
|
-
import "react";
|
|
15
|
-
import "../../../questions/insight/index.js";
|
|
16
|
-
import "../../../questions/insight/styles.js";
|
|
17
|
-
import "@linaria/core";
|
|
18
|
-
import "../../../video-player/styles.js";
|
|
19
|
-
import "../insight/styles.js";
|
|
20
|
-
import "../../../questions/twitter/index.js";
|
|
21
|
-
import "../../../questions/twitter/account/index.js";
|
|
22
|
-
import "../../../../utils/common.js";
|
|
23
|
-
import "../../../questions/twitter/account/styles.js";
|
|
24
|
-
import "../../../questions/twitter/styles.js";
|
|
25
|
-
import "../twitter/styles.js";
|
|
26
|
-
import "../../../button/index.js";
|
|
27
|
-
import "../../../button/styles.js";
|
|
28
|
-
const N = ({ questions: r, openQuestion: b, controlVideo: n }) => {
|
|
29
|
-
const m = (t) => {
|
|
30
|
-
h(), b(t, { openedFrom: "list" });
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionSkeleton as f, Question as c } from "../index.js";
|
|
3
|
+
import { Insight as d } from "../insight/index.js";
|
|
4
|
+
import { Twitter as h } from "../twitter/index.js";
|
|
5
|
+
import { pauseAllVideos as g } from "../../../video-player/index.js";
|
|
6
|
+
import { QuestionsContainer as b } from "./styles.js";
|
|
7
|
+
const A = ({ questions: n, openQuestion: l, controlVideo: s }) => {
|
|
8
|
+
const u = (t) => {
|
|
9
|
+
g(), l(t, { openedFrom: "list" });
|
|
31
10
|
};
|
|
32
|
-
return
|
|
33
|
-
var
|
|
34
|
-
if (t.type === "question" && ((
|
|
35
|
-
const
|
|
36
|
-
return /* @__PURE__ */
|
|
11
|
+
return n ? /* @__PURE__ */ i(b, { children: n == null ? void 0 : n.map((t) => {
|
|
12
|
+
var r, a, o;
|
|
13
|
+
if (t.type === "question" && ((r = t.attributes) == null ? void 0 : r.attributes.case) === "question") {
|
|
14
|
+
const e = t.attributes.attributes.value;
|
|
15
|
+
return /* @__PURE__ */ i(c, { openQuestion: u, ...e }, e.questionId);
|
|
37
16
|
}
|
|
38
|
-
if (t.type === "insight" && ((
|
|
39
|
-
const
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
-
|
|
17
|
+
if (t.type === "insight" && ((a = t.attributes) == null ? void 0 : a.attributes.case) === "insight") {
|
|
18
|
+
const e = t.attributes.attributes.value;
|
|
19
|
+
return /* @__PURE__ */ i(
|
|
20
|
+
d,
|
|
42
21
|
{
|
|
43
|
-
openInsight:
|
|
44
|
-
controlVideo:
|
|
45
|
-
...
|
|
22
|
+
openInsight: u,
|
|
23
|
+
controlVideo: s,
|
|
24
|
+
...e
|
|
46
25
|
},
|
|
47
|
-
|
|
26
|
+
e.questionId
|
|
48
27
|
);
|
|
49
28
|
}
|
|
50
|
-
if (t.type === "tweet" && ((
|
|
51
|
-
const
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
|
|
29
|
+
if (t.type === "tweet" && ((o = t.attributes) == null ? void 0 : o.attributes.case) === "tweet") {
|
|
30
|
+
const e = t.attributes.attributes.value, m = t.attributes.id;
|
|
31
|
+
return /* @__PURE__ */ i(
|
|
32
|
+
h,
|
|
54
33
|
{
|
|
55
|
-
openTweet:
|
|
56
|
-
controlVideo:
|
|
57
|
-
...
|
|
58
|
-
tweetId:
|
|
34
|
+
openTweet: u,
|
|
35
|
+
controlVideo: s,
|
|
36
|
+
...e,
|
|
37
|
+
tweetId: m
|
|
59
38
|
},
|
|
60
|
-
|
|
39
|
+
m
|
|
61
40
|
);
|
|
62
41
|
}
|
|
63
42
|
return null;
|
|
64
|
-
}) }) : /* @__PURE__ */
|
|
43
|
+
}) }) : /* @__PURE__ */ i(b, { children: Array.from({ length: 5 }).map((t, r) => /* @__PURE__ */ i(f, {}, r)) });
|
|
65
44
|
};
|
|
66
45
|
export {
|
|
67
|
-
|
|
46
|
+
A as QuestionList
|
|
68
47
|
};
|
|
@@ -1,50 +1,37 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { QuestionType as
|
|
1
|
+
import { jsxs as t, jsx as a, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionType as l } from "@streamlayer/sdk-web-types";
|
|
3
3
|
import { QuestionTypeData as T } from "../../constants.js";
|
|
4
4
|
import { Insight as f } from "./insight/index.js";
|
|
5
5
|
import { Container as E, CloseIconWrap as I, CloseIcon as h, Header as C, TypeIcon as A, TypeName as W, Question as s, AnswerButton as x } from "./styles.js";
|
|
6
6
|
import { Tweet as D } from "./tweet/index.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import "../../../video-player/styles.js";
|
|
13
|
-
import "./insight/styles.js";
|
|
14
|
-
import "../../../questions/twitter/index.js";
|
|
15
|
-
import "../../../questions/twitter/account/index.js";
|
|
16
|
-
import "../../../../utils/common.js";
|
|
17
|
-
import "../../../questions/twitter/account/styles.js";
|
|
18
|
-
import "../../../questions/twitter/styles.js";
|
|
19
|
-
import "./tweet/styles.js";
|
|
20
|
-
const K = ({
|
|
21
|
-
close: e,
|
|
22
|
-
action: t,
|
|
23
|
-
controlVideo: l,
|
|
24
|
-
data: { questionType: r, question: i, insight: n, tweet: c }
|
|
7
|
+
const k = ({
|
|
8
|
+
close: d,
|
|
9
|
+
action: n,
|
|
10
|
+
controlVideo: c,
|
|
11
|
+
data: { questionType: r, question: o, insight: e, tweet: i }
|
|
25
12
|
}) => {
|
|
26
|
-
const
|
|
27
|
-
return
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
r !==
|
|
30
|
-
/* @__PURE__ */
|
|
13
|
+
const m = T[r];
|
|
14
|
+
return m ? /* @__PURE__ */ t(E, { style: r === l.TWEET ? { paddingTop: "12px" } : {}, children: [
|
|
15
|
+
/* @__PURE__ */ a(I, { onClick: d, children: /* @__PURE__ */ a(h, { name: "icon-cross" }) }),
|
|
16
|
+
r !== l.TWEET && /* @__PURE__ */ t(C, { children: [
|
|
17
|
+
/* @__PURE__ */ a(
|
|
31
18
|
A,
|
|
32
19
|
{
|
|
33
|
-
"data-type-trivia": r ===
|
|
34
|
-
"data-type-poll": r ===
|
|
35
|
-
name:
|
|
20
|
+
"data-type-trivia": r === l.TRIVIA,
|
|
21
|
+
"data-type-poll": r === l.POLL,
|
|
22
|
+
name: m.iconName
|
|
36
23
|
}
|
|
37
24
|
),
|
|
38
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ a(W, { children: m.label })
|
|
39
26
|
] }),
|
|
40
|
-
r ===
|
|
41
|
-
r ===
|
|
42
|
-
r !==
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
27
|
+
r === l.FACTOID && e && /* @__PURE__ */ a(f, { ...e, action: n, controlVideo: c }),
|
|
28
|
+
r === l.TWEET && i && /* @__PURE__ */ a(D, { ...i, action: n, controlVideo: c }),
|
|
29
|
+
r !== l.FACTOID && r !== l.TWEET && /* @__PURE__ */ t(p, { children: [
|
|
30
|
+
/* @__PURE__ */ a(s, { children: o == null ? void 0 : o.title }),
|
|
31
|
+
/* @__PURE__ */ a(x, { onClick: n, children: "Answer" })
|
|
45
32
|
] })
|
|
46
33
|
] }) : null;
|
|
47
34
|
};
|
|
48
35
|
export {
|
|
49
|
-
|
|
36
|
+
k as Notification
|
|
50
37
|
};
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { QuestionImages as
|
|
3
|
-
import { VideoPlayer as
|
|
4
|
-
import { InsightContainer as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
n && !(r != null && r.url) && /* @__PURE__ */ t(u, { "data-rounded": o === c.ROUNDED, children: /* @__PURE__ */ t(a, { src: n, alt: i }) }),
|
|
13
|
-
/* @__PURE__ */ l(I, { children: [
|
|
14
|
-
/* @__PURE__ */ t(g, { children: i }),
|
|
15
|
-
/* @__PURE__ */ t(f, { children: s }),
|
|
16
|
-
m && /* @__PURE__ */ t(C, { onClick: m, children: "View Insight" })
|
|
1
|
+
import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionImages as h } from "@streamlayer/sdk-web-types";
|
|
3
|
+
import { VideoPlayer as o } from "../../../../video-player/index.js";
|
|
4
|
+
import { InsightContainer as u, ImageContainer as a, Image as p, InsightContent as I, Title as g, Description as f, ActionBtn as C } from "./styles.js";
|
|
5
|
+
const V = ({ video: r, image: t, imageMode: i, heading: l, body: m, action: s, controlVideo: e }) => /* @__PURE__ */ c(u, { children: [
|
|
6
|
+
(r == null ? void 0 : r.url) && /* @__PURE__ */ n(o, { source: r.url, poster: r.thumbnailUrl, controlVideo: e }),
|
|
7
|
+
t && !(r != null && r.url) && /* @__PURE__ */ n(a, { "data-rounded": i === h.ROUNDED, children: /* @__PURE__ */ n(p, { src: t, alt: l }) }),
|
|
8
|
+
/* @__PURE__ */ c(I, { children: [
|
|
9
|
+
/* @__PURE__ */ n(g, { children: l }),
|
|
10
|
+
/* @__PURE__ */ n(f, { children: m }),
|
|
11
|
+
s && /* @__PURE__ */ n(C, { onClick: s, children: "View Insight" })
|
|
17
12
|
] })
|
|
18
13
|
] });
|
|
19
14
|
export {
|
|
20
|
-
|
|
15
|
+
V as Insight
|
|
21
16
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { SvgIcon as
|
|
3
|
-
import { Container as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/* @__PURE__ */ r(e, { name: "iconUp" }),
|
|
8
|
-
o && /* @__PURE__ */ r(l, { children: o })
|
|
1
|
+
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { SvgIcon as m } from "../../../../icons/index.js";
|
|
3
|
+
import { Container as c, Content as l, Title as p } from "./styles.js";
|
|
4
|
+
const h = ({ title: n, onClick: o, className: i, style: e }) => /* @__PURE__ */ r(c, { onClick: o, className: i, style: e, children: /* @__PURE__ */ t(l, { children: [
|
|
5
|
+
/* @__PURE__ */ r(m, { name: "iconUp" }),
|
|
6
|
+
n && /* @__PURE__ */ r(p, { children: n })
|
|
9
7
|
] }) });
|
|
10
8
|
export {
|
|
11
|
-
|
|
9
|
+
h as Pill
|
|
12
10
|
};
|
package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.js
CHANGED
|
@@ -1,42 +1,41 @@
|
|
|
1
1
|
import { jsxs as r, Fragment as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { BGWrap as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/* @__PURE__ */ r(n, { "data-active": i === 1, "data-first-screen": "true", children: [
|
|
2
|
+
import { BGWrap as i, BGOneLineOne as T, BGOneLineTwo as l, BGOneLineThree as u, BGTwoLineOne as t, BGTwoLineTwo as o, BGTwoLineThree as c, BGThreeLineOne as d, BGThreeLineTwo as h, BGThreeLineThree as B, BGThreeLineFour as G, BGFourLineOne as w, BGFourLineTwo as F, BGFourLineThree as O, BGFourLineFour as m } from "./styles.js";
|
|
3
|
+
const s = ({ step: n, correct: L }) => /* @__PURE__ */ r(a, { children: [
|
|
4
|
+
/* @__PURE__ */ r(i, { "data-active": n === 1, "data-first-screen": "true", children: [
|
|
6
5
|
/* @__PURE__ */ e(T, {}),
|
|
7
6
|
/* @__PURE__ */ e(l, {}),
|
|
8
7
|
/* @__PURE__ */ e(u, {})
|
|
9
8
|
] }),
|
|
10
|
-
/* @__PURE__ */ r(
|
|
9
|
+
/* @__PURE__ */ r(i, { "data-active": n === 2, children: [
|
|
11
10
|
/* @__PURE__ */ e(t, {}),
|
|
12
11
|
/* @__PURE__ */ e(o, {}),
|
|
13
12
|
/* @__PURE__ */ e(c, {})
|
|
14
13
|
] }),
|
|
15
|
-
/* @__PURE__ */ r(
|
|
14
|
+
/* @__PURE__ */ r(i, { "data-active": n === 3, children: [
|
|
16
15
|
/* @__PURE__ */ e(t, {}),
|
|
17
16
|
/* @__PURE__ */ e(o, {}),
|
|
18
17
|
/* @__PURE__ */ e(c, {})
|
|
19
18
|
] }),
|
|
20
19
|
L ? /* @__PURE__ */ r(a, { children: [
|
|
21
|
-
/* @__PURE__ */ r(
|
|
20
|
+
/* @__PURE__ */ r(i, { "data-active": n === 4, "data-correct": "true", children: [
|
|
22
21
|
/* @__PURE__ */ e(d, {}),
|
|
23
22
|
/* @__PURE__ */ e(h, {}),
|
|
24
23
|
/* @__PURE__ */ e(B, {}),
|
|
25
24
|
/* @__PURE__ */ e(G, {})
|
|
26
25
|
] }),
|
|
27
|
-
/* @__PURE__ */ r(
|
|
26
|
+
/* @__PURE__ */ r(i, { "data-active": n === 5, "data-correct": "true", children: [
|
|
28
27
|
/* @__PURE__ */ e(d, {}),
|
|
29
28
|
/* @__PURE__ */ e(h, {}),
|
|
30
29
|
/* @__PURE__ */ e(B, {}),
|
|
31
30
|
/* @__PURE__ */ e(G, {})
|
|
32
31
|
] })
|
|
33
|
-
] }) : /* @__PURE__ */ r(
|
|
34
|
-
/* @__PURE__ */ e(m, {}),
|
|
32
|
+
] }) : /* @__PURE__ */ r(i, { "data-active": n === 4, "data-correct": "false", children: [
|
|
35
33
|
/* @__PURE__ */ e(w, {}),
|
|
36
34
|
/* @__PURE__ */ e(F, {}),
|
|
37
|
-
/* @__PURE__ */ e(O, {})
|
|
35
|
+
/* @__PURE__ */ e(O, {}),
|
|
36
|
+
/* @__PURE__ */ e(m, {})
|
|
38
37
|
] })
|
|
39
38
|
] });
|
|
40
39
|
export {
|
|
41
|
-
|
|
40
|
+
s as AnimationLines
|
|
42
41
|
};
|