@streamlayer/react-ui 0.67.0 → 0.67.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/assets/style.css +1 -1
- package/lib/ui/app/Features/FeatureProvider.js +1 -1
- package/lib/ui/app/Features/Gamification/Question.js +11 -11
- package/lib/ui/app/Features/Gamification/gamification-feature.d.ts +2 -0
- package/lib/ui/app/Features/Gamification/gamification-feature.js +66 -0
- package/lib/ui/app/Features/Gamification/index.d.ts +0 -1
- package/lib/ui/app/Features/Gamification/index.js +11 -12
- package/lib/ui/app/Features/index.js +1 -1
- package/lib/ui/app/Navigation/MastersNavigation/index.js +3 -3
- package/lib/ui/app/Navigation/index.js +13 -13
- package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +13 -13
- package/lib/ui/app/Notifications/Onboarding/index.js +5 -5
- package/lib/ui/app/Notifications/styles.js +3 -3
- package/lib/ui/app/masters.js +30 -28
- package/lib/ui/app/styles.js +10 -10
- package/lib/ui/app/useMastersApp.js +51 -35
- package/lib/ui/button/styles.js +2 -2
- package/lib/ui/gamification/detail/header/styles.js +12 -12
- package/lib/ui/gamification/detail/sponsor/index.js +6 -6
- package/lib/ui/gamification/insight/styles.js +20 -20
- package/lib/ui/gamification/insight-list/styles.js +4 -4
- package/lib/ui/gamification/invite-link/styles.js +8 -8
- package/lib/ui/gamification/leaderboard/list-item/styles.js +18 -18
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +8 -8
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +26 -26
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.js +12 -12
- package/lib/ui/gamification/onboarding/styles.js +23 -23
- package/lib/ui/gamification/points/index.d.ts +1 -1
- package/lib/ui/gamification/points/styles.js +10 -10
- package/lib/ui/gamification/question/insight/styles.js +2 -2
- package/lib/ui/gamification/question/list/styles.js +3 -3
- package/lib/ui/gamification/question/notification/insight/styles.js +11 -11
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.js +42 -42
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +20 -20
- package/lib/ui/gamification/question/notification/styles.js +15 -15
- package/lib/ui/gamification/question/notification/tweet/styles.js +11 -11
- package/lib/ui/gamification/question/styles.js +34 -34
- package/lib/ui/gamification/question/twitter/styles.js +6 -6
- package/lib/ui/gamification/tabs/styles.js +4 -4
- package/lib/ui/gamification/user-statistics/components/rank/styles.js +7 -7
- package/lib/ui/gamification/user-statistics/components/statistic/styles.js +5 -5
- package/lib/ui/gamification/user-statistics/styles.js +33 -33
- package/lib/ui/gamification/vote/expired-alert/styles.js +7 -7
- package/lib/ui/gamification/vote/feedback/styles.js +22 -22
- package/lib/ui/gamification/vote/insight-details/styles.js +4 -4
- package/lib/ui/gamification/vote/styles.js +10 -10
- package/lib/ui/gamification/vote/twitter-details/styles.js +3 -3
- package/lib/ui/gamification/vote/vote-option/styles.js +22 -22
- package/lib/ui/gamification/vote/win-bar/styles.js +9 -9
- package/lib/ui/icons/index.js +8 -8
- package/lib/ui/login/styles.js +21 -21
- package/lib/ui/navigation/button/Channels.js +7 -7
- package/lib/ui/navigation/button/FeaturedGroups.js +4 -4
- package/lib/ui/navigation/button/LeaderBoard.js +9 -9
- package/lib/ui/navigation/button/styles.js +7 -7
- package/lib/ui/navigation/index.js +2 -2
- package/lib/ui/navigation/masters.js +6 -6
- package/lib/ui/questions/insight/styles.js +5 -5
- package/lib/ui/questions/twitter/account/styles.js +12 -12
- package/lib/ui/questions/twitter/styles.js +8 -8
- package/lib/ui/show-in/index.js +14 -14
- package/lib/ui/theme/masters.js +1 -1
- package/lib/ui/theme/theme.js +19 -19
- package/lib/ui/timer/index.js +15 -15
- package/lib/ui/video-player/styles.js +8 -8
- package/lib/utils/debug/components/bypassLogin.js +9 -9
- package/lib/utils/debug/components/developer.js +21 -21
- package/lib/utils/debug/components/envToggle.js +14 -14
- package/lib/utils/debug/components/eventInput.js +4 -4
- package/lib/utils/debug/components/styles.js +3 -3
- package/lib/utils/decorators/styles.js +3 -3
- package/package.json +9 -9
- /package/lib/{LeaderBoard_p8tnz3-4ed993c7.js → LeaderBoard_16p26hz-4ed993c7.js} +0 -0
- /package/lib/{index_1ujx5m0-4ed993c7.js → index_4nhkck-4ed993c7.js} +0 -0
- /package/lib/{masters_18kvgvj-4ed993c7.js → masters_k70xsy-4ed993c7.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
2
|
const e = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "Container",
|
|
4
|
-
class: "
|
|
4
|
+
class: "cgn5uen",
|
|
5
5
|
propsAsIs: !1
|
|
6
6
|
}), n = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "Content",
|
|
8
|
-
class: "
|
|
8
|
+
class: "c1px8nt6",
|
|
9
9
|
propsAsIs: !1
|
|
10
10
|
}), a = /* @__PURE__ */ s("h3")({
|
|
11
11
|
name: "Title",
|
|
12
|
-
class: "
|
|
12
|
+
class: "t5et2jt",
|
|
13
13
|
propsAsIs: !1
|
|
14
14
|
}), o = /* @__PURE__ */ s("div")({
|
|
15
15
|
name: "Description",
|
|
16
|
-
class: "
|
|
16
|
+
class: "d1i2kpk2",
|
|
17
17
|
propsAsIs: !1
|
|
18
18
|
}), p = /* @__PURE__ */ s("div")({
|
|
19
19
|
name: "DateWrap",
|
|
20
|
-
class: "
|
|
20
|
+
class: "dd3lh3p",
|
|
21
21
|
propsAsIs: !1
|
|
22
22
|
});
|
|
23
23
|
export {
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
2
|
const e = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "Container",
|
|
4
|
-
class: "
|
|
4
|
+
class: "cjq447q",
|
|
5
5
|
propsAsIs: !1
|
|
6
6
|
}), n = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "ImageContainer",
|
|
8
|
-
class: "
|
|
8
|
+
class: "i14egogb",
|
|
9
9
|
propsAsIs: !1
|
|
10
10
|
}), o = /* @__PURE__ */ s("img")({
|
|
11
11
|
name: "Image",
|
|
12
|
-
class: "
|
|
12
|
+
class: "i2g9g4l",
|
|
13
13
|
propsAsIs: !1
|
|
14
|
-
}),
|
|
14
|
+
}), l = /* @__PURE__ */ s("div")({
|
|
15
15
|
name: "Details",
|
|
16
|
-
class: "
|
|
16
|
+
class: "d1c454nm",
|
|
17
17
|
propsAsIs: !1
|
|
18
|
-
}),
|
|
18
|
+
}), m = /* @__PURE__ */ s("div")({
|
|
19
19
|
name: "Name",
|
|
20
|
-
class: "
|
|
20
|
+
class: "n11nigc3",
|
|
21
21
|
propsAsIs: !1
|
|
22
|
-
}),
|
|
22
|
+
}), t = /* @__PURE__ */ s("div")({
|
|
23
23
|
name: "UserName",
|
|
24
|
-
class: "
|
|
24
|
+
class: "urxa4k8",
|
|
25
25
|
propsAsIs: !1
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
28
|
e as Container,
|
|
29
|
-
|
|
29
|
+
l as Details,
|
|
30
30
|
o as Image,
|
|
31
31
|
n as ImageContainer,
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
m as Name,
|
|
33
|
+
t as UserName
|
|
34
34
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
2
|
const a = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "Container",
|
|
4
|
-
class: "
|
|
4
|
+
class: "c1kzqw87",
|
|
5
5
|
propsAsIs: !1
|
|
6
6
|
}), o = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "DateTime",
|
|
8
|
-
class: "
|
|
8
|
+
class: "d9r1hf9",
|
|
9
9
|
propsAsIs: !1
|
|
10
10
|
}), t = /* @__PURE__ */ s("blockquote")({
|
|
11
11
|
name: "Quote",
|
|
12
|
-
class: "
|
|
12
|
+
class: "qezygt5",
|
|
13
13
|
propsAsIs: !1
|
|
14
14
|
}), n = /* @__PURE__ */ s("div")({
|
|
15
15
|
name: "Details",
|
|
16
|
-
class: "
|
|
16
|
+
class: "d1y8f7ym",
|
|
17
17
|
propsAsIs: !1
|
|
18
18
|
}), l = /* @__PURE__ */ s("div")({
|
|
19
19
|
name: "Body",
|
|
20
|
-
class: "
|
|
20
|
+
class: "b18gwonx",
|
|
21
21
|
propsAsIs: !1
|
|
22
|
-
}),
|
|
22
|
+
}), c = /* @__PURE__ */ s("img")({
|
|
23
23
|
name: "Image",
|
|
24
|
-
class: "
|
|
24
|
+
class: "i3g0xjd",
|
|
25
25
|
propsAsIs: !1
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
@@ -29,6 +29,6 @@ export {
|
|
|
29
29
|
a as Container,
|
|
30
30
|
o as DateTime,
|
|
31
31
|
n as Details,
|
|
32
|
-
|
|
32
|
+
c as Image,
|
|
33
33
|
t as Quote
|
|
34
34
|
};
|
package/lib/ui/show-in/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cx as
|
|
3
|
-
import { styled as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cx as i } from "@linaria/core";
|
|
3
|
+
import { styled as e } from "@linaria/react";
|
|
4
|
+
const m = /* @__PURE__ */ e("div")({
|
|
5
5
|
name: "Container",
|
|
6
|
-
class: "
|
|
6
|
+
class: "c1pgyo67",
|
|
7
7
|
propsAsIs: !1
|
|
8
|
-
}),
|
|
9
|
-
children:
|
|
10
|
-
style:
|
|
11
|
-
className:
|
|
8
|
+
}), a = "hx17qu6", d = ({
|
|
9
|
+
children: o,
|
|
10
|
+
style: n,
|
|
11
|
+
className: s,
|
|
12
12
|
hiding: t
|
|
13
|
-
}) => /* @__PURE__ */
|
|
14
|
-
style:
|
|
15
|
-
className:
|
|
16
|
-
children:
|
|
13
|
+
}) => /* @__PURE__ */ r(m, {
|
|
14
|
+
style: n,
|
|
15
|
+
className: i(s, t && a),
|
|
16
|
+
children: o
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
d as ShowIn
|
|
20
20
|
};
|
package/lib/ui/theme/masters.js
CHANGED
package/lib/ui/theme/theme.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { colors as
|
|
3
|
-
const
|
|
4
|
-
${
|
|
5
|
-
--font-family: ${
|
|
6
|
-
--font-regular: ${
|
|
7
|
-
--font-color: ${
|
|
8
|
-
--font-serif: ${
|
|
9
|
-
--font-weight-default: ${
|
|
1
|
+
import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { colors as l, FONT as e } from "./constants.js";
|
|
3
|
+
const h = `
|
|
4
|
+
${l}
|
|
5
|
+
--font-family: ${e.REGULAR};
|
|
6
|
+
--font-regular: ${e.REGULAR};
|
|
7
|
+
--font-color: ${e.COLOR};
|
|
8
|
+
--font-serif: ${e.SERIF};
|
|
9
|
+
--font-weight-default: ${e.WEIGHT_DEFAULT};
|
|
10
10
|
|
|
11
11
|
--header-height: 68px;
|
|
12
12
|
--animation-duration: 0.5s;
|
|
13
13
|
--animation-function: ease;
|
|
14
14
|
--container-padding: 16px;
|
|
15
15
|
--border-radius: 8px;
|
|
16
|
-
`,
|
|
16
|
+
`, d = "StreamLayerCSSReset", m = "ttkj0ah", f = () => /* @__PURE__ */ t("table", {
|
|
17
17
|
children: /* @__PURE__ */ r("table", {
|
|
18
|
-
children: [/* @__PURE__ */
|
|
18
|
+
children: [/* @__PURE__ */ t("thead", {
|
|
19
19
|
children: /* @__PURE__ */ r("tr", {
|
|
20
|
-
children: [/* @__PURE__ */
|
|
20
|
+
children: [/* @__PURE__ */ t("th", {
|
|
21
21
|
children: "name"
|
|
22
|
-
}), /* @__PURE__ */
|
|
22
|
+
}), /* @__PURE__ */ t("th", {
|
|
23
23
|
children: "value"
|
|
24
24
|
})]
|
|
25
25
|
})
|
|
26
|
-
}), /* @__PURE__ */
|
|
27
|
-
children:
|
|
26
|
+
}), /* @__PURE__ */ t("tbody", {
|
|
27
|
+
children: h.split(";").map((i) => {
|
|
28
28
|
const n = i.trim(), [o, a] = n.split(":");
|
|
29
29
|
return /* @__PURE__ */ r("tr", {
|
|
30
|
-
children: [/* @__PURE__ */
|
|
30
|
+
children: [/* @__PURE__ */ t("td", {
|
|
31
31
|
children: o
|
|
32
|
-
}), /* @__PURE__ */
|
|
32
|
+
}), /* @__PURE__ */ t("td", {
|
|
33
33
|
children: a
|
|
34
34
|
})]
|
|
35
35
|
}, n);
|
|
@@ -39,7 +39,7 @@ const d = `
|
|
|
39
39
|
});
|
|
40
40
|
export {
|
|
41
41
|
f as ThemeVariables,
|
|
42
|
-
|
|
42
|
+
d as resetCss,
|
|
43
43
|
m as theme,
|
|
44
|
-
|
|
44
|
+
h as themeStr
|
|
45
45
|
};
|
package/lib/ui/timer/index.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { styled as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { CountdownCircleTimer as
|
|
2
|
+
import { styled as E } from "@linaria/react";
|
|
3
|
+
import { useState as O, useCallback as c } from "react";
|
|
4
|
+
import { CountdownCircleTimer as S } from "react-countdown-circle-timer";
|
|
5
5
|
import { COLORS as o } from "../theme/constants.js";
|
|
6
|
-
const
|
|
6
|
+
const _ = [o.PRIMARY_GREEN1, o.SECONDARY_RED1, o.SECONDARY_RED1], A = [10, 10, 0], f = /* @__PURE__ */ E("div")({
|
|
7
7
|
name: "RemainingTime",
|
|
8
|
-
class: "
|
|
8
|
+
class: "r165427",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}), D = o.SECONDARY_GREEN6,
|
|
10
|
+
}), D = o.SECONDARY_GREEN6, R = o.SECONDARY_RED3, N = o.NEUTRALS_GRAY3, g = ({
|
|
11
11
|
isPlaying: i = !0,
|
|
12
12
|
duration: r = 30,
|
|
13
13
|
onTimerExpired: t
|
|
14
14
|
}) => {
|
|
15
|
-
const [
|
|
15
|
+
const [l, s] = O(r > 10 ? D : R), m = ({
|
|
16
16
|
remainingTime: e
|
|
17
17
|
}) => /* @__PURE__ */ n(f, {
|
|
18
18
|
children: e
|
|
19
|
-
}), a =
|
|
19
|
+
}), a = c(() => {
|
|
20
20
|
t == null || t(), s(N);
|
|
21
|
-
}, [t, s]), C =
|
|
22
|
-
e === 10 && s(
|
|
21
|
+
}, [t, s]), C = c((e) => {
|
|
22
|
+
e === 10 && s(R);
|
|
23
23
|
}, [s]);
|
|
24
|
-
return /* @__PURE__ */ n(
|
|
24
|
+
return /* @__PURE__ */ n(S, {
|
|
25
25
|
isPlaying: i,
|
|
26
26
|
duration: r,
|
|
27
|
-
colors:
|
|
27
|
+
colors: _,
|
|
28
28
|
colorsTime: A,
|
|
29
29
|
size: 32,
|
|
30
30
|
strokeWidth: 2,
|
|
31
31
|
trailStrokeWidth: 2,
|
|
32
|
-
trailColor:
|
|
32
|
+
trailColor: l,
|
|
33
33
|
onComplete: a,
|
|
34
34
|
onUpdate: C,
|
|
35
|
-
children:
|
|
35
|
+
children: m
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
export {
|
|
39
39
|
f as RemainingTime,
|
|
40
|
-
|
|
40
|
+
g as Timer
|
|
41
41
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
2
|
const e = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "Container",
|
|
4
|
-
class: "
|
|
4
|
+
class: "c1bgb86j",
|
|
5
5
|
propsAsIs: !1
|
|
6
6
|
}), a = /* @__PURE__ */ s("video")({
|
|
7
7
|
name: "Player",
|
|
8
|
-
class: "
|
|
8
|
+
class: "p6703cq",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), l = /* @__PURE__ */ s("img")({
|
|
11
11
|
name: "Poster",
|
|
12
|
-
class: "
|
|
12
|
+
class: "p12ow7zo",
|
|
13
13
|
propsAsIs: !1
|
|
14
|
-
}),
|
|
14
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
15
15
|
name: "Control",
|
|
16
|
-
class: "
|
|
16
|
+
class: "cdpal9o",
|
|
17
17
|
propsAsIs: !1
|
|
18
18
|
});
|
|
19
19
|
export {
|
|
20
20
|
e as Container,
|
|
21
|
-
|
|
21
|
+
n as Control,
|
|
22
22
|
a as Player,
|
|
23
|
-
|
|
23
|
+
l as Poster
|
|
24
24
|
};
|
|
@@ -3,13 +3,13 @@ import { styled as r } from "@linaria/react";
|
|
|
3
3
|
import { useState as o } from "react";
|
|
4
4
|
const a = /* @__PURE__ */ r("div")({
|
|
5
5
|
name: "InputField",
|
|
6
|
-
class: "
|
|
6
|
+
class: "i1vlsnk4",
|
|
7
7
|
propsAsIs: !1
|
|
8
|
-
}),
|
|
8
|
+
}), g = ({
|
|
9
9
|
sdk: c,
|
|
10
10
|
storage: t
|
|
11
11
|
}) => {
|
|
12
|
-
const [n, d] = o(t.getSchema() || ""), [
|
|
12
|
+
const [n, d] = o(t.getSchema() || ""), [s, p] = o(t.getToken() || "");
|
|
13
13
|
return /* @__PURE__ */ l("div", {
|
|
14
14
|
children: [/* @__PURE__ */ l(a, {
|
|
15
15
|
children: [/* @__PURE__ */ e("label", {
|
|
@@ -17,7 +17,7 @@ const a = /* @__PURE__ */ r("div")({
|
|
|
17
17
|
}), /* @__PURE__ */ e("input", {
|
|
18
18
|
type: "text",
|
|
19
19
|
value: n,
|
|
20
|
-
onChange: (
|
|
20
|
+
onChange: (i) => d(i.target.value)
|
|
21
21
|
}), /* @__PURE__ */ e("button", {
|
|
22
22
|
style: {
|
|
23
23
|
visibility: "hidden"
|
|
@@ -30,12 +30,12 @@ const a = /* @__PURE__ */ r("div")({
|
|
|
30
30
|
}), /* @__PURE__ */ e("input", {
|
|
31
31
|
type: "text",
|
|
32
32
|
disabled: !n,
|
|
33
|
-
value:
|
|
34
|
-
onChange: (
|
|
33
|
+
value: s,
|
|
34
|
+
onChange: (i) => p(i.target.value)
|
|
35
35
|
}), /* @__PURE__ */ e("button", {
|
|
36
|
-
disabled: !n || !
|
|
36
|
+
disabled: !n || !s,
|
|
37
37
|
onClick: async () => {
|
|
38
|
-
await c.authorizationBypass(n,
|
|
38
|
+
await c.authorizationBypass(n, s), t.setSchema(n), t.setToken(s);
|
|
39
39
|
},
|
|
40
40
|
children: "login"
|
|
41
41
|
})]
|
|
@@ -43,5 +43,5 @@ const a = /* @__PURE__ */ r("div")({
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
g as BypassLogin
|
|
47
47
|
};
|
|
@@ -2,57 +2,57 @@ import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { styled as s } from "@linaria/react";
|
|
3
3
|
import { useMemo as g, useState as u } from "react";
|
|
4
4
|
import { DeveloperStorage as D } from "../../storage.js";
|
|
5
|
-
import { BypassLogin as
|
|
6
|
-
import { EnvToggle as
|
|
5
|
+
import { BypassLogin as I } from "./bypassLogin.js";
|
|
6
|
+
import { EnvToggle as B } from "./envToggle.js";
|
|
7
7
|
import { EventInput as x } from "./eventInput.js";
|
|
8
|
-
import { SdkKey as
|
|
8
|
+
import { SdkKey as h } from "./sdkKey.js";
|
|
9
9
|
import "@streamlayer/sdk-web-storage";
|
|
10
10
|
import "@nanostores/react";
|
|
11
11
|
import "@streamlayer/sdk-web-core";
|
|
12
12
|
import "./styles.js";
|
|
13
|
-
const
|
|
13
|
+
const j = /* @__PURE__ */ s("div")({
|
|
14
14
|
name: "DeveloperContainer",
|
|
15
|
-
class: "
|
|
15
|
+
class: "d1sqxt7l",
|
|
16
16
|
propsAsIs: !1
|
|
17
|
-
}),
|
|
17
|
+
}), A = /* @__PURE__ */ s("div")({
|
|
18
18
|
name: "DeveloperItems",
|
|
19
|
-
class: "
|
|
19
|
+
class: "d1a3478s",
|
|
20
20
|
propsAsIs: !1
|
|
21
|
-
}),
|
|
21
|
+
}), C = /* @__PURE__ */ s("button")({
|
|
22
22
|
name: "BurgerBtn",
|
|
23
|
-
class: "
|
|
23
|
+
class: "butjcq8",
|
|
24
24
|
propsAsIs: !1
|
|
25
25
|
}), F = ({
|
|
26
26
|
sdk: o,
|
|
27
27
|
sdkKey: i,
|
|
28
|
-
setSdkKey:
|
|
28
|
+
setSdkKey: p,
|
|
29
29
|
env: a,
|
|
30
|
-
setEnv:
|
|
30
|
+
setEnv: n,
|
|
31
31
|
event: l,
|
|
32
32
|
setEvent: c,
|
|
33
33
|
hideAuth: f
|
|
34
34
|
}) => {
|
|
35
|
-
const r = g(() => new D(), []), [m,
|
|
36
|
-
return /* @__PURE__ */ t(
|
|
37
|
-
children: [/* @__PURE__ */ t(
|
|
35
|
+
const r = g(() => new D(), []), [m, d] = u(!1);
|
|
36
|
+
return /* @__PURE__ */ t(j, {
|
|
37
|
+
children: [/* @__PURE__ */ t(C, {
|
|
38
38
|
"data-opened": m.toString(),
|
|
39
|
-
onClick: () =>
|
|
39
|
+
onClick: () => d((v) => !v),
|
|
40
40
|
children: [/* @__PURE__ */ e("span", {}), /* @__PURE__ */ e("span", {}), /* @__PURE__ */ e("span", {})]
|
|
41
|
-
}), m && /* @__PURE__ */ t(
|
|
42
|
-
children: [
|
|
41
|
+
}), m && /* @__PURE__ */ t(A, {
|
|
42
|
+
children: [n && /* @__PURE__ */ e(B, {
|
|
43
43
|
env: a,
|
|
44
|
-
setEnv:
|
|
44
|
+
setEnv: n,
|
|
45
45
|
storage: r
|
|
46
|
-
}),
|
|
46
|
+
}), p && /* @__PURE__ */ e(h, {
|
|
47
47
|
sdkKey: i,
|
|
48
|
-
setSdkKey:
|
|
48
|
+
setSdkKey: p,
|
|
49
49
|
storage: r
|
|
50
50
|
}), o && /* @__PURE__ */ e(x, {
|
|
51
51
|
sdk: o,
|
|
52
52
|
storage: r,
|
|
53
53
|
event: l,
|
|
54
54
|
setEvent: c
|
|
55
|
-
}), !f && o && /* @__PURE__ */ e(
|
|
55
|
+
}), !f && o && /* @__PURE__ */ e(I, {
|
|
56
56
|
sdk: o,
|
|
57
57
|
storage: r
|
|
58
58
|
})]
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { styled as
|
|
3
|
-
const
|
|
1
|
+
import { jsxs as t, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { styled as e } from "@linaria/react";
|
|
3
|
+
const l = /* @__PURE__ */ e("div")({
|
|
4
4
|
name: "Switch",
|
|
5
|
-
class: "
|
|
5
|
+
class: "s14ex8bw",
|
|
6
6
|
propsAsIs: !1
|
|
7
|
-
}), p = /* @__PURE__ */
|
|
7
|
+
}), p = /* @__PURE__ */ e("div")({
|
|
8
8
|
name: "SwitchInput",
|
|
9
|
-
class: "
|
|
9
|
+
class: "s1fwty0k",
|
|
10
10
|
propsAsIs: !1
|
|
11
|
-
}),
|
|
11
|
+
}), a = ({
|
|
12
12
|
env: o,
|
|
13
|
-
setEnv:
|
|
13
|
+
setEnv: c,
|
|
14
14
|
storage: i
|
|
15
|
-
}) => /* @__PURE__ */
|
|
15
|
+
}) => /* @__PURE__ */ t(l, {
|
|
16
16
|
children: [/* @__PURE__ */ n("label", {
|
|
17
17
|
htmlFor: "slEnvCheckbox",
|
|
18
18
|
children: "Production:"
|
|
19
|
-
}), /* @__PURE__ */
|
|
19
|
+
}), /* @__PURE__ */ t(p, {
|
|
20
20
|
children: [/* @__PURE__ */ n("input", {
|
|
21
21
|
id: "slEnvCheckbox",
|
|
22
22
|
type: "checkbox",
|
|
23
23
|
checked: o === "production",
|
|
24
24
|
onChange: () => {
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
return i.setEnv(
|
|
25
|
+
c((r) => {
|
|
26
|
+
const s = r === "production" ? "development" : "production";
|
|
27
|
+
return i.setEnv(s), s;
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
}), /* @__PURE__ */ n("span", {})]
|
|
31
31
|
})]
|
|
32
32
|
});
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
a as EnvToggle
|
|
35
35
|
};
|
|
@@ -4,16 +4,16 @@ import { useEffect as m } from "react";
|
|
|
4
4
|
import "@streamlayer/sdk-web-core";
|
|
5
5
|
import { InputField as u } from "./styles.js";
|
|
6
6
|
import "@linaria/react";
|
|
7
|
-
const y = ({ sdk: o, storage: i, event: e, setEvent:
|
|
7
|
+
const y = ({ sdk: o, storage: i, event: e, setEvent: a }) => {
|
|
8
8
|
var n;
|
|
9
|
-
const
|
|
9
|
+
const r = d(o.sdkStore.organizationSettings), l = !((n = r == null ? void 0 : r.data) != null && n.provider), s = () => {
|
|
10
10
|
o.createEventSession(e), i.setEvent(e);
|
|
11
11
|
};
|
|
12
12
|
return m(() => {
|
|
13
13
|
e && s();
|
|
14
14
|
}, []), /* @__PURE__ */ t("div", { children: /* @__PURE__ */ c(u, { children: [
|
|
15
|
-
/* @__PURE__ */ t("label", { children:
|
|
16
|
-
/* @__PURE__ */ t("input", { type: "text", value: e, onChange: (p) =>
|
|
15
|
+
/* @__PURE__ */ t("label", { children: l ? "Use StreamLayer event ids" : "Use your provider event ids" }),
|
|
16
|
+
/* @__PURE__ */ t("input", { type: "text", value: e, onChange: (p) => a(p.target.value) }),
|
|
17
17
|
/* @__PURE__ */ t("button", { onClick: s, children: "set" })
|
|
18
18
|
] }) });
|
|
19
19
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
const
|
|
2
|
+
const t = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "InputField",
|
|
4
|
-
class: "
|
|
4
|
+
class: "iwjhb00",
|
|
5
5
|
propsAsIs: !1
|
|
6
6
|
});
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
t as InputField
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
const
|
|
2
|
+
const o = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "AppContainer",
|
|
4
|
-
class: "
|
|
4
|
+
class: "azqfrs3",
|
|
5
5
|
propsAsIs: !1
|
|
6
6
|
});
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
o as AppContainer
|
|
9
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "0.67.
|
|
3
|
+
"version": "0.67.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"react-window": "^1.8.9",
|
|
41
41
|
"@lottiefiles/react-lottie-player": "*",
|
|
42
42
|
"react-window-infinite-loader": "^1.0.9",
|
|
43
|
-
"@streamlayer/feature-gamification": "^0.26.
|
|
44
|
-
"@streamlayer/sdk-web": "^0.28.
|
|
45
|
-
"@streamlayer/sdk-web-anonymous-auth": "^0.11.
|
|
43
|
+
"@streamlayer/feature-gamification": "^0.26.2",
|
|
44
|
+
"@streamlayer/sdk-web": "^0.28.24",
|
|
45
|
+
"@streamlayer/sdk-web-anonymous-auth": "^0.11.19",
|
|
46
46
|
"@streamlayer/sdk-web-api": "^0.0.1",
|
|
47
|
-
"@streamlayer/sdk-web-core": "^0.
|
|
48
|
-
"@streamlayer/sdk-web-features": "^0.10.
|
|
47
|
+
"@streamlayer/sdk-web-core": "^0.0.1",
|
|
48
|
+
"@streamlayer/sdk-web-features": "^0.10.27",
|
|
49
49
|
"@streamlayer/sdk-web-interfaces": "^0.18.15",
|
|
50
|
-
"@streamlayer/sdk-web-notifications": "^0.13.
|
|
50
|
+
"@streamlayer/sdk-web-notifications": "^0.13.1",
|
|
51
51
|
"@streamlayer/sdk-web-storage": "^0.0.4",
|
|
52
|
-
"@streamlayer/sdk-web-types": "^0.
|
|
52
|
+
"@streamlayer/sdk-web-types": "^0.0.1"
|
|
53
53
|
},
|
|
54
54
|
"nx": {
|
|
55
55
|
"implicitDependencies": [
|
|
@@ -88,6 +88,6 @@
|
|
|
88
88
|
"vite-plugin-svgr": "^4.1.0",
|
|
89
89
|
"vite-svg-loader": "^4.0.0",
|
|
90
90
|
"vite-tsconfig-paths": "^4.2.1",
|
|
91
|
-
"@streamlayer/react": "^0.30.
|
|
91
|
+
"@streamlayer/react": "^0.30.1"
|
|
92
92
|
}
|
|
93
93
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|