@streamlayer/react-ui 1.11.3 → 1.12.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/app/app/Advertisement/index.d.ts +1 -0
- package/lib/app/app/Advertisement/index.js +86 -67
- package/lib/app/app/Features/Gamification/Tabs.js +13 -13
- package/lib/app/app/Navigation/index.js +70 -64
- package/lib/app/app/Notifications/Onboarding/index.js +66 -72
- package/lib/app/app/Notifications/index.d.ts +1 -0
- package/lib/app/app/Notifications/index.js +76 -72
- package/lib/app/app/index.js +28 -27
- package/lib/app/app/story/index.d.ts +3 -1
- package/lib/app/app/story/index.js +29 -26
- package/lib/app/app/story/promotion/video.js +34 -34
- package/lib/app/app/styles.d.ts +5 -0
- package/lib/app/app/styles.js +25 -20
- package/lib/assets/style.css +1 -1
- package/lib/ui/advertisement/index.d.ts +3 -0
- package/lib/ui/advertisement/index.js +25 -19
- package/lib/ui/advertisement/mock.d.ts +1 -0
- package/lib/ui/advertisement/mock.js +39 -5
- package/lib/ui/advertisement/overlay/externalAd/controls.d.ts +5 -0
- package/lib/ui/advertisement/overlay/externalAd/controls.js +33 -0
- package/lib/ui/advertisement/overlay/externalAd/index.d.ts +2 -0
- package/lib/ui/advertisement/overlay/externalAd/index.js +121 -0
- package/lib/ui/advertisement/overlay/index.d.ts +7 -2
- package/lib/ui/advertisement/overlay/index.js +67 -58
- package/lib/ui/close-btn/index.d.ts +1 -0
- package/lib/ui/close-btn/index.js +25 -23
- package/lib/ui/gamification/question/insight/styles.d.ts +10 -2
- package/lib/ui/gamification/question/insight/styles.js +8 -7
- package/lib/ui/gamification/question/notification/prediction-result/index.js +84 -64
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +2 -0
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +36 -26
- package/lib/ui/gamification/question/twitter/styles.d.ts +5 -1
- package/lib/ui/gamification/question/twitter/styles.js +9 -8
- package/lib/ui/gamification/vote/alert/index.js +7 -8
- package/lib/ui/gamification/vote/alert/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/alert/styles.js +12 -6
- package/lib/ui/gamification/vote/vote-option/index.js +59 -58
- package/lib/ui/icons/index.d.ts +1 -0
- package/lib/ui/icons/index.js +45 -44
- package/lib/ui/skeleton/index.d.ts +1 -1
- package/lib/ui/theme/constants.d.ts +32 -1
- package/lib/ui/theme/constants.js +50 -17
- package/lib/ui/theme/masters-theme.js +9 -4
- package/lib/ui/theme/theme.js +16 -9
- package/lib/ui/video-player/index.d.ts +2 -0
- package/lib/ui/video-player/index.js +57 -56
- package/package.json +14 -14
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
const T = {
|
|
2
|
-
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
3
2
|
BLUE_QUESTION_ACTION_BTN: "#1589ee",
|
|
4
3
|
WHITE: "#FFFFFF",
|
|
5
4
|
BLUE: "#2d6ffd",
|
|
6
5
|
GREY_PRIMARY: "#909395",
|
|
7
6
|
GREY_PRIMARY_ONBOARDING_INAPP: "#B5B7B8",
|
|
8
7
|
PRIMARY_1: "#1D7BFF",
|
|
8
|
+
// main
|
|
9
9
|
PRIMARY_2: "#095CD1",
|
|
10
|
+
// hover, active, ...etc (darken 10%)
|
|
10
11
|
PRIMARY_TEXT: "#090E13",
|
|
12
|
+
SECONDARY_TEXT: "#090E13",
|
|
13
|
+
QUESTION_TYPE_ICON: "#1D7BFF",
|
|
11
14
|
SUCCESS: "#107D57",
|
|
12
15
|
UNSUCCESS: "#DF2F3B",
|
|
13
16
|
SECONDARY_RED1: "#DF2F3B",
|
|
@@ -20,7 +23,37 @@ const T = {
|
|
|
20
23
|
NEUTRALS_GRAY5: "#B1B3B3",
|
|
21
24
|
NEUTRALS_GRAY6: "#888B8D",
|
|
22
25
|
NEUTRALS_GRAY7: "#6B6F73",
|
|
23
|
-
NEUTRALS_GRAY9: "#25282A"
|
|
26
|
+
NEUTRALS_GRAY9: "#25282A",
|
|
27
|
+
SDK_CONTAINER_BG: "#F7F7F7",
|
|
28
|
+
SDK_WHITE_CONTAINER_BG: "#fff",
|
|
29
|
+
SDK_DARK_CONTAINER_BG: "#fff",
|
|
30
|
+
SDK_PREDICTION_RESULT_SUCCESS_BG: "#fff",
|
|
31
|
+
SDK_PREDICTION_RESULT_INCORRECT_BG: "#fff",
|
|
32
|
+
SDK_PREDICTION_RESULT_SUCCESS_TEXT: "#107D57",
|
|
33
|
+
SDK_PREDICTION_RESULT_ERROR_TITLE: "#090E13",
|
|
34
|
+
SDK_PREDICTION_RESULT_ERROR_SUBTITLE: "#DF2F3B",
|
|
35
|
+
SDK_PREDICTION_RESULT_CLOSE_ICON: "#6B6F73",
|
|
36
|
+
SDK_PREDICTION_FEEDBACK_SUCCESS_ICON: "#107D57",
|
|
37
|
+
SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1: "#CD2525",
|
|
38
|
+
SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2: "#fff",
|
|
39
|
+
PREDICTION_BG_LINES_CORRECT: "#095CD1",
|
|
40
|
+
PREDICTION_BG_LINES_INCORRECT: "#888B8D",
|
|
41
|
+
SKELETON_COLOR_1: "#f1efef",
|
|
42
|
+
SKELETON_COLOR_2: "#f9f8f8",
|
|
43
|
+
TABS_CONTAINER_BG: "#F2F2F1",
|
|
44
|
+
TABS_ACTIVE_BG: "#FFFFFF",
|
|
45
|
+
TABS_COLOR: "#6B6F73",
|
|
46
|
+
TABS_ACTIVE_COLOR: "#1D7BFF",
|
|
47
|
+
CARD_BG: "#FFFFFF",
|
|
48
|
+
CARD_BORDER: "#fff",
|
|
49
|
+
BORDER: "#E8E8E8",
|
|
50
|
+
VOTE_BTN_BG: "#F7F7F7",
|
|
51
|
+
VOTE_BTN_BORDER: "transparent",
|
|
52
|
+
VOTE_BTN_DISABLED_BORDER: "#B1B3B3",
|
|
53
|
+
VOTE_BTN_SELECTED_BORDER: "#25282A",
|
|
54
|
+
VOTE_BTN_NOT_SELECTED_BORDER: "#E8E8E8",
|
|
55
|
+
VOTE_BTN_SELECTED_BG: "#FFFFFF",
|
|
56
|
+
VOTE_BTN_NOT_SELECTED_BG: "#FFFFFF"
|
|
24
57
|
}, F = {
|
|
25
58
|
BG_PRIMARY: "#13212b",
|
|
26
59
|
BG_SECONDARY: "#152430",
|
|
@@ -31,7 +64,7 @@ const T = {
|
|
|
31
64
|
TEXT_SECONDARY: "rgba(255, 255, 255, 0.8)",
|
|
32
65
|
TEXT_SECONDARY1: "#878787",
|
|
33
66
|
WHITE: "#fff"
|
|
34
|
-
},
|
|
67
|
+
}, D = ["#107D57", "#DF2F3B", "#DF2F3B", "#E8E8E8"], I = "#cee5de", O = "#f9d6d8", S = "#E8E8E8", A = {
|
|
35
68
|
REGULAR: "'SF Pro Text', Arial, Helvetica, sans-serif",
|
|
36
69
|
SERIF: "'SF Pro Display', Arial, Helvetica, sans-serif",
|
|
37
70
|
COLOR: "#fff",
|
|
@@ -44,33 +77,33 @@ const T = {
|
|
|
44
77
|
SIZE_DEFAULT2: "12px",
|
|
45
78
|
LINE_HEIGHT: "24px",
|
|
46
79
|
MARGIN_TITLE_DEFAULT: "24px 0px"
|
|
47
|
-
},
|
|
80
|
+
}, C = {
|
|
48
81
|
xs: 324,
|
|
49
82
|
sm: 576,
|
|
50
83
|
md: 768,
|
|
51
84
|
lg: 992,
|
|
52
85
|
xl: 1200,
|
|
53
86
|
xxl: 1440
|
|
54
|
-
},
|
|
87
|
+
}, N = {
|
|
55
88
|
landscape: "landscape",
|
|
56
89
|
portrait: "portrait"
|
|
57
|
-
},
|
|
90
|
+
}, B = Object.entries(T).reduce((E, [_, R]) => `
|
|
58
91
|
${E}
|
|
59
|
-
--color-${
|
|
60
|
-
`, ""),
|
|
92
|
+
--color-${_.toLowerCase().replaceAll("_", "-")}: ${R};
|
|
93
|
+
`, ""), L = Object.entries(F).reduce((E, [_, R]) => `
|
|
61
94
|
${E}
|
|
62
|
-
--color-adv-${
|
|
95
|
+
--color-adv-${_.toLowerCase().replaceAll("_", "-")}: ${R};
|
|
63
96
|
`, "");
|
|
64
97
|
export {
|
|
65
|
-
|
|
98
|
+
C as BREAKPOINTS,
|
|
66
99
|
T as COLORS,
|
|
67
100
|
F as COLORS_ADVERTISEMENT,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
101
|
+
A as FONT,
|
|
102
|
+
N as ORIENTATION,
|
|
103
|
+
D as TIMER_COLORS,
|
|
71
104
|
S as TIMER_GRAY,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
105
|
+
I as TIMER_GREEN,
|
|
106
|
+
O as TIMER_RED,
|
|
107
|
+
B as colors,
|
|
108
|
+
L as colorsAdvertisement
|
|
76
109
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { breakpoints as i } from "./breakpoints.js";
|
|
2
2
|
import { FONT as t } from "./constants.js";
|
|
3
3
|
const E = {
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
5
|
+
// @ts-expect-error
|
|
4
6
|
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
5
7
|
BLUE_QUESTION_ACTION_BTN: "#1589ee",
|
|
6
8
|
WHITE: "#FFFFFF",
|
|
@@ -10,6 +12,7 @@ const E = {
|
|
|
10
12
|
PRIMARY_1: "#107D57",
|
|
11
13
|
PRIMARY_2: "#006747",
|
|
12
14
|
PRIMARY_TEXT: "#006747",
|
|
15
|
+
QUESTION_TYPE_ICON: "#107D57",
|
|
13
16
|
SUCCESS: "#107D57",
|
|
14
17
|
UNSUCCESS: "#DF2F3B",
|
|
15
18
|
SECONDARY_RED1: "#DF2F3B",
|
|
@@ -32,7 +35,7 @@ const E = {
|
|
|
32
35
|
}, R = Object.entries(E).reduce((n, [a, o]) => `
|
|
33
36
|
${n}
|
|
34
37
|
--color-${a.toLowerCase().replaceAll("_", "-")}: ${o};
|
|
35
|
-
`, ""),
|
|
38
|
+
`, ""), r = `
|
|
36
39
|
${R}
|
|
37
40
|
--font-family: ${e.REGULAR};
|
|
38
41
|
--font-regular: ${e.REGULAR};
|
|
@@ -47,6 +50,7 @@ const E = {
|
|
|
47
50
|
--font-size-small: ${t.SIZE_DEFAULT2};
|
|
48
51
|
--line-height-default: ${t.LINE_HEIGHT};
|
|
49
52
|
--margin-title-default: ${t.MARGIN_TITLE_DEFAULT};
|
|
53
|
+
--font-header-title: 0.75rem;
|
|
50
54
|
|
|
51
55
|
--header-offset: 0px;
|
|
52
56
|
--header-height: 68px;
|
|
@@ -54,6 +58,7 @@ const E = {
|
|
|
54
58
|
--animation-duration: 0.5s;
|
|
55
59
|
--animation-function: ease;
|
|
56
60
|
--container-padding: 16px;
|
|
61
|
+
--max-tabs-width: 361px;
|
|
57
62
|
--border-radius: 8px;
|
|
58
63
|
--pill-offset: 0px;
|
|
59
64
|
--max-width: 600px;
|
|
@@ -79,9 +84,9 @@ const E = {
|
|
|
79
84
|
${i.intermediate("xl", "lg")`
|
|
80
85
|
--header-offset: 76px;
|
|
81
86
|
`}
|
|
82
|
-
`,
|
|
87
|
+
`, s = "m1ojpy2l";
|
|
83
88
|
export {
|
|
84
89
|
E as MASTERS_COLORS,
|
|
85
|
-
|
|
86
|
-
|
|
90
|
+
s as mastersTheme,
|
|
91
|
+
r as mastersThemeStr
|
|
87
92
|
};
|
package/lib/ui/theme/theme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { breakpoints as
|
|
2
|
+
import { breakpoints as d } from "./breakpoints.js";
|
|
3
3
|
import { colors as p, colorsAdvertisement as s, FONT as e } from "./constants.js";
|
|
4
4
|
const l = `
|
|
5
5
|
${p}
|
|
@@ -17,12 +17,15 @@ const l = `
|
|
|
17
17
|
--font-size-small: ${e.SIZE_DEFAULT2};
|
|
18
18
|
--line-height-default: ${e.LINE_HEIGHT};
|
|
19
19
|
--margin-title-default: ${e.MARGIN_TITLE_DEFAULT};
|
|
20
|
+
--font-header-title: 0.75rem;
|
|
20
21
|
|
|
21
22
|
--header-offset: 0px;
|
|
22
23
|
--header-height: 68px;
|
|
23
24
|
--animation-duration: 0.5s;
|
|
24
25
|
--animation-function: ease;
|
|
25
26
|
--container-padding: 16px;
|
|
27
|
+
--summary-container-padding-bottom: 16px;
|
|
28
|
+
--max-tabs-width: 100%;
|
|
26
29
|
--border-radius: 8px;
|
|
27
30
|
--pill-offset: 0px;
|
|
28
31
|
--max-width: 600px;
|
|
@@ -37,6 +40,10 @@ const l = `
|
|
|
37
40
|
--insight-image-display: inline;
|
|
38
41
|
--web-link-align-items: center;
|
|
39
42
|
--web-link-column-gap: 10px;
|
|
43
|
+
--nav-border: 1px solid var(--color-neutrals-gray3);
|
|
44
|
+
--card-border: 1px solid var(--color-card-border);
|
|
45
|
+
--welcome-screen-graphic-size: 80px;
|
|
46
|
+
--welcome-screen-graphic-size-xl: 125px;
|
|
40
47
|
|
|
41
48
|
--row-gap-default: 12px;
|
|
42
49
|
--row-gap-default1: 12px;
|
|
@@ -45,11 +52,11 @@ const l = `
|
|
|
45
52
|
--promo-animation-duration: 0.5s;
|
|
46
53
|
--promo-animation-function: ease-in;
|
|
47
54
|
|
|
48
|
-
${
|
|
55
|
+
${d.down("xl")`
|
|
49
56
|
--header-offset: 0px;
|
|
50
57
|
`}
|
|
51
58
|
|
|
52
|
-
${
|
|
59
|
+
${d.intermediate("xl", "lg")`
|
|
53
60
|
--header-offset: 0px;
|
|
54
61
|
`}
|
|
55
62
|
|
|
@@ -85,7 +92,7 @@ const l = `
|
|
|
85
92
|
--adv-sponsor-logo-size: 28px;
|
|
86
93
|
--adv-sponsor-font-size: 12px;
|
|
87
94
|
}
|
|
88
|
-
`,
|
|
95
|
+
`, f = "StreamLayerCSSReset", c = "ttkj0ah", g = () => /* @__PURE__ */ i("table", {
|
|
89
96
|
children: /* @__PURE__ */ t("table", {
|
|
90
97
|
children: [/* @__PURE__ */ i("thead", {
|
|
91
98
|
children: /* @__PURE__ */ t("tr", {
|
|
@@ -96,8 +103,8 @@ const l = `
|
|
|
96
103
|
})]
|
|
97
104
|
})
|
|
98
105
|
}), /* @__PURE__ */ i("tbody", {
|
|
99
|
-
children: l.split(";").map((
|
|
100
|
-
const a =
|
|
106
|
+
children: l.split(";").map((n) => {
|
|
107
|
+
const a = n.trim(), [o, r] = a.split(":");
|
|
101
108
|
return /* @__PURE__ */ t("tr", {
|
|
102
109
|
children: [/* @__PURE__ */ i("td", {
|
|
103
110
|
children: o
|
|
@@ -110,8 +117,8 @@ const l = `
|
|
|
110
117
|
})
|
|
111
118
|
});
|
|
112
119
|
export {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
120
|
+
g as ThemeVariables,
|
|
121
|
+
f as resetCss,
|
|
122
|
+
c as theme,
|
|
116
123
|
l as themeStr
|
|
117
124
|
};
|
|
@@ -7,9 +7,11 @@ export type VideoPlayerProps = {
|
|
|
7
7
|
controlVideo?: (props: ControlVideoProps) => void;
|
|
8
8
|
aspectRatio?: string;
|
|
9
9
|
onPlay?: () => void;
|
|
10
|
+
onPause?: () => void;
|
|
10
11
|
autoPlay?: boolean;
|
|
11
12
|
hideControls?: boolean;
|
|
12
13
|
};
|
|
14
|
+
export type ControlVideoCb = VideoPlayerProps['controlVideo'];
|
|
13
15
|
export declare const pauseAllVideos: () => void;
|
|
14
16
|
/**
|
|
15
17
|
* VideoPlayer component for playing videos with a poster image.
|
|
@@ -1,96 +1,97 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cx as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { eventBus as
|
|
5
|
-
import { SvgIcon as
|
|
6
|
-
import { Container as
|
|
7
|
-
const
|
|
8
|
-
for (const r of
|
|
1
|
+
import { jsxs as P, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { cx as S } from "@linaria/core";
|
|
3
|
+
import { useRef as C, useState as y, useCallback as h, useEffect as E } from "react";
|
|
4
|
+
import { eventBus as M } from "@streamlayer/sdk-web-interfaces";
|
|
5
|
+
import { SvgIcon as I } from "../icons/index.js";
|
|
6
|
+
import { Container as j, ToggleIconPause as k, HideControls as A, Player as B, Poster as F, Control as N } from "./styles.js";
|
|
7
|
+
const q = (t) => {
|
|
8
|
+
for (const r of t)
|
|
9
9
|
r.isIntersecting ? r.target instanceof HTMLVideoElement && r.target.autoplay && r.target.play() : r.target instanceof HTMLVideoElement && !r.target.paused && r.target.pause();
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
for (const
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
poster:
|
|
10
|
+
}, O = new IntersectionObserver(q, { threshold: 0.5 }), p = /* @__PURE__ */ new Set(), z = (t) => {
|
|
11
|
+
O.observe(t), p.add(t);
|
|
12
|
+
}, D = (t) => {
|
|
13
|
+
O.unobserve(t), p.delete(t);
|
|
14
|
+
}, G = () => {
|
|
15
|
+
for (const t of p)
|
|
16
|
+
t instanceof HTMLVideoElement && !t.paused && t.pause();
|
|
17
|
+
}, Y = ({
|
|
18
|
+
poster: t,
|
|
19
19
|
source: r,
|
|
20
|
-
aspectRatio:
|
|
20
|
+
aspectRatio: g,
|
|
21
21
|
controlVideo: n,
|
|
22
22
|
onPlay: o,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
onPause: u,
|
|
24
|
+
autoPlay: T,
|
|
25
|
+
hideControls: c
|
|
25
26
|
}) => {
|
|
26
|
-
const e =
|
|
27
|
+
const e = C(null), [l, f] = y(!1), [v, m] = y(!0), w = h(() => {
|
|
27
28
|
n == null || n({ muted: !0 });
|
|
28
|
-
}, [n]), a =
|
|
29
|
+
}, [n]), a = h(() => {
|
|
29
30
|
n == null || n({ muted: !1 });
|
|
30
|
-
}, [n]),
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
34
|
-
if (
|
|
35
|
-
|
|
31
|
+
}, [n]), x = (s) => {
|
|
32
|
+
s.stopPropagation();
|
|
33
|
+
const b = e == null ? void 0 : e.current;
|
|
34
|
+
if (b) {
|
|
35
|
+
if (l)
|
|
36
|
+
b.pause();
|
|
36
37
|
else {
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
38
|
+
const d = e == null ? void 0 : e.current;
|
|
39
|
+
if (!d)
|
|
39
40
|
return;
|
|
40
|
-
|
|
41
|
+
G(), d.play().catch((L) => console.log(L)), m(!1);
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
+
M.emit("interactions", {
|
|
43
44
|
action: "tap",
|
|
44
45
|
payload: {}
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
|
-
},
|
|
48
|
-
var
|
|
49
|
-
(
|
|
48
|
+
}, H = () => {
|
|
49
|
+
var s;
|
|
50
|
+
(s = e == null ? void 0 : e.current) == null || s.load(), m(!0);
|
|
50
51
|
};
|
|
51
|
-
return
|
|
52
|
-
const
|
|
52
|
+
return E(() => {
|
|
53
|
+
const s = e == null ? void 0 : e.current;
|
|
53
54
|
return () => {
|
|
54
|
-
|
|
55
|
+
s && (s.paused || a());
|
|
55
56
|
};
|
|
56
|
-
}, [a]),
|
|
57
|
-
const
|
|
58
|
-
return
|
|
57
|
+
}, [a]), E(() => {
|
|
58
|
+
const s = e.current;
|
|
59
|
+
return s ? (z(s), () => D(s)) : () => {
|
|
59
60
|
};
|
|
60
|
-
}, []), /* @__PURE__ */
|
|
61
|
-
|
|
61
|
+
}, []), /* @__PURE__ */ P(
|
|
62
|
+
j,
|
|
62
63
|
{
|
|
63
|
-
onClick:
|
|
64
|
-
className:
|
|
65
|
-
style:
|
|
64
|
+
onClick: c ? void 0 : x,
|
|
65
|
+
className: S(l && k, c && A),
|
|
66
|
+
style: g ? { aspectRatio: g } : {},
|
|
66
67
|
children: [
|
|
67
68
|
/* @__PURE__ */ i(
|
|
68
|
-
|
|
69
|
+
B,
|
|
69
70
|
{
|
|
70
71
|
ref: e,
|
|
71
72
|
src: r,
|
|
72
|
-
autoPlay:
|
|
73
|
+
autoPlay: T,
|
|
73
74
|
onPlay: () => {
|
|
74
|
-
|
|
75
|
+
w(), f(!0), m(!1), o == null || o();
|
|
75
76
|
},
|
|
76
77
|
onPause: () => {
|
|
77
|
-
a(),
|
|
78
|
+
a(), f(!1), u == null || u();
|
|
78
79
|
},
|
|
79
80
|
onEnded: () => {
|
|
80
|
-
a(),
|
|
81
|
+
a(), f(!1), H();
|
|
81
82
|
},
|
|
82
|
-
style: { visibility:
|
|
83
|
+
style: { visibility: v ? "hidden" : "visible" },
|
|
83
84
|
controls: !1,
|
|
84
85
|
playsInline: !0
|
|
85
86
|
}
|
|
86
87
|
),
|
|
87
|
-
/* @__PURE__ */ i(
|
|
88
|
-
!
|
|
88
|
+
/* @__PURE__ */ i(F, { src: t, style: { visibility: v ? "visible" : "hidden" } }),
|
|
89
|
+
!c && /* @__PURE__ */ i(N, { children: l ? /* @__PURE__ */ i(I, { name: "icon-pause" }) : /* @__PURE__ */ i(I, { name: "icon-play" }) })
|
|
89
90
|
]
|
|
90
91
|
}
|
|
91
92
|
);
|
|
92
93
|
};
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
Y as VideoPlayer,
|
|
96
|
+
G as pauseAllVideos
|
|
96
97
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
"react-virtualized-auto-sizer": "^1.0.24",
|
|
60
60
|
"react-window": "^1.8.10",
|
|
61
61
|
"react-window-infinite-loader": "^1.0.9",
|
|
62
|
-
"@streamlayer/feature-gamification": "^1.
|
|
63
|
-
"@streamlayer/sdk-web
|
|
64
|
-
"@streamlayer/sdk-web": "^1.
|
|
65
|
-
"@streamlayer/sdk-web-
|
|
66
|
-
"@streamlayer/sdk-web-
|
|
67
|
-
"@streamlayer/sdk-web-
|
|
68
|
-
"@streamlayer/sdk-web-
|
|
69
|
-
"@streamlayer/sdk-web-interfaces": "^1.2.
|
|
70
|
-
"@streamlayer/sdk-web-logger": "^1.0.
|
|
71
|
-
"@streamlayer/sdk-web-notifications": "^1.2.
|
|
72
|
-
"@streamlayer/sdk-web-storage": "^1.0.
|
|
73
|
-
"@streamlayer/sdk-web-types": "^1.
|
|
62
|
+
"@streamlayer/feature-gamification": "^1.9.0",
|
|
63
|
+
"@streamlayer/sdk-web": "^1.5.5",
|
|
64
|
+
"@streamlayer/sdk-web-analytics": "^1.4.6",
|
|
65
|
+
"@streamlayer/sdk-web-api": "^1.6.6",
|
|
66
|
+
"@streamlayer/sdk-web-anonymous-auth": "^1.1.6",
|
|
67
|
+
"@streamlayer/sdk-web-core": "^1.6.5",
|
|
68
|
+
"@streamlayer/sdk-web-features": "^1.0.27",
|
|
69
|
+
"@streamlayer/sdk-web-interfaces": "^1.2.6",
|
|
70
|
+
"@streamlayer/sdk-web-logger": "^1.0.27",
|
|
71
|
+
"@streamlayer/sdk-web-notifications": "^1.2.6",
|
|
72
|
+
"@streamlayer/sdk-web-storage": "^1.0.27",
|
|
73
|
+
"@streamlayer/sdk-web-types": "^1.8.0"
|
|
74
74
|
},
|
|
75
75
|
"nx": {
|
|
76
76
|
"implicitDependencies": [
|
|
@@ -111,6 +111,6 @@
|
|
|
111
111
|
"vite-plugin-svgr": "^4.2.0",
|
|
112
112
|
"vite-svg-loader": "^5.1.0",
|
|
113
113
|
"vite-tsconfig-paths": "^5.0.1",
|
|
114
|
-
"@streamlayer/react": "^1.8.
|
|
114
|
+
"@streamlayer/react": "^1.8.5"
|
|
115
115
|
}
|
|
116
116
|
}
|