@streamlayer/web-os 0.2.2 → 0.3.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/cjs/gamification-feature.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/index-l-eyvmpL.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index2.js +49 -271
- package/lib/classic/cjs/gamification-feature.js +1 -0
- package/lib/classic/cjs/gamification-feature2.js +1 -0
- package/lib/classic/cjs/index-l-eyvmpL.js +1 -0
- package/lib/classic/cjs/index.js +1 -0
- package/lib/classic/cjs/index2.js +47 -0
- package/lib/classic/es/gamification-feature.js +4 -0
- package/lib/classic/es/gamification-feature2.js +643 -0
- package/lib/classic/es/index-l-eyvmpL.js +3758 -0
- package/lib/classic/es/index.js +13 -0
- package/lib/classic/es/index2.js +40942 -0
- package/lib/classic/index.d.ts +31 -0
- package/lib/classic/style.css +1 -0
- package/lib/es/gamification-feature.js +2 -2
- package/lib/es/gamification-feature2.js +11 -11
- package/lib/es/index-l-eyvmpL.js +3758 -0
- package/lib/es/index.js +1 -1
- package/lib/es/index2.js +18045 -55404
- package/lib/style.css +1 -1
- package/package.json +25 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as s, Fragment as C } from "react/jsx-runtime";
|
|
2
|
-
import { t as z, e as w, f as T,
|
|
2
|
+
import { t as z, e as w, f as T, b as H, c as j, A as Y, s as a, i as W, I as $, d as U, B as h, D as K, g as f, u, r as L, S as D, O as q, h as O, R as P, j as _, w as ss, p as es, k as as, l as ns, m as ls, n as ts, o as is, q as os, v as rs, C as cs } from "./index2.js";
|
|
3
3
|
import "@nanostores/react";
|
|
4
4
|
import { useRef as G, useState as Z, useCallback as x, useEffect as R } from "react";
|
|
5
5
|
import "nanostores";
|
|
@@ -68,11 +68,11 @@ const ps = /* @__PURE__ */ T("CjZzdHJlYW1sYXllci9hbmFseXRpY3MvdjEvaW52aXRhdGlvbn
|
|
|
68
68
|
name: "UserInfo",
|
|
69
69
|
class: "u10d4koz",
|
|
70
70
|
propsAsIs: !1
|
|
71
|
-
}),
|
|
71
|
+
}), Xs = /* @__PURE__ */ a("div")({
|
|
72
72
|
name: "UserName",
|
|
73
73
|
class: "u1q6roj0",
|
|
74
74
|
propsAsIs: !1
|
|
75
|
-
}),
|
|
75
|
+
}), Ss = /* @__PURE__ */ a("div")({
|
|
76
76
|
name: "UserRating",
|
|
77
77
|
class: "ui0m425",
|
|
78
78
|
propsAsIs: !1
|
|
@@ -140,8 +140,8 @@ const ps = /* @__PURE__ */ T("CjZzdHJlYW1sYXllci9hbmFseXRpY3MvdjEvaW52aXRhdGlvbn
|
|
|
140
140
|
!l && /* @__PURE__ */ s(Us, { children: $(o || "") })
|
|
141
141
|
] }),
|
|
142
142
|
/* @__PURE__ */ i(Zs, { children: [
|
|
143
|
-
/* @__PURE__ */ s(
|
|
144
|
-
/* @__PURE__ */ i(
|
|
143
|
+
/* @__PURE__ */ s(Xs, { children: o }),
|
|
144
|
+
/* @__PURE__ */ i(Ss, { children: [
|
|
145
145
|
/* @__PURE__ */ i(ys, { children: [
|
|
146
146
|
/* @__PURE__ */ i(Ns, { children: [
|
|
147
147
|
/* @__PURE__ */ s(Ys, { alt: "rank-icon", src: Ls }),
|
|
@@ -409,7 +409,7 @@ const F = ({ title: e, active: n, onClick: l }) => /* @__PURE__ */ s(Qs, { "data
|
|
|
409
409
|
name: "LinkAddress",
|
|
410
410
|
class: "lvi87q4",
|
|
411
411
|
propsAsIs: !1
|
|
412
|
-
}),
|
|
412
|
+
}), Xe = () => h, Se = /* @__PURE__ */ a(Xe())({
|
|
413
413
|
name: "LinkIcon",
|
|
414
414
|
class: "l1pqlvw3",
|
|
415
415
|
propsAsIs: !0
|
|
@@ -438,7 +438,7 @@ const F = ({ title: e, active: n, onClick: l }) => /* @__PURE__ */ s(Qs, { "data
|
|
|
438
438
|
/* @__PURE__ */ s(Ge, { children: "Invite link" }),
|
|
439
439
|
/* @__PURE__ */ s(Ze, { children: e })
|
|
440
440
|
] }),
|
|
441
|
-
/* @__PURE__ */ s(
|
|
441
|
+
/* @__PURE__ */ s(Se, { name: "icon-copy" })
|
|
442
442
|
] }),
|
|
443
443
|
p
|
|
444
444
|
] });
|
|
@@ -556,10 +556,10 @@ const F = ({ title: e, active: n, onClick: l }) => /* @__PURE__ */ s(Qs, { "data
|
|
|
556
556
|
};
|
|
557
557
|
}, [e]), /* @__PURE__ */ s(xs, { loading: !(l != null && l.summary), ...l == null ? void 0 : l.summary, successRate: (n = l == null ? void 0 : l.percentage) == null ? void 0 : n.correct });
|
|
558
558
|
}, He = ({ gamification: e, className: n, scrollStore: l, scrollNode: o, appNode: t, style: r, responsiveStore: d }) => {
|
|
559
|
-
const { tabsShown: p } = u(l, { keys: ["tabsShown"] }), c = u(e.friendsTabEnabled), [m, b] = Z(v.HOME), [, g] = as(), { sdkInDesktopView:
|
|
559
|
+
const { tabsShown: p } = u(l, { keys: ["tabsShown"] }), c = u(e.friendsTabEnabled), [m, b] = Z(v.HOME), [, g] = as(), { sdkInDesktopView: X, screen: Q } = u(d, { keys: ["sdkInDesktopView"] }), M = (A) => {
|
|
560
560
|
g(() => {
|
|
561
|
-
var
|
|
562
|
-
b(A),
|
|
561
|
+
var S;
|
|
562
|
+
b(A), X === !1 && (((S = t.current) == null ? void 0 : S.getBoundingClientRect().y) || 0) < 0 && bs(t, Q.size, { behavior: "instant" });
|
|
563
563
|
});
|
|
564
564
|
};
|
|
565
565
|
R(() => l.subscribe((A) => {
|
|
@@ -572,7 +572,7 @@ const F = ({ title: e, active: n, onClick: l }) => /* @__PURE__ */ s(Qs, { "data
|
|
|
572
572
|
c || b(v.HOME);
|
|
573
573
|
}, [c]);
|
|
574
574
|
let V = "0px";
|
|
575
|
-
return
|
|
575
|
+
return X ? V = p ? "0px" : "calc(0px - var(--header-height))" : V = p ? "var(--header-height)" : "0px", /* @__PURE__ */ i(ns, { className: ls(n, "SL-Tabs", "sl-hide-on-modal"), style: r, children: [
|
|
576
576
|
c && /* @__PURE__ */ s(
|
|
577
577
|
ts,
|
|
578
578
|
{
|