@streamlayer/react-ui 0.74.3 → 0.75.1

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,57 +1,60 @@
1
1
  import { styled as s } from "@linaria/react";
2
- import { SvgIcon as t } from "../../../../icons/index.js";
2
+ import { SvgIcon as o } from "../../../../icons/index.js";
3
+ import { ShowIn as t } from "../../../../show-in/index.js";
3
4
  import "react/jsx-runtime";
4
5
  import "react";
5
- const i = /* @__PURE__ */ s("div")({
6
+ import "@linaria/core";
7
+ const A = 118, e = () => t, f = /* @__PURE__ */ s(e())({
6
8
  name: "Container",
7
9
  class: "c10131zw",
10
+ propsAsIs: !0
11
+ }), C = /* @__PURE__ */ s("div")({
12
+ name: "InnerContainer",
13
+ class: "ir6k2eo",
8
14
  propsAsIs: !1
9
- }), m = /* @__PURE__ */ s("div")({
10
- name: "AnimateContent",
11
- class: "ar6k2eo",
12
- propsAsIs: !1
13
- }), I = /* @__PURE__ */ s("div")({
15
+ }), d = /* @__PURE__ */ s("div")({
14
16
  name: "Content",
15
17
  class: "c1hwoq9l",
16
18
  propsAsIs: !1
17
- }), A = /* @__PURE__ */ s("div")({
19
+ }), b = /* @__PURE__ */ s("div")({
18
20
  name: "Title",
19
21
  class: "t4ujo4g",
20
22
  propsAsIs: !1
21
- }), e = /* @__PURE__ */ s("div")({
23
+ }), n = /* @__PURE__ */ s("div")({
22
24
  name: "Subtitle",
23
25
  class: "s1pjil1h",
24
26
  propsAsIs: !1
25
- }), o = () => e, d = /* @__PURE__ */ s(o())({
27
+ }), c = () => n, v = /* @__PURE__ */ s(c())({
26
28
  name: "SubtitleFG",
27
29
  class: "s1iorwr9",
28
30
  propsAsIs: !0
29
- }), u = /* @__PURE__ */ s("div")({
31
+ }), x = /* @__PURE__ */ s("div")({
30
32
  name: "AnswerText",
31
33
  class: "a51sv9d",
32
34
  propsAsIs: !1
33
- }), n = () => t, f = /* @__PURE__ */ s(n())({
35
+ }), r = () => o, T = /* @__PURE__ */ s(r())({
34
36
  name: "FeedbackIcon",
35
37
  class: "f1lbk2ye",
36
38
  propsAsIs: !0
37
- }), C = /* @__PURE__ */ s("button")({
39
+ }), _ = /* @__PURE__ */ s("button")({
38
40
  name: "CloseButton",
39
41
  class: "crcvk3t",
40
42
  propsAsIs: !1
41
- }), c = () => t, v = /* @__PURE__ */ s(c())({
43
+ }), p = () => o, w = /* @__PURE__ */ s(p())({
42
44
  name: "CloseIcon",
43
45
  class: "c33p82r",
44
46
  propsAsIs: !0
45
47
  });
46
48
  export {
47
- m as AnimateContent,
48
- u as AnswerText,
49
- C as CloseButton,
50
- v as CloseIcon,
51
- i as Container,
52
- I as Content,
53
- f as FeedbackIcon,
54
- e as Subtitle,
55
- d as SubtitleFG,
56
- A as Title
49
+ x as AnswerText,
50
+ _ as CloseButton,
51
+ w as CloseIcon,
52
+ f as Container,
53
+ d as Content,
54
+ T as FeedbackIcon,
55
+ C as InnerContainer,
56
+ A as MIN_CONTENT_HEIGHT,
57
+ n as Subtitle,
58
+ v as SubtitleFG,
59
+ b as Title
57
60
  };
@@ -1,4 +1,4 @@
1
- import { jsxs as l, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
2
  import { useMemo as h } from "react";
3
3
  import { VideoPlayer as u } from "../../video-player/index.js";
4
4
  import { isValidDate as g, formatDate as D, formatTime as v } from "../../../utils/common.js";
@@ -7,26 +7,26 @@ import "../../icons/index.js";
7
7
  import "@linaria/react";
8
8
  import "../../video-player/styles.js";
9
9
  const A = ({ created: m, image: c, title: f, instantView: r }) => {
10
- const e = h(() => {
10
+ const d = h(() => {
11
11
  if (m) {
12
- const d = new Date(m);
13
- if (g(d))
12
+ const l = new Date(m);
13
+ if (g(l))
14
14
  return {
15
- date: D(d),
16
- time: v(d)
15
+ date: D(l),
16
+ time: v(l)
17
17
  };
18
18
  }
19
19
  return null;
20
- }, [m]), p = (r == null ? void 0 : r.image) || c;
21
- return /* @__PURE__ */ l(x, { children: [
22
- e && /* @__PURE__ */ l(C, { children: [
23
- e.date,
20
+ }, [m]), e = (r == null ? void 0 : r.image) || c;
21
+ return /* @__PURE__ */ p(x, { children: [
22
+ d && /* @__PURE__ */ p(C, { children: [
23
+ d.date,
24
24
  " · ",
25
- e.time
25
+ d.time
26
26
  ] }),
27
27
  (r == null ? void 0 : r.video) && /* @__PURE__ */ o(u, { source: r.video.url, poster: r.video.thumbnailUrl }),
28
- p && /* @__PURE__ */ o(T, { src: p }),
29
- /* @__PURE__ */ l(b, { children: [
28
+ e && !(r != null && r.video) && /* @__PURE__ */ o(T, { src: e }),
29
+ /* @__PURE__ */ p(b, { children: [
30
30
  /* @__PURE__ */ o(j, { children: (r == null ? void 0 : r.heading) || f }),
31
31
  /* @__PURE__ */ o(y, { children: r == null ? void 0 : r.body })
32
32
  ] })
@@ -5,7 +5,7 @@ const m = /* @__PURE__ */ e("div")({
5
5
  name: "Container",
6
6
  class: "c1pgyo67",
7
7
  propsAsIs: !1
8
- }), a = "hx17qu6", d = ({
8
+ }), a = "hx17qu6", f = ({
9
9
  children: o,
10
10
  style: n,
11
11
  className: s,
@@ -16,5 +16,5 @@ const m = /* @__PURE__ */ e("div")({
16
16
  children: o
17
17
  });
18
18
  export {
19
- d as ShowIn
19
+ f as ShowIn
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "0.74.3",
3
+ "version": "0.75.1",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -40,14 +40,14 @@
40
40
  "react-virtualized-auto-sizer": "^1.0.20",
41
41
  "react-window": "^1.8.9",
42
42
  "react-window-infinite-loader": "^1.0.9",
43
- "@streamlayer/feature-gamification": "^0.27.2",
44
- "@streamlayer/sdk-web": "^0.29.3",
45
- "@streamlayer/sdk-web-anonymous-auth": "^0.11.28",
43
+ "@streamlayer/feature-gamification": "^0.28.0",
44
+ "@streamlayer/sdk-web": "^0.29.4",
45
+ "@streamlayer/sdk-web-anonymous-auth": "^0.11.29",
46
46
  "@streamlayer/sdk-web-api": "^0.1.0",
47
47
  "@streamlayer/sdk-web-core": "^0.0.6",
48
- "@streamlayer/sdk-web-features": "^0.10.35",
48
+ "@streamlayer/sdk-web-features": "^0.10.36",
49
49
  "@streamlayer/sdk-web-interfaces": "^0.0.1",
50
- "@streamlayer/sdk-web-notifications": "^0.13.4",
50
+ "@streamlayer/sdk-web-notifications": "^0.1.0",
51
51
  "@streamlayer/sdk-web-storage": "^0.0.4",
52
52
  "@streamlayer/sdk-web-logger": "^0.0.1",
53
53
  "@streamlayer/sdk-web-types": "^0.0.1"
@@ -90,6 +90,6 @@
90
90
  "vite-plugin-svgr": "^4.1.0",
91
91
  "vite-svg-loader": "^4.0.0",
92
92
  "vite-tsconfig-paths": "^4.2.1",
93
- "@streamlayer/react": "^0.32.4"
93
+ "@streamlayer/react": "^0.32.6"
94
94
  }
95
95
  }
@@ -1,2 +0,0 @@
1
- /** @deprecated all variables moved to main theme */
2
- export declare const mastersVariables: import("@linaria/core").LinariaClassName;
@@ -1,4 +0,0 @@
1
- const s = "m17a8r9z";
2
- export {
3
- s as mastersVariables
4
- };