@streamlayer/react 0.35.0 → 0.37.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 +1 -1
- package/lib/cjs/gamification-feature.js +5 -1
- package/lib/cjs/index2.js +2 -2
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +50 -60
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/useSdkFeature.js +1 -0
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/dist/cjs/gamification-feature.js +5 -1
- package/lib/dist/cjs/masters.js +71 -81
- package/lib/dist/es/gamification-feature.js +774 -723
- package/lib/dist/es/index.js +1 -1
- package/lib/dist/es/masters.js +21976 -25675
- package/lib/dist/index.d.ts +98 -72
- package/lib/dist/style.css +1 -1
- package/lib/es/gamification-feature.js +743 -692
- package/lib/es/index2.js +15 -8
- package/lib/es/masters.js +2 -2
- package/lib/es/masters2.js +11211 -13297
- package/lib/es/points.js +28 -29
- package/lib/es/useSdkFeature.js +178 -0
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +58 -39
- package/lib/cjs/index4.js +0 -1
- package/lib/es/index4.js +0 -158
package/lib/es/index2.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as N } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext as G, useMemo as Y } from "react";
|
|
3
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
|
-
const
|
|
5
|
+
const s = G({
|
|
6
6
|
status: 0,
|
|
7
7
|
sdk: null
|
|
8
8
|
}), I = ({
|
|
@@ -17,8 +17,8 @@ const B = G({
|
|
|
17
17
|
status: 2
|
|
18
18
|
/* READY */
|
|
19
19
|
} : { status: 1, sdk: null }, [_]);
|
|
20
|
-
return /* @__PURE__ */ N(
|
|
21
|
-
},
|
|
20
|
+
return /* @__PURE__ */ N(s.Provider, { value: S, children: A });
|
|
21
|
+
}, B = {
|
|
22
22
|
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
23
23
|
BG_TRANSPARENT_VOTE_CONTAINER: "rgba(10, 14, 19, 0.8)",
|
|
24
24
|
BG_TRANSPARENT_ITEM: "rgba(0, 0, 0, 0.7)",
|
|
@@ -69,7 +69,13 @@ const B = G({
|
|
|
69
69
|
NEUTRALS_GRAY8: "#53565A",
|
|
70
70
|
NEUTRALS_GRAY9: "#25282A",
|
|
71
71
|
NEUTRALS_BLACK: "#000000"
|
|
72
|
-
}, T = Object.assign({},
|
|
72
|
+
}, T = Object.assign({}, B, C), o = {
|
|
73
|
+
sm: 576,
|
|
74
|
+
md: 768,
|
|
75
|
+
lg: 992,
|
|
76
|
+
xl: 1200,
|
|
77
|
+
xxl: 1400
|
|
78
|
+
};
|
|
73
79
|
Object.keys(T).reduce((R, E) => {
|
|
74
80
|
const A = T[E];
|
|
75
81
|
return `
|
|
@@ -77,12 +83,13 @@ Object.keys(T).reduce((R, E) => {
|
|
|
77
83
|
--color-${E.toLowerCase().replaceAll("_", "-")}: ${A};
|
|
78
84
|
`;
|
|
79
85
|
}, "");
|
|
80
|
-
const
|
|
86
|
+
const c = "StreamLayerCSSReset", a = "ttkj0ah", n = ({ children: R, style: E }) => /* @__PURE__ */ N("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ N("div", { className: a, style: E, children: R }) });
|
|
81
87
|
export {
|
|
82
88
|
T as E,
|
|
89
|
+
o as O,
|
|
83
90
|
I as S,
|
|
84
|
-
|
|
91
|
+
s as a,
|
|
85
92
|
O as b,
|
|
86
|
-
|
|
87
|
-
|
|
93
|
+
c,
|
|
94
|
+
n as s
|
|
88
95
|
};
|
package/lib/es/masters.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "./index2.js";
|
|
3
|
-
import { M as c,
|
|
3
|
+
import { M as c, e as d } 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 "./useSdkFeature.js";
|
|
11
11
|
import "@streamlayer/sdk-web-notifications";
|
|
12
12
|
import "lodash.throttle";
|
|
13
13
|
export {
|