@streamlayer/react-ui 0.91.1 → 0.92.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/assets/style.css +1 -1
- package/lib/index-keh7OLCY.js +67 -0
- package/lib/ui/app/Features/Gamification/Friends.d.ts +2 -1
- package/lib/ui/app/Features/Gamification/Friends.js +6 -6
- package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +3 -2
- package/lib/ui/app/Features/Gamification/Leaderboard.js +26 -24
- package/lib/ui/app/Features/Gamification/Question.js +1 -1
- package/lib/ui/app/Features/Gamification/Tabs.d.ts +7 -2
- package/lib/ui/app/Features/Gamification/Tabs.js +35 -28
- package/lib/ui/app/Features/Gamification/gamification-feature.js +1 -1
- package/lib/ui/app/Features/Gamification/index.d.ts +6 -2
- package/lib/ui/app/Features/Gamification/index.js +81 -44
- package/lib/ui/app/Features/index.d.ts +6 -2
- package/lib/ui/app/Features/index.js +13 -11
- package/lib/ui/app/Navigation/MastersNavigation/index.d.ts +3 -2
- package/lib/ui/app/Navigation/MastersNavigation/index.js +34 -30
- package/lib/ui/app/Navigation/index.js +6 -7
- package/lib/ui/app/Notifications/Onboarding/index.d.ts +2 -1
- package/lib/ui/app/Notifications/Onboarding/index.js +53 -46
- package/lib/ui/app/Notifications/index.d.ts +6 -2
- package/lib/ui/app/Notifications/index.js +114 -90
- package/lib/ui/app/masters.d.ts +7 -0
- package/lib/ui/app/masters.js +67 -51
- package/lib/ui/app/useClipboardCopy.d.ts +2 -1
- package/lib/ui/app/useMastersApp.js +15 -14
- package/lib/ui/app/useSdkResponsive.d.ts +14 -0
- package/lib/ui/app/useSdkResponsive.js +46 -0
- package/lib/ui/app/useSdkScroll.d.ts +3 -1
- package/lib/ui/app/useSdkScroll.js +28 -85
- package/lib/ui/gamification/leaderboard/static.d.ts +2 -1
- package/lib/ui/gamification/onboarding/index.d.ts +4 -0
- package/lib/ui/gamification/onboarding/index.js +56 -40
- package/lib/ui/gamification/onboarding/invitingUser/index.d.ts +7 -0
- package/lib/ui/gamification/onboarding/invitingUser/index.js +16 -0
- package/lib/ui/gamification/onboarding/invitingUser/styles.d.ts +5 -0
- package/lib/ui/gamification/onboarding/invitingUser/styles.js +24 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +2 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +1 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.d.ts +2 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.js +18 -12
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.d.ts +7 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.js +10 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/styles.d.ts +5 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/styles.js +24 -0
- package/lib/ui/gamification/vote/index.js +43 -43
- package/lib/ui/gamification/vote/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/styles.js +17 -11
- package/lib/ui/gamification/vote/vote-option/index.js +20 -20
- package/lib/ui/navigation/button/LeaderBoard.js +5 -6
- package/lib/ui/navigation/index.js +6 -7
- package/lib/ui/navigation/masters.js +3 -5
- package/lib/ui/questions/insight/index.js +24 -25
- package/lib/utils/createDemo.js +12 -13
- package/lib/utils/debug/components/copyLogs.js +10 -9
- package/package.json +11 -11
- package/lib/LeaderBoard_fzzlxb-w40geAFS.js +0 -1
- package/lib/index_ej4hfx-w40geAFS.js +0 -1
- package/lib/masters_m6itlr-w40geAFS.js +0 -1
- package/lib/utils/useStreamLayerApp.js +0 -25
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { InputField as
|
|
1
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { InputField as r } from "./styles.js";
|
|
3
3
|
import "@linaria/react";
|
|
4
|
-
const
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
const p = () => /* @__PURE__ */ t(r, { children: [
|
|
5
|
+
/* @__PURE__ */ o("label", { children: "Subscription Logs" }),
|
|
6
|
+
/* @__PURE__ */ o("button", { onClick: () => {
|
|
7
|
+
navigator.clipboard.writeText(sessionStorage.getItem("slstreamlogs") || "").then(() => {
|
|
8
|
+
alert("Subscription Logs Copied to clipboard");
|
|
9
|
+
});
|
|
10
|
+
}, children: "Copy" })
|
|
10
11
|
] });
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
p as CopyLogs
|
|
13
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.92.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"react-virtualized-auto-sizer": "^1.0.21",
|
|
44
44
|
"react-window": "^1.8.10",
|
|
45
45
|
"react-window-infinite-loader": "^1.0.9",
|
|
46
|
-
"@streamlayer/feature-gamification": "^0.
|
|
47
|
-
"@streamlayer/sdk-web": "^0.30.
|
|
48
|
-
"@streamlayer/sdk-web-anonymous-auth": "^0.11.
|
|
49
|
-
"@streamlayer/sdk-web-api": "^0.
|
|
50
|
-
"@streamlayer/sdk-web-core": "^0.18.
|
|
51
|
-
"@streamlayer/sdk-web-features": "^0.11.
|
|
52
|
-
"@streamlayer/sdk-web-
|
|
53
|
-
"@streamlayer/sdk-web-notifications": "^0.13.
|
|
46
|
+
"@streamlayer/feature-gamification": "^0.35.0",
|
|
47
|
+
"@streamlayer/sdk-web": "^0.30.1",
|
|
48
|
+
"@streamlayer/sdk-web-anonymous-auth": "^0.11.33",
|
|
49
|
+
"@streamlayer/sdk-web-api": "^0.20.0",
|
|
50
|
+
"@streamlayer/sdk-web-core": "^0.18.1",
|
|
51
|
+
"@streamlayer/sdk-web-features": "^0.11.15",
|
|
52
|
+
"@streamlayer/sdk-web-interfaces": "^0.20.0",
|
|
53
|
+
"@streamlayer/sdk-web-notifications": "^0.13.6",
|
|
54
54
|
"@streamlayer/sdk-web-storage": "^0.3.11",
|
|
55
55
|
"@streamlayer/sdk-web-types": "^0.21.0",
|
|
56
|
-
"@streamlayer/sdk-web-
|
|
56
|
+
"@streamlayer/sdk-web-logger": "^0.5.11"
|
|
57
57
|
},
|
|
58
58
|
"nx": {
|
|
59
59
|
"implicitDependencies": [
|
|
@@ -94,6 +94,6 @@
|
|
|
94
94
|
"vite-plugin-svgr": "^4.2.0",
|
|
95
95
|
"vite-svg-loader": "^5.1.0",
|
|
96
96
|
"vite-tsconfig-paths": "^4.3.1",
|
|
97
|
-
"@streamlayer/react": "^0.
|
|
97
|
+
"@streamlayer/react": "^0.37.0"
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useState as i, useEffect as u } from "react";
|
|
2
|
-
import { StreamLayer as l } from "@streamlayer/sdk-web";
|
|
3
|
-
const h = (t, r, n, f) => {
|
|
4
|
-
const [c, a] = i(null);
|
|
5
|
-
return u(() => {
|
|
6
|
-
let s = !1;
|
|
7
|
-
if (!t)
|
|
8
|
-
throw new Error("sdk key should be provided");
|
|
9
|
-
const o = l(t, n, f);
|
|
10
|
-
if (r)
|
|
11
|
-
for (const e of r)
|
|
12
|
-
o.use(e);
|
|
13
|
-
return o.ready().then((e) => {
|
|
14
|
-
s || a(e.sdk);
|
|
15
|
-
}).catch((e) => console.log(e)), () => {
|
|
16
|
-
s = !0, o.close(function(e) {
|
|
17
|
-
if (e)
|
|
18
|
-
throw e;
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
}, [t, n]), c;
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
h as useStreamLayerApp
|
|
25
|
-
};
|