@streamlayer/react 0.30.0 → 0.30.1
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/cjs/app.js +1 -0
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index2.js +4 -0
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +6 -0
- package/lib/cjs/points.js +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -0
- package/lib/dist/cjs/index.js +1 -0
- package/lib/dist/cjs/masters.js +297 -1
- package/lib/dist/{index-bcabe854.js → es/gamification-feature.js} +522 -523
- package/lib/dist/es/index.js +9 -0
- package/lib/dist/es/masters.js +26797 -7
- package/lib/dist/index.d.ts +6 -5
- package/lib/dist/style.css +1 -1
- package/lib/{app-c53bb384.js → es/app.js} +1 -1
- package/lib/es/auth.js +2 -2
- package/lib/{index-e26b3493.js → es/gamification-feature.js} +542 -543
- package/lib/es/index.js +2 -2
- package/lib/{index-89366251.js → es/index2.js} +12 -12
- package/lib/es/masters.js +3 -3
- package/lib/es/masters2.js +2433 -0
- package/lib/es/points.js +45 -36
- package/lib/style.css +1 -1
- package/package.json +10 -10
- package/lib/app-36051bbe.cjs +0 -1
- package/lib/dist/index-f504e8d3.cjs +0 -1
- package/lib/dist/masters-3c9c6ffe.js +0 -26765
- package/lib/dist/masters-fe5f1486.cjs +0 -297
- package/lib/index-af5c5738.cjs +0 -1
- package/lib/index-dd93a61a.cjs +0 -4
- package/lib/masters-bf25c11c.js +0 -2415
- package/lib/masters-f135002d.cjs +0 -6
- /package/lib/{common-f34b9d88.cjs → cjs/common.js} +0 -0
- /package/lib/{index-565f26fb.cjs → cjs/index3.js} +0 -0
- /package/lib/{common-2d2a3ba3.js → es/common.js} +0 -0
- /package/lib/{index-15f61ac8.js → es/index3.js} +0 -0
package/lib/es/index.js
CHANGED
|
@@ -7,8 +7,8 @@ import "@streamlayer/sdk-web-features";
|
|
|
7
7
|
import "@streamlayer/sdk-web-interfaces";
|
|
8
8
|
import "@streamlayer/sdk-web-notifications";
|
|
9
9
|
import "@streamlayer/feature-gamification";
|
|
10
|
-
import { S as c } from "
|
|
11
|
-
import { S as v, u as D } from "
|
|
10
|
+
import { S as c } from "./index2.js";
|
|
11
|
+
import { S as v, u as D } from "./app.js";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "react";
|
|
14
14
|
import "./useStreamLayerApp.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as N } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as G, useMemo as Y } from "react";
|
|
3
|
-
import { useStreamLayerApp as D } from "./
|
|
3
|
+
import { useStreamLayerApp as D } from "./useStreamLayerApp.js";
|
|
4
4
|
var O = /* @__PURE__ */ ((R) => (R[R.UNSET = 0] = "UNSET", R[R.CONNECTED = 1] = "CONNECTED", R[R.READY = 2] = "READY", R))(O || {});
|
|
5
5
|
const B = G({
|
|
6
6
|
status: 0,
|
|
@@ -8,16 +8,16 @@ const B = G({
|
|
|
8
8
|
}), I = ({
|
|
9
9
|
sdkKey: R,
|
|
10
10
|
plugins: E,
|
|
11
|
-
children:
|
|
11
|
+
children: A,
|
|
12
12
|
production: e = !0,
|
|
13
13
|
autoEnable: r = !0
|
|
14
14
|
}) => {
|
|
15
|
-
const
|
|
16
|
-
sdk:
|
|
15
|
+
const _ = D(R, E, e, r), S = Y(() => _ ? {
|
|
16
|
+
sdk: _,
|
|
17
17
|
status: 2
|
|
18
18
|
/* READY */
|
|
19
|
-
} : { status: 1, sdk: null }, [
|
|
20
|
-
return /* @__PURE__ */ N(B.Provider, { value: S, children:
|
|
19
|
+
} : { status: 1, sdk: null }, [_]);
|
|
20
|
+
return /* @__PURE__ */ N(B.Provider, { value: S, children: A });
|
|
21
21
|
}, s = {
|
|
22
22
|
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
23
23
|
BG_TRANSPARENT_VOTE_CONTAINER: "rgba(10, 14, 19, 0.8)",
|
|
@@ -47,7 +47,7 @@ const B = G({
|
|
|
47
47
|
GREY_PRIMARY: "#909395",
|
|
48
48
|
DIVIDER_COLOR_SECONDARY: "#53565a",
|
|
49
49
|
GREEN_PRIMARY_BTN: "#009B77"
|
|
50
|
-
},
|
|
50
|
+
}, C = {
|
|
51
51
|
PRIMARY_GREEN1: "#107D57",
|
|
52
52
|
PRIMARY_GREEN2: "#006747",
|
|
53
53
|
PRIMARY_GREEN3: "#1C4932",
|
|
@@ -69,20 +69,20 @@ const B = G({
|
|
|
69
69
|
NEUTRALS_GRAY8: "#53565A",
|
|
70
70
|
NEUTRALS_GRAY9: "#25282A",
|
|
71
71
|
NEUTRALS_BLACK: "#000000"
|
|
72
|
-
}, T = Object.assign({}, s,
|
|
72
|
+
}, T = Object.assign({}, s, C);
|
|
73
73
|
Object.keys(T).reduce((R, E) => {
|
|
74
|
-
const
|
|
74
|
+
const A = T[E];
|
|
75
75
|
return `
|
|
76
76
|
${R}
|
|
77
|
-
--color-${E.toLowerCase().replaceAll("_", "-")}: ${
|
|
77
|
+
--color-${E.toLowerCase().replaceAll("_", "-")}: ${A};
|
|
78
78
|
`;
|
|
79
79
|
}, "");
|
|
80
|
-
const o = "StreamLayerCSSReset",
|
|
80
|
+
const o = "StreamLayerCSSReset", a = "ttkj0ah", c = ({ children: R, style: E }) => /* @__PURE__ */ N("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ N("div", { className: a, style: E, children: R }) });
|
|
81
81
|
export {
|
|
82
82
|
T as E,
|
|
83
83
|
I as S,
|
|
84
84
|
B as a,
|
|
85
85
|
O as b,
|
|
86
|
-
o as
|
|
86
|
+
o as d,
|
|
87
87
|
c as s
|
|
88
88
|
};
|
package/lib/es/masters.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import { M as b, b as c } from "
|
|
2
|
+
import "./index2.js";
|
|
3
|
+
import { M as b, b as c } from "./masters2.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "./useStreamLayerApp.js";
|
|
6
6
|
import "@streamlayer/sdk-web";
|
|
7
7
|
import "@streamlayer/sdk-web-types";
|
|
8
8
|
import "@nanostores/react";
|
|
9
9
|
import "@streamlayer/sdk-web-interfaces";
|
|
10
|
-
import "
|
|
10
|
+
import "./index3.js";
|
|
11
11
|
import "@streamlayer/sdk-web-notifications";
|
|
12
12
|
import "@lottiefiles/react-lottie-player";
|
|
13
13
|
export {
|