@streamlayer/react-ui 0.55.0 → 0.57.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/index.d.ts +5 -12
- package/lib/index.js +6 -115
- package/lib/ui/app/Features/Gamification/index.d.ts +0 -2
- package/lib/ui/app/Features/Gamification/index.js +4 -3
- package/lib/ui/app/Notifications/index.js +21 -15
- package/lib/ui/app/Notifications/styles.d.ts +1 -0
- package/lib/ui/app/Notifications/styles.js +17 -0
- package/lib/ui/app/masters.js +43 -31
- package/lib/ui/gamification/question/insight/styles.js +5 -0
- package/lib/ui/gamification/question/notification/index.d.ts +3 -0
- package/lib/ui/gamification/question/notification/index.js +30 -0
- package/lib/ui/gamification/question/notification/insight/index.d.ts +6 -0
- package/lib/ui/gamification/question/notification/insight/index.js +23 -0
- package/lib/ui/gamification/question/notification/insight/styles.d.ts +6 -0
- package/lib/ui/gamification/question/notification/insight/styles.js +60 -0
- package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +3 -0
- package/lib/ui/gamification/question/notification/prediction-result/index.js +7 -0
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +2 -0
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +12 -0
- package/lib/ui/gamification/question/notification/styles.d.ts +9 -0
- package/lib/ui/gamification/question/notification/styles.js +87 -0
- package/lib/ui/show-in/index.d.ts +1 -0
- package/lib/ui/show-in/index.js +35 -6
- package/package.json +15 -10
- package/lib/ui/demo/DemoPoints.d.ts +0 -5
- package/lib/ui/demo/DemoPoints.js +0 -28
- package/lib/ui/demo/Gamification.d.ts +0 -7
- package/lib/ui/demo/Gamification.js +0 -117
- package/lib/ui/demo/Highlights.d.ts +0 -7
- package/lib/ui/demo/Highlights.js +0 -68
- package/lib/ui/demo/Login.d.ts +0 -5
- package/lib/ui/demo/Login.js +0 -26
- package/lib/ui/demo/components/EventProvider.d.ts +0 -2
- package/lib/ui/demo/components/EventProvider.js +0 -5
- package/lib/ui/demo/components/Insight.d.ts +0 -8
- package/lib/ui/demo/components/Insight.js +0 -32
- package/lib/ui/demo/components/Insights.d.ts +0 -7
- package/lib/ui/demo/components/Insights.js +0 -15
- package/lib/ui/demo/components/Leaderboard.d.ts +0 -5
- package/lib/ui/demo/components/Leaderboard.js +0 -35
- package/lib/ui/demo/components/Question.d.ts +0 -7
- package/lib/ui/demo/components/Question.js +0 -89
- package/lib/ui/demo/components/QuestionsList.d.ts +0 -6
- package/lib/ui/demo/components/QuestionsList.js +0 -24
- package/lib/ui/demo/components/UserSummary.d.ts +0 -5
- package/lib/ui/demo/components/UserSummary.js +0 -17
- package/lib/ui/demo/components/index.d.ts +0 -7
- package/lib/ui/demo/components/index.js +0 -74
- package/lib/ui/demo/index.d.ts +0 -5
- package/lib/ui/demo/index.js +0 -184
- package/lib/ui/demo/styles.d.ts +0 -6
- package/lib/ui/demo/styles.js +0 -58
- package/lib/ui/notifications/decorator.d.ts +0 -4
- package/lib/ui/notifications/decorator.js +0 -64
- package/lib/ui/notifications/index.d.ts +0 -5
- package/lib/ui/notifications/index.js +0 -28
- package/lib/ui/notifications/notification/index.d.ts +0 -6
- package/lib/ui/notifications/notification/index.js +0 -36
- package/lib/ui/notifications/notification/onboarding-inapp/index.d.ts +0 -3
- package/lib/ui/notifications/notification/onboarding-inapp/index.js +0 -25
- package/lib/ui/notifications/notification/onboarding-inapp/styles.d.ts +0 -12
- package/lib/ui/notifications/notification/onboarding-inapp/styles.js +0 -77
- package/lib/ui/notifications/notification/question-inapp/index.d.ts +0 -3
- package/lib/ui/notifications/notification/question-inapp/index.js +0 -23
- package/lib/ui/notifications/notification/question-inapp/styles.d.ts +0 -10
- package/lib/ui/notifications/notification/question-inapp/styles.js +0 -61
- package/lib/ui/notifications/notification/styles.d.ts +0 -2
- package/lib/ui/notifications/notification/styles.js +0 -32
- package/lib/ui/notifications/styles.d.ts +0 -2
- package/lib/ui/notifications/styles.js +0 -15
package/lib/index.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export * from './ui/gamification/question/list';
|
|
7
|
-
export * from './ui/gamification/user-statistics';
|
|
8
|
-
export * from './ui/gamification/vote';
|
|
9
|
-
export * from './ui/demo';
|
|
10
|
-
export * from './ui/gamification/points';
|
|
11
|
-
export * from './ui/theme';
|
|
12
|
-
export * from './ui/theme/theme';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Demo: React.FC<{
|
|
3
|
+
sdk: unknown;
|
|
4
|
+
}>;
|
|
5
|
+
export { StreamLayerThemeProvider } from './ui/theme';
|
package/lib/index.js
CHANGED
|
@@ -1,119 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Login as Eo } from "./ui/login/index.js";
|
|
3
|
-
import { Onboarding as Go } from "./ui/gamification/onboarding/index.js";
|
|
4
|
-
import { ActivePages as Jo, Tab as Ko, Tabs as Mo } from "./ui/gamification/tabs/index.js";
|
|
5
|
-
import { Question as Ro } from "./ui/gamification/question/index.js";
|
|
6
|
-
import { QuestionList as Xo } from "./ui/gamification/question/list/index.js";
|
|
7
|
-
import { UserStatistics as Zo } from "./ui/gamification/user-statistics/index.js";
|
|
8
|
-
import { Vote as $o } from "./ui/gamification/vote/index.js";
|
|
9
|
-
import { Demo as rr } from "./ui/demo/index.js";
|
|
10
|
-
import { Points as mr } from "./ui/gamification/points/index.js";
|
|
11
|
-
import { StreamLayerThemeProvider as ir } from "./ui/theme/index.js";
|
|
12
|
-
import { ThemeVariables as sr, resetCss as fr, theme as xr, themeStr as ar } from "./ui/theme/theme.js";
|
|
1
|
+
import { StreamLayerThemeProvider as a } from "./ui/theme/index.js";
|
|
13
2
|
import "react/jsx-runtime";
|
|
14
|
-
import "
|
|
15
|
-
import "./icon-exit-d3f9fc80.js";
|
|
16
|
-
import "./ui/notifications/notification/question-inapp/styles.js";
|
|
17
|
-
import "@linaria/react";
|
|
18
|
-
import "react-auth-code-input";
|
|
19
|
-
import "react-phone-number-input";
|
|
20
|
-
import "./ui/timer/index.js";
|
|
21
|
-
import "react-countdown-circle-timer";
|
|
22
|
-
import "./ui/theme/constants.js";
|
|
23
|
-
import "./utils/login.js";
|
|
24
|
-
import "@connectrpc/connect";
|
|
25
|
-
import "@connectrpc/connect-web";
|
|
26
|
-
import "@streamlayer/sl-eslib/users/users_connect";
|
|
27
|
-
import "./ui/login/styles.js";
|
|
28
|
-
import "./ui/gamification/onboarding/components/onboarding-slides/onboarding-instructions/index.js";
|
|
29
|
-
import "./ui/gamification/onboarding/components/onboarding-slides/onboarding-instructions/styles.js";
|
|
30
|
-
import "./ui/gamification/onboarding/components/onboarding-slides/onboarding-invite-card/index.js";
|
|
31
|
-
import "./ui/gamification/onboarding/components/onboarding-slides/onboarding-invite-card/styles.js";
|
|
32
|
-
import "./ui/gamification/onboarding/components/onboarding-slides/onboarding-rules/index.js";
|
|
33
|
-
import "./ui/gamification/onboarding/components/onboarding-slides/onboarding-rules/styles.js";
|
|
34
|
-
import "./ui/gamification/onboarding/styles.js";
|
|
35
|
-
import "./ui/gamification/tabs/styles.js";
|
|
36
|
-
import "@streamlayer/sdk-web-types";
|
|
37
|
-
import "./ui/button/index.js";
|
|
38
|
-
import "./ui/button/styles.js";
|
|
39
|
-
import "./ui/gamification/constants.js";
|
|
40
|
-
import "./ui/gamification/question/styles.js";
|
|
41
|
-
import "./ui/icons/index.js";
|
|
42
|
-
import "./ui/gamification/question/insight/index.js";
|
|
43
|
-
import "./ui/video-player/index.js";
|
|
44
|
-
import "./ui/video-player/styles.js";
|
|
45
|
-
import "./ui/gamification/question/insight/styles.js";
|
|
46
|
-
import "./ui/gamification/question/list/styles.js";
|
|
47
|
-
import "./utils/common.js";
|
|
48
|
-
import "./ui/gamification/user-statistics/components/rank/index.js";
|
|
49
|
-
import "./ui/gamification/user-statistics/components/rank/styles.js";
|
|
50
|
-
import "./ui/gamification/user-statistics/components/statistic/index.js";
|
|
51
|
-
import "./ui/gamification/user-statistics/components/statistic/styles.js";
|
|
52
|
-
import "./ui/gamification/user-statistics/styles.js";
|
|
53
|
-
import "./ui/app/styles.js";
|
|
54
|
-
import "./ui/gamification/vote/feedback/index.js";
|
|
55
|
-
import "./ui/gamification/vote/feedback/styles.js";
|
|
56
|
-
import "./ui/gamification/vote/styles.js";
|
|
57
|
-
import "./ui/gamification/vote/vote-option/index.js";
|
|
58
|
-
import "./ui/gamification/vote/vote-option/styles.js";
|
|
59
|
-
import "./ui/gamification/vote/win-bar/index.js";
|
|
60
|
-
import "./ui/gamification/vote/win-bar/styles.js";
|
|
61
|
-
import "@streamlayer/sdk-web-interfaces";
|
|
62
|
-
import "@streamlayer/sdk-web-features";
|
|
63
|
-
import "@streamlayer/sdk-web-api";
|
|
64
|
-
import "@streamlayer/sdk-web-storage";
|
|
65
|
-
import "@nanostores/react";
|
|
66
|
-
import "./ui/notifications/index.js";
|
|
67
|
-
import "./ui/notifications/notification/index.js";
|
|
68
|
-
import "@streamlayer/sdk-web-notifications";
|
|
69
|
-
import "./ui/notifications/notification/onboarding-inapp/index.js";
|
|
70
|
-
import "./ui/notifications/notification/onboarding-inapp/styles.js";
|
|
71
|
-
import "./ui/notifications/notification/styles.js";
|
|
72
|
-
import "./ui/notifications/styles.js";
|
|
73
|
-
import "./ui/demo/Gamification.js";
|
|
74
|
-
import "./ui/demo/components/UserSummary.js";
|
|
75
|
-
import "./ui/demo/components/QuestionsList.js";
|
|
76
|
-
import "./ui/demo/components/Question.js";
|
|
77
|
-
import "./ui/gamification/insight/styles.js";
|
|
78
|
-
import "./ui/gamification/insight-list/styles.js";
|
|
79
|
-
import "./ui/gamification/common-header/styles.js";
|
|
80
|
-
import "./ui/gamification/detailed-insight/styles.js";
|
|
81
|
-
import "./ui/demo/components/Leaderboard.js";
|
|
82
|
-
import "./ui/gamification/leaderboard/index.js";
|
|
83
|
-
import "react-virtualized-auto-sizer";
|
|
84
|
-
import "react-window";
|
|
85
|
-
import "react-window-infinite-loader";
|
|
86
|
-
import "./ui/gamification/leaderboard/list-item/index.js";
|
|
87
|
-
import "./ui/gamification/leaderboard/list-item/styles.js";
|
|
88
|
-
import "./ui/demo/styles.js";
|
|
89
|
-
import "./ui/demo/Highlights.js";
|
|
90
|
-
import "./ui/demo/components/Insights.js";
|
|
91
|
-
import "./ui/gamification/insight-list/index.js";
|
|
92
|
-
import "./ui/gamification/insight/index.js";
|
|
93
|
-
import "./ui/demo/components/Insight.js";
|
|
94
|
-
import "./ui/gamification/detailed-insight/index.js";
|
|
95
|
-
import "./ui/gamification/common-header/index.js";
|
|
96
|
-
import "./ui/demo/Login.js";
|
|
97
|
-
import "@streamlayer/sdk-web-anonymous-auth";
|
|
98
|
-
import "./ui/gamification/points/styles.js";
|
|
99
|
-
import "./ui/theme/breakpoints.js";
|
|
3
|
+
import "./ui/theme/theme.js";
|
|
100
4
|
import "@linaria/core";
|
|
5
|
+
import "./ui/theme/constants.js";
|
|
6
|
+
const t = () => null;
|
|
101
7
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
Eo as Login,
|
|
105
|
-
Go as Onboarding,
|
|
106
|
-
mr as Points,
|
|
107
|
-
Ro as Question,
|
|
108
|
-
zo as QuestionInApp,
|
|
109
|
-
Xo as QuestionList,
|
|
110
|
-
ir as StreamLayerThemeProvider,
|
|
111
|
-
Ko as Tab,
|
|
112
|
-
Mo as Tabs,
|
|
113
|
-
sr as ThemeVariables,
|
|
114
|
-
Zo as UserStatistics,
|
|
115
|
-
$o as Vote,
|
|
116
|
-
fr as resetCss,
|
|
117
|
-
xr as theme,
|
|
118
|
-
ar as themeStr
|
|
8
|
+
t as Demo,
|
|
9
|
+
a as StreamLayerThemeProvider
|
|
119
10
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type Gamification as GamificationClass } from '@streamlayer/feature-gamification';
|
|
3
|
-
import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
4
3
|
export declare const GamificationOverlay: React.FC<{
|
|
5
4
|
gamification: GamificationClass;
|
|
6
|
-
sdk: StreamLayerSDK;
|
|
7
5
|
className?: string;
|
|
8
6
|
}>;
|
|
9
7
|
export default GamificationOverlay;
|
|
@@ -18,6 +18,7 @@ import "../../../gamification/user-statistics/components/rank/styles.js";
|
|
|
18
18
|
import "../../../gamification/user-statistics/components/statistic/index.js";
|
|
19
19
|
import "../../../gamification/user-statistics/components/statistic/styles.js";
|
|
20
20
|
import "../../../gamification/user-statistics/styles.js";
|
|
21
|
+
import "@linaria/core";
|
|
21
22
|
import "../../../gamification/vote/index.js";
|
|
22
23
|
import "../../../gamification/vote/feedback/index.js";
|
|
23
24
|
import "../../../gamification/vote/feedback/styles.js";
|
|
@@ -71,7 +72,7 @@ const m = n(u)`
|
|
|
71
72
|
& > div {
|
|
72
73
|
width: 100%;
|
|
73
74
|
}
|
|
74
|
-
`,
|
|
75
|
+
`, br = ({ gamification: t, className: o }) => {
|
|
75
76
|
const s = e(t.openedQuestion.$store), i = e(t.openedUser);
|
|
76
77
|
return /* @__PURE__ */ p(d, { children: [
|
|
77
78
|
s && /* @__PURE__ */ r(m, { className: o, children: /* @__PURE__ */ r(f, { gamification: t }) }),
|
|
@@ -83,6 +84,6 @@ const m = n(u)`
|
|
|
83
84
|
] });
|
|
84
85
|
};
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
br as GamificationOverlay,
|
|
88
|
+
br as default
|
|
88
89
|
};
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "../../
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useStore as d } from "@nanostores/react";
|
|
3
|
+
import { useMemo as c } from "react";
|
|
4
|
+
import { NotificationType as o } from "@streamlayer/sdk-web-notifications";
|
|
5
|
+
import { Notification as n } from "../../gamification/question/notification/index.js";
|
|
6
|
+
import { Container as e } from "./styles.js";
|
|
7
|
+
import "@streamlayer/sdk-web-types";
|
|
8
|
+
import "../../gamification/constants.js";
|
|
9
|
+
import "../../gamification/question/notification/insight/index.js";
|
|
10
|
+
import "../../video-player/index.js";
|
|
11
|
+
import "../../icons/index.js";
|
|
9
12
|
import "@linaria/react";
|
|
10
|
-
import "../../
|
|
11
|
-
import "
|
|
12
|
-
import "../../
|
|
13
|
-
import "../../
|
|
14
|
-
import "
|
|
15
|
-
const
|
|
13
|
+
import "../../video-player/styles.js";
|
|
14
|
+
import "../../gamification/question/notification/insight/styles.js";
|
|
15
|
+
import "../../gamification/question/notification/styles.js";
|
|
16
|
+
import "../../show-in/index.js";
|
|
17
|
+
import "@linaria/core";
|
|
18
|
+
const R = ({ sdk: m }) => {
|
|
19
|
+
const p = m.getNotificationsStore(), t = d(p), i = c(() => t != null && t.size ? t.values().next().value : null, [t]);
|
|
20
|
+
return (i == null ? void 0 : i.type) === o.QUESTION ? /* @__PURE__ */ r(e, { hiding: i.hiding, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(n, { ...i }) }) }) : (i == null ? void 0 : i.type) === o.QUESTION_RESOLVED ? /* @__PURE__ */ r(e, { hiding: i.hiding, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(n, { ...i }) }) }) : (i == null ? void 0 : i.type) === o.ONBOARDING ? /* @__PURE__ */ r(e, { hiding: i.hiding, children: /* @__PURE__ */ r("div", { children: "Onboarding" }) }) : null;
|
|
21
|
+
};
|
|
16
22
|
export {
|
|
17
|
-
|
|
23
|
+
R as SDKNotifications
|
|
18
24
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Container: any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { styled as i } from "@linaria/react";
|
|
2
|
+
import { ShowIn as a } from "../../show-in/index.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "@linaria/core";
|
|
5
|
+
const d = i(a)`
|
|
6
|
+
position: relative;
|
|
7
|
+
top: var(--header-height);
|
|
8
|
+
|
|
9
|
+
animation-duration: calc(var(--animation-duration) * 3);
|
|
10
|
+
|
|
11
|
+
& > div {
|
|
12
|
+
padding: var(--container-padding) calc(var(--container-padding) * 2);
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
export {
|
|
16
|
+
d as Container
|
|
17
|
+
};
|
package/lib/ui/app/masters.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsxs as y, jsx as
|
|
2
|
-
import { resetCss as
|
|
3
|
-
import { ActiveFeature as
|
|
4
|
-
import { MastersNavigation as
|
|
5
|
-
import {
|
|
1
|
+
import { jsxs as y, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { resetCss as a } from "../theme/theme.js";
|
|
3
|
+
import { ActiveFeature as S } from "./Features/index.js";
|
|
4
|
+
import { MastersNavigation as g } from "./Navigation/MastersNavigation/index.js";
|
|
5
|
+
import { SDKNotifications as h } from "./Notifications/index.js";
|
|
6
|
+
import { SDKContainer as b, SDKScrollContainer as n } from "./styles.js";
|
|
6
7
|
import { useMastersApp as k } from "./useMastersApp.js";
|
|
7
|
-
import { useSdkFeature as
|
|
8
|
-
import { ChannelsButtonId as
|
|
9
|
-
import { LeaderBoardButtonId as
|
|
8
|
+
import { useSdkFeature as A } from "./useSdkFeature.js";
|
|
9
|
+
import { ChannelsButtonId as C } from "../navigation/button/Channels.js";
|
|
10
|
+
import { LeaderBoardButtonId as s } from "../navigation/button/LeaderBoard.js";
|
|
10
11
|
import { FeaturedGroupsButtonId as d } from "../navigation/button/FeaturedGroups.js";
|
|
11
12
|
import "@linaria/core";
|
|
12
13
|
import "../theme/constants.js";
|
|
@@ -18,44 +19,55 @@ import "@streamlayer/sdk-web-interfaces";
|
|
|
18
19
|
import "../navigation/masters.js";
|
|
19
20
|
import "@linaria/react";
|
|
20
21
|
import "../navigation/index.js";
|
|
22
|
+
import "@streamlayer/sdk-web-notifications";
|
|
23
|
+
import "../gamification/question/notification/index.js";
|
|
24
|
+
import "../gamification/constants.js";
|
|
25
|
+
import "../gamification/question/notification/insight/index.js";
|
|
26
|
+
import "../video-player/index.js";
|
|
21
27
|
import "../icons/index.js";
|
|
28
|
+
import "../video-player/styles.js";
|
|
29
|
+
import "../gamification/question/notification/insight/styles.js";
|
|
30
|
+
import "../gamification/question/notification/styles.js";
|
|
31
|
+
import "./Notifications/styles.js";
|
|
32
|
+
import "../show-in/index.js";
|
|
22
33
|
import "../navigation/button/index.js";
|
|
23
34
|
import "../navigation/button/styles.js";
|
|
24
|
-
const
|
|
25
|
-
const [,
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
},
|
|
28
|
-
const { sdkEnabled:
|
|
29
|
-
return /* @__PURE__ */ y(
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
const x = ({ sdk: i, className: e }) => {
|
|
36
|
+
const [, m] = A(i);
|
|
37
|
+
return /* @__PURE__ */ o(S, { className: e, feature: m, sdk: i });
|
|
38
|
+
}, mt = ({ sdk: i, overlays: e, children: m }) => {
|
|
39
|
+
const { sdkEnabled: t, sdkReady: l, activeOverlay: r, activateAndLoadOverlay: c, enableSdk: f, disableSdk: u, isLogged: p } = k(i);
|
|
40
|
+
return /* @__PURE__ */ y(b, { children: [
|
|
41
|
+
t && /* @__PURE__ */ o(
|
|
42
|
+
g,
|
|
32
43
|
{
|
|
33
44
|
sdkReady: l,
|
|
34
|
-
activeOverlay:
|
|
35
|
-
className:
|
|
45
|
+
activeOverlay: r,
|
|
46
|
+
className: a,
|
|
36
47
|
setActiveOverlay: (v) => c("", v)
|
|
37
48
|
}
|
|
38
49
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
50
|
+
t && /* @__PURE__ */ o(h, { sdk: i }),
|
|
51
|
+
/* @__PURE__ */ o(
|
|
52
|
+
n,
|
|
41
53
|
{
|
|
42
|
-
"data-nav":
|
|
43
|
-
style: { display: !
|
|
44
|
-
children:
|
|
54
|
+
"data-nav": t.toString(),
|
|
55
|
+
style: { display: !t || r === C ? "block" : "none" },
|
|
56
|
+
children: m && m({ enableSdk: f, disableSdk: u })
|
|
45
57
|
}
|
|
46
58
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
59
|
+
/* @__PURE__ */ o(
|
|
60
|
+
n,
|
|
49
61
|
{
|
|
50
|
-
"data-nav":
|
|
51
|
-
style: { display:
|
|
52
|
-
children:
|
|
62
|
+
"data-nav": t.toString(),
|
|
63
|
+
style: { display: r === s ? "block" : "none" },
|
|
64
|
+
children: e && r === s && e[r]
|
|
53
65
|
}
|
|
54
66
|
),
|
|
55
|
-
|
|
56
|
-
!
|
|
67
|
+
p && t && r === d && /* @__PURE__ */ o(x, { className: a, sdk: i }),
|
|
68
|
+
!p && t && r === d && /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "You are not logged in." })
|
|
57
69
|
] });
|
|
58
70
|
};
|
|
59
71
|
export {
|
|
60
|
-
|
|
72
|
+
mt as MastersApp
|
|
61
73
|
};
|
|
@@ -8,6 +8,11 @@ const e = o.div`
|
|
|
8
8
|
background-color: var(--color-neutrals-white);
|
|
9
9
|
border-radius: 8px;
|
|
10
10
|
width: 100%;
|
|
11
|
+
border: 1px solid var(--color-neutrals-white);
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
border-color: var(--color-neutrals-gray4);
|
|
15
|
+
}
|
|
11
16
|
`, t = o.div`
|
|
12
17
|
font-size: 12px;
|
|
13
18
|
font-weight: 550;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionType as m } from "@streamlayer/sdk-web-types";
|
|
3
|
+
import { QuestionTypeData as l } from "../../constants.js";
|
|
4
|
+
import { Insight as a } from "./insight/index.js";
|
|
5
|
+
import { Container as s, CloseIconWrap as d, CloseIcon as f, Header as h, TypeIcon as C, TypeName as I, Question as T, AnswerButton as A } from "./styles.js";
|
|
6
|
+
import "../../../video-player/index.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import "../../../icons/index.js";
|
|
9
|
+
import "@linaria/react";
|
|
10
|
+
import "../../../video-player/styles.js";
|
|
11
|
+
import "./insight/styles.js";
|
|
12
|
+
const b = ({
|
|
13
|
+
close: c,
|
|
14
|
+
action: t,
|
|
15
|
+
data: { questionType: o, question: i, insight: p }
|
|
16
|
+
}) => {
|
|
17
|
+
const n = l[o];
|
|
18
|
+
return n ? /* @__PURE__ */ e(s, { children: [
|
|
19
|
+
/* @__PURE__ */ r(d, { onClick: c, children: /* @__PURE__ */ r(f, { name: "icon-cross" }) }),
|
|
20
|
+
/* @__PURE__ */ e(h, { children: [
|
|
21
|
+
/* @__PURE__ */ r(C, { name: n.iconName }),
|
|
22
|
+
/* @__PURE__ */ r(I, { children: n.label })
|
|
23
|
+
] }),
|
|
24
|
+
o === m.FACTOID ? /* @__PURE__ */ r(a, { ...p, action: t }) : /* @__PURE__ */ r(T, { children: i == null ? void 0 : i.title }),
|
|
25
|
+
o !== m.FACTOID && /* @__PURE__ */ r(A, { onClick: t, children: "Answer" })
|
|
26
|
+
] }) : null;
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
b as Notification
|
|
30
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { VideoPlayer as l } from "../../../../video-player/index.js";
|
|
3
|
+
import { InsightContainer as m, InsightContent as s, Title as h, Description as p, ActionBtn as c } from "./styles.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../../../../icons/index.js";
|
|
6
|
+
import "@linaria/react";
|
|
7
|
+
import "../../../../video-player/styles.js";
|
|
8
|
+
const a = ({
|
|
9
|
+
video: i,
|
|
10
|
+
heading: o,
|
|
11
|
+
body: e,
|
|
12
|
+
action: t
|
|
13
|
+
}) => /* @__PURE__ */ n(m, { children: [
|
|
14
|
+
i && /* @__PURE__ */ r(l, { source: i.url, poster: i.thumbnailUrl }),
|
|
15
|
+
/* @__PURE__ */ n(s, { children: [
|
|
16
|
+
/* @__PURE__ */ r(h, { children: o }),
|
|
17
|
+
/* @__PURE__ */ r(p, { children: e }),
|
|
18
|
+
t && /* @__PURE__ */ r(c, { onClick: t, children: "View Insight" })
|
|
19
|
+
] })
|
|
20
|
+
] });
|
|
21
|
+
export {
|
|
22
|
+
a as Insight
|
|
23
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const InsightContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const InsightContent: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
+
export declare const ActionBtn: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { styled as o } from "@linaria/react";
|
|
2
|
+
const r = o.div`
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
row-gap: 16px;
|
|
7
|
+
background-color: var(--color-neutrals-white);
|
|
8
|
+
border-radius: 8px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
`, t = o.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
row-gap: 12px;
|
|
14
|
+
`, i = o.h3`
|
|
15
|
+
color: var(--color-primary-green2);
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
line-height: 26px;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-family: var(--font-serif);
|
|
20
|
+
font-weight: var(--font-weight-default);
|
|
21
|
+
`, n = o.div`
|
|
22
|
+
color: var(--color-neutrals-gray9);
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
line-height: 24px;
|
|
25
|
+
font-weight: 550;
|
|
26
|
+
font-weight: var(--font-weight-default);
|
|
27
|
+
display: -webkit-box;
|
|
28
|
+
-webkit-box-orient: vertical;
|
|
29
|
+
-webkit-line-clamp: 2;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
word-break: break-all;
|
|
32
|
+
text-overflow: ellipsis;
|
|
33
|
+
max-height: 50px;
|
|
34
|
+
`, l = o.button`
|
|
35
|
+
border: none;
|
|
36
|
+
outline: none;
|
|
37
|
+
background-color: var(--color-primary-green1);
|
|
38
|
+
color: var(--color-white);
|
|
39
|
+
border-radius: 40px;
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
align-items: center;
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
font-weight: 550;
|
|
45
|
+
width: 100%;
|
|
46
|
+
padding: 0px 16px;
|
|
47
|
+
height: 44px;
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
background-color: var(--color-primary-green2);
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
export {
|
|
55
|
+
l as ActionBtn,
|
|
56
|
+
n as Description,
|
|
57
|
+
r as InsightContainer,
|
|
58
|
+
t as InsightContent,
|
|
59
|
+
i as Title
|
|
60
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { PredictionResultContainer as t } from "./styles.js";
|
|
3
|
+
import "@linaria/react";
|
|
4
|
+
const c = ({ close: r }) => /* @__PURE__ */ o(t, { children: /* @__PURE__ */ o("button", { onClick: r, children: "close" }) });
|
|
5
|
+
export {
|
|
6
|
+
c as PredictionResult
|
|
7
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { styled as r } from "@linaria/react";
|
|
2
|
+
const i = r.div`
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 118px;
|
|
6
|
+
border-radius: 10px;
|
|
7
|
+
background-color: var(--color-primary-green2);
|
|
8
|
+
position: relative;
|
|
9
|
+
`;
|
|
10
|
+
export {
|
|
11
|
+
i as PredictionResultContainer
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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 CloseIconWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const CloseIcon: any;
|
|
5
|
+
export declare const Header: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
+
export declare const TypeIcon: any;
|
|
7
|
+
export declare const TypeName: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
8
|
+
export declare const Question: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
|
+
export declare const AnswerButton: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { styled as o } from "@linaria/react";
|
|
2
|
+
import { SvgIcon as r } from "../../../icons/index.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "react";
|
|
5
|
+
const p = o.div`
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
border-radius: 8px;
|
|
9
|
+
background: #fff;
|
|
10
|
+
width: 100%;
|
|
11
|
+
padding: 16px;
|
|
12
|
+
position: relative;
|
|
13
|
+
`, a = o.div`
|
|
14
|
+
position: absolute;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
width: 20px;
|
|
19
|
+
height: 20px;
|
|
20
|
+
right: 11px;
|
|
21
|
+
top: 11px;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
`, c = o(r)`
|
|
24
|
+
g > path {
|
|
25
|
+
stroke: var(--color-neutrals-gray7);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
path {
|
|
30
|
+
stroke: var(--color-primary-green2);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`, s = o.div`
|
|
34
|
+
margin-bottom: 12px;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
`, l = o(r)`
|
|
38
|
+
width: 20px;
|
|
39
|
+
height: 20px;
|
|
40
|
+
margin-right: 4px;
|
|
41
|
+
|
|
42
|
+
path {
|
|
43
|
+
fill: var(--color-primary-green1);
|
|
44
|
+
fill-opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
`, g = o.span`
|
|
47
|
+
color: var(--color-neutrals-gray7);
|
|
48
|
+
font-weight: 550;
|
|
49
|
+
font-size: 12px;
|
|
50
|
+
`, d = o.div`
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
font-size: 16px;
|
|
53
|
+
color: var(--color-primary-green2);
|
|
54
|
+
margin-bottom: 12px;
|
|
55
|
+
padding-right: 10px;
|
|
56
|
+
font-family: var(--font-serif);
|
|
57
|
+
`, x = o.button`
|
|
58
|
+
background-color: var(--color-primary-green1);
|
|
59
|
+
color: var(--color-white);
|
|
60
|
+
border-radius: 40px;
|
|
61
|
+
border: none;
|
|
62
|
+
outline: none;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
width: 100%;
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
align-items: center;
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
font-weight: 550;
|
|
70
|
+
padding: 0px 16px;
|
|
71
|
+
height: 44px;
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
background-color: var(--color-primary-green2);
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
}
|
|
77
|
+
`;
|
|
78
|
+
export {
|
|
79
|
+
x as AnswerButton,
|
|
80
|
+
c as CloseIcon,
|
|
81
|
+
a as CloseIconWrap,
|
|
82
|
+
p as Container,
|
|
83
|
+
s as Header,
|
|
84
|
+
d as Question,
|
|
85
|
+
l as TypeIcon,
|
|
86
|
+
g as TypeName
|
|
87
|
+
};
|