@streamlayer/react-ui 0.27.2 → 0.27.3

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.
@@ -1,32 +1,38 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
- import { useMemo as c, useState as x } from "react";
3
- import { styled as n } from "@linaria/react";
2
+ import { useMemo as c, useState as f } from "react";
3
+ import { styled as i } from "@linaria/react";
4
+ import { DeveloperStorage as x } from "../storage.js";
4
5
  import { EventInput as g } from "./eventInput.js";
5
- import { BypassLogin as f } from "./bypassLogin.js";
6
- import { SdkKey as h } from "./sdkKey.js";
7
- import { EnvToggle as u } from "./envToggle.js";
8
- import { DeveloperStorage as b } from "../storage.js";
6
+ import { BypassLogin as h } from "./bypassLogin.js";
7
+ import { SdkKey as u } from "./sdkKey.js";
8
+ import { EnvToggle as b } from "./envToggle.js";
9
+ import "@streamlayer/sdk-web-storage";
9
10
  import "@streamlayer/sdk-web-core";
10
11
  import "@nanostores/react";
11
12
  import "./styles.js";
12
- import "@streamlayer/sdk-web-storage";
13
- const v = n.div`
13
+ const v = i.div`
14
14
  position: fixed;
15
15
  bottom: 0;
16
16
  right: 0;
17
17
  max-width: 600px;
18
- `, y = n.div`
18
+ `, y = i.div`
19
19
  flex-direction: column;
20
20
  gap: 10px;
21
21
  margin-right: 60px;
22
22
  display: flex;
23
- transition: all .3s ease;
23
+ animation: show-dev-items 0.3s ease-in-out;
24
24
  transform-origin: bottom right;
25
25
 
26
- &[data-opened='false'] {
27
- transform: scale(0) translateY(-100%);
26
+ @keyframes show-dev-items {
27
+ from {
28
+ transform: scale(0);
29
+ }
30
+
31
+ to {
32
+ transform: scale(1);
33
+ }
28
34
  }
29
- `, w = n.button`
35
+ `, w = i.button`
30
36
  position: absolute;
31
37
  z-index: 10000;
32
38
  bottom: 10px;
@@ -65,22 +71,22 @@ const v = n.div`
65
71
  width: 100%;
66
72
  height: 4px;
67
73
  }
68
- `, O = ({ sdk: t, sdkKey: s, setSdkKey: i, env: d, setEnv: p }) => {
69
- const r = c(() => new b(), []), [a, m] = x(!1);
74
+ `, T = ({ sdk: t, sdkKey: s, setSdkKey: n, env: m, setEnv: p }) => {
75
+ const r = c(() => new x(), []), [a, d] = f(!1);
70
76
  return /* @__PURE__ */ e(v, { children: [
71
- /* @__PURE__ */ e(w, { "data-opened": a.toString(), onClick: () => m((l) => !l), children: [
77
+ /* @__PURE__ */ e(w, { "data-opened": a.toString(), onClick: () => d((l) => !l), children: [
72
78
  /* @__PURE__ */ o("span", {}),
73
79
  /* @__PURE__ */ o("span", {}),
74
80
  /* @__PURE__ */ o("span", {})
75
81
  ] }),
76
- /* @__PURE__ */ e(y, { "data-opened": a.toString(), children: [
77
- p && /* @__PURE__ */ o(u, { env: d, setEnv: p, storage: r }),
78
- i && /* @__PURE__ */ o(h, { sdkKey: s, setSdkKey: i, storage: r }),
82
+ a && /* @__PURE__ */ e(y, { children: [
83
+ p && /* @__PURE__ */ o(b, { env: m, setEnv: p, storage: r }),
84
+ n && /* @__PURE__ */ o(u, { sdkKey: s, setSdkKey: n, storage: r }),
79
85
  t && /* @__PURE__ */ o(g, { sdk: t, storage: r }),
80
- t && /* @__PURE__ */ o(f, { sdk: t, storage: r })
86
+ t && /* @__PURE__ */ o(h, { sdk: t, storage: r })
81
87
  ] })
82
88
  ] });
83
89
  };
84
90
  export {
85
- O as Developer
91
+ T as Developer
86
92
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "0.27.2",
3
+ "version": "0.27.3",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "peerDependencies": {
24
24
  "@streamlayer/sl-eslib": "^5.45.1",
25
25
  "@streamlayer/feature-gamification": "^0.16.0",
26
- "@streamlayer/sdk-web-anonymous-auth": "^0.10.5",
27
26
  "@streamlayer/sdk-web": "^0.27.0",
27
+ "@streamlayer/sdk-web-anonymous-auth": "^0.10.5",
28
28
  "@streamlayer/sdk-web-api": "^0.0.2",
29
29
  "@streamlayer/sdk-web-core": "^0.12.0",
30
30
  "@streamlayer/sdk-web-features": "^0.9.5",