@streamlayer/react-ui 0.43.0 → 0.45.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.
@@ -1,16 +1,19 @@
1
- import { jsx as i, jsxs as f, Fragment as v } from "react/jsx-runtime";
2
- import { FeatureStatus as l } from "@streamlayer/sdk-web-interfaces";
1
+ var y = Object.defineProperty;
2
+ var b = (o, r, t) => r in o ? y(o, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[r] = t;
3
+ var m = (o, r, t) => (b(o, typeof r != "symbol" ? r + "" : r, t), t);
4
+ import { jsx as e, jsxs as l, Fragment as T } from "react/jsx-runtime";
5
+ import { FeatureStatus as c } from "@streamlayer/sdk-web-interfaces";
3
6
  import { FeatureType as g } from "@streamlayer/sdk-web-types";
4
- import { AvailableFeatures as S } from "@streamlayer/sdk-web-features";
5
- import { useState as b, useMemo as h, useEffect as C } from "react";
7
+ import { AvailableFeatures as C } from "@streamlayer/sdk-web-features";
8
+ import { useState as w, useMemo as S, useEffect as F } from "react";
6
9
  import "@streamlayer/sdk-web-api";
7
- import "@streamlayer/sdk-web-storage";
8
- import { useStore as c } from "@nanostores/react";
9
- import { Notifications as F } from "../notifications/index.js";
10
- import { GamificationComponent as w } from "./Gamification.js";
10
+ import { Storage as k } from "@streamlayer/sdk-web-storage";
11
+ import { useStore as f } from "@nanostores/react";
12
+ import { Notifications as x } from "../notifications/index.js";
13
+ import { GamificationComponent as E } from "./Gamification.js";
11
14
  import { HighlightsComponent as G } from "./Highlights.js";
12
15
  import { LoginComponent as H } from "./Login.js";
13
- import { Buttons as x, Button as s } from "./styles.js";
16
+ import { Buttons as A, Button as d } from "./styles.js";
14
17
  import "../notifications/notification/index.js";
15
18
  import "@streamlayer/sdk-web-notifications";
16
19
  import "../notifications/notification/onboarding-inapp/index.js";
@@ -67,8 +70,6 @@ import "../gamification/leaderboard-item-detail/index.js";
67
70
  import "../gamification/common-header/index.js";
68
71
  import "../gamification/leaderboard-item-detail/styles.js";
69
72
  import "../gamification/leaderboard-list/index.js";
70
- import "../gamification/leaderboard-invite-link/index.js";
71
- import "../gamification/leaderboard-invite-link/styles.js";
72
73
  import "../gamification/leaderboard-item/index.js";
73
74
  import "../gamification/leaderboard-item/styles.js";
74
75
  import "../gamification/leaderboard-list/styles.js";
@@ -86,55 +87,91 @@ import "@connectrpc/connect";
86
87
  import "@connectrpc/connect-web";
87
88
  import "@streamlayer/sl-eslib/users/users_connect";
88
89
  import "../login/styles.js";
89
- const A = ({ activeFeature: r, sdk: o }) => {
90
- const [e, n] = b(null), { organizationSettings: a, streamSettings: u } = c(o.sdkStore), y = h(() => {
91
- const t = (u == null ? void 0 : u.data) || (a == null ? void 0 : a.data);
92
- return t != null && t.overlays ? t.overlays : [];
93
- }, [a, u]);
94
- C(() => {
95
- const t = o.getFeatures();
96
- if (r)
97
- for (const [m, p] of t)
98
- m === r ? p.status.get() === l.Suspended && (p.enable(), n(p)) : p.status.get() === l.Ready && p.disable();
90
+ class B extends k {
91
+ constructor() {
92
+ super("user");
93
+ // Schema
94
+ m(this, "setSchema", (t) => {
95
+ this.write("schema", t);
96
+ });
97
+ m(this, "getSchema", () => this.read(
98
+ "schema"
99
+ /* SCHEMA */
100
+ ));
101
+ // Token
102
+ m(this, "setToken", (t) => {
103
+ this.write("token", t);
104
+ });
105
+ m(this, "getToken", () => this.read(
106
+ "token"
107
+ /* TOKEN */
108
+ ));
109
+ // External Token
110
+ m(this, "setExternalToken", (t) => {
111
+ this.write("eToken", t);
112
+ });
113
+ m(this, "getExternalToken", () => this.read(
114
+ "eToken"
115
+ /* EXTERNAL_TOKEN */
116
+ ));
117
+ m(this, "removeToken", () => {
118
+ this.remove(
119
+ "token"
120
+ /* TOKEN */
121
+ );
122
+ });
123
+ }
124
+ }
125
+ new B();
126
+ const R = ({ activeFeature: o, sdk: r }) => {
127
+ const [t, a] = w(null), { organizationSettings: s, streamSettings: u } = f(r.sdkStore), v = S(() => {
128
+ const i = (u == null ? void 0 : u.data) || (s == null ? void 0 : s.data);
129
+ return i != null && i.overlays ? i.overlays : [];
130
+ }, [s, u]);
131
+ F(() => {
132
+ const i = r.getFeatures();
133
+ if (o)
134
+ for (const [n, p] of i)
135
+ n === o ? p.status.get() === c.Suspended && (p.enable(), a(p)) : p.status.get() === c.Ready && p.disable();
99
136
  else {
100
- for (const [, m] of t)
101
- m.status.get() === l.Ready && m.disable();
102
- n(null);
137
+ for (const [, n] of i)
138
+ n.status.get() === c.Ready && n.disable();
139
+ a(null);
103
140
  }
104
141
  return () => {
105
- for (const [, m] of t)
106
- m.status.get() === l.Ready && m.disable();
142
+ for (const [, n] of i)
143
+ n.status.get() === c.Ready && n.disable();
107
144
  };
108
- }, [r, o]);
109
- const d = h(() => e ? e.featureConfig.get().type === g.GAMES ? e ? /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(w, { gamification: e, sdk: o }) }) : /* @__PURE__ */ i("div", { children: "wait gamification..." }) : e.featureConfig.get().type === g.HIGHLIGHTS ? e ? /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(G, { highlights: e, sdk: o }) }) : /* @__PURE__ */ i("div", { children: "wait highlights..." }) : /* @__PURE__ */ i("div", { children: "unknown feature" }) : null, [o, e]);
110
- return /* @__PURE__ */ f("div", { children: [
111
- /* @__PURE__ */ f(x, { children: [
112
- /* @__PURE__ */ i(s, { onClick: () => o.closeFeature(), disabled: !d, children: "close" }),
113
- /* @__PURE__ */ i(s, { onClick: () => o.logout(), children: "logout" }),
114
- y.map((t) => /* @__PURE__ */ f(
115
- s,
145
+ }, [o, r]);
146
+ const h = S(() => t ? t.featureConfig.get().type === g.GAMES ? t ? /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(E, { gamification: t, sdk: r }) }) : /* @__PURE__ */ e("div", { children: "wait gamification..." }) : t.featureConfig.get().type === g.HIGHLIGHTS ? t ? /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(G, { highlights: t, sdk: r }) }) : /* @__PURE__ */ e("div", { children: "wait highlights..." }) : /* @__PURE__ */ e("div", { children: "unknown feature" }) : null, [r, t]);
147
+ return /* @__PURE__ */ l("div", { children: [
148
+ /* @__PURE__ */ l(A, { children: [
149
+ /* @__PURE__ */ e(d, { onClick: () => r.closeFeature(), disabled: !h, children: "close" }),
150
+ /* @__PURE__ */ e(d, { onClick: () => r.logout(), children: "logout" }),
151
+ v.map((i) => /* @__PURE__ */ l(
152
+ d,
116
153
  {
117
- onClick: () => o.openFeature(t.type),
118
- disabled: !(t.type in S),
119
- "data-enable_sdk_button": t.enableSdkButton.toString(),
120
- "data-selected": t.type === r,
154
+ onClick: () => r.openFeature(i.type),
155
+ disabled: !(i.type in C),
156
+ "data-enable_sdk_button": i.enableSdkButton.toString(),
157
+ "data-selected": i.type === o,
121
158
  children: [
122
- /* @__PURE__ */ i("img", { src: t.icon, alt: "" }),
123
- t.name
159
+ /* @__PURE__ */ e("img", { src: i.icon, alt: "" }),
160
+ i.name
124
161
  ]
125
162
  },
126
- t.name
163
+ i.name
127
164
  ))
128
165
  ] }),
129
- d
166
+ h
130
167
  ] });
131
- }, ai = ({ sdk: r }) => {
132
- const o = c(r.organizationStore()), e = c(r.getUserStore()), n = c(r.getActiveFeature());
133
- return o.loading ? /* @__PURE__ */ i("div", { children: "authentication..." }) : o.data ? e.loading ? /* @__PURE__ */ i("div", { children: "authentication..." }) : e.data ? /* @__PURE__ */ f(v, { children: [
134
- /* @__PURE__ */ i(F, { notificationsStore: r.getNotificationsStore() }),
135
- /* @__PURE__ */ i(A, { sdk: r, activeFeature: n })
136
- ] }) : /* @__PURE__ */ i(H, { sdk: r }) : /* @__PURE__ */ i("div", { children: "wrong sdk key..." });
168
+ }, lr = ({ sdk: o }) => {
169
+ const r = f(o.organizationStore()), t = f(o.getUserStore()), a = f(o.getActiveFeature());
170
+ return r.loading ? /* @__PURE__ */ e("div", { children: "authentication..." }) : r.data ? t.loading ? /* @__PURE__ */ e("div", { children: "authentication..." }) : t.data ? /* @__PURE__ */ l(T, { children: [
171
+ /* @__PURE__ */ e(x, { notificationsStore: o.getNotificationsStore() }),
172
+ /* @__PURE__ */ e(R, { sdk: o, activeFeature: a })
173
+ ] }) : /* @__PURE__ */ e(H, { sdk: o }) : /* @__PURE__ */ e("div", { children: "wrong sdk key..." });
137
174
  };
138
175
  export {
139
- ai as Demo
176
+ lr as Demo
140
177
  };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ type InviteLinkProps = {
3
+ title?: string;
4
+ description?: string;
5
+ onClick?: () => void;
6
+ };
7
+ export declare const InviteLink: React.FC<InviteLinkProps>;
8
+ export {};
@@ -0,0 +1,14 @@
1
+ import { jsxs as N, jsx as M } from "react/jsx-runtime";
2
+ import { Container as T, FriendsIcon as g, Content as x, Title as E, Description as A, ArrowInviteIcon as z } from "./styles.js";
3
+ import "@linaria/react";
4
+ const O = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiByeD0iMTYiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xMC40NjE1IDEyLjY4NzVDOS40NDIzMSAxMi42ODc1IDguNjE1MzggMTMuNDY2NSA4LjYxNTM4IDE0LjQyNjZDOC42MTUzOCAxNS4zODY4IDkuNDQyMzEgMTYuMTY1OCAxMC40NjE1IDE2LjE2NThDMTEuNDgwOCAxNi4xNjU4IDEyLjMwNzcgMTUuMzg2OCAxMi4zMDc3IDE0LjQyNjZDMTIuMzA3NyAxMy40NjY1IDExLjQ4MDggMTIuNjg3NSAxMC40NjE1IDEyLjY4NzVaTTEwLjQ2MTUgMTYuMTY1OEM5LjEwODE3IDE2LjE2NTggOCAxNy4yMDk3IDggMTguNDg0NlYxOS43NTI3QzggMTkuN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jE2IDIwLjU2NzIgMTAuODQzN0MyMC41NjcyIDkuODI1ODQgMTkuNjkwNSA5IDE4LjYxIDlaTTE4LjYxIDEyLjY4NzVDMTcuNjMxNCAxMi42ODc1IDE2Ljc4MjggMTMuMTc5NiAxNi4zMjY2IDEzLjkxNjZDMTcuMzA1MiAxNC4wMzkxIDE4LjE0ODcgMTQuNTI0IDE4LjY3MTIgMTUuMjYxQzE4LjY3MTIgMTUuMDE2MSAxOC42MSAxNC43NzYxIDE4LjYxIDE0LjUzMTJDMTguNjEgMTMuODU0MiAxOC44MDg4IDEzLjIzNzIgMTkuMjAxMiAxMi43NDUxQzE5LjAwNSAxMi42ODI3IDE4LjgwNjIgMTIuNjg3NSAxOC42MSAxMi42ODc1WiIgZmlsbD0iIzEwN0Q1NyIvPgo8L3N2Zz4K", L = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlNoYXJlIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTExIDQuOTY1VjEuMTI1TDE4IDcuODQ1TDExIDE0LjU2NVYxMC42MjlDNiAxMC42MjkgMi41IDEyLjE2NSAwIDE1LjUyNUMxIDEwLjcyNSA0IDUuOTI1IDExIDQuOTY1WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K", Y = ({ title: I, description: D, onClick: j }) => /* @__PURE__ */ N(T, { onClick: j, children: [
5
+ /* @__PURE__ */ M(g, { alt: "friends-icon", src: O }),
6
+ /* @__PURE__ */ N(x, { children: [
7
+ /* @__PURE__ */ M(E, { children: I }),
8
+ /* @__PURE__ */ M(A, { children: D })
9
+ ] }),
10
+ /* @__PURE__ */ M(z, { alt: "arrow-invite-icon", src: L })
11
+ ] });
12
+ export {
13
+ Y as InviteLink
14
+ };
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const IconLink: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
4
3
  export declare const FriendsIcon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
5
4
  export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
5
  export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -0,0 +1,48 @@
1
+ import { styled as i } from "@linaria/react";
2
+ const t = i.div`
3
+ display: flex;
4
+ align-items: center;
5
+ column-gap: 4px;
6
+ width: 100%;
7
+ height: 58px;
8
+ min-height: 58px;
9
+ max-height: 58px;
10
+ padding: 4px 12px;
11
+ border-radius: 8px;
12
+ box-sizing: border-box;
13
+ background-color: var(--color-primary-green1);
14
+ overflow: hidden;
15
+ cursor: pointer;
16
+ `, e = i.img`
17
+ width: 32px;
18
+ height: 32px;
19
+ `, r = i.div`
20
+ display: flex;
21
+ flex: 1;
22
+ flex-direction: column;
23
+ row-gap: 6px;
24
+ padding: 0px 4px;
25
+ font-weight: var(--font-weight-default);
26
+ `, n = i.div`
27
+ color: var(--color-neutrals-white);
28
+ font-size: 11px;
29
+ line-height: 14px;
30
+ text-transform: uppercase;
31
+ opacity: 0.8;
32
+ `, p = i.div`
33
+ color: var(--color-white);
34
+ font-size: 14px;
35
+ line-height: 13px;
36
+ `, x = i.img`
37
+ margin-right: 8px;
38
+ width: 18px;
39
+ height: 18px;
40
+ `;
41
+ export {
42
+ x as ArrowInviteIcon,
43
+ t as Container,
44
+ r as Content,
45
+ p as Description,
46
+ e as FriendsIcon,
47
+ n as Title
48
+ };
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { UserStatisticsProps } from '../../gamification/user-statistics';
3
- type LeaderboardItemDetailProps = UserStatisticsProps & {
2
+ type LeaderboardItemDetailProps = {
4
3
  comeBack: () => void;
5
4
  };
6
5
  export declare const LeaderboardItemDetail: React.FC<LeaderboardItemDetailProps>;
@@ -1,20 +1,10 @@
1
- import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
- import { CommonHeader as i } from "../common-header/index.js";
3
- import { UserStatistics as p } from "../user-statistics/index.js";
4
- import { Container as e } from "./styles.js";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { CommonHeader as m } from "../common-header/index.js";
3
+ import { Container as t } from "./styles.js";
5
4
  import "../../../icon-exit-d3f9fc80.js";
6
5
  import "../common-header/styles.js";
7
6
  import "@linaria/react";
8
- import "../../../utils/common.js";
9
- import "../user-statistics/components/rank/index.js";
10
- import "../user-statistics/components/rank/styles.js";
11
- import "../user-statistics/components/statistic/index.js";
12
- import "../user-statistics/components/statistic/styles.js";
13
- import "../user-statistics/styles.js";
14
- const D = ({ comeBack: o, ...t }) => /* @__PURE__ */ m(e, { children: [
15
- /* @__PURE__ */ r(i, { comeBack: o }),
16
- /* @__PURE__ */ r(p, { ...t })
17
- ] });
7
+ const f = ({ comeBack: o }) => /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(m, { comeBack: o }) });
18
8
  export {
19
- D as LeaderboardItemDetail
9
+ f as LeaderboardItemDetail
20
10
  };
@@ -1,16 +1,10 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { LeaderboardInviteLink as n } from "../leaderboard-invite-link/index.js";
1
+ import { jsx as o } from "react/jsx-runtime";
3
2
  import { LeaderboardItem as m } from "../leaderboard-item/index.js";
4
3
  import { Container as p } from "./styles.js";
5
- import "../leaderboard-invite-link/styles.js";
6
- import "@linaria/react";
7
4
  import "../../../utils/common.js";
8
5
  import "../leaderboard-item/styles.js";
9
- const b = ({ items: o, openItemDetail: i }) => /* @__PURE__ */ t(p, { children: [
10
- o.map((r) => /* @__PURE__ */ e(m, { ...r, openItemDetail: () => i(r.userId) }, r.userId)),
11
- /* @__PURE__ */ e(n, { title: "Invite Link", description: "Challenge friends!", onClick: () => {
12
- } })
13
- ] });
6
+ import "@linaria/react";
7
+ const f = ({ items: e, openItemDetail: t }) => /* @__PURE__ */ o(p, { children: e.map((r) => /* @__PURE__ */ o(m, { ...r, openItemDetail: () => t(r.userId) }, r.userId)) });
14
8
  export {
15
- b as LeaderboardList
9
+ f as LeaderboardList
16
10
  };
@@ -12,7 +12,6 @@ export declare const icons: {
12
12
  'icon-masters-logo': any;
13
13
  'icon-logout': any;
14
14
  'icon-link': any;
15
- 'icon-invite-link': any;
16
15
  'icon-invite-arrow': any;
17
16
  'icon-friends': any;
18
17
  'icon-exit': any;