@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.
Files changed (75) hide show
  1. package/lib/assets/style.css +1 -1
  2. package/lib/ui/app/Features/FeatureProvider.js +1 -1
  3. package/lib/ui/app/Features/Gamification/Question.js +11 -11
  4. package/lib/ui/app/Features/Gamification/gamification-feature.d.ts +2 -0
  5. package/lib/ui/app/Features/Gamification/gamification-feature.js +66 -0
  6. package/lib/ui/app/Features/Gamification/index.d.ts +0 -1
  7. package/lib/ui/app/Features/Gamification/index.js +11 -12
  8. package/lib/ui/app/Features/index.js +1 -1
  9. package/lib/ui/app/Navigation/MastersNavigation/index.js +3 -3
  10. package/lib/ui/app/Navigation/index.js +13 -13
  11. package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +13 -13
  12. package/lib/ui/app/Notifications/Onboarding/index.js +5 -5
  13. package/lib/ui/app/Notifications/styles.js +3 -3
  14. package/lib/ui/app/masters.js +30 -28
  15. package/lib/ui/app/styles.js +10 -10
  16. package/lib/ui/app/useMastersApp.js +51 -35
  17. package/lib/ui/button/styles.js +2 -2
  18. package/lib/ui/gamification/detail/header/styles.js +12 -12
  19. package/lib/ui/gamification/detail/sponsor/index.js +6 -6
  20. package/lib/ui/gamification/insight/styles.js +20 -20
  21. package/lib/ui/gamification/insight-list/styles.js +4 -4
  22. package/lib/ui/gamification/invite-link/styles.js +8 -8
  23. package/lib/ui/gamification/leaderboard/list-item/styles.js +18 -18
  24. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +8 -8
  25. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +26 -26
  26. package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.js +12 -12
  27. package/lib/ui/gamification/onboarding/styles.js +23 -23
  28. package/lib/ui/gamification/points/index.d.ts +1 -1
  29. package/lib/ui/gamification/points/styles.js +10 -10
  30. package/lib/ui/gamification/question/insight/styles.js +2 -2
  31. package/lib/ui/gamification/question/list/styles.js +3 -3
  32. package/lib/ui/gamification/question/notification/insight/styles.js +11 -11
  33. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.js +42 -42
  34. package/lib/ui/gamification/question/notification/prediction-result/styles.js +20 -20
  35. package/lib/ui/gamification/question/notification/styles.js +15 -15
  36. package/lib/ui/gamification/question/notification/tweet/styles.js +11 -11
  37. package/lib/ui/gamification/question/styles.js +34 -34
  38. package/lib/ui/gamification/question/twitter/styles.js +6 -6
  39. package/lib/ui/gamification/tabs/styles.js +4 -4
  40. package/lib/ui/gamification/user-statistics/components/rank/styles.js +7 -7
  41. package/lib/ui/gamification/user-statistics/components/statistic/styles.js +5 -5
  42. package/lib/ui/gamification/user-statistics/styles.js +33 -33
  43. package/lib/ui/gamification/vote/expired-alert/styles.js +7 -7
  44. package/lib/ui/gamification/vote/feedback/styles.js +22 -22
  45. package/lib/ui/gamification/vote/insight-details/styles.js +4 -4
  46. package/lib/ui/gamification/vote/styles.js +10 -10
  47. package/lib/ui/gamification/vote/twitter-details/styles.js +3 -3
  48. package/lib/ui/gamification/vote/vote-option/styles.js +22 -22
  49. package/lib/ui/gamification/vote/win-bar/styles.js +9 -9
  50. package/lib/ui/icons/index.js +8 -8
  51. package/lib/ui/login/styles.js +21 -21
  52. package/lib/ui/navigation/button/Channels.js +7 -7
  53. package/lib/ui/navigation/button/FeaturedGroups.js +4 -4
  54. package/lib/ui/navigation/button/LeaderBoard.js +9 -9
  55. package/lib/ui/navigation/button/styles.js +7 -7
  56. package/lib/ui/navigation/index.js +2 -2
  57. package/lib/ui/navigation/masters.js +6 -6
  58. package/lib/ui/questions/insight/styles.js +5 -5
  59. package/lib/ui/questions/twitter/account/styles.js +12 -12
  60. package/lib/ui/questions/twitter/styles.js +8 -8
  61. package/lib/ui/show-in/index.js +14 -14
  62. package/lib/ui/theme/masters.js +1 -1
  63. package/lib/ui/theme/theme.js +19 -19
  64. package/lib/ui/timer/index.js +15 -15
  65. package/lib/ui/video-player/styles.js +8 -8
  66. package/lib/utils/debug/components/bypassLogin.js +9 -9
  67. package/lib/utils/debug/components/developer.js +21 -21
  68. package/lib/utils/debug/components/envToggle.js +14 -14
  69. package/lib/utils/debug/components/eventInput.js +4 -4
  70. package/lib/utils/debug/components/styles.js +3 -3
  71. package/lib/utils/decorators/styles.js +3 -3
  72. package/package.json +9 -9
  73. /package/lib/{LeaderBoard_p8tnz3-4ed993c7.js → LeaderBoard_16p26hz-4ed993c7.js} +0 -0
  74. /package/lib/{index_1ujx5m0-4ed993c7.js → index_4nhkck-4ed993c7.js} +0 -0
  75. /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: "Container_cgn5uen",
4
+ class: "cgn5uen",
5
5
  propsAsIs: !1
6
6
  }), n = /* @__PURE__ */ s("div")({
7
7
  name: "Content",
8
- class: "Content_c1px8nt6",
8
+ class: "c1px8nt6",
9
9
  propsAsIs: !1
10
10
  }), a = /* @__PURE__ */ s("h3")({
11
11
  name: "Title",
12
- class: "Title_t5et2jt",
12
+ class: "t5et2jt",
13
13
  propsAsIs: !1
14
14
  }), o = /* @__PURE__ */ s("div")({
15
15
  name: "Description",
16
- class: "Description_d1i2kpk2",
16
+ class: "d1i2kpk2",
17
17
  propsAsIs: !1
18
18
  }), p = /* @__PURE__ */ s("div")({
19
19
  name: "DateWrap",
20
- class: "DateWrap_dd3lh3p",
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: "Container_cjq447q",
4
+ class: "cjq447q",
5
5
  propsAsIs: !1
6
6
  }), n = /* @__PURE__ */ s("div")({
7
7
  name: "ImageContainer",
8
- class: "ImageContainer_i14egogb",
8
+ class: "i14egogb",
9
9
  propsAsIs: !1
10
10
  }), o = /* @__PURE__ */ s("img")({
11
11
  name: "Image",
12
- class: "Image_i2g9g4l",
12
+ class: "i2g9g4l",
13
13
  propsAsIs: !1
14
- }), m = /* @__PURE__ */ s("div")({
14
+ }), l = /* @__PURE__ */ s("div")({
15
15
  name: "Details",
16
- class: "Details_d1c454nm",
16
+ class: "d1c454nm",
17
17
  propsAsIs: !1
18
- }), t = /* @__PURE__ */ s("div")({
18
+ }), m = /* @__PURE__ */ s("div")({
19
19
  name: "Name",
20
- class: "Name_n11nigc3",
20
+ class: "n11nigc3",
21
21
  propsAsIs: !1
22
- }), i = /* @__PURE__ */ s("div")({
22
+ }), t = /* @__PURE__ */ s("div")({
23
23
  name: "UserName",
24
- class: "UserName_urxa4k8",
24
+ class: "urxa4k8",
25
25
  propsAsIs: !1
26
26
  });
27
27
  export {
28
28
  e as Container,
29
- m as Details,
29
+ l as Details,
30
30
  o as Image,
31
31
  n as ImageContainer,
32
- t as Name,
33
- i as UserName
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: "Container_c1kzqw87",
4
+ class: "c1kzqw87",
5
5
  propsAsIs: !1
6
6
  }), o = /* @__PURE__ */ s("div")({
7
7
  name: "DateTime",
8
- class: "DateTime_d9r1hf9",
8
+ class: "d9r1hf9",
9
9
  propsAsIs: !1
10
10
  }), t = /* @__PURE__ */ s("blockquote")({
11
11
  name: "Quote",
12
- class: "Quote_qezygt5",
12
+ class: "qezygt5",
13
13
  propsAsIs: !1
14
14
  }), n = /* @__PURE__ */ s("div")({
15
15
  name: "Details",
16
- class: "Details_d1y8f7ym",
16
+ class: "d1y8f7ym",
17
17
  propsAsIs: !1
18
18
  }), l = /* @__PURE__ */ s("div")({
19
19
  name: "Body",
20
- class: "Body_b18gwonx",
20
+ class: "b18gwonx",
21
21
  propsAsIs: !1
22
- }), i = /* @__PURE__ */ s("img")({
22
+ }), c = /* @__PURE__ */ s("img")({
23
23
  name: "Image",
24
- class: "Image_i3g0xjd",
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
- i as Image,
32
+ c as Image,
33
33
  t as Quote
34
34
  };
@@ -1,20 +1,20 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { cx as r } from "@linaria/core";
3
- import { styled as a } from "@linaria/react";
4
- const e = /* @__PURE__ */ a("div")({
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: "Container_c1pgyo67",
6
+ class: "c1pgyo67",
7
7
  propsAsIs: !1
8
- }), m = "HidingAnimation_hx17qu6", x = ({
9
- children: n,
10
- style: o,
11
- className: i,
8
+ }), a = "hx17qu6", d = ({
9
+ children: o,
10
+ style: n,
11
+ className: s,
12
12
  hiding: t
13
- }) => /* @__PURE__ */ s(e, {
14
- style: o,
15
- className: r(i, t && m),
16
- children: n
13
+ }) => /* @__PURE__ */ r(m, {
14
+ style: n,
15
+ className: i(s, t && a),
16
+ children: o
17
17
  });
18
18
  export {
19
- x as ShowIn
19
+ d as ShowIn
20
20
  };
@@ -1,4 +1,4 @@
1
- const s = "mastersVariables_m17a8r9z";
1
+ const s = "m17a8r9z";
2
2
  export {
3
3
  s as mastersVariables
4
4
  };
@@ -1,35 +1,35 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import { colors as h, FONT as t } from "./constants.js";
3
- const d = `
4
- ${h}
5
- --font-family: ${t.REGULAR};
6
- --font-regular: ${t.REGULAR};
7
- --font-color: ${t.COLOR};
8
- --font-serif: ${t.SERIF};
9
- --font-weight-default: ${t.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
- `, c = "StreamLayerCSSReset", m = "theme_ttkj0ah", f = () => /* @__PURE__ */ e("table", {
16
+ `, d = "StreamLayerCSSReset", m = "ttkj0ah", f = () => /* @__PURE__ */ t("table", {
17
17
  children: /* @__PURE__ */ r("table", {
18
- children: [/* @__PURE__ */ e("thead", {
18
+ children: [/* @__PURE__ */ t("thead", {
19
19
  children: /* @__PURE__ */ r("tr", {
20
- children: [/* @__PURE__ */ e("th", {
20
+ children: [/* @__PURE__ */ t("th", {
21
21
  children: "name"
22
- }), /* @__PURE__ */ e("th", {
22
+ }), /* @__PURE__ */ t("th", {
23
23
  children: "value"
24
24
  })]
25
25
  })
26
- }), /* @__PURE__ */ e("tbody", {
27
- children: d.split(";").map((i) => {
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__ */ e("td", {
30
+ children: [/* @__PURE__ */ t("td", {
31
31
  children: o
32
- }), /* @__PURE__ */ e("td", {
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
- c as resetCss,
42
+ d as resetCss,
43
43
  m as theme,
44
- d as themeStr
44
+ h as themeStr
45
45
  };
@@ -1,41 +1,41 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { styled as _ } from "@linaria/react";
3
- import { useState as E, useCallback as R } from "react";
4
- import { CountdownCircleTimer as O } from "react-countdown-circle-timer";
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 S = [o.PRIMARY_GREEN1, o.SECONDARY_RED1, o.SECONDARY_RED1], A = [10, 10, 0], f = /* @__PURE__ */ _("div")({
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: "RemainingTime_r165427",
8
+ class: "r165427",
9
9
  propsAsIs: !1
10
- }), D = o.SECONDARY_GREEN6, c = o.SECONDARY_RED3, N = o.NEUTRALS_GRAY3, I = ({
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 [m, s] = E(r > 10 ? D : c), l = ({
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 = R(() => {
19
+ }), a = c(() => {
20
20
  t == null || t(), s(N);
21
- }, [t, s]), C = R((e) => {
22
- e === 10 && s(c);
21
+ }, [t, s]), C = c((e) => {
22
+ e === 10 && s(R);
23
23
  }, [s]);
24
- return /* @__PURE__ */ n(O, {
24
+ return /* @__PURE__ */ n(S, {
25
25
  isPlaying: i,
26
26
  duration: r,
27
- colors: S,
27
+ colors: _,
28
28
  colorsTime: A,
29
29
  size: 32,
30
30
  strokeWidth: 2,
31
31
  trailStrokeWidth: 2,
32
- trailColor: m,
32
+ trailColor: l,
33
33
  onComplete: a,
34
34
  onUpdate: C,
35
- children: l
35
+ children: m
36
36
  });
37
37
  };
38
38
  export {
39
39
  f as RemainingTime,
40
- I as Timer
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: "Container_c1bgb86j",
4
+ class: "c1bgb86j",
5
5
  propsAsIs: !1
6
6
  }), a = /* @__PURE__ */ s("video")({
7
7
  name: "Player",
8
- class: "Player_p6703cq",
8
+ class: "p6703cq",
9
9
  propsAsIs: !1
10
- }), r = /* @__PURE__ */ s("img")({
10
+ }), l = /* @__PURE__ */ s("img")({
11
11
  name: "Poster",
12
- class: "Poster_p12ow7zo",
12
+ class: "p12ow7zo",
13
13
  propsAsIs: !1
14
- }), t = /* @__PURE__ */ s("div")({
14
+ }), n = /* @__PURE__ */ s("div")({
15
15
  name: "Control",
16
- class: "Control_cdpal9o",
16
+ class: "cdpal9o",
17
17
  propsAsIs: !1
18
18
  });
19
19
  export {
20
20
  e as Container,
21
- t as Control,
21
+ n as Control,
22
22
  a as Player,
23
- r as Poster
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: "InputField_i1vlsnk4",
6
+ class: "i1vlsnk4",
7
7
  propsAsIs: !1
8
- }), b = ({
8
+ }), g = ({
9
9
  sdk: c,
10
10
  storage: t
11
11
  }) => {
12
- const [n, d] = o(t.getSchema() || ""), [i, p] = o(t.getToken() || "");
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: (s) => d(s.target.value)
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: i,
34
- onChange: (s) => p(s.target.value)
33
+ value: s,
34
+ onChange: (i) => p(i.target.value)
35
35
  }), /* @__PURE__ */ e("button", {
36
- disabled: !n || !i,
36
+ disabled: !n || !s,
37
37
  onClick: async () => {
38
- await c.authorizationBypass(n, i), t.setSchema(n), t.setToken(i);
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
- b as BypassLogin
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 B } from "./bypassLogin.js";
6
- import { EnvToggle as I } from "./envToggle.js";
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 C } from "./sdkKey.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 _ = /* @__PURE__ */ s("div")({
13
+ const j = /* @__PURE__ */ s("div")({
14
14
  name: "DeveloperContainer",
15
- class: "DeveloperContainer_d1sqxt7l",
15
+ class: "d1sqxt7l",
16
16
  propsAsIs: !1
17
- }), h = /* @__PURE__ */ s("div")({
17
+ }), A = /* @__PURE__ */ s("div")({
18
18
  name: "DeveloperItems",
19
- class: "DeveloperItems_d1a3478s",
19
+ class: "d1a3478s",
20
20
  propsAsIs: !1
21
- }), j = /* @__PURE__ */ s("button")({
21
+ }), C = /* @__PURE__ */ s("button")({
22
22
  name: "BurgerBtn",
23
- class: "BurgerBtn_butjcq8",
23
+ class: "butjcq8",
24
24
  propsAsIs: !1
25
25
  }), F = ({
26
26
  sdk: o,
27
27
  sdkKey: i,
28
- setSdkKey: n,
28
+ setSdkKey: p,
29
29
  env: a,
30
- setEnv: p,
30
+ setEnv: n,
31
31
  event: l,
32
32
  setEvent: c,
33
33
  hideAuth: f
34
34
  }) => {
35
- const r = g(() => new D(), []), [m, v] = u(!1);
36
- return /* @__PURE__ */ t(_, {
37
- children: [/* @__PURE__ */ t(j, {
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: () => v((d) => !d),
39
+ onClick: () => d((v) => !v),
40
40
  children: [/* @__PURE__ */ e("span", {}), /* @__PURE__ */ e("span", {}), /* @__PURE__ */ e("span", {})]
41
- }), m && /* @__PURE__ */ t(h, {
42
- children: [p && /* @__PURE__ */ e(I, {
41
+ }), m && /* @__PURE__ */ t(A, {
42
+ children: [n && /* @__PURE__ */ e(B, {
43
43
  env: a,
44
- setEnv: p,
44
+ setEnv: n,
45
45
  storage: r
46
- }), n && /* @__PURE__ */ e(C, {
46
+ }), p && /* @__PURE__ */ e(h, {
47
47
  sdkKey: i,
48
- setSdkKey: n,
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(B, {
55
+ }), !f && o && /* @__PURE__ */ e(I, {
56
56
  sdk: o,
57
57
  storage: r
58
58
  })]
@@ -1,35 +1,35 @@
1
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
- import { styled as c } from "@linaria/react";
3
- const h = /* @__PURE__ */ c("div")({
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: "Switch_s14ex8bw",
5
+ class: "s14ex8bw",
6
6
  propsAsIs: !1
7
- }), p = /* @__PURE__ */ c("div")({
7
+ }), p = /* @__PURE__ */ e("div")({
8
8
  name: "SwitchInput",
9
- class: "SwitchInput_s1fwty0k",
9
+ class: "s1fwty0k",
10
10
  propsAsIs: !1
11
- }), w = ({
11
+ }), a = ({
12
12
  env: o,
13
- setEnv: e,
13
+ setEnv: c,
14
14
  storage: i
15
- }) => /* @__PURE__ */ s(h, {
15
+ }) => /* @__PURE__ */ t(l, {
16
16
  children: [/* @__PURE__ */ n("label", {
17
17
  htmlFor: "slEnvCheckbox",
18
18
  children: "Production:"
19
- }), /* @__PURE__ */ s(p, {
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
- e((r) => {
26
- const t = r === "production" ? "development" : "production";
27
- return i.setEnv(t), t;
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
- w as EnvToggle
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: l }) => {
7
+ const y = ({ sdk: o, storage: i, event: e, setEvent: a }) => {
8
8
  var n;
9
- const { organizationSettings: r } = d(o.sdkStore), a = !((n = r == null ? void 0 : r.data) != null && n.provider), s = () => {
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: a ? "Use StreamLayer event ids" : "Use your provider event ids" }),
16
- /* @__PURE__ */ t("input", { type: "text", value: e, onChange: (p) => l(p.target.value) }),
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 e = /* @__PURE__ */ s("div")({
2
+ const t = /* @__PURE__ */ s("div")({
3
3
  name: "InputField",
4
- class: "InputField_iwjhb00",
4
+ class: "iwjhb00",
5
5
  propsAsIs: !1
6
6
  });
7
7
  export {
8
- e as InputField
8
+ t as InputField
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import { styled as s } from "@linaria/react";
2
- const a = /* @__PURE__ */ s("div")({
2
+ const o = /* @__PURE__ */ s("div")({
3
3
  name: "AppContainer",
4
- class: "AppContainer_azqfrs3",
4
+ class: "azqfrs3",
5
5
  propsAsIs: !1
6
6
  });
7
7
  export {
8
- a as AppContainer
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.0",
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.1",
44
- "@streamlayer/sdk-web": "^0.28.23",
45
- "@streamlayer/sdk-web-anonymous-auth": "^0.11.18",
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.17.8",
48
- "@streamlayer/sdk-web-features": "^0.10.26",
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.0",
50
+ "@streamlayer/sdk-web-notifications": "^0.13.1",
51
51
  "@streamlayer/sdk-web-storage": "^0.0.4",
52
- "@streamlayer/sdk-web-types": "^0.20.1"
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.0"
91
+ "@streamlayer/react": "^0.30.1"
92
92
  }
93
93
  }