@streamlayer/react-ui 0.91.0 → 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.
Files changed (59) hide show
  1. package/lib/assets/style.css +1 -1
  2. package/lib/index-keh7OLCY.js +67 -0
  3. package/lib/ui/app/Features/Gamification/Friends.d.ts +2 -1
  4. package/lib/ui/app/Features/Gamification/Friends.js +6 -6
  5. package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +3 -2
  6. package/lib/ui/app/Features/Gamification/Leaderboard.js +26 -24
  7. package/lib/ui/app/Features/Gamification/Question.js +1 -1
  8. package/lib/ui/app/Features/Gamification/Tabs.d.ts +7 -2
  9. package/lib/ui/app/Features/Gamification/Tabs.js +35 -28
  10. package/lib/ui/app/Features/Gamification/gamification-feature.js +1 -1
  11. package/lib/ui/app/Features/Gamification/index.d.ts +6 -2
  12. package/lib/ui/app/Features/Gamification/index.js +81 -44
  13. package/lib/ui/app/Features/index.d.ts +6 -2
  14. package/lib/ui/app/Features/index.js +13 -11
  15. package/lib/ui/app/Navigation/MastersNavigation/index.d.ts +3 -2
  16. package/lib/ui/app/Navigation/MastersNavigation/index.js +34 -30
  17. package/lib/ui/app/Navigation/index.js +6 -7
  18. package/lib/ui/app/Notifications/Onboarding/index.d.ts +2 -1
  19. package/lib/ui/app/Notifications/Onboarding/index.js +53 -46
  20. package/lib/ui/app/Notifications/index.d.ts +6 -2
  21. package/lib/ui/app/Notifications/index.js +114 -90
  22. package/lib/ui/app/masters.d.ts +7 -0
  23. package/lib/ui/app/masters.js +67 -51
  24. package/lib/ui/app/useClipboardCopy.d.ts +2 -1
  25. package/lib/ui/app/useMastersApp.js +15 -14
  26. package/lib/ui/app/useSdkResponsive.d.ts +14 -0
  27. package/lib/ui/app/useSdkResponsive.js +46 -0
  28. package/lib/ui/app/useSdkScroll.d.ts +3 -1
  29. package/lib/ui/app/useSdkScroll.js +28 -85
  30. package/lib/ui/gamification/leaderboard/static.d.ts +2 -1
  31. package/lib/ui/gamification/onboarding/index.d.ts +4 -0
  32. package/lib/ui/gamification/onboarding/index.js +56 -40
  33. package/lib/ui/gamification/onboarding/invitingUser/index.d.ts +7 -0
  34. package/lib/ui/gamification/onboarding/invitingUser/index.js +16 -0
  35. package/lib/ui/gamification/onboarding/invitingUser/styles.d.ts +5 -0
  36. package/lib/ui/gamification/onboarding/invitingUser/styles.js +24 -0
  37. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +2 -1
  38. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +1 -1
  39. package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.d.ts +2 -0
  40. package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.js +18 -12
  41. package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.d.ts +7 -0
  42. package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.js +10 -0
  43. package/lib/ui/gamification/onboarding/slides/onboarding-terms/styles.d.ts +5 -0
  44. package/lib/ui/gamification/onboarding/slides/onboarding-terms/styles.js +24 -0
  45. package/lib/ui/gamification/vote/index.js +43 -43
  46. package/lib/ui/gamification/vote/styles.d.ts +1 -0
  47. package/lib/ui/gamification/vote/styles.js +17 -11
  48. package/lib/ui/gamification/vote/vote-option/index.js +20 -20
  49. package/lib/ui/navigation/button/LeaderBoard.js +5 -6
  50. package/lib/ui/navigation/index.js +6 -7
  51. package/lib/ui/navigation/masters.js +3 -5
  52. package/lib/ui/questions/insight/index.js +24 -25
  53. package/lib/utils/createDemo.js +12 -13
  54. package/lib/utils/debug/components/copyLogs.js +10 -9
  55. package/package.json +13 -13
  56. package/lib/LeaderBoard_fzzlxb-w40geAFS.js +0 -1
  57. package/lib/index_ej4hfx-w40geAFS.js +0 -1
  58. package/lib/masters_m6itlr-w40geAFS.js +0 -1
  59. package/lib/utils/useStreamLayerApp.js +0 -25
@@ -1,13 +1,14 @@
1
- import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
- import { InputField as n } from "./styles.js";
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 d = () => /* @__PURE__ */ e(n, { children: [
5
- /* @__PURE__ */ t("label", { children: "Store Logs" }),
6
- /* @__PURE__ */ t("button", { onClick: () => {
7
- const o = document.createElement("a");
8
- o.download = "store_logs_" + (/* @__PURE__ */ new Date()).toISOString() + ".log", o.href = URL.createObjectURL(new Blob([JSON.stringify(window.slStore, null, 2)])), o.click();
9
- }, children: "Download" })
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
- d as CopyLogs
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.91.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.34.0",
47
- "@streamlayer/sdk-web": "^0.1.0",
48
- "@streamlayer/sdk-web-anonymous-auth": "^0.0.1",
49
- "@streamlayer/sdk-web-api": "^0.18.0",
50
- "@streamlayer/sdk-web-core": "^0.17.8",
51
- "@streamlayer/sdk-web-features": "^0.11.13",
52
- "@streamlayer/sdk-web-interfaces": "^0.18.21",
53
- "@streamlayer/sdk-web-logger": "^0.5.10",
54
- "@streamlayer/sdk-web-notifications": "^0.13.4",
55
- "@streamlayer/sdk-web-storage": "^0.3.10",
56
- "@streamlayer/sdk-web-types": "^0.20.1"
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
+ "@streamlayer/sdk-web-storage": "^0.3.11",
55
+ "@streamlayer/sdk-web-types": "^0.21.0",
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.36.1"
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
- };