@streamlayer/react-ui 0.66.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/LeaderBoard_16p26hz-4ed993c7.js +1 -0
- package/lib/assets/style.css +1 -0
- package/lib/index.js +4 -5
- package/lib/index_4nhkck-4ed993c7.js +1 -0
- package/lib/masters_k70xsy-4ed993c7.js +1 -0
- package/lib/ui/app/Features/FeatureProvider.js +1 -1
- package/lib/ui/app/Features/Gamification/Question.js +47 -34
- 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 +51 -38
- package/lib/ui/app/Features/index.js +1 -1
- package/lib/ui/app/Navigation/MastersNavigation/index.js +13 -10
- package/lib/ui/app/Navigation/index.js +13 -12
- package/lib/ui/app/Notifications/Onboarding/Notification/index.d.ts +8 -0
- package/lib/ui/app/Notifications/Onboarding/Notification/index.js +21 -0
- package/lib/ui/app/Notifications/Onboarding/Notification/styles.d.ts +10 -0
- package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +52 -0
- package/lib/ui/app/Notifications/Onboarding/index.js +95 -73
- package/lib/ui/app/Notifications/index.js +37 -13
- package/lib/ui/app/Notifications/styles.js +8 -13
- package/lib/ui/app/masters.js +49 -28
- package/lib/ui/app/styles.js +20 -35
- package/lib/ui/app/useMastersApp.js +52 -36
- package/lib/ui/button/styles.js +12 -42
- package/lib/ui/gamification/detail/header/styles.js +33 -55
- package/lib/ui/gamification/detail/sponsor/index.js +18 -11
- package/lib/ui/gamification/insight/styles.js +40 -61
- package/lib/ui/gamification/insight-list/styles.js +11 -17
- package/lib/ui/gamification/invite-link/styles.js +31 -45
- package/lib/ui/gamification/leaderboard/list-item/styles.js +42 -64
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +31 -44
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +72 -99
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.js +41 -80
- package/lib/ui/gamification/onboarding/styles.js +38 -48
- package/lib/ui/gamification/points/index.d.ts +1 -1
- package/lib/ui/gamification/points/index.js +4 -6
- package/lib/ui/gamification/points/styles.js +32 -81
- package/lib/ui/gamification/question/insight/styles.js +11 -51
- package/lib/ui/gamification/question/list/styles.js +7 -9
- package/lib/ui/gamification/question/notification/insight/styles.js +27 -64
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.js +82 -163
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +53 -128
- package/lib/ui/gamification/question/notification/styles.js +43 -83
- package/lib/ui/gamification/question/notification/tweet/styles.js +35 -64
- package/lib/ui/gamification/question/styles.js +68 -94
- package/lib/ui/gamification/question/twitter/styles.js +13 -23
- package/lib/ui/gamification/tabs/styles.js +22 -65
- package/lib/ui/gamification/user-statistics/components/rank/styles.js +17 -23
- package/lib/ui/gamification/user-statistics/components/statistic/styles.js +17 -21
- package/lib/ui/gamification/user-statistics/styles.js +85 -120
- package/lib/ui/gamification/vote/expired-alert/styles.js +17 -27
- package/lib/ui/gamification/vote/feedback/styles.js +36 -64
- package/lib/ui/gamification/vote/insight-details/styles.js +12 -23
- package/lib/ui/gamification/vote/styles.js +22 -31
- package/lib/ui/gamification/vote/twitter-details/styles.js +7 -9
- package/lib/ui/gamification/vote/vote-option/styles.js +63 -147
- package/lib/ui/gamification/vote/win-bar/styles.js +37 -45
- package/lib/ui/icons/index.js +29 -14
- package/lib/ui/login/styles.js +37 -69
- package/lib/ui/navigation/button/Channels.js +19 -27
- package/lib/ui/navigation/button/FeaturedGroups.js +18 -26
- package/lib/ui/navigation/button/LeaderBoard.js +20 -21
- package/lib/ui/navigation/button/styles.js +16 -56
- package/lib/ui/navigation/index.js +13 -7
- package/lib/ui/navigation/masters.js +8 -32
- package/lib/ui/questions/insight/styles.js +26 -30
- package/lib/ui/questions/twitter/account/styles.js +30 -35
- package/lib/ui/questions/twitter/styles.js +31 -42
- package/lib/ui/show-in/index.js +18 -63
- package/lib/ui/theme/index.js +3 -4
- package/lib/ui/theme/masters.js +2 -9
- package/lib/ui/theme/theme.js +36 -32
- package/lib/ui/timer/index.js +36 -32
- package/lib/ui/video-player/styles.js +22 -27
- package/lib/utils/debug/components/bypassLogin.js +44 -60
- package/lib/utils/debug/components/developer.js +54 -86
- package/lib/utils/debug/components/envToggle.js +33 -58
- package/lib/utils/debug/components/eventInput.js +4 -4
- package/lib/utils/debug/components/styles.js +7 -49
- package/lib/utils/decorators/container.js +3 -4
- package/lib/utils/decorators/styles.js +7 -21
- package/package.json +13 -9
|
@@ -1,29 +1,24 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
top: 50%;
|
|
20
|
-
left: 50%;
|
|
21
|
-
transform: translate(-50%, -50%);
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const e = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "c1bgb86j",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), a = /* @__PURE__ */ s("video")({
|
|
7
|
+
name: "Player",
|
|
8
|
+
class: "p6703cq",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), l = /* @__PURE__ */ s("img")({
|
|
11
|
+
name: "Poster",
|
|
12
|
+
class: "p12ow7zo",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
15
|
+
name: "Control",
|
|
16
|
+
class: "cdpal9o",
|
|
17
|
+
propsAsIs: !1
|
|
18
|
+
});
|
|
24
19
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
e as Container,
|
|
21
|
+
n as Control,
|
|
22
|
+
a as Player,
|
|
23
|
+
l as Poster
|
|
29
24
|
};
|
|
@@ -1,63 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { styled as
|
|
3
|
-
import { useState as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
`, x = ({ sdk: l, storage: t }) => {
|
|
45
|
-
const [n, s] = a(t.getSchema() || ""), [o, p] = a(t.getToken() || "");
|
|
46
|
-
return /* @__PURE__ */ i("div", { children: [
|
|
47
|
-
/* @__PURE__ */ i(d, { children: [
|
|
48
|
-
/* @__PURE__ */ e("label", { children: "Bypass Schema" }),
|
|
49
|
-
/* @__PURE__ */ e("input", { type: "text", value: n, onChange: (r) => s(r.target.value) }),
|
|
50
|
-
/* @__PURE__ */ e("button", { style: { visibility: "hidden" }, children: "login" })
|
|
51
|
-
] }),
|
|
52
|
-
/* @__PURE__ */ i(d, { children: [
|
|
53
|
-
/* @__PURE__ */ e("label", { children: "Bypass Token" }),
|
|
54
|
-
/* @__PURE__ */ e("input", { type: "text", disabled: !n, value: o, onChange: (r) => p(r.target.value) }),
|
|
55
|
-
/* @__PURE__ */ e("button", { disabled: !n || !o, onClick: async () => {
|
|
56
|
-
await l.authorizationBypass(n, o), t.setSchema(n), t.setToken(o);
|
|
57
|
-
}, children: "login" })
|
|
58
|
-
] })
|
|
59
|
-
] });
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { styled as r } from "@linaria/react";
|
|
3
|
+
import { useState as o } from "react";
|
|
4
|
+
const a = /* @__PURE__ */ r("div")({
|
|
5
|
+
name: "InputField",
|
|
6
|
+
class: "i1vlsnk4",
|
|
7
|
+
propsAsIs: !1
|
|
8
|
+
}), g = ({
|
|
9
|
+
sdk: c,
|
|
10
|
+
storage: t
|
|
11
|
+
}) => {
|
|
12
|
+
const [n, d] = o(t.getSchema() || ""), [s, p] = o(t.getToken() || "");
|
|
13
|
+
return /* @__PURE__ */ l("div", {
|
|
14
|
+
children: [/* @__PURE__ */ l(a, {
|
|
15
|
+
children: [/* @__PURE__ */ e("label", {
|
|
16
|
+
children: "Bypass Schema"
|
|
17
|
+
}), /* @__PURE__ */ e("input", {
|
|
18
|
+
type: "text",
|
|
19
|
+
value: n,
|
|
20
|
+
onChange: (i) => d(i.target.value)
|
|
21
|
+
}), /* @__PURE__ */ e("button", {
|
|
22
|
+
style: {
|
|
23
|
+
visibility: "hidden"
|
|
24
|
+
},
|
|
25
|
+
children: "login"
|
|
26
|
+
})]
|
|
27
|
+
}), /* @__PURE__ */ l(a, {
|
|
28
|
+
children: [/* @__PURE__ */ e("label", {
|
|
29
|
+
children: "Bypass Token"
|
|
30
|
+
}), /* @__PURE__ */ e("input", {
|
|
31
|
+
type: "text",
|
|
32
|
+
disabled: !n,
|
|
33
|
+
value: s,
|
|
34
|
+
onChange: (i) => p(i.target.value)
|
|
35
|
+
}), /* @__PURE__ */ e("button", {
|
|
36
|
+
disabled: !n || !s,
|
|
37
|
+
onClick: async () => {
|
|
38
|
+
await c.authorizationBypass(n, s), t.setSchema(n), t.setToken(s);
|
|
39
|
+
},
|
|
40
|
+
children: "login"
|
|
41
|
+
})]
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
60
44
|
};
|
|
61
45
|
export {
|
|
62
|
-
|
|
46
|
+
g as BypassLogin
|
|
63
47
|
};
|
|
@@ -1,96 +1,64 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { styled as
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { styled as s } from "@linaria/react";
|
|
3
3
|
import { useMemo as g, useState as u } from "react";
|
|
4
|
-
import { DeveloperStorage as
|
|
5
|
-
import { BypassLogin as
|
|
6
|
-
import { EnvToggle as
|
|
7
|
-
import { EventInput as
|
|
8
|
-
import { SdkKey as
|
|
4
|
+
import { DeveloperStorage as D } from "../../storage.js";
|
|
5
|
+
import { BypassLogin as I } from "./bypassLogin.js";
|
|
6
|
+
import { EnvToggle as B } from "./envToggle.js";
|
|
7
|
+
import { EventInput as x } from "./eventInput.js";
|
|
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
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
`, k = p.button`
|
|
31
|
-
position: absolute;
|
|
32
|
-
z-index: 10000;
|
|
33
|
-
bottom: 10px;
|
|
34
|
-
right: 10px;
|
|
35
|
-
width: 40px;
|
|
36
|
-
height: 40px;
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
justify-content: space-around;
|
|
40
|
-
background: rgb(29, 123, 255);
|
|
41
|
-
border: none;
|
|
42
|
-
border-radius: 6px;
|
|
43
|
-
padding: 10px;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
transition: all 0.1s ease;
|
|
46
|
-
|
|
47
|
-
&:hover {
|
|
48
|
-
padding-top: 8px;
|
|
49
|
-
padding-bottom: 8px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:active {
|
|
53
|
-
transform: translateY(4px);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&[data-opened='true'] {
|
|
57
|
-
span:nth-child(odd) {
|
|
58
|
-
opacity: 0;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
span {
|
|
63
|
-
display: block;
|
|
64
|
-
background: #fff;
|
|
65
|
-
border-radius: 4px;
|
|
66
|
-
width: 100%;
|
|
67
|
-
height: 4px;
|
|
68
|
-
}
|
|
69
|
-
`, A = ({
|
|
70
|
-
sdk: t,
|
|
71
|
-
sdkKey: d,
|
|
72
|
-
setSdkKey: i,
|
|
73
|
-
env: s,
|
|
13
|
+
const j = /* @__PURE__ */ s("div")({
|
|
14
|
+
name: "DeveloperContainer",
|
|
15
|
+
class: "d1sqxt7l",
|
|
16
|
+
propsAsIs: !1
|
|
17
|
+
}), A = /* @__PURE__ */ s("div")({
|
|
18
|
+
name: "DeveloperItems",
|
|
19
|
+
class: "d1a3478s",
|
|
20
|
+
propsAsIs: !1
|
|
21
|
+
}), C = /* @__PURE__ */ s("button")({
|
|
22
|
+
name: "BurgerBtn",
|
|
23
|
+
class: "butjcq8",
|
|
24
|
+
propsAsIs: !1
|
|
25
|
+
}), F = ({
|
|
26
|
+
sdk: o,
|
|
27
|
+
sdkKey: i,
|
|
28
|
+
setSdkKey: p,
|
|
29
|
+
env: a,
|
|
74
30
|
setEnv: n,
|
|
75
|
-
event:
|
|
76
|
-
setEvent:
|
|
77
|
-
hideAuth:
|
|
31
|
+
event: l,
|
|
32
|
+
setEvent: c,
|
|
33
|
+
hideAuth: f
|
|
78
34
|
}) => {
|
|
79
|
-
const r = g(() => new
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
35
|
+
const r = g(() => new D(), []), [m, d] = u(!1);
|
|
36
|
+
return /* @__PURE__ */ t(j, {
|
|
37
|
+
children: [/* @__PURE__ */ t(C, {
|
|
38
|
+
"data-opened": m.toString(),
|
|
39
|
+
onClick: () => d((v) => !v),
|
|
40
|
+
children: [/* @__PURE__ */ e("span", {}), /* @__PURE__ */ e("span", {}), /* @__PURE__ */ e("span", {})]
|
|
41
|
+
}), m && /* @__PURE__ */ t(A, {
|
|
42
|
+
children: [n && /* @__PURE__ */ e(B, {
|
|
43
|
+
env: a,
|
|
44
|
+
setEnv: n,
|
|
45
|
+
storage: r
|
|
46
|
+
}), p && /* @__PURE__ */ e(h, {
|
|
47
|
+
sdkKey: i,
|
|
48
|
+
setSdkKey: p,
|
|
49
|
+
storage: r
|
|
50
|
+
}), o && /* @__PURE__ */ e(x, {
|
|
51
|
+
sdk: o,
|
|
52
|
+
storage: r,
|
|
53
|
+
event: l,
|
|
54
|
+
setEvent: c
|
|
55
|
+
}), !f && o && /* @__PURE__ */ e(I, {
|
|
56
|
+
sdk: o,
|
|
57
|
+
storage: r
|
|
58
|
+
})]
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
93
61
|
};
|
|
94
62
|
export {
|
|
95
|
-
|
|
63
|
+
F as Developer
|
|
96
64
|
};
|
|
@@ -1,60 +1,35 @@
|
|
|
1
|
-
import { jsxs as t, jsx as
|
|
2
|
-
import { styled as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
span {
|
|
35
|
-
display: block;
|
|
36
|
-
position: absolute;
|
|
37
|
-
top: 0;
|
|
38
|
-
left: 0;
|
|
39
|
-
height: 1rem;
|
|
40
|
-
width: 1rem;
|
|
41
|
-
border-radius: 1em;
|
|
42
|
-
background: gray;
|
|
43
|
-
box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.3);
|
|
44
|
-
transition: all 300ms;
|
|
45
|
-
}
|
|
46
|
-
`, m = ({ env: r, setEnv: i, storage: s }) => /* @__PURE__ */ t(d, { children: [
|
|
47
|
-
/* @__PURE__ */ e("label", { htmlFor: "slEnvCheckbox", children: "Production:" }),
|
|
48
|
-
/* @__PURE__ */ t(a, { children: [
|
|
49
|
-
/* @__PURE__ */ e("input", { id: "slEnvCheckbox", type: "checkbox", checked: r === "production", onChange: () => {
|
|
50
|
-
i((c) => {
|
|
51
|
-
const n = c === "production" ? "development" : "production";
|
|
52
|
-
return s.setEnv(n), n;
|
|
53
|
-
});
|
|
54
|
-
} }),
|
|
55
|
-
/* @__PURE__ */ e("span", {})
|
|
56
|
-
] })
|
|
57
|
-
] });
|
|
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
|
+
name: "Switch",
|
|
5
|
+
class: "s14ex8bw",
|
|
6
|
+
propsAsIs: !1
|
|
7
|
+
}), p = /* @__PURE__ */ e("div")({
|
|
8
|
+
name: "SwitchInput",
|
|
9
|
+
class: "s1fwty0k",
|
|
10
|
+
propsAsIs: !1
|
|
11
|
+
}), a = ({
|
|
12
|
+
env: o,
|
|
13
|
+
setEnv: c,
|
|
14
|
+
storage: i
|
|
15
|
+
}) => /* @__PURE__ */ t(l, {
|
|
16
|
+
children: [/* @__PURE__ */ n("label", {
|
|
17
|
+
htmlFor: "slEnvCheckbox",
|
|
18
|
+
children: "Production:"
|
|
19
|
+
}), /* @__PURE__ */ t(p, {
|
|
20
|
+
children: [/* @__PURE__ */ n("input", {
|
|
21
|
+
id: "slEnvCheckbox",
|
|
22
|
+
type: "checkbox",
|
|
23
|
+
checked: o === "production",
|
|
24
|
+
onChange: () => {
|
|
25
|
+
c((r) => {
|
|
26
|
+
const s = r === "production" ? "development" : "production";
|
|
27
|
+
return i.setEnv(s), s;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}), /* @__PURE__ */ n("span", {})]
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
58
33
|
export {
|
|
59
|
-
|
|
34
|
+
a as EnvToggle
|
|
60
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,51 +1,9 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
font-size: 16px;
|
|
8
|
-
|
|
9
|
-
input {
|
|
10
|
-
display: block;
|
|
11
|
-
width: 100%;
|
|
12
|
-
color: #fff;
|
|
13
|
-
font-size: 24px;
|
|
14
|
-
border: none;
|
|
15
|
-
padding: 2px;
|
|
16
|
-
padding-left: 10px;
|
|
17
|
-
background: linear-gradient(136.45deg, rgba(60, 139, 251, 0.3) 0.57%, rgba(0, 79, 190, 0.3) 100%);
|
|
18
|
-
border: 1px solid transparent;
|
|
19
|
-
outline: none;
|
|
20
|
-
|
|
21
|
-
&:focus {
|
|
22
|
-
border-color: rgb(29, 123, 255);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
label {
|
|
27
|
-
margin-right: 4px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
button {
|
|
31
|
-
width: 150px;
|
|
32
|
-
color: #fff;
|
|
33
|
-
background: transparent;
|
|
34
|
-
margin: 0;
|
|
35
|
-
padding: 0;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
border: none;
|
|
38
|
-
text-transform: uppercase;
|
|
39
|
-
|
|
40
|
-
&:hover {
|
|
41
|
-
transform: scale(1.1);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&:active {
|
|
45
|
-
transform: scale(0.9);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const t = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "InputField",
|
|
4
|
+
class: "iwjhb00",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
});
|
|
49
7
|
export {
|
|
50
|
-
|
|
8
|
+
t as InputField
|
|
51
9
|
};
|
|
@@ -2,11 +2,10 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { StreamLayerThemeProvider as o } from "../../ui/theme/index.js";
|
|
3
3
|
import { AppContainer as t } from "./styles.js";
|
|
4
4
|
import "../../ui/theme/theme.js";
|
|
5
|
-
import "@linaria/core";
|
|
6
5
|
import "../../ui/theme/constants.js";
|
|
7
6
|
import "@linaria/react";
|
|
8
|
-
const
|
|
7
|
+
const h = (e) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r(e, {}) }), a = (e) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(e, {}) }) }) });
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
a as container,
|
|
10
|
+
h as theme
|
|
12
11
|
};
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
margin: 0;
|
|
8
|
-
font-family: var(--font-family);
|
|
9
|
-
color: var(--font-color);
|
|
10
|
-
|
|
11
|
-
& > div {
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
width: 370px;
|
|
14
|
-
height: 100%;
|
|
15
|
-
border-radius: 12px;
|
|
16
|
-
overflow: auto;
|
|
17
|
-
padding: 10px;
|
|
18
|
-
background-color: var(--color-bg-transparent);
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const o = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "AppContainer",
|
|
4
|
+
class: "azqfrs3",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
});
|
|
21
7
|
export {
|
|
22
|
-
|
|
8
|
+
o as AppContainer
|
|
23
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.67.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"import": "./lib/*/index.js",
|
|
25
25
|
"default": "./lib/*/index.js",
|
|
26
26
|
"types": "./lib/*/index.d.js"
|
|
27
|
+
},
|
|
28
|
+
"./style.css": {
|
|
29
|
+
"import": "./lib/assets/style.css",
|
|
30
|
+
"require": "./lib/assets/style.css"
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
33
|
"files": [
|
|
@@ -36,16 +40,16 @@
|
|
|
36
40
|
"react-window": "^1.8.9",
|
|
37
41
|
"@lottiefiles/react-lottie-player": "*",
|
|
38
42
|
"react-window-infinite-loader": "^1.0.9",
|
|
39
|
-
"@streamlayer/feature-gamification": "^0.26.
|
|
40
|
-
"@streamlayer/sdk-web": "^0.28.
|
|
41
|
-
"@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",
|
|
42
46
|
"@streamlayer/sdk-web-api": "^0.0.1",
|
|
43
|
-
"@streamlayer/sdk-web-
|
|
44
|
-
"@streamlayer/sdk-web-
|
|
47
|
+
"@streamlayer/sdk-web-core": "^0.0.1",
|
|
48
|
+
"@streamlayer/sdk-web-features": "^0.10.27",
|
|
45
49
|
"@streamlayer/sdk-web-interfaces": "^0.18.15",
|
|
46
|
-
"@streamlayer/sdk-web-notifications": "^0.13.
|
|
50
|
+
"@streamlayer/sdk-web-notifications": "^0.13.1",
|
|
47
51
|
"@streamlayer/sdk-web-storage": "^0.0.4",
|
|
48
|
-
"@streamlayer/sdk-web-types": "^0.
|
|
52
|
+
"@streamlayer/sdk-web-types": "^0.0.1"
|
|
49
53
|
},
|
|
50
54
|
"nx": {
|
|
51
55
|
"implicitDependencies": [
|
|
@@ -84,6 +88,6 @@
|
|
|
84
88
|
"vite-plugin-svgr": "^4.1.0",
|
|
85
89
|
"vite-svg-loader": "^4.0.0",
|
|
86
90
|
"vite-tsconfig-paths": "^4.2.1",
|
|
87
|
-
"@streamlayer/react": "^0.
|
|
91
|
+
"@streamlayer/react": "^0.30.1"
|
|
88
92
|
}
|
|
89
93
|
}
|