@streamlayer/react-ui 0.52.1 → 0.52.2

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
1
  import { jsxs as p, Fragment as e, jsx as r } from "react/jsx-runtime";
2
2
  import { styled as n } from "@linaria/react";
3
3
  import { useStore as s } from "@nanostores/react";
4
- import { SDKScrollContainer as l } from "../../styles.js";
5
- import { ShowIn as d } from "../../../show-in/index.js";
6
- import { Question as u } from "./Question.js";
4
+ import { SDKScrollContainer as d } from "../../styles.js";
5
+ import { ShowIn as u } from "../../../show-in/index.js";
6
+ import { Question as l } from "./Question.js";
7
7
  import { Tabs as a } from "./Tabs.js";
8
8
  import "@streamlayer/sdk-web-types";
9
9
  import "../../../gamification/detail/header/index.js";
@@ -52,26 +52,26 @@ import "../../../gamification/user-statistics/components/rank/styles.js";
52
52
  import "../../../gamification/user-statistics/components/statistic/index.js";
53
53
  import "../../../gamification/user-statistics/components/statistic/styles.js";
54
54
  import "../../../gamification/user-statistics/styles.js";
55
- const c = n(d)`
55
+ const c = n(u)`
56
56
  position: absolute;
57
57
  inset: 0;
58
58
  top: var(--header-height);
59
59
  background: var(--color-neutrals-white);
60
60
  z-index: 3;
61
- `, fo = ({ gamification: o, className: t }) => {
61
+ `, Qo = ({ gamification: o, className: t }) => {
62
62
  const { loading: m, data: i } = s(o.openedQuestion);
63
63
  return /* @__PURE__ */ p(e, { children: [
64
64
  (m || i) && /* @__PURE__ */ r(c, { className: t, children: /* @__PURE__ */ r(
65
- u,
65
+ l,
66
66
  {
67
67
  closeQuestion: o.closeQuestion,
68
68
  vote: o.submitAnswer,
69
69
  openedQuestion: i
70
70
  }
71
71
  ) }),
72
- /* @__PURE__ */ r(l, { className: t, "data-nav": "true", style: { display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ r(a, { gamification: o }) })
72
+ /* @__PURE__ */ r(d, { className: t, "data-nav": "true", children: /* @__PURE__ */ r(a, { gamification: o }) })
73
73
  ] });
74
74
  };
75
75
  export {
76
- fo as GamificationOverlay
76
+ Qo as GamificationOverlay
77
77
  };
@@ -1,41 +1,41 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as t } from "react/jsx-runtime";
2
2
  import l from "react-virtualized-auto-sizer";
3
- import { FixedSizeList as u } from "react-window";
4
- import I from "react-window-infinite-loader";
5
- import { LeaderboardItem as f } from "../leaderboard-item/index.js";
3
+ import { FixedSizeList as h } from "react-window";
4
+ import u from "react-window-infinite-loader";
5
+ import { LeaderboardItem as I } from "../leaderboard-item/index.js";
6
6
  import "../../../utils/common.js";
7
7
  import "../leaderboard-item/styles.js";
8
8
  import "@linaria/react";
9
9
  import "../../icons/index.js";
10
10
  import "react";
11
- const x = ({ items: r, openItemDetail: i, fetchMore: m }) => /* @__PURE__ */ o(l, { children: ({ width: d, height: n }) => /* @__PURE__ */ o(
12
- I,
11
+ const j = ({ items: r, openItemDetail: i, fetchMore: m }) => /* @__PURE__ */ t(l, { children: ({ width: d, height: n }) => /* @__PURE__ */ t(
12
+ u,
13
13
  {
14
- isItemLoaded: (t) => t < r.length,
14
+ isItemLoaded: (e) => e < r.length,
15
15
  itemCount: r.length + 1,
16
16
  loadMoreItems: m,
17
- children: ({ onItemsRendered: t, ref: p }) => /* @__PURE__ */ o(
18
- u,
17
+ children: ({ onItemsRendered: e, ref: p }) => /* @__PURE__ */ t(
18
+ h,
19
19
  {
20
- itemSize: 58,
21
- onItemsRendered: t,
20
+ itemSize: 56,
21
+ onItemsRendered: e,
22
22
  ref: p,
23
23
  itemCount: r.length,
24
24
  width: d,
25
25
  height: n,
26
- children: ({ index: e, style: a }) => /* @__PURE__ */ o(
27
- f,
26
+ children: ({ index: o, style: a }) => /* @__PURE__ */ t(
27
+ I,
28
28
  {
29
- style: a,
30
- ...r[e],
31
- openItemDetail: () => i(r[e].userId)
29
+ style: { ...a, maxHeight: 48 },
30
+ ...r[o],
31
+ openItemDetail: () => i(r[o].userId)
32
32
  },
33
- r[e].userId
33
+ r[o].userId
34
34
  )
35
35
  }
36
36
  )
37
37
  }
38
38
  ) });
39
39
  export {
40
- x as LeaderboardList
40
+ j as LeaderboardList
41
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "0.52.1",
3
+ "version": "0.52.2",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -30,12 +30,12 @@
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/feature-gamification": "^0.19.4",
34
- "@streamlayer/sdk-web": "^0.28.11",
35
- "@streamlayer/sdk-web-anonymous-auth": "^0.11.6",
33
+ "@streamlayer/sdk-web": "^0.28.12",
34
+ "@streamlayer/feature-gamification": "^0.19.5",
35
+ "@streamlayer/sdk-web-anonymous-auth": "^0.11.7",
36
36
  "@streamlayer/sdk-web-api": "^0.0.1",
37
- "@streamlayer/sdk-web-core": "^0.17.1",
38
- "@streamlayer/sdk-web-features": "^0.10.14",
37
+ "@streamlayer/sdk-web-core": "^0.17.2",
38
+ "@streamlayer/sdk-web-features": "^0.10.15",
39
39
  "@streamlayer/sdk-web-interfaces": "^0.18.9",
40
40
  "@streamlayer/sdk-web-notifications": "^0.10.8",
41
41
  "@streamlayer/sdk-web-storage": "^0.3.10",
@@ -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.26.1"
81
+ "@streamlayer/react": "^0.26.2"
82
82
  }
83
83
  }