@streamlayer/react-ui 0.35.0 → 0.36.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 (118) hide show
  1. package/lib/index.d.ts +13 -0
  2. package/lib/ui/app/Features/FeatureProvider.d.ts +9 -0
  3. package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +5 -0
  4. package/lib/ui/app/Features/Gamification/Question.d.ts +7 -0
  5. package/lib/ui/app/Features/Gamification/QuestionsList.d.ts +6 -0
  6. package/lib/ui/app/Features/Gamification/Tabs.d.ts +5 -0
  7. package/lib/ui/app/Features/Gamification/UserSummary.d.ts +5 -0
  8. package/lib/ui/app/Features/Gamification/index.d.ts +7 -0
  9. package/lib/ui/app/Features/Highlights/Insight.d.ts +7 -0
  10. package/lib/ui/app/Features/Highlights/Insights.d.ts +6 -0
  11. package/lib/ui/app/Features/Highlights/index.d.ts +7 -0
  12. package/lib/ui/app/Features/index.d.ts +8 -0
  13. package/lib/ui/app/Navigation/MastersNavigation/index.d.ts +11 -0
  14. package/lib/ui/app/Navigation/MastersNavigation/index.js +11 -10
  15. package/lib/ui/app/Navigation/index.d.ts +9 -0
  16. package/lib/ui/app/Notifications/index.d.ts +5 -0
  17. package/lib/ui/app/masters.d.ts +14 -0
  18. package/lib/ui/app/{index.js → masters.js} +52 -24
  19. package/lib/ui/app/styles.d.ts +3 -0
  20. package/lib/ui/app/useSdkFeature.d.ts +4 -0
  21. package/lib/ui/demo/DemoPoints.d.ts +5 -0
  22. package/lib/ui/demo/Gamification.d.ts +7 -0
  23. package/lib/ui/demo/Highlights.d.ts +7 -0
  24. package/lib/ui/demo/Login.d.ts +5 -0
  25. package/lib/ui/demo/components/EventProvider.d.ts +2 -0
  26. package/lib/ui/demo/components/Insight.d.ts +7 -0
  27. package/lib/ui/demo/components/Insights.d.ts +6 -0
  28. package/lib/ui/demo/components/Leaderboard.d.ts +5 -0
  29. package/lib/ui/demo/components/Question.d.ts +7 -0
  30. package/lib/ui/demo/components/QuestionsList.d.ts +6 -0
  31. package/lib/ui/demo/components/UserSummary.d.ts +5 -0
  32. package/lib/ui/demo/components/index.d.ts +7 -0
  33. package/lib/ui/demo/index.d.ts +5 -0
  34. package/lib/ui/demo/index.js +43 -51
  35. package/lib/ui/demo/styles.d.ts +6 -0
  36. package/lib/ui/gamification/common-header/index.d.ts +8 -0
  37. package/lib/ui/gamification/common-header/styles.d.ts +4 -0
  38. package/lib/ui/gamification/detailed-insight/index.d.ts +12 -0
  39. package/lib/ui/gamification/detailed-insight/styles.d.ts +8 -0
  40. package/lib/ui/gamification/insight/index.d.ts +11 -0
  41. package/lib/ui/gamification/insight/styles.d.ts +9 -0
  42. package/lib/ui/gamification/insight-list/index.d.ts +13 -0
  43. package/lib/ui/gamification/insight-list/styles.d.ts +3 -0
  44. package/lib/ui/gamification/leaderboard-invite-link/index.d.ts +8 -0
  45. package/lib/ui/gamification/leaderboard-invite-link/styles.d.ts +8 -0
  46. package/lib/ui/gamification/leaderboard-item/index.d.ts +7 -0
  47. package/lib/ui/gamification/leaderboard-item/styles.d.ts +10 -0
  48. package/lib/ui/gamification/leaderboard-item-detail/index.d.ts +7 -0
  49. package/lib/ui/gamification/leaderboard-item-detail/styles.d.ts +2 -0
  50. package/lib/ui/gamification/leaderboard-list/index.d.ts +8 -0
  51. package/lib/ui/gamification/leaderboard-list/styles.d.ts +2 -0
  52. package/lib/ui/gamification/onboarding/components/onboarding-slides/onboarding-instructions/index.d.ts +7 -0
  53. package/lib/ui/gamification/onboarding/components/onboarding-slides/onboarding-instructions/styles.d.ts +5 -0
  54. package/lib/ui/gamification/onboarding/components/onboarding-slides/onboarding-invite-card/index.d.ts +8 -0
  55. package/lib/ui/gamification/onboarding/components/onboarding-slides/onboarding-invite-card/styles.d.ts +8 -0
  56. package/lib/ui/gamification/onboarding/components/onboarding-slides/onboarding-rules/index.d.ts +8 -0
  57. package/lib/ui/gamification/onboarding/components/onboarding-slides/onboarding-rules/styles.d.ts +7 -0
  58. package/lib/ui/gamification/onboarding/index.d.ts +21 -0
  59. package/lib/ui/gamification/onboarding/styles.d.ts +11 -0
  60. package/lib/ui/gamification/points/index.d.ts +4 -0
  61. package/lib/ui/gamification/points/styles.d.ts +7 -0
  62. package/lib/ui/gamification/question/index.d.ts +5 -0
  63. package/lib/ui/gamification/question/styles.d.ts +12 -0
  64. package/lib/ui/gamification/question-list/index.d.ts +8 -0
  65. package/lib/ui/gamification/question-list/styles.d.ts +4 -0
  66. package/lib/ui/gamification/tabs/index.d.ts +17 -0
  67. package/lib/ui/gamification/tabs/styles.d.ts +5 -0
  68. package/lib/ui/gamification/user-statistics/components/rank/index.d.ts +7 -0
  69. package/lib/ui/gamification/user-statistics/components/rank/styles.d.ts +4 -0
  70. package/lib/ui/gamification/user-statistics/components/statistics/index.d.ts +7 -0
  71. package/lib/ui/gamification/user-statistics/components/statistics/styles.d.ts +3 -0
  72. package/lib/ui/gamification/user-statistics/index.d.ts +14 -0
  73. package/lib/ui/gamification/user-statistics/styles.d.ts +16 -0
  74. package/lib/ui/gamification/vote/components/voting-header/components/points/index.d.ts +6 -0
  75. package/lib/ui/gamification/vote/components/voting-header/components/points/styles.d.ts +6 -0
  76. package/lib/ui/gamification/vote/components/voting-header/components/timer/index.d.ts +8 -0
  77. package/lib/ui/gamification/vote/components/voting-header/components/timer/styles.d.ts +2 -0
  78. package/lib/ui/gamification/vote/components/voting-header/index.d.ts +12 -0
  79. package/lib/ui/gamification/vote/components/voting-header/styles.d.ts +11 -0
  80. package/lib/ui/gamification/vote/components/voting-option/index.d.ts +20 -0
  81. package/lib/ui/gamification/vote/components/voting-option/styles.d.ts +13 -0
  82. package/lib/ui/gamification/vote/index.d.ts +13 -0
  83. package/lib/ui/gamification/vote/styles.d.ts +9 -0
  84. package/lib/ui/icons/index.d.ts +43 -0
  85. package/lib/ui/login/index.d.ts +6 -0
  86. package/lib/ui/login/styles.d.ts +8 -0
  87. package/lib/ui/navigation/button/Channels.d.ts +4 -0
  88. package/lib/ui/navigation/button/FeaturedGroups.d.ts +4 -0
  89. package/lib/ui/navigation/button/LeaderBoard.d.ts +4 -0
  90. package/lib/ui/navigation/button/index.d.ts +12 -0
  91. package/lib/ui/navigation/button/styles.d.ts +3 -0
  92. package/lib/ui/navigation/index.d.ts +6 -0
  93. package/lib/ui/navigation/masters.d.ts +5 -0
  94. package/lib/ui/notifications/decorator.d.ts +4 -0
  95. package/lib/ui/notifications/index.d.ts +5 -0
  96. package/lib/ui/notifications/notification/index.d.ts +6 -0
  97. package/lib/ui/notifications/notification/onboarding-inapp/index.d.ts +3 -0
  98. package/lib/ui/notifications/notification/onboarding-inapp/styles.d.ts +12 -0
  99. package/lib/ui/notifications/notification/question-inapp/index.d.ts +3 -0
  100. package/lib/ui/notifications/notification/question-inapp/styles.d.ts +10 -0
  101. package/lib/ui/notifications/notification/styles.d.ts +2 -0
  102. package/lib/ui/notifications/styles.d.ts +2 -0
  103. package/lib/ui/theme/ThemeColors.d.ts +1 -0
  104. package/lib/ui/theme/Typography.d.ts +2 -0
  105. package/lib/ui/theme/constants.d.ts +79 -0
  106. package/lib/ui/theme/index.d.ts +5 -0
  107. package/lib/ui/theme/masters.d.ts +1 -0
  108. package/lib/ui/theme/theme.d.ts +3 -0
  109. package/lib/utils/createDemo.js +6 -6
  110. package/lib/utils/{components → debug/components}/developer.js +1 -1
  111. package/lib/utils/debug/index.js +33 -0
  112. package/lib/utils/debug/storage.js +52 -0
  113. package/package.json +23 -12
  114. /package/lib/utils/{components → debug/components}/bypassLogin.js +0 -0
  115. /package/lib/utils/{components → debug/components}/envToggle.js +0 -0
  116. /package/lib/utils/{components → debug/components}/eventInput.js +0 -0
  117. /package/lib/utils/{components → debug/components}/sdkKey.js +0 -0
  118. /package/lib/utils/{components → debug/components}/styles.js +0 -0
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { type Notification } from '@streamlayer/sdk-web-notifications';
3
+ export declare const NotificationComponent: React.FC<Notification & {
4
+ index: number;
5
+ total: number;
6
+ }>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { Notification } from '@streamlayer/sdk-web-notifications';
3
+ export declare const OnBoardingInApp: React.FC<Notification>;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const BackgroundBlock: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
+ export declare const Icon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
5
+ export declare const ContentWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
+ export declare const SponsorLogo: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
7
+ export declare const SponsorText: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
8
+ export declare const ContentTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
+ export declare const ContentSubtitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
10
+ export declare const ActionBtn: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
11
+ export declare const CloseBtn: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
12
+ export declare const IconClose: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { Notification } from '@streamlayer/sdk-web-notifications';
3
+ export declare const QuestionInApp: React.FC<Notification>;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const IconWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
+ export declare const Icon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
5
+ export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
+ export declare const TitleWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
+ export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
+ export declare const CloseBtnWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
+ export declare const CloseBtn: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
10
+ export declare const CloseIcon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const NotificationContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const NotificationsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -0,0 +1 @@
1
+ export declare const ThemeColors: () => import("react/jsx-runtime").JSX.Element[];
@@ -0,0 +1,2 @@
1
+ export declare const useCustomFonts: () => void;
2
+ export declare const Typography: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,79 @@
1
+ export declare const MASTERS_COLORS: {
2
+ PRIMARY_GREEN1: string;
3
+ PRIMARY_GREEN2: string;
4
+ PRIMARY_GREEN3: string;
5
+ PRIMARY_GREEN4: string;
6
+ SECONDARY_RED1: string;
7
+ SECONDARY_RED2: string;
8
+ SECONDARY_YELLOW: string;
9
+ SECONDARY_GREEN5: string;
10
+ NEUTRALS_WHITE: string;
11
+ NEUTRALS_GRAY1: string;
12
+ NEUTRALS_GRAY2: string;
13
+ NEUTRALS_GRAY3: string;
14
+ NEUTRALS_GRAY4: string;
15
+ NEUTRALS_GRAY5: string;
16
+ NEUTRALS_GRAY6: string;
17
+ NEUTRALS_GRAY7: string;
18
+ NEUTRALS_GRAY8: string;
19
+ NEUTRALS_GRAY9: string;
20
+ NEUTRALS_BLACK: string;
21
+ };
22
+ export declare const COLORS: {
23
+ BG_TRANSPARENT: string;
24
+ BG_TRANSPARENT_VOTE_CONTAINER: string;
25
+ BG_TRANSPARENT_ITEM: string;
26
+ BG_TRANSPARENT_ITEM_VOTE: string;
27
+ BG_TRANSPARENT_ITEM_SUCCESS: string;
28
+ BG_TRANSPARENT_ITEM_ERROR: string;
29
+ BG_TRANSPARENT_VOTE_PROGRESS: string;
30
+ BG_TRANSPARENT_VOTE_PROGRESS_SUCCESS: string;
31
+ BG_TRANSPARENT_VOTE_PROGRESS_ERROR: string;
32
+ BG_TRANSPARENT_USER_CONTAINER: string;
33
+ BG_TRANSPARENT_ONBOARDING_INAPP: string;
34
+ LEADERBOARD_UNIT: string;
35
+ BLUE_PRIMARY: string;
36
+ RED_PRIMARY: string;
37
+ RED_SECONDARY: string;
38
+ BLUE_QUESTION_ACTION_BTN: string;
39
+ WHITE: string;
40
+ GREY_1: string;
41
+ GREY_2: string;
42
+ GREY_3: string;
43
+ GREY_4: string;
44
+ GREY_PRIMARY_ONBOARDING_INAPP: string;
45
+ BLACK_1: string;
46
+ GREEN_1: string;
47
+ RED_1: string;
48
+ RED_2: string;
49
+ GREY_PRIMARY: string;
50
+ DIVIDER_COLOR_PRIMARY: string;
51
+ DIVIDER_COLOR_SECONDARY: string;
52
+ GREEN_PRIMARY_BTN: string;
53
+ } & {
54
+ PRIMARY_GREEN1: string;
55
+ PRIMARY_GREEN2: string;
56
+ PRIMARY_GREEN3: string;
57
+ PRIMARY_GREEN4: string;
58
+ SECONDARY_RED1: string;
59
+ SECONDARY_RED2: string;
60
+ SECONDARY_YELLOW: string;
61
+ SECONDARY_GREEN5: string;
62
+ NEUTRALS_WHITE: string;
63
+ NEUTRALS_GRAY1: string;
64
+ NEUTRALS_GRAY2: string;
65
+ NEUTRALS_GRAY3: string;
66
+ NEUTRALS_GRAY4: string;
67
+ NEUTRALS_GRAY5: string;
68
+ NEUTRALS_GRAY6: string;
69
+ NEUTRALS_GRAY7: string;
70
+ NEUTRALS_GRAY8: string;
71
+ NEUTRALS_GRAY9: string;
72
+ NEUTRALS_BLACK: string;
73
+ };
74
+ export declare const FONT: {
75
+ REGULAR: string;
76
+ SERIF: string;
77
+ COLOR: string;
78
+ };
79
+ export declare const colors: string;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const StreamLayerThemeProvider: React.FC<{
3
+ children: React.ReactNode;
4
+ style?: React.CSSProperties;
5
+ }>;
@@ -0,0 +1 @@
1
+ export declare const mastersVariables: import("@linaria/core").LinariaClassName;
@@ -0,0 +1,3 @@
1
+ export declare const themeStr: string;
2
+ export declare const theme: import("@linaria/core").LinariaClassName;
3
+ export declare const ThemeVariables: () => import("react/jsx-runtime").JSX.Element;
@@ -1,17 +1,17 @@
1
1
  import { jsx as e, jsxs as g, Fragment as y } from "react/jsx-runtime";
2
2
  import { useMemo as u, useState as i, useEffect as E } from "react";
3
3
  import { anonymous as l } from "@streamlayer/sdk-web-anonymous-auth";
4
- import { Developer as D } from "./components/developer.js";
4
+ import { Developer as D } from "./debug/components/developer.js";
5
5
  import { DeveloperStorage as w } from "./storage.js";
6
6
  import { useStreamLayerApp as x } from "./useStreamLayerApp.js";
7
7
  import "@linaria/react";
8
- import "./components/bypassLogin.js";
9
- import "./components/envToggle.js";
10
- import "./components/eventInput.js";
8
+ import "./debug/components/bypassLogin.js";
9
+ import "./debug/components/envToggle.js";
10
+ import "./debug/components/eventInput.js";
11
11
  import "@nanostores/react";
12
12
  import "@streamlayer/sdk-web-core";
13
- import "./components/styles.js";
14
- import "./components/sdkKey.js";
13
+ import "./debug/components/styles.js";
14
+ import "./debug/components/sdkKey.js";
15
15
  import "@streamlayer/sdk-web-storage";
16
16
  import "@streamlayer/sdk-web";
17
17
  function K({
@@ -1,7 +1,7 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import { styled as i } from "@linaria/react";
3
3
  import { useMemo as x, useState as g } from "react";
4
- import { DeveloperStorage as h } from "../storage.js";
4
+ import { DeveloperStorage as h } from "../../storage.js";
5
5
  import { BypassLogin as u } from "./bypassLogin.js";
6
6
  import { EnvToggle as b } from "./envToggle.js";
7
7
  import { EventInput as v } from "./eventInput.js";
@@ -0,0 +1,33 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { useMemo as a, useState as r } from "react";
3
+ import { useStreamLayer as u } from "@streamlayer/react";
4
+ import { Developer as v } from "./components/developer.js";
5
+ import { DeveloperStorage as c } from "./storage.js";
6
+ import "@linaria/react";
7
+ import "../storage.js";
8
+ import "@streamlayer/sdk-web-storage";
9
+ import "./components/bypassLogin.js";
10
+ import "./components/envToggle.js";
11
+ import "./components/eventInput.js";
12
+ import "@nanostores/react";
13
+ import "@streamlayer/sdk-web-core";
14
+ import "./components/styles.js";
15
+ import "./components/sdkKey.js";
16
+ const M = () => {
17
+ const e = a(() => new c(), []), [t, o] = r(e.getEnv()), [m, s] = r(e.getSdkKey() || "set-sdk-key"), [p, n] = r(e.getEvent() || "");
18
+ return {
19
+ env: t,
20
+ setEnv: o,
21
+ sdkKey: m,
22
+ setSdkKey: s,
23
+ event: p,
24
+ setEvent: n
25
+ };
26
+ }, h = (e) => {
27
+ const t = u();
28
+ return /* @__PURE__ */ i(v, { sdk: t, ...e });
29
+ };
30
+ export {
31
+ h as StreamLayerDebug,
32
+ M as useStreamLayerDebug
33
+ };
@@ -0,0 +1,52 @@
1
+ var n = Object.defineProperty;
2
+ var i = (s, r, e) => r in s ? n(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
3
+ var t = (s, r, e) => (i(s, typeof r != "symbol" ? r + "" : r, e), e);
4
+ import { Storage as h } from "@streamlayer/sdk-web-storage";
5
+ class d extends h {
6
+ constructor() {
7
+ super("dev");
8
+ // Schema
9
+ t(this, "setSchema", (e) => {
10
+ this.write("schema", e);
11
+ });
12
+ t(this, "getSchema", () => this.read(
13
+ "schema"
14
+ /* SCHEMA */
15
+ ));
16
+ // Token
17
+ t(this, "setToken", (e) => {
18
+ this.write("token", e);
19
+ });
20
+ t(this, "getToken", () => this.read(
21
+ "token"
22
+ /* TOKEN */
23
+ ));
24
+ // Event
25
+ t(this, "setEvent", (e) => {
26
+ this.write("event", e);
27
+ });
28
+ t(this, "getEvent", () => this.read(
29
+ "event"
30
+ /* EVENT */
31
+ ));
32
+ // SDK_KEY
33
+ t(this, "setSdkKey", (e) => {
34
+ this.write("sdkKey", e);
35
+ });
36
+ t(this, "getSdkKey", () => this.read(
37
+ "sdkKey"
38
+ /* SDK_KEY */
39
+ ));
40
+ // ENV
41
+ t(this, "setEnv", (e) => {
42
+ this.write("env", e);
43
+ });
44
+ t(this, "getEnv", () => this.read(
45
+ "env"
46
+ /* ENV */
47
+ ) || "production");
48
+ }
49
+ }
50
+ export {
51
+ d as DeveloperStorage
52
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "0.35.0",
3
+ "version": "0.36.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -10,6 +10,11 @@
10
10
  "default": "./lib/index.js",
11
11
  "types": "./lib/index.d.js"
12
12
  },
13
+ "./masters": {
14
+ "import": "./lib/ui/app/masters.js",
15
+ "default": "./lib/ui/app/masters.js",
16
+ "types": "./lib/ui/app/masters.d.js"
17
+ },
13
18
  "./*": {
14
19
  "import": "./lib/*/index.js",
15
20
  "default": "./lib/*/index.js",
@@ -22,16 +27,21 @@
22
27
  ],
23
28
  "peerDependencies": {
24
29
  "@streamlayer/sl-eslib": "^5.45.1",
25
- "@streamlayer/feature-gamification": "^0.17.3",
26
- "@streamlayer/sdk-web": "^0.28.0",
27
- "@streamlayer/sdk-web-anonymous-auth": "^0.10.9",
28
- "@streamlayer/sdk-web-api": "^0.0.4",
29
- "@streamlayer/sdk-web-core": "^0.14.0",
30
- "@streamlayer/sdk-web-features": "^0.10.3",
31
- "@streamlayer/sdk-web-interfaces": "^0.18.2",
32
- "@streamlayer/sdk-web-notifications": "^0.10.1",
33
- "@streamlayer/sdk-web-storage": "^0.3.4",
34
- "@streamlayer/sdk-web-types": "^0.16.2"
30
+ "@streamlayer/feature-gamification": "^0.17.4",
31
+ "@streamlayer/sdk-web": "^0.28.1",
32
+ "@streamlayer/sdk-web-anonymous-auth": "^0.10.10",
33
+ "@streamlayer/sdk-web-api": "^0.0.5",
34
+ "@streamlayer/sdk-web-core": "^0.14.1",
35
+ "@streamlayer/sdk-web-features": "^0.10.4",
36
+ "@streamlayer/sdk-web-interfaces": "^0.18.3",
37
+ "@streamlayer/sdk-web-notifications": "^0.10.2",
38
+ "@streamlayer/sdk-web-storage": "^0.3.5",
39
+ "@streamlayer/sdk-web-types": "^0.16.3"
40
+ },
41
+ "nx": {
42
+ "implicitDependencies": [
43
+ "!react"
44
+ ]
35
45
  },
36
46
  "devDependencies": {
37
47
  "@connectrpc/connect": "^1.1.3",
@@ -62,6 +72,7 @@
62
72
  "vite-plugin-node-polyfills": "^0.16.0",
63
73
  "vite-plugin-svgr": "^4.1.0",
64
74
  "vite-svg-loader": "^4.0.0",
65
- "vite-tsconfig-paths": "^4.2.1"
75
+ "vite-tsconfig-paths": "^4.2.1",
76
+ "@streamlayer/react": "^0.23.0"
66
77
  }
67
78
  }