@streamlayer/react 0.25.0 → 0.26.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/app/masters.d.ts +12 -1
- package/lib/app-4f52ea4a.js +29 -0
- package/lib/app-5daf0c14.cjs +1 -0
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/es/auth.js +11 -11
- package/lib/es/index.js +10 -10
- package/lib/es/masters.js +183 -178
- package/lib/es/points.js +23 -23
- package/lib/{provider-bc10f329.cjs → index-7542e06a.cjs} +4 -4
- package/lib/{provider-a48a64e8.js → index-98996b43.js} +927 -927
- package/lib/style.css +1 -1
- package/package.json +25 -19
- package/lib/app-7d2366e2.js +0 -29
- package/lib/app-ee511fac.cjs +0 -1
package/lib/es/points.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { FeatureType as n } from "@streamlayer/sdk-web-types";
|
|
3
3
|
import { useMemo as p } from "react";
|
|
4
|
-
import { s, Y as l, c } from "../
|
|
4
|
+
import { s, Y as l, f as c, c as u, p as d } from "../index-98996b43.js";
|
|
5
5
|
import "react-auth-code-input";
|
|
6
6
|
import "react-phone-number-input";
|
|
7
7
|
import "@connectrpc/connect";
|
|
@@ -14,55 +14,55 @@ import "@streamlayer/sdk-web-api";
|
|
|
14
14
|
import "@streamlayer/sdk-web-storage";
|
|
15
15
|
import { useStore as a } from "@nanostores/react";
|
|
16
16
|
import "@streamlayer/sdk-web-notifications";
|
|
17
|
-
import { u } from "../app-
|
|
17
|
+
import { u as f } from "../app-4f52ea4a.js";
|
|
18
|
+
import "./useStreamLayerApp.js";
|
|
19
|
+
import "@streamlayer/sdk-web";
|
|
18
20
|
import "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
19
21
|
import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
20
22
|
import "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
21
23
|
import "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
22
24
|
import "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
23
|
-
|
|
24
|
-
import "@streamlayer/sdk-web";
|
|
25
|
-
const d = () => l, f = /* @__PURE__ */ s("div")({
|
|
25
|
+
const S = () => l, y = /* @__PURE__ */ s("div")({
|
|
26
26
|
name: "l",
|
|
27
27
|
class: "l4qld3l",
|
|
28
28
|
propsAsIs: !1
|
|
29
|
-
}),
|
|
29
|
+
}), h = /* @__PURE__ */ s("div")({
|
|
30
30
|
name: "a",
|
|
31
31
|
class: "ainhtok",
|
|
32
32
|
propsAsIs: !1
|
|
33
|
-
}),
|
|
33
|
+
}), v = /* @__PURE__ */ s(S())({
|
|
34
34
|
name: "x",
|
|
35
35
|
class: "xk8yd5t",
|
|
36
36
|
propsAsIs: !0
|
|
37
|
-
}),
|
|
37
|
+
}), x = /* @__PURE__ */ s("div")({
|
|
38
38
|
name: "h",
|
|
39
39
|
class: "h6rf9gb",
|
|
40
40
|
propsAsIs: !1
|
|
41
|
-
}),
|
|
41
|
+
}), g = /* @__PURE__ */ s("div")({
|
|
42
42
|
name: "c",
|
|
43
43
|
class: "c18f5pxx",
|
|
44
44
|
propsAsIs: !1
|
|
45
|
-
}),
|
|
45
|
+
}), A = /* @__PURE__ */ s("div")({
|
|
46
46
|
name: "m",
|
|
47
47
|
class: "m1jwsyj1",
|
|
48
48
|
propsAsIs: !1
|
|
49
|
-
}),
|
|
50
|
-
/* @__PURE__ */ t(
|
|
51
|
-
/* @__PURE__ */ m(
|
|
52
|
-
/* @__PURE__ */ t(
|
|
53
|
-
/* @__PURE__ */ t(
|
|
49
|
+
}), I = ({ points: r }) => /* @__PURE__ */ m(y, { className: c, children: [
|
|
50
|
+
/* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(v, { name: "icon-trophy" }) }),
|
|
51
|
+
/* @__PURE__ */ m(x, { children: [
|
|
52
|
+
/* @__PURE__ */ t(g, { children: "Total points" }),
|
|
53
|
+
/* @__PURE__ */ t(A, { children: u(r) })
|
|
54
54
|
] })
|
|
55
|
-
] }),
|
|
55
|
+
] }), j = ({ userSummary: r }) => {
|
|
56
56
|
var e, o;
|
|
57
57
|
const i = a(r.getStore());
|
|
58
|
-
return ((o = (e = i.data) == null ? void 0 : e.summary) == null ? void 0 : o.points) === void 0 ? null : /* @__PURE__ */ t(
|
|
59
|
-
},
|
|
58
|
+
return ((o = (e = i.data) == null ? void 0 : e.summary) == null ? void 0 : o.points) === void 0 ? null : /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(I, { points: i.data.summary.points }) }) });
|
|
59
|
+
}, L = ({ sdk: r }) => {
|
|
60
60
|
const { organizationSettings: i, streamSettings: e } = a(r.sdkStore), o = p(() => r.getFeature(n.GAMES), [r, i, e]);
|
|
61
|
-
return o ? /* @__PURE__ */ t(
|
|
62
|
-
},
|
|
63
|
-
const r =
|
|
64
|
-
return r ? /* @__PURE__ */ t(
|
|
61
|
+
return o ? /* @__PURE__ */ t(j, { userSummary: o.userSummary }) : null;
|
|
62
|
+
}, U = () => {
|
|
63
|
+
const r = f();
|
|
64
|
+
return r ? /* @__PURE__ */ t(L, { sdk: r }) : null;
|
|
65
65
|
};
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
U as StreamLayerSDKPoints
|
|
68
68
|
};
|