livevegas-ui-kit 1.0.28 → 1.0.30
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/dist/components/History/helpers.d.ts +51 -2
- package/dist/components/History/index.d.ts +2 -1
- package/dist/components/MobileMenu/index.d.ts +2 -1
- package/dist/components/TopIcons/Elements.d.ts +2 -1
- package/dist/components/TopIcons/index.d.ts +2 -1
- package/dist/livevegas-ui-kit.es.js +611 -600
- package/dist/livevegas-ui-kit.umd.js +37 -37
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface IHistoryData {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
ConnectionId: string;
|
|
3
|
+
Token: string;
|
|
4
4
|
playerId: number;
|
|
5
5
|
rounds: IRound[];
|
|
6
6
|
totalCount: number;
|
|
@@ -16,8 +16,47 @@ export interface IRound {
|
|
|
16
16
|
roundEndTime: string;
|
|
17
17
|
tableId: number;
|
|
18
18
|
}
|
|
19
|
+
type IHands = Pick<IHand, 'cards' | 'finalValue' | 'isBlackjack' | 'winOnHand' | 'betOnHand'>;
|
|
20
|
+
export interface IDealerHand {
|
|
21
|
+
cards: ICard[];
|
|
22
|
+
isBlackjack: boolean;
|
|
23
|
+
hardValue: number;
|
|
24
|
+
softLow: number;
|
|
25
|
+
softHigh: number;
|
|
26
|
+
isSoft: boolean;
|
|
27
|
+
finalValue: number;
|
|
28
|
+
dealerValueIsTen: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface ICard {
|
|
31
|
+
scannerIndex: number;
|
|
32
|
+
}
|
|
33
|
+
export declare enum LAST_ACTION {
|
|
34
|
+
None = 0,
|
|
35
|
+
Hit = 1,
|
|
36
|
+
Stand = 2,
|
|
37
|
+
Double = 3,
|
|
38
|
+
Split = 4,
|
|
39
|
+
Insurance = 5,// not used
|
|
40
|
+
Surrender = 6,
|
|
41
|
+
StandAll = 7
|
|
42
|
+
}
|
|
43
|
+
export interface IHand extends IDealerHand {
|
|
44
|
+
lastAction: LAST_ACTION;
|
|
45
|
+
isInsured: boolean;
|
|
46
|
+
isStood: boolean;
|
|
47
|
+
isHitAllowed: boolean;
|
|
48
|
+
isSplitAllowed: boolean;
|
|
49
|
+
isSurrenderAllowed: boolean;
|
|
50
|
+
isStandAllowed: boolean;
|
|
51
|
+
isDoubleAllowed: boolean;
|
|
52
|
+
winOnHand: number;
|
|
53
|
+
betOnHand: number;
|
|
54
|
+
}
|
|
19
55
|
export interface IPlayer {
|
|
20
56
|
boxes: IBoxes[];
|
|
57
|
+
dealerBox: {
|
|
58
|
+
hand: IHands;
|
|
59
|
+
};
|
|
21
60
|
id: number;
|
|
22
61
|
nickname: string;
|
|
23
62
|
winAmount: number;
|
|
@@ -27,10 +66,19 @@ export interface IPlayer {
|
|
|
27
66
|
export interface IBoxes {
|
|
28
67
|
bets: IBets[];
|
|
29
68
|
gameCurrencyId: null;
|
|
69
|
+
hand: IHands;
|
|
30
70
|
playerId: number;
|
|
31
71
|
playerNick: string;
|
|
32
72
|
totalBet: number;
|
|
33
73
|
totalWin: number;
|
|
74
|
+
splittedHands: ISplittedHands[];
|
|
75
|
+
}
|
|
76
|
+
export interface ISplittedHands {
|
|
77
|
+
cards: ICard[];
|
|
78
|
+
finalValue: number;
|
|
79
|
+
isBlackjack: boolean;
|
|
80
|
+
bets: IBets[];
|
|
81
|
+
winOnHand: number;
|
|
34
82
|
}
|
|
35
83
|
export interface IBets {
|
|
36
84
|
amount: number;
|
|
@@ -40,3 +88,4 @@ export interface IBets {
|
|
|
40
88
|
}
|
|
41
89
|
export declare const historyData: any;
|
|
42
90
|
export declare const formatted: (date: string) => string;
|
|
91
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import { IHistoryData } from './helpers';
|
|
|
2
2
|
|
|
3
3
|
interface IHistory {
|
|
4
4
|
historyData: IHistoryData | null;
|
|
5
|
+
getHistory: (active: number) => void;
|
|
5
6
|
}
|
|
6
|
-
export declare const History: ({ historyData }: IHistory) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const History: ({ historyData, getHistory }: IHistory) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -23,5 +23,6 @@ export interface IToLobby {
|
|
|
23
23
|
setEffectsVolume: (volume: number) => void;
|
|
24
24
|
setStreamVolume: (volume: number) => void;
|
|
25
25
|
balance: number;
|
|
26
|
+
getHistory: (active: number) => void;
|
|
26
27
|
}
|
|
27
|
-
export declare const MobileMenu: ({ name, round, partnerId, socket, urlParam, messages, historyData, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, isLandscape, streamVolume, balance, effectsVolume, setEffectsVolume, setStreamVolume, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const MobileMenu: ({ name, round, partnerId, socket, urlParam, messages, historyData, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, isLandscape, streamVolume, balance, effectsVolume, setEffectsVolume, setStreamVolume, getHistory, }: IToLobby) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,5 +19,6 @@ export interface IElements {
|
|
|
19
19
|
setStreamVolume: (volume: number) => void;
|
|
20
20
|
tournamentData?: TournamentData;
|
|
21
21
|
balance: number;
|
|
22
|
+
getHistory: (active: number) => void;
|
|
22
23
|
}
|
|
23
|
-
export declare const Elements: ({ activeAction, messages, onSendMessage, chipAmounts, messagesSupport, onSendMessageSupport, isMobile, historyData, isLandscape, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, balance, }: IElements) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const Elements: ({ activeAction, messages, onSendMessage, chipAmounts, messagesSupport, onSendMessageSupport, isMobile, historyData, isLandscape, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, balance, getHistory, }: IElements) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,5 +19,6 @@ export interface ITopIcons {
|
|
|
19
19
|
tournamentData: TournamentData;
|
|
20
20
|
isTournamentDetailsVisible: boolean;
|
|
21
21
|
balance: number;
|
|
22
|
+
getHistory: (active: number) => void;
|
|
22
23
|
}
|
|
23
|
-
export declare const TopIcons: ({ messages, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, historyData, balance, isFullscreen, toggleFullscreen, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, isTournamentDetailsVisible, }: ITopIcons) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const TopIcons: ({ messages, onSendMessage, isTournamentActive, chipAmounts, messagesSupport, onSendMessageSupport, historyData, balance, isFullscreen, toggleFullscreen, streamVolume, effectsVolume, setEffectsVolume, setStreamVolume, tournamentData, isTournamentDetailsVisible, getHistory, }: ITopIcons) => import("react/jsx-runtime").JSX.Element;
|