@streamlayer/react-ui 0.80.0 → 0.80.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,9 +1,9 @@
1
- import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
- import { useState as s } from "react";
3
- import { SDKWhiteContainer as p, SDKScrollContainer as n, SDKContentContainer as d } from "../../styles.js";
4
- import { ActivePages as i, Tabs as a } from "../../../gamification/tabs/index.js";
5
- import { Leaderboard as l } from "./Leaderboard.js";
6
- import { QuestionsList as c } from "./QuestionsList.js";
1
+ import { jsx as r, jsxs as m, Fragment as s } from "react/jsx-runtime";
2
+ import { useState as n } from "react";
3
+ import { SDKScrollContainer as d, SDKWhiteContainer as p, SDKContentContainer as a } from "../../styles.js";
4
+ import { ActivePages as i, Tabs as l } from "../../../gamification/tabs/index.js";
5
+ import { Leaderboard as c } from "./Leaderboard.js";
6
+ import { QuestionsList as h } from "./QuestionsList.js";
7
7
  import { UserSummary as u } from "./UserSummary.js";
8
8
  import "@linaria/react";
9
9
  import "../../../gamification/tabs/styles.js";
@@ -46,47 +46,49 @@ import "../../../gamification/user-statistics/components/rank/styles.js";
46
46
  import "../../../gamification/user-statistics/components/statistic/index.js";
47
47
  import "../../../gamification/user-statistics/components/statistic/styles.js";
48
48
  import "../../../gamification/user-statistics/styles.js";
49
- const nr = ({
49
+ const dr = ({
50
50
  gamification: t
51
51
  }) => {
52
- const [o, e] = s(i.HOME);
53
- return /* @__PURE__ */ m("div", {
52
+ const [o, e] = n(i.HOME);
53
+ return /* @__PURE__ */ r("div", {
54
54
  style: {
55
55
  height: "100%",
56
56
  display: "flex",
57
57
  flexDirection: "column",
58
58
  overflow: "hidden"
59
59
  },
60
- children: [/* @__PURE__ */ r(p, {
61
- style: {
62
- paddingBottom: "4px"
63
- },
64
- children: /* @__PURE__ */ r(a, {
65
- activePage: o,
66
- toggleActivePage: e
67
- })
68
- }), o === i.HOME && /* @__PURE__ */ m(n, {
60
+ children: /* @__PURE__ */ m(d, {
69
61
  children: [/* @__PURE__ */ r(p, {
70
62
  style: {
71
- paddingTop: "12px"
63
+ paddingBottom: "4px"
72
64
  },
73
- children: /* @__PURE__ */ r(u, {
74
- userSummary: t.userSummary
65
+ children: /* @__PURE__ */ r(l, {
66
+ activePage: o,
67
+ toggleActivePage: e
75
68
  })
76
- }), /* @__PURE__ */ r(d, {
69
+ }), o === i.HOME && /* @__PURE__ */ m(s, {
70
+ children: [/* @__PURE__ */ r(p, {
71
+ style: {
72
+ paddingTop: "12px"
73
+ },
74
+ children: /* @__PURE__ */ r(u, {
75
+ userSummary: t.userSummary
76
+ })
77
+ }), /* @__PURE__ */ r(a, {
78
+ children: /* @__PURE__ */ r(h, {
79
+ openQuestion: t.openQuestion,
80
+ store: t.feedList.getStore()
81
+ })
82
+ })]
83
+ }), o === i.LEADERBOARD && /* @__PURE__ */ r("div", {
84
+ className: "c1bp9dj2",
77
85
  children: /* @__PURE__ */ r(c, {
78
- openQuestion: t.openQuestion,
79
- store: t.feedList.getStore()
86
+ gamification: t
80
87
  })
81
88
  })]
82
- }), o === i.LEADERBOARD && /* @__PURE__ */ r("div", {
83
- className: "c1bp9dj2",
84
- children: /* @__PURE__ */ r(l, {
85
- gamification: t
86
- })
87
- })]
89
+ })
88
90
  });
89
91
  };
90
92
  export {
91
- nr as Tabs
93
+ dr as Tabs
92
94
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "0.80.0",
3
+ "version": "0.80.1",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -44,8 +44,8 @@
44
44
  "@streamlayer/sdk-web": "^0.29.5",
45
45
  "@streamlayer/sdk-web-anonymous-auth": "^0.11.30",
46
46
  "@streamlayer/sdk-web-api": "^0.1.0",
47
- "@streamlayer/sdk-web-core": "^0.1.0",
48
47
  "@streamlayer/sdk-web-features": "^0.11.0",
48
+ "@streamlayer/sdk-web-core": "^0.1.0",
49
49
  "@streamlayer/sdk-web-interfaces": "^0.18.16",
50
50
  "@streamlayer/sdk-web-notifications": "^0.1.0",
51
51
  "@streamlayer/sdk-web-storage": "^0.0.4",