@streamlayer/react-ui 0.82.1 → 0.84.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.
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { VideoPlayer as
|
|
4
|
-
import { isValidDate as
|
|
5
|
-
import { Container as C, DateWrap as T, Image as
|
|
1
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as g } from "react";
|
|
3
|
+
import { VideoPlayer as D } from "../../video-player/index.js";
|
|
4
|
+
import { isValidDate as v, formatDate as b, formatTime as x } from "../../../utils/common.js";
|
|
5
|
+
import { Container as C, DateWrap as T, Image as j, Content as y, Title as I, Description as U } from "./styles.js";
|
|
6
6
|
import "../../icons/index.js";
|
|
7
7
|
import "@linaria/react";
|
|
8
8
|
import "../../video-player/styles.js";
|
|
9
|
-
const
|
|
9
|
+
const G = ({
|
|
10
10
|
created: m,
|
|
11
|
-
image:
|
|
12
|
-
title:
|
|
13
|
-
isPickHistory:
|
|
14
|
-
instantView: r
|
|
11
|
+
image: c,
|
|
12
|
+
title: f,
|
|
13
|
+
isPickHistory: h,
|
|
14
|
+
instantView: r,
|
|
15
|
+
notification: d
|
|
15
16
|
}) => {
|
|
16
|
-
const
|
|
17
|
+
const l = g(() => {
|
|
17
18
|
if (m) {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
19
|
+
const p = new Date(m);
|
|
20
|
+
if (v(p))
|
|
20
21
|
return {
|
|
21
|
-
date:
|
|
22
|
-
time: x(
|
|
22
|
+
date: b(p),
|
|
23
|
+
time: x(p)
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
return null;
|
|
26
|
-
}, [m]),
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
}, [m]), u = (r == null ? void 0 : r.image) || c;
|
|
28
|
+
return /* @__PURE__ */ e(C, { children: [
|
|
29
|
+
l && /* @__PURE__ */ e(T, { children: [
|
|
30
|
+
l.date,
|
|
30
31
|
" · ",
|
|
31
|
-
|
|
32
|
+
l.time
|
|
32
33
|
] }),
|
|
33
|
-
(r == null ? void 0 : r.video) && /* @__PURE__ */ o(
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */ o(I, { children:
|
|
37
|
-
|
|
34
|
+
(r == null ? void 0 : r.video) && /* @__PURE__ */ o(D, { source: r.video.url, poster: r.video.thumbnailUrl }),
|
|
35
|
+
u && !(r != null && r.video) && /* @__PURE__ */ o(j, { src: u }),
|
|
36
|
+
/* @__PURE__ */ e(y, { children: [
|
|
37
|
+
/* @__PURE__ */ o(I, { children: h ? f : r == null ? void 0 : r.heading }),
|
|
38
|
+
/* @__PURE__ */ o(U, { children: h ? d == null ? void 0 : d.body : r == null ? void 0 : r.body })
|
|
38
39
|
] })
|
|
39
40
|
] });
|
|
40
41
|
};
|
|
41
42
|
export {
|
|
42
|
-
|
|
43
|
+
G as InsightContent
|
|
43
44
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
43
43
|
"react-window": "^1.8.9",
|
|
44
44
|
"react-window-infinite-loader": "^1.0.9",
|
|
45
|
-
"@streamlayer/feature-gamification": "^0.30.
|
|
45
|
+
"@streamlayer/feature-gamification": "^0.30.3",
|
|
46
|
+
"@streamlayer/sdk-web": "^0.29.5",
|
|
46
47
|
"@streamlayer/sdk-web-anonymous-auth": "^0.11.30",
|
|
47
48
|
"@streamlayer/sdk-web-api": "^0.1.0",
|
|
48
|
-
"@streamlayer/sdk-web": "^0.29.5",
|
|
49
49
|
"@streamlayer/sdk-web-core": "^0.1.0",
|
|
50
|
-
"@streamlayer/sdk-web-features": "^0.11.
|
|
50
|
+
"@streamlayer/sdk-web-features": "^0.11.3",
|
|
51
|
+
"@streamlayer/sdk-web-interfaces": "^0.18.19",
|
|
51
52
|
"@streamlayer/sdk-web-logger": "^0.0.1",
|
|
52
|
-
"@streamlayer/sdk-web-
|
|
53
|
-
"@streamlayer/sdk-web-notifications": "^0.0.2",
|
|
53
|
+
"@streamlayer/sdk-web-notifications": "^0.0.3",
|
|
54
54
|
"@streamlayer/sdk-web-storage": "^0.0.4",
|
|
55
55
|
"@streamlayer/sdk-web-types": "^0.1.0"
|
|
56
56
|
},
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"@nanostores/react": "^0.7.1",
|
|
73
73
|
"@storybook/addon-docs": "^7.5.3",
|
|
74
74
|
"@storybook/addon-styling": "^1.3.7",
|
|
75
|
+
"@storybook/addon-viewport": "^7.6.8",
|
|
75
76
|
"@storybook/blocks": "^7.5.3",
|
|
76
77
|
"@storybook/jest": "~0.2.3",
|
|
77
78
|
"@storybook/react": "^7.5.3",
|
|
@@ -92,6 +93,6 @@
|
|
|
92
93
|
"vite-plugin-svgr": "^4.1.0",
|
|
93
94
|
"vite-svg-loader": "^4.0.0",
|
|
94
95
|
"vite-tsconfig-paths": "^4.2.1",
|
|
95
|
-
"@streamlayer/react": "^0.33.
|
|
96
|
+
"@streamlayer/react": "^0.33.5"
|
|
96
97
|
}
|
|
97
98
|
}
|