@streamlayer/react-ui 0.52.2 → 0.54.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/index.d.ts +0 -1
- package/lib/index.js +36 -39
- package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +1 -0
- package/lib/ui/app/Features/Gamification/Leaderboard.js +11 -22
- package/lib/ui/app/Features/Gamification/Question.d.ts +2 -4
- package/lib/ui/app/Features/Gamification/Question.js +27 -13
- package/lib/ui/app/Features/Gamification/QuestionsList.d.ts +1 -1
- package/lib/ui/app/Features/Gamification/QuestionsList.js +6 -4
- package/lib/ui/app/Features/Gamification/Tabs.js +20 -23
- package/lib/ui/app/Features/Gamification/index.js +55 -39
- package/lib/ui/app/Features/index.js +27 -36
- package/lib/ui/app/masters.js +20 -29
- package/lib/ui/demo/Gamification.js +19 -21
- package/lib/ui/demo/Highlights.js +6 -7
- package/lib/ui/demo/components/Leaderboard.js +23 -31
- package/lib/ui/demo/components/QuestionsList.js +6 -4
- package/lib/ui/demo/components/index.js +20 -22
- package/lib/ui/demo/index.js +8 -10
- package/lib/ui/gamification/detail/header/index.d.ts +2 -1
- package/lib/ui/gamification/detail/header/index.js +9 -9
- package/lib/ui/gamification/{leaderboard-list → leaderboard}/index.d.ts +1 -1
- package/lib/ui/gamification/{leaderboard-list → leaderboard}/index.js +2 -2
- package/lib/ui/gamification/{leaderboard-item → leaderboard/list-item}/index.js +2 -2
- package/lib/ui/gamification/{leaderboard-item → leaderboard/list-item}/styles.js +1 -1
- package/lib/ui/gamification/question/list/index.d.ts +3 -2
- package/lib/ui/gamification/question/list/index.js +19 -6
- package/lib/ui/gamification/vote/insight-details/index.d.ts +2 -9
- package/lib/ui/gamification/vote/insight-details/index.js +12 -12
- package/package.json +10 -10
- package/lib/ui/app/Features/Highlights/Insight.d.ts +0 -7
- package/lib/ui/app/Features/Highlights/Insight.js +0 -31
- package/lib/ui/app/Features/Highlights/Insights.d.ts +0 -6
- package/lib/ui/app/Features/Highlights/Insights.js +0 -15
- package/lib/ui/app/Features/Highlights/index.d.ts +0 -8
- package/lib/ui/app/Features/Highlights/index.js +0 -36
- package/lib/ui/gamification/leaderboard-item-detail/index.d.ts +0 -6
- package/lib/ui/gamification/leaderboard-item-detail/index.js +0 -10
- package/lib/ui/gamification/leaderboard-item-detail/styles.d.ts +0 -2
- package/lib/ui/gamification/leaderboard-item-detail/styles.js +0 -7
- /package/lib/ui/gamification/{leaderboard-item → leaderboard/list-item}/index.d.ts +0 -0
- /package/lib/ui/gamification/{leaderboard-item → leaderboard/list-item}/styles.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
31
31
|
"react-window": "^1.8.9",
|
|
32
32
|
"react-window-infinite-loader": "^1.0.9",
|
|
33
|
-
"@streamlayer/
|
|
34
|
-
"@streamlayer/
|
|
35
|
-
"@streamlayer/sdk-web-anonymous-auth": "^0.11.
|
|
33
|
+
"@streamlayer/feature-gamification": "^0.21.0",
|
|
34
|
+
"@streamlayer/sdk-web": "^0.28.14",
|
|
35
|
+
"@streamlayer/sdk-web-anonymous-auth": "^0.11.9",
|
|
36
36
|
"@streamlayer/sdk-web-api": "^0.0.1",
|
|
37
|
-
"@streamlayer/sdk-web-core": "^0.17.
|
|
38
|
-
"@streamlayer/sdk-web-features": "^0.10.
|
|
39
|
-
"@streamlayer/sdk-web-interfaces": "^0.18.
|
|
40
|
-
"@streamlayer/sdk-web-notifications": "^0.10.
|
|
37
|
+
"@streamlayer/sdk-web-core": "^0.17.3",
|
|
38
|
+
"@streamlayer/sdk-web-features": "^0.10.17",
|
|
39
|
+
"@streamlayer/sdk-web-interfaces": "^0.18.10",
|
|
40
|
+
"@streamlayer/sdk-web-notifications": "^0.10.9",
|
|
41
41
|
"@streamlayer/sdk-web-storage": "^0.3.10",
|
|
42
|
-
"@streamlayer/sdk-web-types": "^0.
|
|
42
|
+
"@streamlayer/sdk-web-types": "^0.18.0"
|
|
43
43
|
},
|
|
44
44
|
"nx": {
|
|
45
45
|
"implicitDependencies": [
|
|
@@ -78,6 +78,6 @@
|
|
|
78
78
|
"vite-plugin-svgr": "^4.1.0",
|
|
79
79
|
"vite-svg-loader": "^4.0.0",
|
|
80
80
|
"vite-tsconfig-paths": "^4.2.1",
|
|
81
|
-
"@streamlayer/react": "^0.
|
|
81
|
+
"@streamlayer/react": "^0.27.0"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Highlights } from '@streamlayer/feature-gamification';
|
|
3
|
-
export declare const Insight: React.FC<{
|
|
4
|
-
openedInsight: Exclude<Highlights['openedInsight']['value'], undefined>;
|
|
5
|
-
closeHighlights: () => void;
|
|
6
|
-
closeInsight: () => void;
|
|
7
|
-
}>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { DetailedInsight as L } from "../../../gamification/detailed-insight/index.js";
|
|
3
|
-
import "../../../gamification/common-header/index.js";
|
|
4
|
-
import "../../../../icon-exit-d3f9fc80.js";
|
|
5
|
-
import "../../../gamification/common-header/styles.js";
|
|
6
|
-
import "@linaria/react";
|
|
7
|
-
import "../../../gamification/detailed-insight/styles.js";
|
|
8
|
-
const j = ({ openedInsight: o, closeHighlights: r, closeInsight: s }) => {
|
|
9
|
-
var t, a, b, n, e;
|
|
10
|
-
const i = ((t = o.options) == null ? void 0 : t.options.case) === "factoid" ? {
|
|
11
|
-
image: o.options.options.value.image,
|
|
12
|
-
body: o.options.options.value.body,
|
|
13
|
-
webLink: (a = o.options.options.value.webLink) == null ? void 0 : a.url,
|
|
14
|
-
webLinkLabel: (b = o.options.options.value.webLink) == null ? void 0 : b.label
|
|
15
|
-
} : {}, l = o.subject || ((n = o.notification) == null ? void 0 : n.title), m = i.body || ((e = o.notification) == null ? void 0 : e.body);
|
|
16
|
-
return /* @__PURE__ */ p(
|
|
17
|
-
L,
|
|
18
|
-
{
|
|
19
|
-
image: i.image,
|
|
20
|
-
title: l,
|
|
21
|
-
description: m,
|
|
22
|
-
webLink: i.webLink,
|
|
23
|
-
webLinkLabel: i.webLinkLabel,
|
|
24
|
-
closeInsight: s,
|
|
25
|
-
closeHighlights: r
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
j as Insight
|
|
31
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { useStore as s } from "@nanostores/react";
|
|
3
|
-
import { InsightList as n } from "../../../gamification/insight-list/index.js";
|
|
4
|
-
import "../../../gamification/insight/index.js";
|
|
5
|
-
import "@streamlayer/sdk-web-types";
|
|
6
|
-
import "../../../gamification/insight/styles.js";
|
|
7
|
-
import "@linaria/react";
|
|
8
|
-
import "../../../gamification/insight-list/styles.js";
|
|
9
|
-
const d = ({ highlights: r, store: o }) => {
|
|
10
|
-
const { data: t } = s(o);
|
|
11
|
-
return t ? /* @__PURE__ */ i(n, { insights: t, openInsight: r.openHighlight }) : /* @__PURE__ */ i("div", { children: "wait insights..." });
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
d as Insights
|
|
15
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Highlights } from '@streamlayer/feature-gamification';
|
|
3
|
-
import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
4
|
-
export declare const HighlightsOverlay: React.FC<{
|
|
5
|
-
highlights: Highlights;
|
|
6
|
-
sdk: StreamLayerSDK;
|
|
7
|
-
className?: string;
|
|
8
|
-
}>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsxs as e, Fragment as m, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { useStore as p } from "@nanostores/react";
|
|
3
|
-
import { Insight as s } from "../../../demo/components/Insight.js";
|
|
4
|
-
import { Insights as n } from "../../../demo/components/Insights.js";
|
|
5
|
-
import "../../../gamification/detailed-insight/index.js";
|
|
6
|
-
import "../../../gamification/common-header/index.js";
|
|
7
|
-
import "../../../../icon-exit-d3f9fc80.js";
|
|
8
|
-
import "../../../gamification/common-header/styles.js";
|
|
9
|
-
import "@linaria/react";
|
|
10
|
-
import "../../../gamification/detailed-insight/styles.js";
|
|
11
|
-
import "../../../gamification/insight-list/index.js";
|
|
12
|
-
import "../../../gamification/insight/index.js";
|
|
13
|
-
import "@streamlayer/sdk-web-types";
|
|
14
|
-
import "../../../gamification/insight/styles.js";
|
|
15
|
-
import "../../../gamification/insight-list/styles.js";
|
|
16
|
-
const O = ({
|
|
17
|
-
highlights: o,
|
|
18
|
-
className: r
|
|
19
|
-
}) => {
|
|
20
|
-
const t = p(o.openedInsight);
|
|
21
|
-
return /* @__PURE__ */ e(m, { children: [
|
|
22
|
-
!t && o.insights && /* @__PURE__ */ i(n, { className: r, highlights: o, store: o.insights.getStore() }),
|
|
23
|
-
t && /* @__PURE__ */ i(
|
|
24
|
-
s,
|
|
25
|
-
{
|
|
26
|
-
className: r,
|
|
27
|
-
openedInsight: t,
|
|
28
|
-
closeHighlights: o.closeFeature,
|
|
29
|
-
closeInsight: o.closeHighlight
|
|
30
|
-
}
|
|
31
|
-
)
|
|
32
|
-
] });
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
O as HighlightsOverlay
|
|
36
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { CommonHeader as m } from "../common-header/index.js";
|
|
3
|
-
import { Container as t } from "./styles.js";
|
|
4
|
-
import "../../../icon-exit-d3f9fc80.js";
|
|
5
|
-
import "../common-header/styles.js";
|
|
6
|
-
import "@linaria/react";
|
|
7
|
-
const f = ({ comeBack: o }) => /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(m, { comeBack: o }) });
|
|
8
|
-
export {
|
|
9
|
-
f as LeaderboardItemDetail
|
|
10
|
-
};
|
|
File without changes
|
|
File without changes
|