@streamlayer/react-ui 0.54.0 → 0.55.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.
@@ -24,13 +24,16 @@ import "../gamification/user-statistics/components/statistic/index.js";
24
24
  import "../gamification/user-statistics/components/statistic/styles.js";
25
25
  import "../gamification/user-statistics/styles.js";
26
26
  import "../gamification/question/list/index.js";
27
- import "../gamification/insight/index.js";
28
27
  import "../gamification/question/index.js";
29
28
  import "../button/index.js";
30
29
  import "../button/styles.js";
31
30
  import "../gamification/constants.js";
32
31
  import "../gamification/question/styles.js";
33
32
  import "../icons/index.js";
33
+ import "../gamification/question/insight/index.js";
34
+ import "../video-player/index.js";
35
+ import "../video-player/styles.js";
36
+ import "../gamification/question/insight/styles.js";
34
37
  import "../gamification/question/list/styles.js";
35
38
  import "../gamification/vote/index.js";
36
39
  import "../app/styles.js";
@@ -58,17 +61,17 @@ import "react-window";
58
61
  import "react-window-infinite-loader";
59
62
  import "../gamification/leaderboard/list-item/index.js";
60
63
  import "../gamification/leaderboard/list-item/styles.js";
61
- const mt = ({
64
+ const at = ({
62
65
  gamification: r,
63
66
  sdk: u
64
67
  }) => {
65
68
  var d, v, c, b, y, g, S, h, C, G, L, Q, A, E, f, w, x, P, F, O, B, D, R;
66
- const T = p(r.status), j = p(r.onboardingStatus), l = p(r.openedQuestion), { slStreamId: o } = p(u.sdkStore), e = p(r.featureSettings), [n, q] = K(a.HOME);
69
+ const T = p(r.status), j = p(r.onboardingStatus), l = p(r.openedQuestion), { slStreamId: e } = p(u.sdkStore), o = p(r.featureSettings), [n, q] = K(a.HOME);
67
70
  if (T !== J.Ready)
68
71
  return /* @__PURE__ */ t("div", { children: "wait..." });
69
- if (o != null && o.loading)
72
+ if (e != null && e.loading)
70
73
  return /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t("div", { children: "Event is loading" }) });
71
- if (!(o != null && o.data))
74
+ if (!(e != null && e.data))
72
75
  return /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t("div", { children: "Event is forbidden" }) });
73
76
  if (!j)
74
77
  return /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t(
@@ -76,16 +79,16 @@ const mt = ({
76
79
  {
77
80
  closeFeature: u.closeFeature,
78
81
  gamification: r,
79
- steps: (v = (d = e.inplayGame) == null ? void 0 : d.onboarding) == null ? void 0 : v.steps,
80
- gameIcon: (y = (b = (c = e.inplayGame) == null ? void 0 : c.overview) == null ? void 0 : b.media) == null ? void 0 : y.gameIcon,
81
- sponsorLogo: (h = (S = (g = e.inplayGame) == null ? void 0 : g.overview) == null ? void 0 : S.media) == null ? void 0 : h.sponsorLogo,
82
- rules: (G = (C = e.inplayGame) == null ? void 0 : C.rules) == null ? void 0 : G.rules,
83
- rulesBtnLabel: (Q = (L = e.inplayGame) == null ? void 0 : L.rules) == null ? void 0 : Q.buttonLabel,
84
- rulesTitle: (E = (A = e.inplayGame) == null ? void 0 : A.rules) == null ? void 0 : E.heading,
85
- primaryColor: (x = (w = (f = e.inplayGame) == null ? void 0 : f.overview) == null ? void 0 : w.appearance) == null ? void 0 : x.primaryColor,
86
- inviteCardTitle: (F = (P = e.inplayGame) == null ? void 0 : P.inviteCard) == null ? void 0 : F.heading,
87
- inviteCardSubtext: (B = (O = e.inplayGame) == null ? void 0 : O.inviteCard) == null ? void 0 : B.subtext,
88
- inviteCardBtnLabel: (R = (D = e.inplayGame) == null ? void 0 : D.inviteCard) == null ? void 0 : R.buttonLabel
82
+ steps: (v = (d = o.inplayGame) == null ? void 0 : d.onboarding) == null ? void 0 : v.steps,
83
+ gameIcon: (y = (b = (c = o.inplayGame) == null ? void 0 : c.overview) == null ? void 0 : b.media) == null ? void 0 : y.gameIcon,
84
+ sponsorLogo: (h = (S = (g = o.inplayGame) == null ? void 0 : g.overview) == null ? void 0 : S.media) == null ? void 0 : h.sponsorLogo,
85
+ rules: (G = (C = o.inplayGame) == null ? void 0 : C.rules) == null ? void 0 : G.rules,
86
+ rulesBtnLabel: (Q = (L = o.inplayGame) == null ? void 0 : L.rules) == null ? void 0 : Q.buttonLabel,
87
+ rulesTitle: (E = (A = o.inplayGame) == null ? void 0 : A.rules) == null ? void 0 : E.heading,
88
+ primaryColor: (x = (w = (f = o.inplayGame) == null ? void 0 : f.overview) == null ? void 0 : w.appearance) == null ? void 0 : x.primaryColor,
89
+ inviteCardTitle: (F = (P = o.inplayGame) == null ? void 0 : P.inviteCard) == null ? void 0 : F.heading,
90
+ inviteCardSubtext: (B = (O = o.inplayGame) == null ? void 0 : O.inviteCard) == null ? void 0 : B.subtext,
91
+ inviteCardBtnLabel: (R = (D = o.inplayGame) == null ? void 0 : D.inviteCard) == null ? void 0 : R.buttonLabel
89
92
  }
90
93
  ) });
91
94
  const H = (i) => {
@@ -110,5 +113,5 @@ const mt = ({
110
113
  ] });
111
114
  };
112
115
  export {
113
- mt as GamificationComponent
116
+ at as GamificationComponent
114
117
  };
@@ -5,12 +5,13 @@ import { DemoContainer as p } from "./styles.js";
5
5
  import "../gamification/user-statistics/components/rank/styles.js";
6
6
  import "../gamification/user-statistics/components/statistic/styles.js";
7
7
  import "../gamification/user-statistics/styles.js";
8
- import "@streamlayer/sdk-web-types";
9
- import "../gamification/insight/styles.js";
10
8
  import "../gamification/question/index.js";
9
+ import "react";
10
+ import "../icons/index.js";
11
+ import "../video-player/styles.js";
12
+ import "../gamification/question/insight/styles.js";
11
13
  import "../gamification/question/list/styles.js";
12
14
  import "./components/Question.js";
13
- import "react";
14
15
  import "../gamification/onboarding/components/onboarding-slides/onboarding-instructions/styles.js";
15
16
  import "../gamification/onboarding/components/onboarding-slides/onboarding-invite-card/styles.js";
16
17
  import "../gamification/onboarding/components/onboarding-slides/onboarding-rules/styles.js";
@@ -22,11 +23,11 @@ import "react-window";
22
23
  import "react-window-infinite-loader";
23
24
  import "../gamification/leaderboard/list-item/styles.js";
24
25
  import "@linaria/react";
26
+ import "@streamlayer/sdk-web-types";
25
27
  import "../button/index.js";
26
28
  import "../button/styles.js";
27
29
  import "../gamification/constants.js";
28
30
  import "../gamification/question/styles.js";
29
- import "../icons/index.js";
30
31
  import "../gamification/vote/index.js";
31
32
  import "../app/styles.js";
32
33
  import "../gamification/vote/feedback/index.js";
@@ -41,13 +42,14 @@ import "../theme/constants.js";
41
42
  import "../gamification/vote/win-bar/styles.js";
42
43
  import "../gamification/insight-list/index.js";
43
44
  import "../gamification/insight/index.js";
45
+ import "../gamification/insight/styles.js";
44
46
  import "../gamification/insight-list/styles.js";
45
47
  import "../gamification/detailed-insight/index.js";
46
48
  import "../gamification/common-header/index.js";
47
49
  import "../../icon-exit-d3f9fc80.js";
48
50
  import "../gamification/common-header/styles.js";
49
51
  import "../gamification/detailed-insight/styles.js";
50
- const nt = ({ highlights: i, sdk: e }) => {
52
+ const dt = ({ highlights: i, sdk: e }) => {
51
53
  const n = m(i.status), r = m(i.openedInsight), { slStreamId: o } = m(e.sdkStore);
52
54
  return n !== d.Ready ? /* @__PURE__ */ t("div", { children: "wait..." }) : o != null && o.loading ? /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t("div", { children: "Event is loading" }) }) : o != null && o.data ? i.insights === void 0 ? /* @__PURE__ */ t("div", { children: "wait insights..." }) : /* @__PURE__ */ s(p, { children: [
53
55
  !r && /* @__PURE__ */ t(c, { highlights: i, store: i.insights.getStore() }),
@@ -62,5 +64,5 @@ const nt = ({ highlights: i, sdk: e }) => {
62
64
  ] }) : /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t("div", { children: "Event is forbidden" }) });
63
65
  };
64
66
  export {
65
- nt as HighlightsComponent
67
+ dt as HighlightsComponent
66
68
  };
@@ -1,22 +1,24 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { useStore as m } from "@nanostores/react";
3
3
  import { QuestionList as p } from "../../gamification/question/list/index.js";
4
- import "../../gamification/insight/index.js";
5
- import "@streamlayer/sdk-web-types";
6
- import "../../gamification/insight/styles.js";
7
- import "@linaria/react";
8
4
  import "../../gamification/question/index.js";
5
+ import "@streamlayer/sdk-web-types";
9
6
  import "../../button/index.js";
10
7
  import "../../button/styles.js";
8
+ import "@linaria/react";
11
9
  import "../../gamification/constants.js";
12
10
  import "../../gamification/question/styles.js";
13
11
  import "../../icons/index.js";
14
12
  import "react";
13
+ import "../../gamification/question/insight/index.js";
14
+ import "../../video-player/index.js";
15
+ import "../../video-player/styles.js";
16
+ import "../../gamification/question/insight/styles.js";
15
17
  import "../../gamification/question/list/styles.js";
16
- const v = ({ store: r, openQuestion: i }) => {
18
+ const S = ({ store: r, openQuestion: i }) => {
17
19
  const t = m(r);
18
20
  return t != null && t.data ? /* @__PURE__ */ o(p, { openQuestion: i, questions: t.data }) : /* @__PURE__ */ o("div", { children: "wait questions..." });
19
21
  };
20
22
  export {
21
- v as QuestionsList
23
+ S as QuestionsList
22
24
  };
@@ -1,10 +1,10 @@
1
- import { UserSummary as tr } from "./UserSummary.js";
2
- import { QuestionsList as pr } from "./QuestionsList.js";
3
- import { Question as er } from "./Question.js";
4
- import { Onboarding as fr } from "../../gamification/onboarding/index.js";
5
- import { Insights as nr } from "./Insights.js";
6
- import { Insight as dr } from "./Insight.js";
7
- import { Leaderboard as ur } from "./Leaderboard.js";
1
+ import { UserSummary as er } from "./UserSummary.js";
2
+ import { QuestionsList as fr } from "./QuestionsList.js";
3
+ import { Question as nr } from "./Question.js";
4
+ import { Onboarding as dr } from "../../gamification/onboarding/index.js";
5
+ import { Insights as ur } from "./Insights.js";
6
+ import { Insight as hr } from "./Insight.js";
7
+ import { Leaderboard as Lr } from "./Leaderboard.js";
8
8
  import "react/jsx-runtime";
9
9
  import "@nanostores/react";
10
10
  import "../../gamification/user-statistics/index.js";
@@ -16,16 +16,18 @@ import "../../gamification/user-statistics/components/statistic/index.js";
16
16
  import "../../gamification/user-statistics/components/statistic/styles.js";
17
17
  import "../../gamification/user-statistics/styles.js";
18
18
  import "../../gamification/question/list/index.js";
19
- import "../../gamification/insight/index.js";
20
- import "@streamlayer/sdk-web-types";
21
- import "../../gamification/insight/styles.js";
22
19
  import "../../gamification/question/index.js";
20
+ import "@streamlayer/sdk-web-types";
23
21
  import "../../button/index.js";
24
22
  import "../../button/styles.js";
25
23
  import "../../gamification/constants.js";
26
24
  import "../../gamification/question/styles.js";
27
25
  import "../../icons/index.js";
28
26
  import "react";
27
+ import "../../gamification/question/insight/index.js";
28
+ import "../../video-player/index.js";
29
+ import "../../video-player/styles.js";
30
+ import "../../gamification/question/insight/styles.js";
29
31
  import "../../gamification/question/list/styles.js";
30
32
  import "../../gamification/vote/index.js";
31
33
  import "../../app/styles.js";
@@ -48,6 +50,8 @@ import "../../gamification/onboarding/components/onboarding-slides/onboarding-ru
48
50
  import "../../gamification/onboarding/components/onboarding-slides/onboarding-rules/styles.js";
49
51
  import "../../gamification/onboarding/styles.js";
50
52
  import "../../gamification/insight-list/index.js";
53
+ import "../../gamification/insight/index.js";
54
+ import "../../gamification/insight/styles.js";
51
55
  import "../../gamification/insight-list/styles.js";
52
56
  import "../../gamification/detailed-insight/index.js";
53
57
  import "../../gamification/common-header/index.js";
@@ -60,11 +64,11 @@ import "react-window-infinite-loader";
60
64
  import "../../gamification/leaderboard/list-item/index.js";
61
65
  import "../../gamification/leaderboard/list-item/styles.js";
62
66
  export {
63
- dr as Insight,
64
- nr as Insights,
65
- ur as Leaderboard,
66
- fr as Onboarding,
67
- er as Question,
68
- pr as QuestionsList,
69
- tr as UserSummary
67
+ hr as Insight,
68
+ ur as Insights,
69
+ Lr as Leaderboard,
70
+ dr as Onboarding,
71
+ nr as Question,
72
+ fr as QuestionsList,
73
+ er as UserSummary
70
74
  };
@@ -36,14 +36,16 @@ import "../gamification/user-statistics/components/statistic/styles.js";
36
36
  import "../gamification/user-statistics/styles.js";
37
37
  import "./components/QuestionsList.js";
38
38
  import "../gamification/question/list/index.js";
39
- import "../gamification/insight/index.js";
40
- import "../gamification/insight/styles.js";
41
39
  import "../gamification/question/index.js";
42
40
  import "../button/index.js";
43
41
  import "../button/styles.js";
44
42
  import "../gamification/constants.js";
45
43
  import "../gamification/question/styles.js";
46
44
  import "../icons/index.js";
45
+ import "../gamification/question/insight/index.js";
46
+ import "../video-player/index.js";
47
+ import "../video-player/styles.js";
48
+ import "../gamification/question/insight/styles.js";
47
49
  import "../gamification/question/list/styles.js";
48
50
  import "./components/Question.js";
49
51
  import "../gamification/vote/index.js";
@@ -66,6 +68,7 @@ import "../gamification/onboarding/components/onboarding-slides/onboarding-invit
66
68
  import "../gamification/onboarding/components/onboarding-slides/onboarding-rules/index.js";
67
69
  import "../gamification/onboarding/components/onboarding-slides/onboarding-rules/styles.js";
68
70
  import "../gamification/onboarding/styles.js";
71
+ import "../gamification/insight/styles.js";
69
72
  import "../gamification/insight-list/styles.js";
70
73
  import "../gamification/common-header/styles.js";
71
74
  import "../gamification/detailed-insight/styles.js";
@@ -78,6 +81,7 @@ import "../gamification/leaderboard/list-item/index.js";
78
81
  import "../gamification/leaderboard/list-item/styles.js";
79
82
  import "./components/Insights.js";
80
83
  import "../gamification/insight-list/index.js";
84
+ import "../gamification/insight/index.js";
81
85
  import "./components/Insight.js";
82
86
  import "../gamification/detailed-insight/index.js";
83
87
  import "../gamification/common-header/index.js";
@@ -168,7 +172,7 @@ const R = ({ activeFeature: o, sdk: r }) => {
168
172
  ] }),
169
173
  h
170
174
  ] });
171
- }, hr = ({ sdk: o }) => {
175
+ }, yr = ({ sdk: o }) => {
172
176
  const r = f(o.organizationStore()), t = f(o.getUserStore()), a = f(o.getActiveFeature());
173
177
  return r.loading ? /* @__PURE__ */ e("div", { children: "authentication..." }) : r.data ? t.loading ? /* @__PURE__ */ e("div", { children: "authentication..." }) : t.data ? /* @__PURE__ */ l(T, { children: [
174
178
  /* @__PURE__ */ e(x, { notificationsStore: o.getNotificationsStore() }),
@@ -176,5 +180,5 @@ const R = ({ activeFeature: o, sdk: r }) => {
176
180
  ] }) : /* @__PURE__ */ e(H, { sdk: o }) : /* @__PURE__ */ e("div", { children: "wrong sdk key..." });
177
181
  };
178
182
  export {
179
- hr as Demo
183
+ yr as Demo
180
184
  };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import type { InsightHistory } from '@streamlayer/sdk-web-types';
3
+ export declare const Insight: React.FC<{
4
+ openInsight?: (questionId: string) => void;
5
+ } & InsightHistory>;
@@ -0,0 +1,35 @@
1
+ import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
+ import { VideoPlayer as t } from "../../../video-player/index.js";
3
+ import { Container as u, DateWrap as g, Content as S, Title as i, Description as D, ActionBtn as y } from "./styles.js";
4
+ import "react";
5
+ import "../../../icons/index.js";
6
+ import "@linaria/react";
7
+ import "../../../video-player/styles.js";
8
+ const j = ({
9
+ title: m,
10
+ instantView: o,
11
+ openInsight: c,
12
+ questionId: h
13
+ }) => {
14
+ const d = /* @__PURE__ */ new Date(), l = d.toLocaleDateString("en-US", {
15
+ weekday: "short",
16
+ month: "short",
17
+ day: "numeric"
18
+ }), p = d.toLocaleTimeString("en-US", { hour: "2-digit", minute: "2-digit" });
19
+ return /* @__PURE__ */ e(u, { children: [
20
+ /* @__PURE__ */ e(g, { children: [
21
+ l,
22
+ "・",
23
+ p
24
+ ] }),
25
+ (o == null ? void 0 : o.video) && /* @__PURE__ */ r(t, { source: o.video.url, poster: o.video.thumbnailUrl }),
26
+ /* @__PURE__ */ e(S, { children: [
27
+ /* @__PURE__ */ r(i, { children: (o == null ? void 0 : o.heading) || m }),
28
+ /* @__PURE__ */ r(D, { children: o == null ? void 0 : o.body }),
29
+ c && /* @__PURE__ */ r(y, { onClick: () => c(h), children: "View Insight" })
30
+ ] })
31
+ ] });
32
+ };
33
+ export {
34
+ j as Insight
35
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const DateWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
+ export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
+ export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & Record<never, unknown>>;
6
+ export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
+ export declare const ActionBtn: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
@@ -0,0 +1,66 @@
1
+ import { styled as o } from "@linaria/react";
2
+ const e = o.div`
3
+ box-sizing: border-box;
4
+ display: flex;
5
+ flex-direction: column;
6
+ row-gap: 16px;
7
+ padding: var(--container-padding);
8
+ background-color: var(--color-neutrals-white);
9
+ border-radius: 8px;
10
+ width: 100%;
11
+ `, t = o.div`
12
+ font-size: 12px;
13
+ font-weight: 550;
14
+ color: var(--color-neutrals-gray7);
15
+ `, i = o.div`
16
+ display: flex;
17
+ flex-direction: column;
18
+ row-gap: 12px;
19
+ `, n = o.h3`
20
+ color: var(--color-primary-green2);
21
+ font-size: 16px;
22
+ line-height: 26px;
23
+ font-weight: 400;
24
+ font-family: var(--font-serif);
25
+ font-weight: var(--font-weight-default);
26
+ `, a = o.div`
27
+ color: var(--color-neutrals-gray9);
28
+ font-size: 12px;
29
+ line-height: 24px;
30
+ font-weight: 550;
31
+ font-weight: var(--font-weight-default);
32
+ display: -webkit-box;
33
+ -webkit-box-orient: vertical;
34
+ -webkit-line-clamp: 2;
35
+ overflow: hidden;
36
+ word-break: break-all;
37
+ text-overflow: ellipsis;
38
+ max-height: 50px;
39
+ `, l = o.button`
40
+ border: none;
41
+ outline: none;
42
+ background-color: var(--color-primary-green1);
43
+ color: var(--color-white);
44
+ border-radius: 40px;
45
+ display: flex;
46
+ justify-content: center;
47
+ align-items: center;
48
+ font-size: 14px;
49
+ font-weight: 550;
50
+ width: 100%;
51
+ padding: 0px 16px;
52
+ height: 44px;
53
+
54
+ &:hover {
55
+ background-color: var(--color-primary-green2);
56
+ cursor: pointer;
57
+ }
58
+ `;
59
+ export {
60
+ l as ActionBtn,
61
+ e as Container,
62
+ i as Content,
63
+ t as DateWrap,
64
+ a as Description,
65
+ n as Title
66
+ };
@@ -1,28 +1,30 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { Insight as u } from "../../insight/index.js";
3
- import { Question as s } from "../index.js";
2
+ import { Question as u } from "../index.js";
3
+ import { Insight as s } from "../insight/index.js";
4
4
  import { QuestionsContainer as a } from "./styles.js";
5
5
  import "@streamlayer/sdk-web-types";
6
- import "../../insight/styles.js";
7
- import "@linaria/react";
8
6
  import "../../../button/index.js";
9
7
  import "../../../button/styles.js";
8
+ import "@linaria/react";
10
9
  import "../../constants.js";
11
10
  import "../styles.js";
12
11
  import "../../../icons/index.js";
13
12
  import "react";
14
- const j = ({ questions: r, openQuestion: o }) => /* @__PURE__ */ e(a, { children: r == null ? void 0 : r.map((t) => {
15
- var n, m;
16
- if (t.type === "question" && ((n = t.attributes) == null ? void 0 : n.attributes.case) === "question") {
13
+ import "../../../video-player/index.js";
14
+ import "../../../video-player/styles.js";
15
+ import "../insight/styles.js";
16
+ const C = ({ questions: r, openQuestion: o }) => /* @__PURE__ */ e(a, { children: r == null ? void 0 : r.map((t) => {
17
+ var m, n;
18
+ if (t.type === "question" && ((m = t.attributes) == null ? void 0 : m.attributes.case) === "question") {
17
19
  const i = t.attributes.attributes.value;
18
- return /* @__PURE__ */ e(s, { openQuestion: o, ...i }, i.questionId);
20
+ return /* @__PURE__ */ e(u, { openQuestion: o, ...i }, i.questionId);
19
21
  }
20
- if (t.type === "insight" && ((m = t.attributes) == null ? void 0 : m.attributes.case) === "insight") {
22
+ if (t.type === "insight" && ((n = t.attributes) == null ? void 0 : n.attributes.case) === "insight") {
21
23
  const i = t.attributes.attributes.value;
22
- return /* @__PURE__ */ e(u, { ...i, openInsight: o }, i.questionId);
24
+ return /* @__PURE__ */ e(s, { openInsight: o, ...i }, i.questionId);
23
25
  }
24
26
  return null;
25
27
  }) });
26
28
  export {
27
- j as QuestionList
29
+ C as QuestionList
28
30
  };
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { InsightHistory } from '@streamlayer/sdk-web-types';
3
- export declare const InsightDetails: React.FC<InsightHistory>;
2
+ import { InsightHistory, FeedItem } from '@streamlayer/sdk-web-types';
3
+ export declare const InsightDetails: React.FC<InsightHistory & {
4
+ created: FeedItem['created'];
5
+ }>;
@@ -1,21 +1,37 @@
1
- import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
- import { SvgIcon as d } from "../../../icons/index.js";
3
- import { VideoPlayer as e } from "../../../video-player/index.js";
4
- import { Container as p, Content as c, Title as h, Description as b, WebLinkBtn as f } from "./styles.js";
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { SvgIcon as p } from "../../../icons/index.js";
3
+ import { VideoPlayer as g } from "../../../video-player/index.js";
4
+ import { Container as u, DateWrap as S, Content as b, Title as f, Description as k, WebLinkBtn as D } from "./styles.js";
5
5
  import "@linaria/react";
6
6
  import "react";
7
7
  import "../../../video-player/styles.js";
8
- const j = ({ title: m, instantView: r }) => /* @__PURE__ */ l(p, { children: [
9
- (r == null ? void 0 : r.video) && /* @__PURE__ */ o(e, { source: r.video.url, poster: r.video.thumbnailUrl }),
10
- /* @__PURE__ */ l(c, { children: [
11
- /* @__PURE__ */ o(h, { children: (r == null ? void 0 : r.heading) || m }),
12
- /* @__PURE__ */ o(b, { children: r == null ? void 0 : r.body }),
13
- (r == null ? void 0 : r.webLink) && /* @__PURE__ */ l(f, { href: "webLink", target: "_blank", children: [
14
- "Explore more of the Masters History",
15
- /* @__PURE__ */ o(d, { name: "icon-external-link" })
8
+ const C = ({
9
+ created: m,
10
+ title: c,
11
+ instantView: o
12
+ }) => {
13
+ const l = new Date(m), d = l.toLocaleDateString("en-US", {
14
+ weekday: "short",
15
+ month: "short",
16
+ day: "numeric"
17
+ }), h = l.toLocaleTimeString("en-US", { hour: "2-digit", minute: "2-digit" });
18
+ return /* @__PURE__ */ r(u, { children: [
19
+ /* @__PURE__ */ r(S, { children: [
20
+ d,
21
+ "・",
22
+ h
23
+ ] }),
24
+ (o == null ? void 0 : o.video) && /* @__PURE__ */ e(g, { source: o.video.url, poster: o.video.thumbnailUrl }),
25
+ /* @__PURE__ */ r(b, { children: [
26
+ /* @__PURE__ */ e(f, { children: (o == null ? void 0 : o.heading) || c }),
27
+ /* @__PURE__ */ e(k, { children: o == null ? void 0 : o.body }),
28
+ (o == null ? void 0 : o.webLink) && /* @__PURE__ */ r(D, { href: o == null ? void 0 : o.webLink.url, target: "_blank", children: [
29
+ "Explore more of the Masters History",
30
+ /* @__PURE__ */ e(p, { name: "icon-external-link" })
31
+ ] })
16
32
  ] })
17
- ] })
18
- ] });
33
+ ] });
34
+ };
19
35
  export {
20
- j as InsightDetails
36
+ C as InsightDetails
21
37
  };
@@ -4,3 +4,4 @@ export declare const Content: import("@linaria/react").StyledComponent<import("r
4
4
  export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & Record<never, unknown>>;
5
5
  export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
6
  export declare const WebLinkBtn: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & Record<never, unknown>>;
7
+ export declare const DateWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1,10 +1,11 @@
1
1
  import { styled as o } from "@linaria/react";
2
- const t = o.div`
2
+ const e = o.div`
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  row-gap: 16px;
6
6
  padding: var(--container-padding);
7
7
  background-color: var(--color-neutrals-white);
8
+ width: 100%;
8
9
  `, r = o.div`
9
10
  display: flex;
10
11
  flex-direction: column;
@@ -33,10 +34,15 @@ const t = o.div`
33
34
  border-radius: 40px;
34
35
  border: 1px solid var(--color-primary-green1);
35
36
  text-decoration: none;
37
+ `, l = o.div`
38
+ font-size: 12px;
39
+ font-weight: 550;
40
+ color: var(--color-neutrals-gray7);
36
41
  `;
37
42
  export {
38
- t as Container,
43
+ e as Container,
39
44
  r as Content,
45
+ l as DateWrap,
40
46
  i as Description,
41
47
  n as Title,
42
48
  a as WebLinkBtn
@@ -1,16 +1,16 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import { styled as p } from "@linaria/react";
3
- import { useMemo as f, useState as g } from "react";
4
- import { DeveloperStorage as u } from "../../storage.js";
5
- import { BypassLogin as b } from "./bypassLogin.js";
6
- import { EnvToggle as h } from "./envToggle.js";
7
- import { EventInput as v } from "./eventInput.js";
8
- import { SdkKey as y } from "./sdkKey.js";
3
+ import { useMemo as g, useState as u } from "react";
4
+ import { DeveloperStorage as b } from "../../storage.js";
5
+ import { BypassLogin as h } from "./bypassLogin.js";
6
+ import { EnvToggle as v } from "./envToggle.js";
7
+ import { EventInput as y } from "./eventInput.js";
8
+ import { SdkKey as w } from "./sdkKey.js";
9
9
  import "@streamlayer/sdk-web-storage";
10
10
  import "@nanostores/react";
11
11
  import "@streamlayer/sdk-web-core";
12
12
  import "./styles.js";
13
- const w = p.div`
13
+ const D = p.div`
14
14
  position: fixed;
15
15
  bottom: 0;
16
16
  right: 0;
@@ -20,14 +20,14 @@ const w = p.div`
20
20
  background: rgba(29, 123, 255, 0.5);
21
21
  border-top-left-radius: 10px;
22
22
  backdrop-filter: blur(5px);
23
- `, D = p.div`
23
+ `, j = p.div`
24
24
  flex-direction: column;
25
25
  gap: 10px;
26
26
  margin-right: 60px;
27
27
  display: flex;
28
28
  margin-left: 10px;
29
29
  margin-top: 10px;
30
- `, j = p.button`
30
+ `, k = p.button`
31
31
  position: absolute;
32
32
  z-index: 10000;
33
33
  bottom: 10px;
@@ -66,22 +66,31 @@ const w = p.div`
66
66
  width: 100%;
67
67
  height: 4px;
68
68
  }
69
- `, q = ({ sdk: t, sdkKey: d, setSdkKey: i, env: s, setEnv: n, event: m, setEvent: l }) => {
70
- const r = f(() => new u(), []), [a, x] = g(!1);
71
- return /* @__PURE__ */ e(w, { children: [
72
- /* @__PURE__ */ e(j, { "data-opened": a.toString(), onClick: () => x((c) => !c), children: [
69
+ `, A = ({
70
+ sdk: t,
71
+ sdkKey: d,
72
+ setSdkKey: i,
73
+ env: s,
74
+ setEnv: n,
75
+ event: m,
76
+ setEvent: l,
77
+ hideAuth: x
78
+ }) => {
79
+ const r = g(() => new b(), []), [a, c] = u(!1);
80
+ return /* @__PURE__ */ e(D, { children: [
81
+ /* @__PURE__ */ e(k, { "data-opened": a.toString(), onClick: () => c((f) => !f), children: [
73
82
  /* @__PURE__ */ o("span", {}),
74
83
  /* @__PURE__ */ o("span", {}),
75
84
  /* @__PURE__ */ o("span", {})
76
85
  ] }),
77
- a && /* @__PURE__ */ e(D, { children: [
78
- n && /* @__PURE__ */ o(h, { env: s, setEnv: n, storage: r }),
79
- i && /* @__PURE__ */ o(y, { sdkKey: d, setSdkKey: i, storage: r }),
80
- t && /* @__PURE__ */ o(v, { sdk: t, storage: r, event: m, setEvent: l }),
81
- t && /* @__PURE__ */ o(b, { sdk: t, storage: r })
86
+ a && /* @__PURE__ */ e(j, { children: [
87
+ n && /* @__PURE__ */ o(v, { env: s, setEnv: n, storage: r }),
88
+ i && /* @__PURE__ */ o(w, { sdkKey: d, setSdkKey: i, storage: r }),
89
+ t && /* @__PURE__ */ o(y, { sdk: t, storage: r, event: m, setEvent: l }),
90
+ !x && t && /* @__PURE__ */ o(h, { sdk: t, storage: r })
82
91
  ] })
83
92
  ] });
84
93
  };
85
94
  export {
86
- q as Developer
95
+ A as Developer
87
96
  };