@streamlayer/react-ui 0.49.0 → 0.50.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/ui/app/masters.d.ts +4 -4
- package/lib/ui/app/masters.js +24 -25
- package/package.json +7 -7
package/lib/ui/app/masters.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
3
|
export type Overlays = {};
|
|
4
|
-
export type
|
|
4
|
+
export type MastersAppChildrenProps = {
|
|
5
5
|
enableSdk: () => void;
|
|
6
6
|
disableSdk: () => void;
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
8
|
+
export type MastersAppProps = {
|
|
9
9
|
sdk: StreamLayerSDK;
|
|
10
10
|
event: string;
|
|
11
11
|
overlays?: Overlays;
|
|
12
|
-
children
|
|
12
|
+
children: (methods: MastersAppChildrenProps) => React.ReactNode;
|
|
13
13
|
};
|
|
14
|
-
export declare const MastersApp: React.FC<
|
|
14
|
+
export declare const MastersApp: React.FC<MastersAppProps>;
|
package/lib/ui/app/masters.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import { StreamLayerThemeProvider as f } from "../theme/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { useMastersApp as b } from "./useMastersApp.js";
|
|
3
|
+
import { ActiveFeature as v } from "./Features/index.js";
|
|
4
|
+
import { MastersNavigation as S } from "./Navigation/MastersNavigation/index.js";
|
|
5
|
+
import { SDKContainer as y, SDKScrollContainer as e } from "./styles.js";
|
|
6
|
+
import { useMastersApp as h } from "./useMastersApp.js";
|
|
8
7
|
import { useSdkFeature as k } from "./useSdkFeature.js";
|
|
9
|
-
import { ChannelsButtonId as
|
|
8
|
+
import { ChannelsButtonId as b } from "../navigation/button/Channels.js";
|
|
10
9
|
import { LeaderBoardButtonId as a } from "../navigation/button/LeaderBoard.js";
|
|
11
|
-
import { FeaturedGroupsButtonId as
|
|
10
|
+
import { FeaturedGroupsButtonId as A } from "../navigation/button/FeaturedGroups.js";
|
|
12
11
|
import "../theme/theme.js";
|
|
13
12
|
import "@linaria/core";
|
|
14
13
|
import "../theme/constants.js";
|
|
@@ -79,42 +78,42 @@ import "../navigation/masters.js";
|
|
|
79
78
|
import "../navigation/index.js";
|
|
80
79
|
import "../navigation/button/index.js";
|
|
81
80
|
import "../navigation/button/styles.js";
|
|
82
|
-
const
|
|
81
|
+
const g = ({ sdk: o }) => {
|
|
83
82
|
const [, m] = k(o);
|
|
84
|
-
return /* @__PURE__ */
|
|
85
|
-
},
|
|
86
|
-
const { sdkEnabled: i, sdkReady:
|
|
83
|
+
return /* @__PURE__ */ r(v, { feature: m, sdk: o });
|
|
84
|
+
}, Xt = ({ sdk: o, overlays: m, children: p, event: n }) => {
|
|
85
|
+
const { sdkEnabled: i, sdkReady: d, activeOverlay: t, activateAndLoadOverlay: s, enableSdk: l, disableSdk: c } = h(
|
|
87
86
|
o,
|
|
88
87
|
n
|
|
89
88
|
);
|
|
90
|
-
return /* @__PURE__ */
|
|
91
|
-
i && /* @__PURE__ */
|
|
92
|
-
|
|
89
|
+
return /* @__PURE__ */ r(f, { style: { height: "100%" }, children: /* @__PURE__ */ u(y, { children: [
|
|
90
|
+
i && /* @__PURE__ */ r(
|
|
91
|
+
S,
|
|
93
92
|
{
|
|
94
|
-
sdkReady:
|
|
95
|
-
activeOverlay:
|
|
96
|
-
setActiveOverlay:
|
|
93
|
+
sdkReady: d,
|
|
94
|
+
activeOverlay: t,
|
|
95
|
+
setActiveOverlay: s
|
|
97
96
|
}
|
|
98
97
|
),
|
|
99
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ r(
|
|
100
99
|
e,
|
|
101
100
|
{
|
|
102
101
|
"data-nav": i.toString(),
|
|
103
|
-
style: { display: !i ||
|
|
102
|
+
style: { display: !i || t === b ? "block" : "none" },
|
|
104
103
|
children: p && p({ enableSdk: l, disableSdk: c })
|
|
105
104
|
}
|
|
106
105
|
),
|
|
107
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ r(
|
|
108
107
|
e,
|
|
109
108
|
{
|
|
110
109
|
"data-nav": i.toString(),
|
|
111
|
-
style: { display:
|
|
112
|
-
children: m &&
|
|
110
|
+
style: { display: t === a ? "block" : "none" },
|
|
111
|
+
children: m && t === a && m[t]
|
|
113
112
|
}
|
|
114
113
|
),
|
|
115
|
-
i &&
|
|
114
|
+
i && t === A && /* @__PURE__ */ r(g, { sdk: o })
|
|
116
115
|
] }) });
|
|
117
116
|
};
|
|
118
117
|
export {
|
|
119
|
-
|
|
118
|
+
Xt as MastersApp
|
|
120
119
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
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.
|
|
34
|
-
"@streamlayer/sdk-web": "^0.
|
|
35
|
-
"@streamlayer/sdk-web
|
|
33
|
+
"@streamlayer/feature-gamification": "^0.19.2",
|
|
34
|
+
"@streamlayer/sdk-web-anonymous-auth": "^0.11.4",
|
|
35
|
+
"@streamlayer/sdk-web": "^0.28.9",
|
|
36
36
|
"@streamlayer/sdk-web-api": "^0.1.0",
|
|
37
|
-
"@streamlayer/sdk-web-core": "^0.
|
|
38
|
-
"@streamlayer/sdk-web-features": "^0.10.
|
|
37
|
+
"@streamlayer/sdk-web-core": "^0.17.0",
|
|
38
|
+
"@streamlayer/sdk-web-features": "^0.10.12",
|
|
39
39
|
"@streamlayer/sdk-web-interfaces": "^0.18.8",
|
|
40
40
|
"@streamlayer/sdk-web-notifications": "^0.10.7",
|
|
41
41
|
"@streamlayer/sdk-web-storage": "^0.3.9",
|
|
@@ -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.25.0"
|
|
82
82
|
}
|
|
83
83
|
}
|