livevegas-ui-kit 1.0.195 → 1.0.197

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 (25) hide show
  1. package/dist/components/History/RouletteRoundHistory/helper.d.ts +24 -0
  2. package/dist/components/History/RouletteRoundHistory/index.d.ts +10 -0
  3. package/dist/components/History/RouletteRoundHistory/styled.d.ts +12 -0
  4. package/dist/components/History/helpers.d.ts +18 -3
  5. package/dist/components/Info/text/blackJeck.d.ts +2 -5
  6. package/dist/components/Info/text/roulette.d.ts +3 -0
  7. package/dist/components/Info/text/settings.d.ts +6 -0
  8. package/dist/components/Info/text/texas.d.ts +2 -5
  9. package/dist/components/LimitInfoRoulette/helper.d.ts +17 -0
  10. package/dist/components/LimitInfoRoulette/index.d.ts +15 -0
  11. package/dist/components/LimitInfoRoulette/index.stories.d.ts +7 -0
  12. package/dist/components/LimitInfoRoulette/styled.d.ts +3 -0
  13. package/dist/components/ToLobby/index.d.ts +5 -2
  14. package/dist/livevegas-ui-kit.es.js +3427 -2470
  15. package/dist/livevegas-ui-kit.umd.js +452 -231
  16. package/dist/services/i18n/translations/en.json.d.ts +76 -2
  17. package/dist/services/i18n/translations/fa.json.d.ts +74 -1
  18. package/dist/services/i18n/translations/hy.json.d.ts +72 -1
  19. package/dist/services/i18n/translations/ka.json.d.ts +74 -1
  20. package/dist/services/i18n/translations/ru.json.d.ts +74 -2
  21. package/dist/services/i18n/translations/tr.json.d.ts +73 -2
  22. package/dist/utils/helpers.d.ts +1 -0
  23. package/package.json +1 -1
  24. /package/dist/components/History/{TexasRoundHistory → RouletteRoundHistory}/RoundGroup/index.d.ts +0 -0
  25. /package/dist/components/History/{TexasRoundHistory → RouletteRoundHistory}/RoundGroup/styled.d.ts +0 -0
@@ -0,0 +1,24 @@
1
+ import { IRound } from '../helpers';
2
+
3
+ type Color = '#610A0A' | '#000000' | 'Green';
4
+ type ColorName = 'Red' | 'Black' | 'Green';
5
+ declare enum BetType {
6
+ SINGLE = 1,
7
+ HORIZONTAL_SPLIT = 2,
8
+ VERTICAL_SPLIT = 3,
9
+ VERTICAL_STREET = 4,
10
+ COLUMN = 5,
11
+ CORNER = 6,
12
+ LINE = 7,
13
+ DOZEN = 8,
14
+ EVEN_ODD = 9,
15
+ RED_BLACK = 10,
16
+ EIGHTEEN = 11,
17
+ ZERO_SPLIT = 12,
18
+ ZERO_STREET = 13
19
+ }
20
+ export declare const getColor: (num: number) => Color;
21
+ export declare const getColorName: (num: number) => ColorName;
22
+ export declare const calculateTotalBet: (boxes: IRound["player"]["boxes"]) => number;
23
+ export declare const renderBetTypes: (betType: BetType, boxIndex: number) => string;
24
+ export {};
@@ -0,0 +1,10 @@
1
+ import { IRound } from '../helpers';
2
+
3
+ interface IRoundHistory {
4
+ roundData: IRound;
5
+ handleClickRound: (index: number) => void;
6
+ indexHistory: number | null;
7
+ isMobile?: boolean;
8
+ }
9
+ export declare const RouletteRoundHistory: ({ roundData, handleClickRound, indexHistory, isMobile, }: IRoundHistory) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ interface IWinAmount {
2
+ $isWin: boolean;
3
+ }
4
+ export declare const RoundHistoryWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ export declare const AmountWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ export declare const WinNumberWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ 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;
8
+ export declare const BaseLine: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
+ export declare const BoxComponents: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
+ export declare const WinAmount: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, IWinAmount>> & string;
11
+ export declare const NumberST: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
+ export {};
@@ -5,12 +5,19 @@ export interface IHistoryData {
5
5
  rounds: IRound[];
6
6
  totalCount: number;
7
7
  }
8
- interface IBet {
8
+ export interface IRouletteHistoryData {
9
9
  playerId: number;
10
+ rounds: IRound[];
11
+ totalCount: number;
12
+ }
13
+ interface IBet {
14
+ playerId?: number;
10
15
  boxIndex: number;
11
- amount: number;
16
+ amount?: number;
12
17
  betType: number;
13
18
  winAmount: number;
19
+ betInfo?: string | Object;
20
+ refId?: number;
14
21
  }
15
22
  export interface IRound {
16
23
  currentRoundId: number;
@@ -21,7 +28,7 @@ export interface IRound {
21
28
  tableId: number;
22
29
  dealer?: {
23
30
  nickname: string;
24
- };
31
+ } | null;
25
32
  initialDealerCards?: any[];
26
33
  initialPlayerCards?: any[];
27
34
  dealerCards?: any[];
@@ -30,6 +37,9 @@ export interface IRound {
30
37
  floppedCards?: any[];
31
38
  playerWinType?: number;
32
39
  dealerWinType?: number;
40
+ winNumber?: number;
41
+ tableName?: string;
42
+ fusionNumbers?: any[];
33
43
  }
34
44
  export type IHands = Pick<IHand, 'cards' | 'finalValue' | 'isBlackjack' | 'winOnHand' | 'betOnHand'>;
35
45
  export interface IDealerHand {
@@ -82,6 +92,10 @@ export interface IPlayer {
82
92
  finalValue?: number;
83
93
  betOnHand?: number;
84
94
  winOnHand?: number;
95
+ idleRoundsCount?: number;
96
+ gameType?: number;
97
+ continusWin?: number;
98
+ winWithCoefficient?: boolean;
85
99
  }
86
100
  export interface IBoxes {
87
101
  bets: IBets[];
@@ -223,6 +237,7 @@ export declare const betsType: {
223
237
  };
224
238
  export declare const texasHistoryData: IHistoryData;
225
239
  export declare const historyData: IHistoryData;
240
+ export declare const rouletteHistoryData: IRouletteHistoryData;
226
241
  export declare const formatted: (date: string) => string;
227
242
  export declare const seatsPosition: string[];
228
243
  export {};
@@ -1,6 +1,3 @@
1
- export type TextInterface = {
2
- [key: string]: string[] | (string | {
3
- [key: string]: any;
4
- })[];
5
- };
1
+ import { TextInterface } from './settings';
2
+
6
3
  export declare const text: TextInterface;
@@ -0,0 +1,3 @@
1
+ import { TextInterface } from './settings';
2
+
3
+ export declare const rouletteText: TextInterface;
@@ -0,0 +1,6 @@
1
+ export type TextInterface = {
2
+ [key: string]: string[] | (string | {
3
+ [key: string]: any;
4
+ })[];
5
+ };
6
+ export declare const settingsText: TextInterface;
@@ -1,6 +1,3 @@
1
- export type TextInterface = {
2
- [key: string]: string[] | (string | {
3
- [key: string]: any;
4
- })[];
5
- };
1
+ import { TextInterface } from './settings';
2
+
6
3
  export declare const texasText: TextInterface;
@@ -0,0 +1,17 @@
1
+ export declare const showStakes: {
2
+ bet: string;
3
+ currencyId: string;
4
+ limitFrom: string;
5
+ limitTo: string;
6
+ pay: string;
7
+ key: string;
8
+ }[];
9
+ export declare enum Coefficient_Type {
10
+ ClassicRoulette = 1,
11
+ FusionRoulette = 2,
12
+ RouletteX150 = 150,
13
+ RouletteX500 = 500,
14
+ RouletteX1000 = 1000,
15
+ RouletteX2000 = 2000,
16
+ RouletteX5000 = 5000
17
+ }
@@ -0,0 +1,15 @@
1
+ export type IStake = {
2
+ bet: string;
3
+ currencyId: string;
4
+ limitFrom: string;
5
+ limitTo: string;
6
+ pay: string;
7
+ key: string;
8
+ };
9
+ export interface ILimitInfo {
10
+ stakes: IStake[];
11
+ currencyId: string;
12
+ maxPayOut?: number;
13
+ gameType?: number;
14
+ }
15
+ export declare const LimitInfoRoulette: ({ stakes, maxPayOut, currencyId, gameType, }: ILimitInfo) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { LimitInfoRoulette } from '.';
3
+
4
+ declare const meta: Meta<typeof LimitInfoRoulette>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof LimitInfoRoulette>;
7
+ export declare const Default: Story;
@@ -0,0 +1,3 @@
1
+ export declare const WrapperRoulette: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
2
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
3
+ }, never>> & string;
@@ -1,6 +1,7 @@
1
1
  import { HubConnection } from '@microsoft/signalr';
2
2
  import { IUrlParam } from '../../utils/helpers';
3
3
  import { ILimitInfo } from '../LimitInfo';
4
+ import { IStake } from '../LimitInfoRoulette';
4
5
 
5
6
  export interface IToLobby {
6
7
  name: string;
@@ -9,7 +10,9 @@ export interface IToLobby {
9
10
  partnerId: number;
10
11
  socket: HubConnection | null;
11
12
  urlParam: IUrlParam;
12
- limits: ILimitInfo;
13
+ limits: ILimitInfo | IStake[];
13
14
  gameType?: number;
15
+ maxPayOut?: number;
16
+ currencyId?: string;
14
17
  }
15
- export declare const ToLobby: ({ name, round, limit, partnerId, socket, urlParam, limits, gameType }: IToLobby) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const ToLobby: ({ name, round, limit, partnerId, socket, urlParam, limits, gameType, maxPayOut, currencyId, }: IToLobby) => import("react/jsx-runtime").JSX.Element;