@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.
Files changed (114) hide show
  1. package/lib/assets/style.css +1 -1
  2. package/lib/hooks/analytics.js +2 -2
  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.js +30 -45
  8. package/lib/ui/app/Features/Gamification/Question.js +31 -63
  9. package/lib/ui/app/Features/Gamification/QuestionsList.js +8 -34
  10. package/lib/ui/app/Features/Gamification/Tabs.js +25 -82
  11. package/lib/ui/app/Features/Gamification/UserSummary.js +12 -21
  12. package/lib/ui/app/Features/Gamification/gamification-feature.js +2 -93
  13. package/lib/ui/app/Features/Gamification/index.js +58 -141
  14. package/lib/ui/app/Features/index.js +21 -109
  15. package/lib/ui/app/Navigation/MastersNavigation/index.js +16 -22
  16. package/lib/ui/app/Navigation/index.js +9 -12
  17. package/lib/ui/app/Notifications/Onboarding/Notification/index.js +13 -16
  18. package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +18 -20
  19. package/lib/ui/app/Notifications/Onboarding/index.js +61 -89
  20. package/lib/ui/app/Notifications/index.js +124 -156
  21. package/lib/ui/app/Notifications/styles.js +10 -15
  22. package/lib/ui/app/Points/index.js +18 -26
  23. package/lib/ui/app/masters.js +74 -195
  24. package/lib/ui/app/useClipboardCopy.js +11 -15
  25. package/lib/ui/app/useMastersApp.js +34 -44
  26. package/lib/ui/app/useSdkResponsive.js +18 -19
  27. package/lib/ui/app/useSdkScroll.js +5 -6
  28. package/lib/ui/button/index.js +3 -4
  29. package/lib/ui/gamification/copyNotification/index.js +5 -7
  30. package/lib/ui/gamification/detail/header/index.js +15 -18
  31. package/lib/ui/gamification/detail/header/styles.js +12 -14
  32. package/lib/ui/gamification/detail/sponsor/index.js +2 -3
  33. package/lib/ui/gamification/insight/index.js +5 -6
  34. package/lib/ui/gamification/insight-list/index.js +3 -6
  35. package/lib/ui/gamification/invite-link/index.js +11 -17
  36. package/lib/ui/gamification/invite-link/styles.js +13 -15
  37. package/lib/ui/gamification/leaderboard/index.js +21 -28
  38. package/lib/ui/gamification/leaderboard/list-item/index.js +19 -22
  39. package/lib/ui/gamification/leaderboard/list-item/styles.js +16 -18
  40. package/lib/ui/gamification/leaderboard/static.js +19 -23
  41. package/lib/ui/gamification/leaderboard/styles.js +1 -1
  42. package/lib/ui/gamification/onboarding/index.js +51 -73
  43. package/lib/ui/gamification/onboarding/invitingUser/index.js +10 -11
  44. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +3 -2
  45. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.js +17 -20
  46. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +2 -0
  47. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +21 -11
  48. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +21 -30
  49. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +22 -24
  50. package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.js +5 -7
  51. package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.js +2 -3
  52. package/lib/ui/gamification/onboarding/styles.js +14 -17
  53. package/lib/ui/gamification/points/index.js +9 -15
  54. package/lib/ui/gamification/points/styles.js +12 -14
  55. package/lib/ui/gamification/question/index.js +22 -26
  56. package/lib/ui/gamification/question/insight/index.js +7 -15
  57. package/lib/ui/gamification/question/list/index.js +33 -54
  58. package/lib/ui/gamification/question/notification/index.js +22 -35
  59. package/lib/ui/gamification/question/notification/insight/index.js +12 -17
  60. package/lib/ui/gamification/question/notification/pill/index.js +7 -9
  61. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.js +11 -12
  62. package/lib/ui/gamification/question/notification/prediction-result/index.js +45 -51
  63. package/lib/ui/gamification/question/notification/prediction-result/styles.js +23 -26
  64. package/lib/ui/gamification/question/notification/styles.js +17 -19
  65. package/lib/ui/gamification/question/notification/tweet/index.js +8 -18
  66. package/lib/ui/gamification/question/styles.js +32 -34
  67. package/lib/ui/gamification/question/twitter/index.js +8 -20
  68. package/lib/ui/gamification/question/twitter/styles.js +4 -6
  69. package/lib/ui/gamification/tabs/index.js +6 -7
  70. package/lib/ui/gamification/user-statistics/components/rank/index.js +4 -5
  71. package/lib/ui/gamification/user-statistics/components/statistic/index.js +0 -1
  72. package/lib/ui/gamification/user-statistics/index.js +2 -6
  73. package/lib/ui/gamification/vote/expired-alert/index.js +8 -10
  74. package/lib/ui/gamification/vote/feedback/index.js +35 -39
  75. package/lib/ui/gamification/vote/feedback/styles.d.ts +1 -0
  76. package/lib/ui/gamification/vote/feedback/styles.js +31 -29
  77. package/lib/ui/gamification/vote/index.js +108 -117
  78. package/lib/ui/gamification/vote/insight-details/index.js +9 -16
  79. package/lib/ui/gamification/vote/twitter-details/index.js +7 -17
  80. package/lib/ui/gamification/vote/vote-option/index.js +33 -34
  81. package/lib/ui/gamification/vote/vote-option/styles.js +24 -26
  82. package/lib/ui/gamification/vote/win-bar/index.js +29 -37
  83. package/lib/ui/gamification/vote/win-bar/styles.js +16 -19
  84. package/lib/ui/login/demo.d.ts +1 -0
  85. package/lib/ui/login/demo.js +5 -17
  86. package/lib/ui/login/index.js +29 -35
  87. package/lib/ui/modal/index.d.ts +0 -1
  88. package/lib/ui/modal/index.js +45 -38
  89. package/lib/ui/navigation/button/Channels.js +5 -8
  90. package/lib/ui/navigation/button/FeaturedGroups.js +3 -6
  91. package/lib/ui/navigation/button/LeaderBoard.js +8 -11
  92. package/lib/ui/navigation/button/index.js +10 -11
  93. package/lib/ui/navigation/masters.js +2 -3
  94. package/lib/ui/questions/insight/index.js +14 -19
  95. package/lib/ui/questions/twitter/account/index.js +13 -15
  96. package/lib/ui/questions/twitter/account/styles.js +14 -16
  97. package/lib/ui/questions/twitter/index.js +31 -38
  98. package/lib/ui/skeleton/index.js +3 -4
  99. package/lib/ui/theme/constants.js +1 -1
  100. package/lib/ui/theme/index.js +3 -5
  101. package/lib/ui/theme/theme.js +16 -14
  102. package/lib/ui/video-player/index.js +44 -38
  103. package/lib/utils/createDemo.js +18 -28
  104. package/lib/utils/debug/components/copyLogs.js +2 -3
  105. package/lib/utils/debug/components/developer.js +20 -24
  106. package/lib/utils/debug/components/eventInput.js +9 -10
  107. package/lib/utils/debug/components/sdkKey.js +9 -10
  108. package/lib/utils/debug/index.js +17 -28
  109. package/lib/utils/debug/storage.js +32 -14
  110. package/lib/utils/decorators/container.js +5 -9
  111. package/lib/utils/storage.js +32 -14
  112. package/package.json +25 -25
  113. /package/lib/{index-uEuzH3jr.js → index-xuotMAFm.js} +0 -0
  114. /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
- import "react/jsx-runtime";
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
- }), l = /* @__PURE__ */ s("div")({
7
+ }), p = /* @__PURE__ */ s("div")({
10
8
  name: "PointsIcon",
11
9
  class: "p1gqe4lh",
12
10
  propsAsIs: !1
13
- }), n = () => o, r = /* @__PURE__ */ s(n())({
11
+ }), n = () => o, a = /* @__PURE__ */ s(n())({
14
12
  name: "PointsSvg",
15
13
  class: "p15syg2y",
16
14
  propsAsIs: !0
17
- }), c = /* @__PURE__ */ s("div")({
15
+ }), l = /* @__PURE__ */ s("div")({
18
16
  name: "PointsBody",
19
17
  class: "p12n4f2h",
20
18
  propsAsIs: !1
21
- }), m = /* @__PURE__ */ s("div")({
19
+ }), c = /* @__PURE__ */ s("div")({
22
20
  name: "PointsTitle",
23
21
  class: "poqmx89",
24
22
  propsAsIs: !1
25
- }), P = /* @__PURE__ */ s("div")({
23
+ }), r = /* @__PURE__ */ s("div")({
26
24
  name: "PointsValue",
27
25
  class: "prj9b3v",
28
26
  propsAsIs: !1
29
27
  });
30
28
  export {
31
- c as PointsBody,
32
- a as PointsContainer,
33
- l as PointsIcon,
34
- r as PointsSvg,
35
- m as PointsTitle,
36
- P as PointsValue
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 o } from "react/jsx-runtime";
2
- import { PickHistoryStatus as e, QuestionType as a, QuestionStatus as y } from "@streamlayer/sdk-web-types";
3
- import { QuestionTypeData as Q } from "../constants.js";
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
- }, j = () => /* @__PURE__ */ o(I, { children: [
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
- ] }), v = ({
15
+ ] }), R = ({
20
16
  questionId: s,
21
- questionType: n,
22
- questionStatus: m,
23
- subject: u,
24
- openForVoting: d,
17
+ questionType: o,
18
+ questionStatus: u,
19
+ subject: d,
20
+ openForVoting: m,
25
21
  openQuestion: r,
26
- status: p
22
+ status: h
27
23
  }) => {
28
- const c = Q[n], h = C[p];
29
- return c ? /* @__PURE__ */ o(k, { onClick: () => r == null ? void 0 : r(s), children: [
30
- /* @__PURE__ */ o(f, { children: [
31
- /* @__PURE__ */ o(A, { children: [
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": n === a.TRIVIA,
36
- "data-type-poll": n === a.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__ */ o(L, { children: [
36
+ /* @__PURE__ */ n(L, { children: [
41
37
  c.label,
42
- n === a.TRIVIA && m === y.RESOLVED && " • Expired"
38
+ o === a.TRIVIA && u === Q.RESOLVED && " • Expired"
43
39
  ] })
44
40
  ] }),
45
- /* @__PURE__ */ t(P, { children: u || "" })
41
+ /* @__PURE__ */ t(P, { children: d || "" })
46
42
  ] }),
47
- /* @__PURE__ */ t(w, { children: d ? /* @__PURE__ */ t(x, { children: "Play" }) : h })
43
+ /* @__PURE__ */ t(w, { children: m ? /* @__PURE__ */ t(x, { children: "Play" }) : y })
48
44
  ] }) : null;
49
45
  };
50
46
  export {
51
- v as Question,
52
- j as QuestionSkeleton
47
+ R as Question,
48
+ B as QuestionSkeleton
53
49
  };
@@ -1,18 +1,10 @@
1
- import { jsxs as m, jsx as i } from "react/jsx-runtime";
2
- import { InsightContent as n } from "../../../questions/insight/index.js";
3
- import { Container as p, ActionBtn as c } from "./styles.js";
4
- import "@streamlayer/sdk-web-types";
5
- import "../../../video-player/index.js";
6
- import "@linaria/core";
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
- k as Insight
9
+ j as Insight
18
10
  };
@@ -1,68 +1,47 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { QuestionSkeleton as l, Question as f } from "../index.js";
3
- import { Insight as c } from "../insight/index.js";
4
- import { Twitter as d } from "../twitter/index.js";
5
- import { pauseAllVideos as h } from "../../../video-player/index.js";
6
- import { QuestionsContainer as p } from "./styles.js";
7
- import "@streamlayer/sdk-web-types";
8
- import "../../constants.js";
9
- import "../../../skeleton/index.js";
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 r ? /* @__PURE__ */ e(p, { children: r == null ? void 0 : r.map((t) => {
33
- var o, u, s;
34
- if (t.type === "question" && ((o = t.attributes) == null ? void 0 : o.attributes.case) === "question") {
35
- const i = t.attributes.attributes.value;
36
- return /* @__PURE__ */ e(f, { openQuestion: m, ...i }, i.questionId);
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" && ((u = t.attributes) == null ? void 0 : u.attributes.case) === "insight") {
39
- const i = t.attributes.attributes.value;
40
- return /* @__PURE__ */ e(
41
- c,
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: m,
44
- controlVideo: n,
45
- ...i
22
+ openInsight: u,
23
+ controlVideo: s,
24
+ ...e
46
25
  },
47
- i.questionId
26
+ e.questionId
48
27
  );
49
28
  }
50
- if (t.type === "tweet" && ((s = t.attributes) == null ? void 0 : s.attributes.case) === "tweet") {
51
- const i = t.attributes.attributes.value, a = t.attributes.id;
52
- return /* @__PURE__ */ e(
53
- d,
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: m,
56
- controlVideo: n,
57
- ...i,
58
- tweetId: a
34
+ openTweet: u,
35
+ controlVideo: s,
36
+ ...e,
37
+ tweetId: m
59
38
  },
60
- a
39
+ m
61
40
  );
62
41
  }
63
42
  return null;
64
- }) }) : /* @__PURE__ */ e(p, { children: Array.from({ length: 5 }).map((t, o) => /* @__PURE__ */ e(l, {}, o)) });
43
+ }) }) : /* @__PURE__ */ i(b, { children: Array.from({ length: 5 }).map((t, r) => /* @__PURE__ */ i(f, {}, r)) });
65
44
  };
66
45
  export {
67
- N as QuestionList
46
+ A as QuestionList
68
47
  };
@@ -1,50 +1,37 @@
1
- import { jsxs as a, jsx as o, Fragment as d } from "react/jsx-runtime";
2
- import { QuestionType as m } from "@streamlayer/sdk-web-types";
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
- import "../../../video-player/index.js";
8
- import "@linaria/core";
9
- import "react";
10
- import "../../../icons/index.js";
11
- import "@linaria/react";
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 p = T[r];
27
- return p ? /* @__PURE__ */ a(E, { style: r === m.TWEET ? { paddingTop: "12px" } : {}, children: [
28
- /* @__PURE__ */ o(I, { onClick: e, children: /* @__PURE__ */ o(h, { name: "icon-cross" }) }),
29
- r !== m.TWEET && /* @__PURE__ */ a(C, { children: [
30
- /* @__PURE__ */ o(
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 === m.TRIVIA,
34
- "data-type-poll": r === m.POLL,
35
- name: p.iconName
20
+ "data-type-trivia": r === l.TRIVIA,
21
+ "data-type-poll": r === l.POLL,
22
+ name: m.iconName
36
23
  }
37
24
  ),
38
- /* @__PURE__ */ o(W, { children: p.label })
25
+ /* @__PURE__ */ a(W, { children: m.label })
39
26
  ] }),
40
- r === m.FACTOID && n && /* @__PURE__ */ o(f, { ...n, action: t, controlVideo: l }),
41
- r === m.TWEET && c && /* @__PURE__ */ o(D, { ...c, action: t, controlVideo: l }),
42
- r !== m.FACTOID && r !== m.TWEET && /* @__PURE__ */ a(d, { children: [
43
- /* @__PURE__ */ o(s, { children: i == null ? void 0 : i.title }),
44
- /* @__PURE__ */ o(x, { onClick: t, children: "Answer" })
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
- K as Notification
36
+ k as Notification
50
37
  };
@@ -1,21 +1,16 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import { QuestionImages as c } from "@streamlayer/sdk-web-types";
3
- import { VideoPlayer as e } from "../../../../video-player/index.js";
4
- import { InsightContainer as h, ImageContainer as u, Image as a, InsightContent as I, Title as g, Description as f, ActionBtn as C } from "./styles.js";
5
- import "@linaria/core";
6
- import "react";
7
- import "../../../../icons/index.js";
8
- import "@linaria/react";
9
- import "../../../../video-player/styles.js";
10
- const A = ({ video: r, image: n, imageMode: o, heading: i, body: s, action: m, controlVideo: p }) => /* @__PURE__ */ l(h, { children: [
11
- (r == null ? void 0 : r.url) && /* @__PURE__ */ t(e, { source: r.url, poster: r.thumbnailUrl, controlVideo: p }),
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
- A as Insight
15
+ V as Insight
21
16
  };
@@ -1,12 +1,10 @@
1
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
- import { SvgIcon as e } from "../../../../icons/index.js";
3
- import { Container as p, Content as c, Title as l } from "./styles.js";
4
- import "@linaria/react";
5
- import "react";
6
- const a = ({ title: o, onClick: n, className: i, style: t }) => /* @__PURE__ */ r(p, { onClick: n, className: i, style: t, children: /* @__PURE__ */ m(c, { children: [
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
- a as Pill
9
+ h as Pill
12
10
  };
@@ -1,42 +1,41 @@
1
1
  import { jsxs as r, Fragment as a, jsx as e } from "react/jsx-runtime";
2
- import { BGWrap as n, 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 m, BGFourLineTwo as w, BGFourLineThree as F, BGFourLineFour as O } from "./styles.js";
3
- import "@linaria/react";
4
- const x = ({ step: i, correct: L }) => /* @__PURE__ */ r(a, { children: [
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(n, { "data-active": i === 2, children: [
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(n, { "data-active": i === 3, children: [
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(n, { "data-active": i === 4, "data-correct": "true", children: [
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(n, { "data-active": i === 5, "data-correct": "true", children: [
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(n, { "data-active": i === 4, "data-correct": "false", children: [
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
- x as AnimationLines
40
+ s as AnimationLines
42
41
  };