@streamlayer/react-ui 0.60.0 → 0.61.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,23 +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";
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { VideoPlayer as m } from "../../../../video-player/index.js";
3
+ import { InsightContainer as s, InsightContent as e, Title as h, Description as p, ActionBtn as c } from "./styles.js";
4
4
  import "react";
5
5
  import "../../../../icons/index.js";
6
6
  import "@linaria/react";
7
7
  import "../../../../video-player/styles.js";
8
- const a = ({
9
- video: i,
8
+ const j = ({
9
+ video: r,
10
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" })
11
+ body: l,
12
+ action: n
13
+ }) => /* @__PURE__ */ i(s, { children: [
14
+ (r == null ? void 0 : r.url) && /* @__PURE__ */ t(m, { source: r.url, poster: r.thumbnailUrl }),
15
+ /* @__PURE__ */ i(e, { children: [
16
+ /* @__PURE__ */ t(h, { children: o }),
17
+ /* @__PURE__ */ t(p, { children: l }),
18
+ n && /* @__PURE__ */ t(c, { onClick: n, children: "View Insight" })
19
19
  ] })
20
20
  ] });
21
21
  export {
22
- a as Insight
22
+ j as Insight
23
23
  };
@@ -7,22 +7,28 @@ const r = o.div`
7
7
  background-color: var(--color-neutrals-white);
8
8
  border-radius: 8px;
9
9
  width: 100%;
10
- `, t = o.div`
10
+ `, i = o.div`
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  row-gap: 12px;
14
- `, i = o.h3`
14
+ `, t = o.h3`
15
15
  color: var(--color-primary-green2);
16
16
  font-size: 16px;
17
17
  line-height: 26px;
18
18
  font-weight: 400;
19
19
  font-family: var(--font-serif);
20
20
  font-weight: var(--font-weight-default);
21
+ display: -webkit-box;
22
+ -webkit-box-orient: vertical;
23
+ -webkit-line-clamp: 2;
24
+ overflow: hidden;
25
+ word-break: break-all;
26
+ text-overflow: ellipsis;
27
+ max-height: 50px;
21
28
  `, n = o.div`
22
29
  color: var(--color-neutrals-gray9);
23
30
  font-size: 12px;
24
31
  line-height: 24px;
25
- font-weight: 550;
26
32
  font-weight: var(--font-weight-default);
27
33
  display: -webkit-box;
28
34
  -webkit-box-orient: vertical;
@@ -55,6 +61,6 @@ export {
55
61
  l as ActionBtn,
56
62
  n as Description,
57
63
  r as InsightContainer,
58
- t as InsightContent,
59
- i as Title
64
+ i as InsightContent,
65
+ t as Title
60
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "0.60.0",
3
+ "version": "0.61.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -36,13 +36,13 @@
36
36
  "react-window": "^1.8.9",
37
37
  "@lottiefiles/react-lottie-player": "*",
38
38
  "react-window-infinite-loader": "^1.0.9",
39
- "@streamlayer/feature-gamification": "^0.23.1",
40
- "@streamlayer/sdk-web": "^0.28.19",
41
- "@streamlayer/sdk-web-anonymous-auth": "^0.11.14",
39
+ "@streamlayer/feature-gamification": "^0.24.0",
40
+ "@streamlayer/sdk-web": "^0.28.20",
41
+ "@streamlayer/sdk-web-anonymous-auth": "^0.11.15",
42
42
  "@streamlayer/sdk-web-api": "^0.0.1",
43
43
  "@streamlayer/sdk-web-core": "^0.17.8",
44
+ "@streamlayer/sdk-web-features": "^0.10.23",
44
45
  "@streamlayer/sdk-web-interfaces": "^0.18.15",
45
- "@streamlayer/sdk-web-features": "^0.10.22",
46
46
  "@streamlayer/sdk-web-notifications": "^0.12.1",
47
47
  "@streamlayer/sdk-web-storage": "^0.0.4",
48
48
  "@streamlayer/sdk-web-types": "^0.20.1"
@@ -84,6 +84,6 @@
84
84
  "vite-plugin-svgr": "^4.1.0",
85
85
  "vite-svg-loader": "^4.0.0",
86
86
  "vite-tsconfig-paths": "^4.2.1",
87
- "@streamlayer/react": "^0.29.1"
87
+ "@streamlayer/react": "^0.29.2"
88
88
  }
89
89
  }