@streamlayer/react-ui 1.18.1 → 1.19.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/app/app/Notifications/index.js +1 -1
- package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.js +12 -8
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +42 -14
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.d.ts +12 -0
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.js +40 -20
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.js +8 -4
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.d.ts +4 -0
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.js +27 -0
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.js +21 -19
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +1 -0
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.js +22 -17
- package/lib/app/masters/BetPack/BetPackContent/index.js +88 -62
- package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +1 -0
- package/lib/app/masters/BetPack/BetPackContent/styles.js +8 -7
- package/lib/app/masters/BetPack/index.js +59 -53
- package/lib/app/masters/Features/Gamification/Question.js +3 -3
- package/lib/app/masters/Features/Gamification/Tabs.d.ts +0 -7
- package/lib/app/masters/Features/Gamification/Tabs.js +9 -42
- package/lib/app/masters/Features/Gamification/UserSummary.js +15 -14
- package/lib/app/masters/Features/Gamification/index.d.ts +1 -6
- package/lib/app/masters/Features/Gamification/index.js +37 -76
- package/lib/app/masters/Features/index.d.ts +1 -6
- package/lib/app/masters/Features/index.js +15 -25
- package/lib/app/masters/Header/index.d.ts +3 -0
- package/lib/app/masters/Header/index.js +38 -0
- package/lib/app/masters/Notifications/index.js +1 -1
- package/lib/app/masters/masters.d.ts +1 -0
- package/lib/app/masters/masters.js +75 -92
- package/lib/app/masters/story/index.d.ts +1 -0
- package/lib/app/masters/story/index.js +21 -22
- package/lib/app/masters/styles.d.ts +0 -10
- package/lib/app/masters/styles.js +13 -23
- package/lib/app/masters/useSdkResponsive.js +1 -1
- package/lib/app/masters/useSdkScroll.js +1 -1
- package/lib/app/useClipboardCopy.js +1 -1
- package/lib/app/useSdkResponsive.js +1 -1
- package/lib/app/useSdkScroll.js +1 -1
- package/lib/assets/style.css +1 -1
- package/lib/index-BEm7B1u1.js +72 -0
- package/lib/index-DALxy-8N.js +5437 -0
- package/lib/ui/gamification/user-statistics/index.d.ts +1 -0
- package/lib/ui/gamification/user-statistics/index.js +47 -39
- package/lib/ui/gamification/user-statistics/styles.d.ts +2 -0
- package/lib/ui/gamification/user-statistics/styles.js +34 -24
- package/lib/ui/gamification/vote/feedback/index.d.ts +1 -0
- package/lib/ui/gamification/vote/feedback/index.js +60 -47
- package/lib/ui/gamification/vote/feedback/styles.d.ts +12 -0
- package/lib/ui/gamification/vote/feedback/styles.js +47 -27
- package/lib/ui/gamification/vote/index.js +145 -136
- package/lib/ui/gamification/vote/styles.d.ts +3 -1
- package/lib/ui/gamification/vote/styles.js +42 -32
- package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -0
- package/lib/ui/gamification/vote/vote-option/index.js +59 -60
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/vote-option/styles.js +16 -11
- package/lib/ui/icons/index.d.ts +3 -0
- package/lib/ui/icons/index.js +69 -51
- package/lib/ui/loader/index.js +4 -3
- package/lib/ui/modal/index.js +1 -1
- package/lib/ui/theme/masters-theme.js +152 -32
- package/lib/ui/theme/theme.js +66 -20
- package/package.json +16 -15
- package/lib/app/masters/Features/Gamification/Friends.d.ts +0 -3
- package/lib/app/masters/Features/Gamification/Friends.js +0 -19
- package/lib/app/masters/Features/Gamification/Leaderboard.d.ts +0 -8
- package/lib/app/masters/Features/Gamification/Leaderboard.js +0 -56
- package/lib/index-B1QdimmR.js +0 -19047
- package/lib/index-CZvwzN5o.js +0 -75
- package/lib/index-xuotMAFm.js +0 -118
|
@@ -1,124 +1,107 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cx as x } from "@linaria/core";
|
|
3
|
+
import { SDKContainer as y, SDKScrollContainer as A } from "./styles.js";
|
|
3
4
|
import { useSdkScroll as C } from "./useSdkScroll.js";
|
|
4
|
-
import { useSdkFeature as
|
|
5
|
-
import { useAnalyticsListener as
|
|
6
|
-
import { useRef as
|
|
7
|
-
import { useStore as
|
|
8
|
-
import { FeatureType as
|
|
9
|
-
import { resetCss as
|
|
5
|
+
import { useSdkFeature as D } from "../useSdkFeature.js";
|
|
6
|
+
import { useAnalyticsListener as p, newTabLinkListener as I, appScrollListener as M, appClickListener as P } from "../../hooks/analytics.js";
|
|
7
|
+
import { useRef as d, useState as E, useEffect as S, useMemo as g } from "react";
|
|
8
|
+
import { useStore as i } from "@streamlayer/react-polyfills";
|
|
9
|
+
import { FeatureType as k } from "@streamlayer/sdk-web-types";
|
|
10
|
+
import { resetCss as f } from "../../ui/theme/theme.js";
|
|
10
11
|
import { BetPackOverlay as w } from "./BetPack/index.js";
|
|
11
|
-
import { ActiveFeature as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
responsiveStore: r,
|
|
27
|
-
sdk: e
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
}, R = ({ sdk: e, className: t, appNode: s, responsiveStore: a }) => {
|
|
31
|
-
const i = l(e.featuresList.getStore());
|
|
32
|
-
return i ? Array.from(i, (r) => {
|
|
33
|
-
const o = e.getFeature(r);
|
|
34
|
-
return o ? /* @__PURE__ */ n(
|
|
35
|
-
k,
|
|
12
|
+
import { ActiveFeature as K, StandaloneFeature as B } from "./Features/index.js";
|
|
13
|
+
import { SDKHeader as O } from "./Header/index.js";
|
|
14
|
+
import { SDKNotifications as R } from "./Notifications/index.js";
|
|
15
|
+
import { MastersContext as j } from "./useMastersContext.js";
|
|
16
|
+
import { useSdkResponsive as G } from "./useSdkResponsive.js";
|
|
17
|
+
import { StreamLayerMastersThemeProvider as me } from "../../ui/theme/masters.js";
|
|
18
|
+
const T = ({ sdk: e, className: o }) => {
|
|
19
|
+
const [, r] = D(e);
|
|
20
|
+
return /* @__PURE__ */ t(K, { className: o, feature: r, sdk: e });
|
|
21
|
+
}, V = ({ sdk: e, className: o, appNode: r, responsiveStore: l }) => {
|
|
22
|
+
const n = i(e.featuresList.getStore());
|
|
23
|
+
return n ? Array.from(n, (a) => {
|
|
24
|
+
const s = e.getFeature(a);
|
|
25
|
+
return s ? /* @__PURE__ */ t(
|
|
26
|
+
B,
|
|
36
27
|
{
|
|
37
|
-
className:
|
|
38
|
-
appNode:
|
|
39
|
-
feature:
|
|
40
|
-
responsiveStore:
|
|
28
|
+
className: o,
|
|
29
|
+
appNode: r,
|
|
30
|
+
feature: s,
|
|
31
|
+
responsiveStore: l,
|
|
41
32
|
sdk: e
|
|
42
33
|
},
|
|
43
|
-
|
|
34
|
+
a
|
|
44
35
|
) : null;
|
|
45
36
|
}) : null;
|
|
46
|
-
},
|
|
37
|
+
}, q = ({
|
|
47
38
|
responsiveStore: e,
|
|
48
|
-
...
|
|
39
|
+
...o
|
|
49
40
|
}) => {
|
|
50
|
-
const { sdkInDesktopView:
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
-
},
|
|
53
|
-
const
|
|
41
|
+
const { sdkInDesktopView: r } = i(e);
|
|
42
|
+
return /* @__PURE__ */ t(w, { ...o, isMobile: !r });
|
|
43
|
+
}, ae = ({ sdk: e, betPack: o }) => {
|
|
44
|
+
const r = d(null), [l, n] = E(o), a = d(null), [s] = G(r), [m, v] = C(r, s), N = i(e.status), F = i(e.sdkStore.slStreamId), b = !!i(e.userId()), c = N === "ready" && !!F.data;
|
|
54
45
|
S(() => {
|
|
55
46
|
window.requestAnimationFrame(() => {
|
|
56
47
|
e.initializeApp().then(() => {
|
|
57
|
-
e.openFeature(
|
|
48
|
+
e.openFeature(k.GAMES);
|
|
58
49
|
});
|
|
59
50
|
});
|
|
60
|
-
}, [e]),
|
|
51
|
+
}, [e]), p(r, { enabled: !0, event: "click", listener: I }), p(m, {
|
|
61
52
|
enabled: !0,
|
|
62
53
|
event: "scrollend",
|
|
63
|
-
listener:
|
|
54
|
+
listener: M,
|
|
64
55
|
useDomNode: !0
|
|
65
|
-
}), m
|
|
56
|
+
}), p(m, {
|
|
66
57
|
enabled: !0,
|
|
67
58
|
event: "click",
|
|
68
|
-
listener:
|
|
59
|
+
listener: P,
|
|
69
60
|
useDomNode: !0
|
|
70
61
|
});
|
|
71
|
-
const
|
|
62
|
+
const h = g(() => ({ sdk: e }), [e]);
|
|
72
63
|
return S(() => {
|
|
73
64
|
import("./Features/Gamification/gamification-feature.js");
|
|
74
|
-
}, []), /* @__PURE__ */
|
|
75
|
-
|
|
76
|
-
|
|
65
|
+
}, []), /* @__PURE__ */ u(j.Provider, { value: h, children: [
|
|
66
|
+
l && b && /* @__PURE__ */ t(
|
|
67
|
+
q,
|
|
77
68
|
{
|
|
78
69
|
sdk: e,
|
|
79
|
-
onEvent: ({ type:
|
|
70
|
+
onEvent: ({ type: L }) => L === "slOpenGameCenter" ? n(!1) : () => {
|
|
80
71
|
},
|
|
81
|
-
close: () =>
|
|
82
|
-
responsiveStore:
|
|
72
|
+
close: () => n(!1),
|
|
73
|
+
responsiveStore: s
|
|
83
74
|
}
|
|
84
75
|
),
|
|
85
|
-
!
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
responsiveStore: r,
|
|
112
|
-
appNode: t,
|
|
113
|
-
className: v,
|
|
114
|
-
sdk: e
|
|
115
|
-
}
|
|
116
|
-
)
|
|
117
|
-
] }) }),
|
|
118
|
-
!u && /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "You are not logged in." })
|
|
76
|
+
!l && /* @__PURE__ */ u(y, { ref: r, children: [
|
|
77
|
+
/* @__PURE__ */ t(O, { className: x(f, "sl-hide-on-modal"), ref: a }),
|
|
78
|
+
/* @__PURE__ */ u(A, { "data-nav": !0, className: "sl-hide-on-modal", ref: m, children: [
|
|
79
|
+
c && /* @__PURE__ */ t(
|
|
80
|
+
R,
|
|
81
|
+
{
|
|
82
|
+
sdk: e,
|
|
83
|
+
scrollNode: m,
|
|
84
|
+
headerNode: a,
|
|
85
|
+
appNode: r,
|
|
86
|
+
scrollStore: v,
|
|
87
|
+
responsiveStore: s
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
c && /* @__PURE__ */ t(T, { className: f, sdk: e }),
|
|
91
|
+
c && /* @__PURE__ */ t(
|
|
92
|
+
V,
|
|
93
|
+
{
|
|
94
|
+
responsiveStore: s,
|
|
95
|
+
appNode: r,
|
|
96
|
+
className: f,
|
|
97
|
+
sdk: e
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] })
|
|
101
|
+
] })
|
|
119
102
|
] });
|
|
120
103
|
};
|
|
121
104
|
export {
|
|
122
|
-
|
|
123
|
-
|
|
105
|
+
ae as MastersApp,
|
|
106
|
+
me as StreamLayerMastersThemeProvider
|
|
124
107
|
};
|
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { MastersStreamLayerProvider as d, useStreamLayer as c } from "@streamlayer/react/masters";
|
|
3
3
|
import { MastersApp as s } from "../masters.js";
|
|
4
4
|
import { StreamLayerMastersThemeProvider as p } from "../../../ui/theme/masters.js";
|
|
5
5
|
import { useStreamLayerDebug as m, StreamLayerDebug as h } from "../../../utils/debug/index.js";
|
|
6
|
-
import { MastersLogin as u, MobileHeader as y, HostAppContent as
|
|
7
|
-
const
|
|
6
|
+
import { MastersLogin as u, MobileHeader as y, HostAppContent as i, Body as k, Video as v, Container as L, AppContainer as T, BackToTop as f, BackToTopLink as C } from "./components.js";
|
|
7
|
+
const S = ({ betPack: n }) => {
|
|
8
8
|
const o = c();
|
|
9
|
-
return o ? /* @__PURE__ */ e(p, { style: { height: "100%" }, children: /* @__PURE__ */ e(s, { sdk: o }) }) : null;
|
|
9
|
+
return o ? /* @__PURE__ */ e(p, { style: { height: "100%" }, children: /* @__PURE__ */ e(s, { sdk: o, betPack: n }) }) : null;
|
|
10
10
|
}, a = () => {
|
|
11
11
|
console.log("deep link handled cb");
|
|
12
|
-
},
|
|
12
|
+
}, l = () => {
|
|
13
13
|
console.log("video player handled cb");
|
|
14
|
-
},
|
|
14
|
+
}, K = ({ settings: n, betPack: o }) => {
|
|
15
15
|
const r = m();
|
|
16
|
-
return
|
|
17
|
-
|
|
16
|
+
return n ? /* @__PURE__ */ t(
|
|
17
|
+
d,
|
|
18
18
|
{
|
|
19
19
|
sdkKey: r.sdkKey,
|
|
20
20
|
production: r.env === "production",
|
|
21
21
|
onDeepLinkHandled: a,
|
|
22
|
-
videoPlayerController:
|
|
22
|
+
videoPlayerController: l,
|
|
23
23
|
children: [
|
|
24
24
|
/* @__PURE__ */ e(u, {}),
|
|
25
25
|
/* @__PURE__ */ e(h, { ...r, standalone: !0, hideAuth: !0 })
|
|
26
26
|
]
|
|
27
27
|
}
|
|
28
|
-
) : /* @__PURE__ */
|
|
29
|
-
|
|
28
|
+
) : /* @__PURE__ */ t(
|
|
29
|
+
d,
|
|
30
30
|
{
|
|
31
31
|
sdkKey: r.sdkKey,
|
|
32
32
|
production: r.env === "production",
|
|
33
|
-
autoEnable: !1,
|
|
34
33
|
onDeepLinkHandled: a,
|
|
35
|
-
videoPlayerController:
|
|
34
|
+
videoPlayerController: l,
|
|
35
|
+
event: r.event,
|
|
36
36
|
children: [
|
|
37
|
-
/* @__PURE__ */ e(l, { event: r.event }),
|
|
38
37
|
/* @__PURE__ */ e(y, { children: "header" }),
|
|
39
|
-
/* @__PURE__ */ e(
|
|
40
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ e(i, { children: "...host app content..." }),
|
|
39
|
+
/* @__PURE__ */ t(k, { children: [
|
|
41
40
|
/* @__PURE__ */ e(v, {}),
|
|
42
|
-
/* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(
|
|
41
|
+
/* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(T, { className: "StreamLayerSDK", children: /* @__PURE__ */ e(S, { betPack: o }) }) })
|
|
43
42
|
] }),
|
|
44
|
-
/* @__PURE__ */ e(
|
|
45
|
-
/* @__PURE__ */ e(
|
|
46
|
-
/* @__PURE__ */ e(
|
|
43
|
+
/* @__PURE__ */ e(i, { children: "...host app content..." }),
|
|
44
|
+
/* @__PURE__ */ e(f, { onClick: () => document.documentElement.scrollTop = 0, children: "BackToTop" }),
|
|
45
|
+
/* @__PURE__ */ e(C, { href: "#", children: "BackToTop Link" })
|
|
47
46
|
]
|
|
48
47
|
}
|
|
49
48
|
);
|
|
50
49
|
};
|
|
51
50
|
export {
|
|
52
|
-
|
|
51
|
+
K as MastersStory
|
|
53
52
|
};
|
|
@@ -7,14 +7,4 @@ export declare const SDKWhiteContainer: {
|
|
|
7
7
|
as?: React.ElementType;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const TabsContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
|
-
export declare const LeaderboardContainer: {
|
|
11
|
-
__wyw_meta: unknown;
|
|
12
|
-
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
13
|
-
as?: React.ElementType;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const TabsNavContainer: {
|
|
16
|
-
__wyw_meta: unknown;
|
|
17
|
-
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
18
|
-
as?: React.ElementType;
|
|
19
|
-
}>;
|
|
20
10
|
export declare const UserSummaryContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1,44 +1,34 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
const
|
|
2
|
+
const t = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "SDKContainer",
|
|
4
4
|
class: "s8zgqze",
|
|
5
5
|
propsAsIs: !1
|
|
6
|
-
}),
|
|
6
|
+
}), o = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "SDKScrollContainer",
|
|
8
8
|
class: "s6t897k",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
11
11
|
name: "SDKContentContainer",
|
|
12
12
|
class: "sw7pkvp",
|
|
13
13
|
propsAsIs: !1
|
|
14
|
-
}), e = () =>
|
|
14
|
+
}), e = () => n, r = /* @__PURE__ */ s(e())({
|
|
15
15
|
name: "SDKWhiteContainer",
|
|
16
16
|
class: "s14gkn7u",
|
|
17
17
|
propsAsIs: !0
|
|
18
|
-
}),
|
|
18
|
+
}), i = /* @__PURE__ */ s("div")({
|
|
19
19
|
name: "TabsContainer",
|
|
20
20
|
class: "t1yxstm9",
|
|
21
21
|
propsAsIs: !1
|
|
22
|
-
}),
|
|
23
|
-
name: "LeaderboardContainer",
|
|
24
|
-
class: "ldpty1s",
|
|
25
|
-
propsAsIs: !0
|
|
26
|
-
}), t = () => n, C = /* @__PURE__ */ s(t())({
|
|
27
|
-
name: "TabsNavContainer",
|
|
28
|
-
class: "t136a59y",
|
|
29
|
-
propsAsIs: !0
|
|
30
|
-
}), m = /* @__PURE__ */ s("div")({
|
|
22
|
+
}), p = /* @__PURE__ */ s("div")({
|
|
31
23
|
name: "UserSummaryContainer",
|
|
32
|
-
class: "
|
|
24
|
+
class: "udpty1s",
|
|
33
25
|
propsAsIs: !1
|
|
34
26
|
});
|
|
35
27
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
C as TabsNavContainer,
|
|
43
|
-
m as UserSummaryContainer
|
|
28
|
+
t as SDKContainer,
|
|
29
|
+
n as SDKContentContainer,
|
|
30
|
+
o as SDKScrollContainer,
|
|
31
|
+
r as SDKWhiteContainer,
|
|
32
|
+
i as TabsContainer,
|
|
33
|
+
p as UserSummaryContainer
|
|
44
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import c from "lodash.throttle";
|
|
2
2
|
import { useState as m, useEffect as u } from "react";
|
|
3
3
|
import { BREAKPOINTS as r } from "../../ui/theme/constants.js";
|
|
4
|
-
import { m as l } from "../../index-
|
|
4
|
+
import { m as l } from "../../index-BEm7B1u1.js";
|
|
5
5
|
const d = Object.keys(r), i = () => {
|
|
6
6
|
const n = window.innerWidth;
|
|
7
7
|
let e = "sm";
|
|
@@ -2,7 +2,7 @@ import S from "lodash.throttle";
|
|
|
2
2
|
import { useRef as m, useState as h, useEffect as b } from "react";
|
|
3
3
|
import { useStore as g } from "@streamlayer/react-polyfills";
|
|
4
4
|
import { BREAKPOINTS as c } from "../../ui/theme/constants.js";
|
|
5
|
-
import { m as v } from "../../index-
|
|
5
|
+
import { m as v } from "../../index-BEm7B1u1.js";
|
|
6
6
|
const C = (o, e, n) => {
|
|
7
7
|
const t = e >= c.lg && e < c.xl ? 75 : 52;
|
|
8
8
|
o.current && window.scrollTo({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as l, useState as s, useCallback as p, useEffect as f } from "react";
|
|
3
|
-
import { r as m } from "../index-
|
|
3
|
+
import { r as m } from "../index-DALxy-8N.js";
|
|
4
4
|
import { CopyNotification as b } from "../ui/gamification/copyNotification/index.js";
|
|
5
5
|
const T = (r) => {
|
|
6
6
|
const t = l(), [i, o] = s(null), a = p(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i from "lodash.throttle";
|
|
2
2
|
import { useState as m, useEffect as a } from "react";
|
|
3
3
|
import { BREAKPOINTS as r } from "../ui/theme/constants.js";
|
|
4
|
-
import { m as u } from "../index-
|
|
4
|
+
import { m as u } from "../index-BEm7B1u1.js";
|
|
5
5
|
const o = Object.keys(r), c = () => {
|
|
6
6
|
const t = window.innerWidth;
|
|
7
7
|
let e = "sm";
|
package/lib/app/useSdkScroll.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useRef as u, useState as b, useEffect as g } from "react";
|
|
|
3
3
|
import { useStore as k } from "@streamlayer/react-polyfills";
|
|
4
4
|
import { BREAKPOINTS as a } from "../ui/theme/constants.js";
|
|
5
5
|
import { checkSdkInDesktopView as m } from "./useSdkResponsive.js";
|
|
6
|
-
import { m as v } from "../index-
|
|
6
|
+
import { m as v } from "../index-BEm7B1u1.js";
|
|
7
7
|
const I = (o, e, n) => {
|
|
8
8
|
const t = e >= a.lg && e < a.xl ? 75 : 52;
|
|
9
9
|
o.current && window.scrollTo({
|