livevegas-ui-kit 1.0.305 → 1.0.306
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/README.md +69 -69
- package/dist/components/ActionButton/index.d.ts +1 -1
- package/dist/components/BalanceAndBet/index.d.ts +4 -1
- package/dist/components/MobileBottomInfo/index.d.ts +4 -1
- package/dist/components/MobileMenu/helper.d.ts +1 -1
- package/dist/components/MobileMenu/index.d.ts +3 -2
- package/dist/components/ToLobby/index.d.ts +3 -2
- package/dist/components/ToLobby/styled.d.ts +4 -1
- package/dist/components/TopIcons/Elements.d.ts +2 -1
- package/dist/components/TopIcons/helper.d.ts +2 -13
- package/dist/components/TopIcons/index.d.ts +3 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/livevegas-ui-kit.es.js +1383 -7233
- package/dist/livevegas-ui-kit.umd.js +249 -239
- package/dist/services/i18n/config.d.ts +3 -1
- package/dist/services/i18n/translations/en.json.d.ts +832 -832
- package/dist/utils/helpers.d.ts +49 -1
- package/package.json +77 -77
- package/dist/services/i18n/translations/es.json.d.ts +0 -834
- package/dist/services/i18n/translations/fa.json.d.ts +0 -837
- package/dist/services/i18n/translations/hy.json.d.ts +0 -842
- package/dist/services/i18n/translations/ka.json.d.ts +0 -808
- package/dist/services/i18n/translations/ru.json.d.ts +0 -853
- package/dist/services/i18n/translations/tr.json.d.ts +0 -858
- package/dist/services/i18n/translations/uz.json.d.ts +0 -839
package/README.md
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
# React + TypeScript + Vite
|
|
2
|
-
|
|
3
|
-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
-
|
|
5
|
-
Currently, two official plugins are available:
|
|
6
|
-
|
|
7
|
-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
-
|
|
10
|
-
## Expanding the ESLint configuration
|
|
11
|
-
|
|
12
|
-
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
export default tseslint.config([
|
|
16
|
-
globalIgnores(['dist']),
|
|
17
|
-
{
|
|
18
|
-
files: ['**/*.{ts,tsx}'],
|
|
19
|
-
extends: [
|
|
20
|
-
// Other configs...
|
|
21
|
-
|
|
22
|
-
// Remove tseslint.configs.recommended and replace with this
|
|
23
|
-
...tseslint.configs.recommendedTypeChecked,
|
|
24
|
-
// Alternatively, use this for stricter rules
|
|
25
|
-
...tseslint.configs.strictTypeChecked,
|
|
26
|
-
// Optionally, add this for stylistic rules
|
|
27
|
-
...tseslint.configs.stylisticTypeChecked,
|
|
28
|
-
|
|
29
|
-
// Other configs...
|
|
30
|
-
],
|
|
31
|
-
languageOptions: {
|
|
32
|
-
parserOptions: {
|
|
33
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
34
|
-
tsconfigRootDir: import.meta.dirname,
|
|
35
|
-
},
|
|
36
|
-
// other options...
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
])
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
43
|
-
|
|
44
|
-
```js
|
|
45
|
-
// eslint.config.js
|
|
46
|
-
import reactX from 'eslint-plugin-react-x'
|
|
47
|
-
import reactDom from 'eslint-plugin-react-dom'
|
|
48
|
-
|
|
49
|
-
export default tseslint.config([
|
|
50
|
-
globalIgnores(['dist']),
|
|
51
|
-
{
|
|
52
|
-
files: ['**/*.{ts,tsx}'],
|
|
53
|
-
extends: [
|
|
54
|
-
// Other configs...
|
|
55
|
-
// Enable lint rules for React
|
|
56
|
-
reactX.configs['recommended-typescript'],
|
|
57
|
-
// Enable lint rules for React DOM
|
|
58
|
-
reactDom.configs.recommended,
|
|
59
|
-
],
|
|
60
|
-
languageOptions: {
|
|
61
|
-
parserOptions: {
|
|
62
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
63
|
-
tsconfigRootDir: import.meta.dirname,
|
|
64
|
-
},
|
|
65
|
-
// other options...
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
])
|
|
69
|
-
```
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## Expanding the ESLint configuration
|
|
11
|
+
|
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
export default tseslint.config([
|
|
16
|
+
globalIgnores(['dist']),
|
|
17
|
+
{
|
|
18
|
+
files: ['**/*.{ts,tsx}'],
|
|
19
|
+
extends: [
|
|
20
|
+
// Other configs...
|
|
21
|
+
|
|
22
|
+
// Remove tseslint.configs.recommended and replace with this
|
|
23
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
24
|
+
// Alternatively, use this for stricter rules
|
|
25
|
+
...tseslint.configs.strictTypeChecked,
|
|
26
|
+
// Optionally, add this for stylistic rules
|
|
27
|
+
...tseslint.configs.stylisticTypeChecked,
|
|
28
|
+
|
|
29
|
+
// Other configs...
|
|
30
|
+
],
|
|
31
|
+
languageOptions: {
|
|
32
|
+
parserOptions: {
|
|
33
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
34
|
+
tsconfigRootDir: import.meta.dirname,
|
|
35
|
+
},
|
|
36
|
+
// other options...
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
])
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
43
|
+
|
|
44
|
+
```js
|
|
45
|
+
// eslint.config.js
|
|
46
|
+
import reactX from 'eslint-plugin-react-x'
|
|
47
|
+
import reactDom from 'eslint-plugin-react-dom'
|
|
48
|
+
|
|
49
|
+
export default tseslint.config([
|
|
50
|
+
globalIgnores(['dist']),
|
|
51
|
+
{
|
|
52
|
+
files: ['**/*.{ts,tsx}'],
|
|
53
|
+
extends: [
|
|
54
|
+
// Other configs...
|
|
55
|
+
// Enable lint rules for React
|
|
56
|
+
reactX.configs['recommended-typescript'],
|
|
57
|
+
// Enable lint rules for React DOM
|
|
58
|
+
reactDom.configs.recommended,
|
|
59
|
+
],
|
|
60
|
+
languageOptions: {
|
|
61
|
+
parserOptions: {
|
|
62
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
63
|
+
tsconfigRootDir: import.meta.dirname,
|
|
64
|
+
},
|
|
65
|
+
// other options...
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
])
|
|
69
|
+
```
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { IActiveElements } from '../../utils/helpers';
|
|
2
|
+
|
|
1
3
|
export interface IBalanceAndBet {
|
|
2
4
|
balance: number;
|
|
3
5
|
bet: number;
|
|
4
6
|
currencyId: string;
|
|
7
|
+
isActiveElements: IActiveElements;
|
|
5
8
|
}
|
|
6
|
-
export declare const BalanceAndBet: ({ balance, bet, currencyId }: IBalanceAndBet) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const BalanceAndBet: ({ balance, bet, currencyId, isActiveElements, }: IBalanceAndBet) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { IActiveElements } from '../../utils/helpers';
|
|
2
|
+
|
|
1
3
|
export interface IMobileBottomInfo {
|
|
2
4
|
balance: number;
|
|
3
5
|
bet: number;
|
|
4
6
|
currencyId: string;
|
|
5
7
|
name: string;
|
|
6
8
|
round: string;
|
|
9
|
+
isActiveElements: IActiveElements;
|
|
7
10
|
}
|
|
8
|
-
export declare const MobileBottomInfo: ({ balance, bet, currencyId, name, round, }: IMobileBottomInfo) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const MobileBottomInfo: ({ balance, bet, currencyId, name, round, isActiveElements, }: IMobileBottomInfo) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HubConnection } from '@microsoft/signalr';
|
|
2
|
-
import { IUrlParam } from '../../utils/helpers';
|
|
2
|
+
import { IActiveElements, IUrlParam } from '../../utils/helpers';
|
|
3
3
|
import { Lang, Quality } from '../TopIcons/helper';
|
|
4
4
|
import { IMessage } from '../../api/types';
|
|
5
5
|
import { IHistoryData } from '../History/helpers';
|
|
@@ -46,5 +46,6 @@ export interface IToLobby {
|
|
|
46
46
|
dealerLang?: Lang;
|
|
47
47
|
setMusicVolume?: (volume: number) => void;
|
|
48
48
|
musicVolume?: number;
|
|
49
|
+
isActiveElements: IActiveElements;
|
|
49
50
|
}
|
|
50
|
-
export declare const MobileMenu: ({ name, round, partnerId, socket, urlParam, messages, historyData, onSendMessage, tournamentData, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, isLandscape, streamVolume, balance, currencyId, effectsVolume, setEffectsVolume, setStreamVolume, getHistory, limits, sendTip, handleStreamQualityChange, handleDealerLangChange, streamQuality, nickNameChange, nickName, dealerName, errorCode, gameType, maxPayOut, selectedGame, limit, dealerLang, setMusicVolume, musicVolume, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export declare const MobileMenu: ({ name, round, partnerId, socket, urlParam, messages, historyData, onSendMessage, tournamentData, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, isLandscape, streamVolume, balance, currencyId, effectsVolume, setEffectsVolume, setStreamVolume, getHistory, limits, sendTip, handleStreamQualityChange, handleDealerLangChange, streamQuality, nickNameChange, nickName, dealerName, errorCode, gameType, maxPayOut, selectedGame, limit, dealerLang, setMusicVolume, musicVolume, isActiveElements, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HubConnection } from '@microsoft/signalr';
|
|
2
|
-
import { IUrlParam } from '../../utils/helpers';
|
|
2
|
+
import { IActiveElements, IUrlParam } from '../../utils/helpers';
|
|
3
3
|
import { ILimitInfo } from '../LimitInfo';
|
|
4
4
|
import { IStake } from '../LimitInfoRoulette';
|
|
5
5
|
|
|
@@ -14,5 +14,6 @@ export interface IToLobby {
|
|
|
14
14
|
gameType?: number;
|
|
15
15
|
maxPayOut?: number;
|
|
16
16
|
currencyId?: string;
|
|
17
|
+
isActiveElements: IActiveElements;
|
|
17
18
|
}
|
|
18
|
-
export declare const ToLobby: ({ name, round, limit, partnerId, socket, urlParam, limits, gameType, maxPayOut, currencyId, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const ToLobby: ({ name, round, limit, partnerId, socket, urlParam, limits, gameType, maxPayOut, currencyId, isActiveElements, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const PopupPosition: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
2
|
export declare const MainToLobby: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const Logo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').
|
|
3
|
+
export declare const Logo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
isCloseLobby: boolean;
|
|
5
|
+
isCloseLogo: boolean;
|
|
6
|
+
}>> & string;
|
|
4
7
|
export declare const TextContener: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
8
|
export declare const Line: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Quality, Lang } from './helper';
|
|
2
2
|
import { TournamentData } from '../Tournament';
|
|
3
3
|
import { IMessage } from '../../api/types';
|
|
4
4
|
import { ILimitInfo } from '../LimitInfo';
|
|
5
5
|
import { IHistoryData } from '../History/helpers';
|
|
6
6
|
import { ERRORS_TYPES } from '../../api/constants/errorsTypes';
|
|
7
7
|
import { IStake } from '../LimitInfoRoulette';
|
|
8
|
+
import { BUTTONS_TYPE } from '../../utils/helpers';
|
|
8
9
|
|
|
9
10
|
export interface IElements {
|
|
10
11
|
messages: IMessage[];
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Support = 2,
|
|
4
|
-
Tip = 3,
|
|
5
|
-
History = 4,
|
|
6
|
-
Info = 5,
|
|
7
|
-
Settings = 6,
|
|
8
|
-
VolumeOn = 7,
|
|
9
|
-
FullScreen = 8,
|
|
10
|
-
Tournament = 9,
|
|
11
|
-
closeMenu = 10,
|
|
12
|
-
Limit = 11
|
|
13
|
-
}
|
|
1
|
+
import { BUTTONS_TYPE } from '../../utils/helpers';
|
|
2
|
+
|
|
14
3
|
export interface Ibuttons {
|
|
15
4
|
name?: string;
|
|
16
5
|
buttonType: BUTTONS_TYPE;
|
|
@@ -3,6 +3,7 @@ import { IMessage } from '../../api/types';
|
|
|
3
3
|
import { IHistoryData } from '../History/helpers';
|
|
4
4
|
import { TournamentData } from '../Tournament';
|
|
5
5
|
import { ERRORS_TYPES } from '../../api/constants/errorsTypes';
|
|
6
|
+
import { IActiveElements } from '../../utils/helpers';
|
|
6
7
|
|
|
7
8
|
export interface ITopIcons {
|
|
8
9
|
messages: IMessage[];
|
|
@@ -41,5 +42,6 @@ export interface ITopIcons {
|
|
|
41
42
|
setMusicVolume?: (volume: number) => void;
|
|
42
43
|
musicVolume?: number;
|
|
43
44
|
onTournamentClick: () => void;
|
|
45
|
+
isActiveElements: IActiveElements;
|
|
44
46
|
}
|
|
45
|
-
export declare const TopIcons: ({ messages, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, historyData, balance, isFullscreen, toggleFullscreen, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, isTournamentDetailsVisible, getHistory, sendTip, currencyId, handleStreamQualityChange, handleDealerLangChange, streamQuality, nickNameChange, nickName, dealerName, errorCode, playerId, partnerId, isActiveModal, setActivation, gameType, selectedGame, dealerLang, setMusicVolume, musicVolume, onTournamentClick, }: ITopIcons) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export declare const TopIcons: ({ messages, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, historyData, balance, isFullscreen, toggleFullscreen, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, isTournamentDetailsVisible, getHistory, sendTip, currencyId, handleStreamQualityChange, handleDealerLangChange, streamQuality, nickNameChange, nickName, dealerName, errorCode, playerId, partnerId, isActiveModal, setActivation, gameType, selectedGame, dealerLang, setMusicVolume, musicVolume, onTournamentClick, isActiveElements, }: ITopIcons) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,6 +25,6 @@ import { FullScreenView } from './FoolScreen';
|
|
|
25
25
|
import { CardTexas } from './CardTexas';
|
|
26
26
|
import { TournamentAndPoints } from './TournamentAndPoints';
|
|
27
27
|
import { LaunchFailed } from './LaunchFailed';
|
|
28
|
-
import {
|
|
28
|
+
import { initI18n, i18n } from '../services/i18n/config';
|
|
29
29
|
|
|
30
|
-
export { i18n, initI18n, MoibleChipBoard, BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Card, Chip, Chip3D, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, ToastMessages, BlackJackAction, BlackjeckInsurance, Wager, BonusModalContent, CardsRightInfo, TournamentAndPoints, CardTexas, FullScreenView, LaunchFailed };
|
|
30
|
+
export { i18n, initI18n, MoibleChipBoard, BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Card, Chip, Chip3D, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, ToastMessages, BlackJackAction, BlackjeckInsurance, Wager, BonusModalContent, CardsRightInfo, TournamentAndPoints, CardTexas, FullScreenView, LaunchFailed, };
|