@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.
- package/lib/assets/style.css +1 -1
- package/lib/ui/app/Features/Gamification/UserSummary.js +14 -7
- package/lib/ui/app/Notifications/Onboarding/index.d.ts +3 -2
- package/lib/ui/app/Notifications/Onboarding/index.js +85 -49
- package/lib/ui/app/Notifications/index.js +60 -23
- package/lib/ui/app/Notifications/styles.d.ts +2 -0
- package/lib/ui/app/Notifications/styles.js +9 -4
- package/lib/ui/app/masters.js +6 -6
- package/lib/ui/app/useMastersApp.js +19 -17
- package/lib/ui/gamification/question/notification/index.js +24 -28
- package/lib/ui/gamification/question/notification/insight/index.js +12 -12
- package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +3 -0
- package/lib/ui/gamification/question/notification/prediction-result/index.js +99 -67
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +3 -2
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +27 -24
- package/lib/ui/questions/insight/index.js +13 -13
- package/lib/ui/show-in/index.js +2 -2
- package/package.json +7 -7
- package/lib/ui/theme/masters.d.ts +0 -2
- package/lib/ui/theme/masters.js +0 -4
|
@@ -1,57 +1,60 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
import { SvgIcon as
|
|
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
|
-
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
19
|
+
}), b = /* @__PURE__ */ s("div")({
|
|
18
20
|
name: "Title",
|
|
19
21
|
class: "t4ujo4g",
|
|
20
22
|
propsAsIs: !1
|
|
21
|
-
}),
|
|
23
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
22
24
|
name: "Subtitle",
|
|
23
25
|
class: "s1pjil1h",
|
|
24
26
|
propsAsIs: !1
|
|
25
|
-
}),
|
|
27
|
+
}), c = () => n, v = /* @__PURE__ */ s(c())({
|
|
26
28
|
name: "SubtitleFG",
|
|
27
29
|
class: "s1iorwr9",
|
|
28
30
|
propsAsIs: !0
|
|
29
|
-
}),
|
|
31
|
+
}), x = /* @__PURE__ */ s("div")({
|
|
30
32
|
name: "AnswerText",
|
|
31
33
|
class: "a51sv9d",
|
|
32
34
|
propsAsIs: !1
|
|
33
|
-
}),
|
|
35
|
+
}), r = () => o, T = /* @__PURE__ */ s(r())({
|
|
34
36
|
name: "FeedbackIcon",
|
|
35
37
|
class: "f1lbk2ye",
|
|
36
38
|
propsAsIs: !0
|
|
37
|
-
}),
|
|
39
|
+
}), _ = /* @__PURE__ */ s("button")({
|
|
38
40
|
name: "CloseButton",
|
|
39
41
|
class: "crcvk3t",
|
|
40
42
|
propsAsIs: !1
|
|
41
|
-
}),
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
|
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
|
|
10
|
+
const d = h(() => {
|
|
11
11
|
if (m) {
|
|
12
|
-
const
|
|
13
|
-
if (g(
|
|
12
|
+
const l = new Date(m);
|
|
13
|
+
if (g(l))
|
|
14
14
|
return {
|
|
15
|
-
date: D(
|
|
16
|
-
time: v(
|
|
15
|
+
date: D(l),
|
|
16
|
+
time: v(l)
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
return null;
|
|
20
|
-
}, [m]),
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
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
|
-
|
|
29
|
-
/* @__PURE__ */
|
|
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
|
] })
|
package/lib/ui/show-in/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const m = /* @__PURE__ */ e("div")({
|
|
|
5
5
|
name: "Container",
|
|
6
6
|
class: "c1pgyo67",
|
|
7
7
|
propsAsIs: !1
|
|
8
|
-
}), a = "hx17qu6",
|
|
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
|
-
|
|
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.
|
|
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.
|
|
44
|
-
"@streamlayer/sdk-web": "^0.29.
|
|
45
|
-
"@streamlayer/sdk-web-anonymous-auth": "^0.11.
|
|
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.
|
|
48
|
+
"@streamlayer/sdk-web-features": "^0.10.36",
|
|
49
49
|
"@streamlayer/sdk-web-interfaces": "^0.0.1",
|
|
50
|
-
"@streamlayer/sdk-web-notifications": "^0.
|
|
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.
|
|
93
|
+
"@streamlayer/react": "^0.32.6"
|
|
94
94
|
}
|
|
95
95
|
}
|
package/lib/ui/theme/masters.js
DELETED