livevegas-ui-kit 1.0.103 → 1.0.104

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.
@@ -27,3 +27,6 @@ export declare const getMobileSize: (activeAction: BUTTONS_TYPE | null, isLandsc
27
27
  export declare const handleTouchStart: (e: React.TouchEvent<HTMLDivElement>, setStartY: (el: number) => void) => void;
28
28
  export declare const handleTouchMove: (e: React.TouchEvent<HTMLDivElement>, startY: number, setIsOpen: (el: boolean) => void) => void;
29
29
  export declare const handleTouchEnd: (e: React.TouchEvent<HTMLDivElement>, setStartY: (el: number) => void) => void;
30
+ declare const quality: readonly ["Min", "Low", "Med", "High", "Auto"];
31
+ export type Quality = (typeof quality)[number];
32
+ export {};
@@ -1,5 +1,6 @@
1
1
  import { HubConnection } from '@microsoft/signalr';
2
2
  import { IUrlParam } from '../../utils/helpers';
3
+ import { Quality } from '../TopIcons/helper';
3
4
  import { IMessage } from '../../api/types';
4
5
  import { IHistoryData } from '../History/helpers';
5
6
  import { ILimitInfo } from '../LimitInfo';
@@ -28,5 +29,8 @@ export interface IToLobby {
28
29
  getHistory: (active: number) => void;
29
30
  limits: ILimitInfo;
30
31
  sendTip: (amount: number) => void;
32
+ handleStreamQualityChange?: (value: Quality) => void;
33
+ streamQuality: Quality;
34
+ nickNameChange: (name: string) => void;
31
35
  }
32
- export declare const MobileMenu: ({ name, round, partnerId, socket, urlParam, messages, historyData, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, isLandscape, streamVolume, balance, currencyId, effectsVolume, setEffectsVolume, setStreamVolume, getHistory, limits, sendTip, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
36
+ export declare const MobileMenu: ({ name, round, partnerId, socket, urlParam, messages, historyData, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, isLandscape, streamVolume, balance, currencyId, effectsVolume, setEffectsVolume, setStreamVolume, getHistory, limits, sendTip, handleStreamQualityChange, streamQuality, nickNameChange, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,13 @@
1
+ declare const quality: readonly ["Min", "Low", "Med", "High", "Auto"];
2
+ type Quality = (typeof quality)[number];
1
3
  interface ISettings {
2
4
  streamVolume: number;
3
5
  effectsVolume: number;
4
6
  setEffectsVolume: (volume: number) => void;
5
7
  setStreamVolume: (volume: number) => void;
8
+ handleStreamQualityChange?: (value: Quality) => void;
9
+ streamQuality: Quality;
10
+ nickNameChange: (name: string) => void;
6
11
  }
7
- export declare const Settings: ({ streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, }: ISettings) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Settings: ({ streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, handleStreamQualityChange, streamQuality, nickNameChange, }: ISettings) => import("react/jsx-runtime").JSX.Element;
8
13
  export {};
@@ -1,3 +1,7 @@
1
+ interface QualityButtonProps {
2
+ $active?: boolean;
3
+ }
1
4
  export declare const SettingsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
5
  export declare const Title: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
3
- export declare const QualityButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
6
+ export declare const QualityButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, QualityButtonProps>> & string;
7
+ export {};
@@ -1,4 +1,4 @@
1
- import { BUTTONS_TYPE } from './helper';
1
+ import { BUTTONS_TYPE, Quality } from './helper';
2
2
  import { TournamentData } from '../Tournament';
3
3
  import { IMessage } from '../../api/types';
4
4
  import { ILimitInfo } from '../LimitInfo';
@@ -26,5 +26,8 @@ export interface IElements {
26
26
  limits?: ILimitInfo;
27
27
  sendTip?: (amount: number) => void;
28
28
  currencyId: string;
29
+ handleStreamQualityChange?: (value: Quality) => void;
30
+ streamQuality: Quality;
31
+ nickNameChange: (name: string) => void;
29
32
  }
30
- export declare const Elements: ({ activeAction, messages, onSendMessage, chipAmounts, messagesSupport, onSendMessageSupport, setOpenRoundHistory, isMobile, historyData, isLandscape, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, openRoundHistory, balance, getHistory, sendTip, limits, currencyId, }: IElements) => import("react/jsx-runtime").JSX.Element;
33
+ export declare const Elements: ({ activeAction, messages, onSendMessage, chipAmounts, messagesSupport, onSendMessageSupport, setOpenRoundHistory, isMobile, historyData, isLandscape, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, openRoundHistory, balance, getHistory, sendTip, limits, currencyId, handleStreamQualityChange, streamQuality, nickNameChange, }: IElements) => import("react/jsx-runtime").JSX.Element;
@@ -22,3 +22,6 @@ export declare const getDesktopSize: (activeAction: BUTTONS_TYPE | null, history
22
22
  height: number;
23
23
  width: number;
24
24
  } | null;
25
+ declare const quality: readonly ["Min", "Low", "Med", "High", "Auto"];
26
+ export type Quality = (typeof quality)[number];
27
+ export {};
@@ -1,3 +1,4 @@
1
+ import { Quality } from './helper';
1
2
  import { IMessage } from '../../api/types';
2
3
  import { IHistoryData } from '../History/helpers';
3
4
  import { TournamentData } from '../Tournament';
@@ -22,5 +23,8 @@ export interface ITopIcons {
22
23
  getHistory: (active: number) => void;
23
24
  sendTip: (amount: number) => void;
24
25
  currencyId: string;
26
+ handleStreamQualityChange?: (value: Quality) => void;
27
+ streamQuality: Quality;
28
+ nickNameChange: (name: string) => void;
25
29
  }
26
- export declare const TopIcons: ({ messages, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, historyData, balance, isFullscreen, toggleFullscreen, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, isTournamentDetailsVisible, getHistory, sendTip, currencyId, }: ITopIcons) => import("react/jsx-runtime").JSX.Element;
30
+ export declare const TopIcons: ({ messages, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, historyData, balance, isFullscreen, toggleFullscreen, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, isTournamentDetailsVisible, getHistory, sendTip, currencyId, handleStreamQualityChange, streamQuality, nickNameChange, }: ITopIcons) => import("react/jsx-runtime").JSX.Element;