@streamlayer/react-ui 1.21.0 → 1.22.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 (52) hide show
  1. package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.js +7 -7
  2. package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.d.ts +0 -1
  3. package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +18 -22
  4. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.d.ts +0 -1
  5. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.js +7 -7
  6. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.d.ts +1 -2
  7. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.js +16 -19
  8. package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.d.ts +0 -1
  9. package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.js +25 -24
  10. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +1 -0
  11. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.js +14 -9
  12. package/lib/app/masters/BetPack/BetPackContent/index.js +64 -66
  13. package/lib/app/masters/BetPack/index.js +27 -27
  14. package/lib/app/masters/BetPack/utils.d.ts +1 -1
  15. package/lib/app/masters/BetPack/utils.js +8 -7
  16. package/lib/app/masters/Features/Gamification/index.d.ts +2 -0
  17. package/lib/app/masters/Features/Gamification/index.js +34 -29
  18. package/lib/app/masters/Features/index.d.ts +2 -0
  19. package/lib/app/masters/Features/index.js +12 -4
  20. package/lib/app/masters/Header/index.js +19 -23
  21. package/lib/app/masters/masters.js +68 -54
  22. package/lib/app/masters/useSdkResponsive.js +2 -2
  23. package/lib/app/masters/useSdkScroll.js +12 -12
  24. package/lib/app/useSdkResponsive.js +1 -1
  25. package/lib/app/useSdkScroll.js +1 -1
  26. package/lib/assets/style.css +1 -1
  27. package/lib/index-DSi8Qgfs.js +14 -0
  28. package/lib/index-DXvAPWiE.js +3743 -0
  29. package/lib/index-tnt2CtQe.js +55 -0
  30. package/lib/ui/advertisement/overlay/externalAd/index.d.ts +1 -1
  31. package/lib/ui/advertisement/overlay/externalAd/index.js +59 -40287
  32. package/lib/ui/advertisement/overlay/externalAd/styles.d.ts +2 -0
  33. package/lib/ui/advertisement/overlay/externalAd/styles.js +34 -24
  34. package/lib/ui/advertisement/overlay/externalAd/vast-player/module.d.js +1 -0
  35. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.d.ts +19 -0
  36. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +33199 -0
  37. package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.d.ts +24 -0
  38. package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +8 -0
  39. package/lib/ui/gamification/vote/feedback/index.d.ts +1 -0
  40. package/lib/ui/gamification/vote/feedback/index.js +83 -73
  41. package/lib/ui/gamification/vote/feedback/styles.d.ts +1 -0
  42. package/lib/ui/gamification/vote/feedback/styles.js +40 -39
  43. package/lib/ui/gamification/vote/index.js +94 -91
  44. package/lib/ui/icons/index.d.ts +1 -0
  45. package/lib/ui/icons/index.js +88 -79
  46. package/lib/ui/modal/index.js +31 -34
  47. package/lib/ui/theme/breakpoints.d.ts +1 -0
  48. package/lib/ui/theme/breakpoints.js +17 -9
  49. package/lib/ui/theme/masters-theme.js +1 -0
  50. package/lib/useVastAds-Dt_tRbpd.js +1284 -0
  51. package/package.json +18 -15
  52. package/lib/index-CLJzLXks.js +0 -64
@@ -1,6 +1,8 @@
1
1
  export declare const WhyThisAd: React.FC<{
2
2
  whyThisAd: any;
3
3
  }>;
4
+ export declare const MuteIcon: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
5
+ export declare const PlayIcon: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
4
6
  export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
7
  export declare const ControlsContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
8
  export declare const mediaStyle: import('@linaria/core').LinariaClassName;
@@ -1,39 +1,49 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { styled as o } from "@linaria/react";
3
- const s = /* @__PURE__ */ o("a")({
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { styled as s } from "@linaria/react";
3
+ const n = /* @__PURE__ */ s("a")({
4
4
  name: "WhyThisAdLink",
5
5
  class: "w13o8uld",
6
6
  propsAsIs: !1
7
- }), i = ({
8
- whyThisAd: e
9
- }) => !e.iconClickThroughURLTemplate || !e.staticResource ? null : /* @__PURE__ */ t(s, {
7
+ }), r = ({
8
+ whyThisAd: o
9
+ }) => !o.iconClickThroughURLTemplate || !o.staticResource ? null : /* @__PURE__ */ e(n, {
10
10
  style: {
11
- width: e.width,
12
- height: e.height,
13
- [e.xPosition]: 1,
14
- [e.yPosition]: 1
11
+ width: o.width,
12
+ height: o.height,
13
+ [o.xPosition]: 1,
14
+ [o.yPosition]: 1
15
15
  },
16
- href: e.iconClickThroughURLTemplate,
16
+ href: o.iconClickThroughURLTemplate,
17
17
  target: "_blank",
18
18
  rel: "noreferrer",
19
- children: /* @__PURE__ */ t("img", {
19
+ children: /* @__PURE__ */ e("img", {
20
20
  alt: "GoogleWhyThisAd",
21
- src: e.staticResource
21
+ src: o.staticResource
22
22
  })
23
- }), a = /* @__PURE__ */ o("div")({
23
+ }), l = /* @__PURE__ */ s("button")({
24
+ name: "MuteIcon",
25
+ class: "m1xzooj9",
26
+ propsAsIs: !1
27
+ }), c = /* @__PURE__ */ s("button")({
28
+ name: "PlayIcon",
29
+ class: "p1bo41vr",
30
+ propsAsIs: !1
31
+ }), i = /* @__PURE__ */ s("div")({
24
32
  name: "Container",
25
- class: "c1xzooj9",
33
+ class: "c13efyu8",
26
34
  propsAsIs: !1
27
- }), l = /* @__PURE__ */ o("div")({
35
+ }), m = /* @__PURE__ */ s("div")({
28
36
  name: "ControlsContainer",
29
- class: "c1bo41vr",
37
+ class: "cladkgh",
30
38
  propsAsIs: !1
31
- }), c = "m13efyu8", m = "mladkgh", p = "mjnga56";
39
+ }), p = "mjnga56", u = "m7qs1am", f = "m12n261r";
32
40
  export {
33
- a as Container,
34
- l as ControlsContainer,
35
- i as WhyThisAd,
36
- p as mediaHidden,
37
- c as mediaStyle,
38
- m as mediaVisible
41
+ i as Container,
42
+ m as ControlsContainer,
43
+ l as MuteIcon,
44
+ c as PlayIcon,
45
+ r as WhyThisAd,
46
+ f as mediaHidden,
47
+ p as mediaStyle,
48
+ u as mediaVisible
39
49
  };
@@ -0,0 +1,19 @@
1
+ import { VastIcon } from '@dailymotion/vast-client';
2
+ import { RefObject } from 'react';
3
+ type GAMPlayerCore = {
4
+ time: number;
5
+ adCount: number;
6
+ adPosition: number;
7
+ skipDelay?: number;
8
+ playing: boolean;
9
+ paused: boolean;
10
+ reset: () => void;
11
+ whyThisAd: VastIcon | null;
12
+ hasAdUrl: boolean;
13
+ playMuted: boolean;
14
+ muted: boolean;
15
+ autoplay: boolean;
16
+ adAction: (e: React.MouseEvent<HTMLElement>) => void;
17
+ };
18
+ export declare const useGAMPlayer: (container: RefObject<HTMLDivElement>, adUrl?: string) => readonly [import('nanostores').PreinitializedMapStore<GAMPlayerCore> & object, () => void, () => void, () => void];
19
+ export {};