@streamlayer/react-ui 1.20.0 → 1.22.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.
Files changed (58) hide show
  1. package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.d.ts +1 -0
  2. package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.js +11 -11
  3. package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.d.ts +0 -1
  4. package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +18 -22
  5. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.d.ts +0 -1
  6. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.js +7 -7
  7. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.d.ts +1 -2
  8. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.js +16 -19
  9. package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.d.ts +0 -1
  10. package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.js +25 -24
  11. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +1 -0
  12. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.js +14 -9
  13. package/lib/app/masters/BetPack/BetPackContent/index.js +68 -66
  14. package/lib/app/masters/BetPack/BetPackOverlay/index.js +3 -2
  15. package/lib/app/masters/BetPack/index.js +64 -62
  16. package/lib/app/masters/BetPack/utils.d.ts +1 -1
  17. package/lib/app/masters/BetPack/utils.js +8 -7
  18. package/lib/app/masters/Features/Gamification/index.js +5 -5
  19. package/lib/app/masters/Features/index.d.ts +2 -2
  20. package/lib/app/masters/Features/index.js +1 -1
  21. package/lib/app/masters/Header/index.js +19 -23
  22. package/lib/app/masters/Notifications/Onboarding/index.d.ts +0 -1
  23. package/lib/app/masters/Notifications/Onboarding/index.js +42 -43
  24. package/lib/app/masters/Notifications/index.js +50 -55
  25. package/lib/app/masters/masters.js +60 -56
  26. package/lib/app/masters/useOrientation.d.ts +3 -0
  27. package/lib/app/masters/useOrientation.js +12 -0
  28. package/lib/app/masters/useSdkResponsive.js +2 -2
  29. package/lib/app/masters/useSdkScroll.js +12 -12
  30. package/lib/app/useSdkResponsive.js +1 -1
  31. package/lib/app/useSdkScroll.js +1 -1
  32. package/lib/assets/style.css +1 -1
  33. package/lib/index-DSi8Qgfs.js +14 -0
  34. package/lib/index-DXvAPWiE.js +3743 -0
  35. package/lib/index-tnt2CtQe.js +55 -0
  36. package/lib/ui/advertisement/overlay/externalAd/index.d.ts +1 -1
  37. package/lib/ui/advertisement/overlay/externalAd/index.js +79 -40323
  38. package/lib/ui/advertisement/overlay/externalAd/styles.d.ts +10 -0
  39. package/lib/ui/advertisement/overlay/externalAd/styles.js +49 -0
  40. package/lib/ui/advertisement/overlay/externalAd/vast-player/module.d.js +1 -0
  41. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.d.ts +19 -0
  42. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +33199 -0
  43. package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.d.ts +24 -0
  44. package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +8 -0
  45. package/lib/ui/gamification/vote/feedback/index.d.ts +1 -0
  46. package/lib/ui/gamification/vote/feedback/index.js +83 -73
  47. package/lib/ui/gamification/vote/feedback/styles.d.ts +1 -0
  48. package/lib/ui/gamification/vote/feedback/styles.js +40 -39
  49. package/lib/ui/gamification/vote/index.js +98 -95
  50. package/lib/ui/icons/index.d.ts +1 -0
  51. package/lib/ui/icons/index.js +88 -79
  52. package/lib/ui/modal/index.js +31 -34
  53. package/lib/ui/theme/breakpoints.d.ts +1 -0
  54. package/lib/ui/theme/breakpoints.js +17 -9
  55. package/lib/ui/theme/masters-theme.js +1 -0
  56. package/lib/useVastAds-Dt_tRbpd.js +1284 -0
  57. package/package.json +18 -15
  58. package/lib/index-CLJzLXks.js +0 -64
@@ -1,63 +1,60 @@
1
- import { jsxs as c, Fragment as h, jsx as l } from "react/jsx-runtime";
2
- import { styled as y } from "@linaria/react";
3
- import { useState as d, useEffect as a } from "react";
4
- import { r as u } from "../../index-DALxy-8N.js";
5
- import { BREAKPOINTS as m } from "../theme/constants.js";
6
- const O = /* @__PURE__ */ y("div")({
1
+ import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
+ import { styled as w } from "@linaria/react";
3
+ import { useState as c, useEffect as d } from "react";
4
+ import { r as a } from "../../index-DALxy-8N.js";
5
+ import { BREAKPOINTS as u } from "../theme/constants.js";
6
+ const h = /* @__PURE__ */ w("div")({
7
7
  name: "StaticContainer",
8
8
  class: "svm502q",
9
9
  propsAsIs: !1
10
- }), f = `
10
+ }), y = `
11
11
  .sl-hide-on-modal {
12
12
  height: 0 !important;
13
13
  opacity: 0 !important;
14
14
  overflow: hidden !important;
15
15
  }
16
- `, S = `
16
+ `, O = `
17
17
  .sl-pill-button {
18
18
  display: none !important;
19
19
  }
20
- `, w = () => window.innerWidth >= m.lg && window.innerWidth < m.xl ? 76 : 53, p = (e) => {
20
+ `, f = () => window.innerWidth >= u.md && window.innerWidth < u.lg ? 76 : 53, m = (e) => {
21
21
  var n;
22
- const t = w();
22
+ const t = f();
23
23
  return Math.round((((n = e.current) == null ? void 0 : n.getBoundingClientRect().y) || 0) - t) <= 0;
24
- }, x = ({
24
+ }, g = ({
25
25
  children: e,
26
26
  container: t,
27
27
  useContainer: n
28
28
  }) => {
29
- const [s] = d(() => p(t)), [r, i] = d(!1);
30
- return a(() => {
31
- if (!t.current || !s)
32
- return i(!0), () => {
29
+ const [l] = c(() => m(t)), [o, s] = c(!1);
30
+ return d(() => {
31
+ if (!t.current || !l)
32
+ return s(!0), () => {
33
33
  };
34
- const o = window.scrollY;
35
- return i(!0), () => {
36
- p(t) && window.scrollTo({
37
- top: o,
34
+ const r = window.scrollY;
35
+ return s(!0), () => {
36
+ m(t) && window.scrollTo({
37
+ top: r,
38
38
  behavior: "instant"
39
39
  });
40
40
  };
41
- }, []), a(() => {
42
- if (r && t.current && s) {
43
- const o = w();
41
+ }, []), d(() => {
42
+ if (o && t.current && l) {
43
+ const r = f();
44
44
  window.scrollTo({
45
- top: t.current.offsetTop - o,
45
+ top: t.current.offsetTop - r,
46
46
  behavior: "instant"
47
47
  });
48
48
  }
49
- }, [r]), !t.current || !r ? null : n ? u.createPortal(/* @__PURE__ */ c(O, {
50
- children: [e, /* @__PURE__ */ l("style", {
51
- children: f
52
- }), /* @__PURE__ */ l("style", {
53
- children: S
49
+ }, [o]), !t.current || !o ? null : n ? a.createPortal(/* @__PURE__ */ p(h, {
50
+ className: "StaticContainer",
51
+ children: [e, /* @__PURE__ */ i("style", {
52
+ children: y
53
+ }), /* @__PURE__ */ i("style", {
54
+ children: O
54
55
  })]
55
- }), t.current, "modal-node") : u.createPortal(/* @__PURE__ */ c(h, {
56
- children: [/* @__PURE__ */ l("style", {
57
- children: f
58
- }), e]
59
- }), t.current, "modal-node");
56
+ }), t.current, "modal-node") : a.createPortal(e, t.current, "modal-node");
60
57
  };
61
58
  export {
62
- x as ModalPortal
59
+ g as ModalPortal
63
60
  };
@@ -5,5 +5,6 @@ export declare const breakpoints: {
5
5
  up: (key: Breakpoints) => (styles: TemplateStringsArray) => string;
6
6
  down: (key: Breakpoints) => (styles: TemplateStringsArray) => string;
7
7
  intermediate: (down: Breakpoints, up: Breakpoints) => (styles: TemplateStringsArray) => string;
8
+ composite: (down: Breakpoints, key: Orientation) => (styles: TemplateStringsArray) => string;
8
9
  orientation: (key: Orientation) => (styles: TemplateStringsArray) => string;
9
10
  };
@@ -1,24 +1,32 @@
1
- import { BREAKPOINTS as e, ORIENTATION as a } from "./constants.js";
1
+ import { BREAKPOINTS as i, ORIENTATION as a } from "./constants.js";
2
2
  const r = (n) => (t) => `
3
3
  @media only screen and (${n}) {
4
4
  ${t}
5
5
  }
6
- `, d = (n, t) => (i) => `
6
+ `, d = (n, t) => (e) => `
7
7
  @media only screen and (${n}) and (${t}) {
8
- ${i}
8
+ ${e}
9
9
  }
10
- `, s = {
10
+ `, m = (n, t) => (e) => `
11
+ @media only screen and (${n}) and (${t}) {
12
+ ${e}
13
+ }
14
+ `, c = {
11
15
  up: (n) => {
12
- const t = e[n];
16
+ const t = i[n];
13
17
  return r(`min-width: ${t}px`);
14
18
  },
15
19
  down: (n) => {
16
- const t = e[n] - 1;
20
+ const t = i[n] - 1;
17
21
  return r(`max-width: ${t}px`);
18
22
  },
19
23
  intermediate: (n, t) => {
20
- const i = e[n] - 1, o = e[t];
21
- return d(`max-width: ${i}px`, `min-width: ${o}px`);
24
+ const e = i[n] - 1, o = i[t];
25
+ return d(`max-width: ${e}px`, `min-width: ${o}px`);
26
+ },
27
+ composite: (n, t) => {
28
+ const e = i[n] - 1, o = a[t];
29
+ return m(`max-width: ${e}px`, `orientation: ${o}`);
22
30
  },
23
31
  orientation: (n) => {
24
32
  const t = a[n];
@@ -26,5 +34,5 @@ const r = (n) => (t) => `
26
34
  }
27
35
  };
28
36
  export {
29
- s as breakpoints
37
+ c as breakpoints
30
38
  };
@@ -193,6 +193,7 @@ const c = {
193
193
  --margin-left-pts: 0px;
194
194
  --display-question-container: initial;
195
195
  --justify-content-question-container: initial;
196
+ --color-question-body-text: #006747;
196
197
 
197
198
  .betPack {
198
199
  --padding-question-content: 0.8em 0.8em 0em 0.8em;