@truelab/truelogic 0.1.11 → 0.1.13
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/truelogic.min.css +1 -1
- package/dist/truelogic.min.js +1 -1
- package/dist/types/src/app/store.d.ts +26 -4
- package/dist/types/src/entities/autoplay/model/autoPlaySlice.d.ts +1 -0
- package/dist/types/src/entities/bet/index.d.ts +1 -1
- package/dist/types/src/entities/bet/model/betSlice.d.ts +2 -1
- package/dist/types/src/entities/freeRounds/index.d.ts +1 -1
- package/dist/types/src/entities/freeRounds/model/freeRoundsSlice.d.ts +23 -0
- package/dist/types/src/features/modals/index.d.ts +2 -0
- package/dist/types/src/features/modals/ui/ModalFreeRounds.d.ts +1 -0
- package/dist/types/src/features/modals/ui/ModalFreeRoundsResult.d.ts +1 -0
- package/dist/types/src/sandbox/config.d.ts +4 -1
- package/dist/types/src/sandbox/presets/config/restoreSteppedWithChoicesWithNotStartedFR.d.ts +2 -0
- package/dist/types/src/sandbox/presets/index.d.ts +1 -0
- package/dist/types/src/shared/api/config/types.d.ts +1 -11
- package/dist/types/src/shared/api/round/open/index.d.ts +1 -1
- package/dist/types/src/shared/api/round/open/types.d.ts +2 -2
- package/dist/types/src/shared/lib/constants/devToken.d.ts +1 -0
- package/dist/types/src/shared/lib/constants/index.d.ts +1 -0
- package/dist/types/src/shared/lib/hooks/useFullScreen.d.ts +5 -0
- package/dist/types/src/shared/lib/singletones/gameEmitter.d.ts +3 -0
- package/dist/types/src/shared/lib/singletones/publicEmitter.d.ts +6 -0
- package/dist/types/src/shared/lib/store/redux.d.ts +26 -4
- package/dist/types/src/shared/model/app/appSlice.d.ts +2 -3
- package/dist/types/src/shared/model/app/index.d.ts +1 -1
- package/dist/types/src/shared/model/fullScreen/fullScreenSlice.d.ts +7 -0
- package/dist/types/src/shared/model/fullScreen/index.d.ts +1 -0
- package/dist/types/src/shared/model/modals/modalsSlice.d.ts +1 -1
- package/dist/types/tailwind.config.d.ts +3 -0
- package/package.json +1 -2
- package/dist/types/src/entities/freeRounds/model/freeRoundSlice.d.ts +0 -12
|
@@ -25,8 +25,10 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
25
25
|
stakeModes: import("../shared/api/config").TStakeMode[];
|
|
26
26
|
type: import("../shared/api/config").EStakeType;
|
|
27
27
|
stakeLevels: number[];
|
|
28
|
+
isVisibleDropdown: boolean;
|
|
28
29
|
};
|
|
29
30
|
autoPlay: {
|
|
31
|
+
isActive: boolean;
|
|
30
32
|
isAvailable?: boolean;
|
|
31
33
|
lossLimitTotal: number;
|
|
32
34
|
inProgress: boolean;
|
|
@@ -78,7 +80,6 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
78
80
|
isReplay: boolean;
|
|
79
81
|
isUIHidden: boolean;
|
|
80
82
|
isOffline: boolean;
|
|
81
|
-
isFullScreenSupported: boolean;
|
|
82
83
|
urlParams: {
|
|
83
84
|
isHomeButtonDisabled: boolean;
|
|
84
85
|
};
|
|
@@ -88,7 +89,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
88
89
|
isProd: boolean;
|
|
89
90
|
};
|
|
90
91
|
error: import("../shared/model/app").TAppError;
|
|
91
|
-
test
|
|
92
|
+
test: string;
|
|
92
93
|
};
|
|
93
94
|
sound: {
|
|
94
95
|
isActive: boolean;
|
|
@@ -211,15 +212,25 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
211
212
|
apiRoundPlay: import("../features/play/types/apiRoundPlay").TApiRoundPlayState;
|
|
212
213
|
freeRounds: {
|
|
213
214
|
isActive: boolean;
|
|
215
|
+
isInitial: boolean;
|
|
214
216
|
count: number;
|
|
215
217
|
issued: number;
|
|
216
218
|
displayCount: number;
|
|
217
219
|
totalWon: number;
|
|
218
220
|
dispayTotalWon: number;
|
|
221
|
+
ui: {
|
|
222
|
+
startModalVersion: "default" | "pro";
|
|
223
|
+
winModalVersion: "default" | "pro";
|
|
224
|
+
notWinModalVersion: "default" | "pro";
|
|
225
|
+
};
|
|
219
226
|
};
|
|
220
227
|
apiRoundReplay: import("./config/types/apiRoundReplay").TApiRoundReplayState;
|
|
221
228
|
gameSettings: import("../shared/api/config").TGameSettings;
|
|
222
229
|
complianceSettings: import("../shared/api/config").TComplianceSettings;
|
|
230
|
+
fullScreen: {
|
|
231
|
+
isFullScreenSupported: boolean;
|
|
232
|
+
isFullScreenEnabled: boolean;
|
|
233
|
+
};
|
|
223
234
|
topLine: {
|
|
224
235
|
config: import("../shared/lib/singletones/publicEmitter").TTopLineConfig;
|
|
225
236
|
};
|
|
@@ -248,8 +259,10 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
248
259
|
stakeModes: import("../shared/api/config").TStakeMode[];
|
|
249
260
|
type: import("../shared/api/config").EStakeType;
|
|
250
261
|
stakeLevels: number[];
|
|
262
|
+
isVisibleDropdown: boolean;
|
|
251
263
|
};
|
|
252
264
|
autoPlay: {
|
|
265
|
+
isActive: boolean;
|
|
253
266
|
isAvailable?: boolean;
|
|
254
267
|
lossLimitTotal: number;
|
|
255
268
|
inProgress: boolean;
|
|
@@ -301,7 +314,6 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
301
314
|
isReplay: boolean;
|
|
302
315
|
isUIHidden: boolean;
|
|
303
316
|
isOffline: boolean;
|
|
304
|
-
isFullScreenSupported: boolean;
|
|
305
317
|
urlParams: {
|
|
306
318
|
isHomeButtonDisabled: boolean;
|
|
307
319
|
};
|
|
@@ -311,7 +323,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
311
323
|
isProd: boolean;
|
|
312
324
|
};
|
|
313
325
|
error: import("../shared/model/app").TAppError;
|
|
314
|
-
test
|
|
326
|
+
test: string;
|
|
315
327
|
};
|
|
316
328
|
sound: {
|
|
317
329
|
isActive: boolean;
|
|
@@ -434,15 +446,25 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
434
446
|
apiRoundPlay: import("../features/play/types/apiRoundPlay").TApiRoundPlayState;
|
|
435
447
|
freeRounds: {
|
|
436
448
|
isActive: boolean;
|
|
449
|
+
isInitial: boolean;
|
|
437
450
|
count: number;
|
|
438
451
|
issued: number;
|
|
439
452
|
displayCount: number;
|
|
440
453
|
totalWon: number;
|
|
441
454
|
dispayTotalWon: number;
|
|
455
|
+
ui: {
|
|
456
|
+
startModalVersion: "default" | "pro";
|
|
457
|
+
winModalVersion: "default" | "pro";
|
|
458
|
+
notWinModalVersion: "default" | "pro";
|
|
459
|
+
};
|
|
442
460
|
};
|
|
443
461
|
apiRoundReplay: import("./config/types/apiRoundReplay").TApiRoundReplayState;
|
|
444
462
|
gameSettings: import("../shared/api/config").TGameSettings;
|
|
445
463
|
complianceSettings: import("../shared/api/config").TComplianceSettings;
|
|
464
|
+
fullScreen: {
|
|
465
|
+
isFullScreenSupported: boolean;
|
|
466
|
+
isFullScreenEnabled: boolean;
|
|
467
|
+
};
|
|
446
468
|
topLine: {
|
|
447
469
|
config: import("../shared/lib/singletones/publicEmitter").TTopLineConfig;
|
|
448
470
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { betReducer, setBetCashBetsAll, setBetDefaultStakeName, setBetIndex, setBetStake, setBetStakeLevel, setBetStakeLevels, setBetStakeModes, setBetStakeName, setBetStakeParams, } from './model/betSlice';
|
|
1
|
+
export { betReducer, setBetCashBetsAll, setBetDefaultStakeName, setBetIndex, setBetIsVisibleDropdown, setBetStake, setBetStakeLevel, setBetStakeLevels, setBetStakeModes, setBetStakeName, setBetStakeParams, } from './model/betSlice';
|
|
2
2
|
export { BetDropdown } from './ui/BetDropdown/BetDropdown';
|
|
3
3
|
export { CashBet } from './ui/CashBet/CashBet';
|
|
4
4
|
export { PanelBets } from './ui/PanelBets/PanelBets';
|
|
@@ -9,7 +9,8 @@ type TBetState = {
|
|
|
9
9
|
stakeModes: TStakeMode[];
|
|
10
10
|
type: EStakeType;
|
|
11
11
|
stakeLevels: number[];
|
|
12
|
+
isVisibleDropdown: boolean;
|
|
12
13
|
};
|
|
13
|
-
export declare const setBetStake: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TStake, "bet/setBetStake">, setBetStakeLevel: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number, "bet/setBetStakeLevel">, setBetIndex: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number, "bet/setBetIndex">, setBetCashBetsAll: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TCashBetsAll, "bet/setBetCashBetsAll">, setBetStakeName: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "bet/setBetStakeName">, setBetDefaultStakeName: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "bet/setBetDefaultStakeName">, setBetStakeModes: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TStakeMode[], "bet/setBetStakeModes">, setBetStakeParams: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "bet/setBetStakeParams">, setBetStakeLevels: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number[], "bet/setBetStakeLevels">;
|
|
14
|
+
export declare const setBetStake: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TStake, "bet/setBetStake">, setBetStakeLevel: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number, "bet/setBetStakeLevel">, setBetIndex: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number, "bet/setBetIndex">, setBetCashBetsAll: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TCashBetsAll, "bet/setBetCashBetsAll">, setBetStakeName: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "bet/setBetStakeName">, setBetDefaultStakeName: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "bet/setBetDefaultStakeName">, setBetStakeModes: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TStakeMode[], "bet/setBetStakeModes">, setBetStakeParams: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "bet/setBetStakeParams">, setBetStakeLevels: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number[], "bet/setBetStakeLevels">, setBetIsVisibleDropdown: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "bet/setBetIsVisibleDropdown">;
|
|
14
15
|
export declare const betReducer: import("redux").Reducer<TBetState>;
|
|
15
16
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { endFreeRounds, finishFreeRound, setFreeRounds, startFreeRound, startFreeRounds } from './model/
|
|
1
|
+
export { endFreeRounds, finishFreeRound, setFreeRounds, setFreeRoundsInitial, setFreeRoundsModalVersion, startFreeRound, startFreeRounds, } from './model/freeRoundsSlice';
|
|
2
2
|
export { FreeRoundLabel } from './ui/FreeRoundLabel/FreeRoundLabel';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TPromoTool } from "../../../shared/api/round/open";
|
|
2
|
+
import { EVersions } from "../../../shared/lib/singletones/publicEmitter";
|
|
3
|
+
type TRoundState = {
|
|
4
|
+
isActive: boolean;
|
|
5
|
+
isInitial: boolean;
|
|
6
|
+
count: number;
|
|
7
|
+
issued: number;
|
|
8
|
+
displayCount: number;
|
|
9
|
+
totalWon: number;
|
|
10
|
+
dispayTotalWon: number;
|
|
11
|
+
ui: {
|
|
12
|
+
startModalVersion: `${EVersions}`;
|
|
13
|
+
winModalVersion: `${EVersions}`;
|
|
14
|
+
notWinModalVersion: `${EVersions}`;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const startFreeRounds: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/startFreeRounds">, setFreeRounds: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPromoTool, "freeRounds/setFreeRounds">, startFreeRound: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/startFreeRound">, finishFreeRound: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/finishFreeRound">, endFreeRounds: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/endFreeRounds">, setFreeRoundsModalVersion: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
18
|
+
startModalVersion: `${EVersions}`;
|
|
19
|
+
winModalVersion: `${EVersions}`;
|
|
20
|
+
notWinModalVersion: `${EVersions}`;
|
|
21
|
+
}, "freeRounds/setFreeRoundsModalVersion">, setFreeRoundsInitial: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/setFreeRoundsInitial">;
|
|
22
|
+
export declare const freeRoundsReducer: import("redux").Reducer<TRoundState>;
|
|
23
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { ModalFreeRounds } from './ui/ModalFreeRounds';
|
|
2
|
+
export { ModalFreeRoundsResult } from './ui/ModalFreeRoundsResult';
|
|
1
3
|
export { ModalGameInfo } from './ui/ModalGameInfo';
|
|
2
4
|
export { ModalMenu } from './ui/ModalMenu';
|
|
3
5
|
export { ModalPayTable } from './ui/ModalPayTable';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModalFreeRounds: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModalFreeRoundsResult: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { TApiRoundOpenFake } from "../shared/api/round/open";
|
|
|
6
6
|
import { TApiRoundPlayFake } from "../shared/api/round/play";
|
|
7
7
|
import { TApiRoundReplayFake } from "../shared/api/round/replay";
|
|
8
8
|
import { TApiRoundsHistoryFake } from "../shared/api/roundsHistory";
|
|
9
|
-
import { TAdaptiveImage, TAutoPlayConfig, TConfiguration, TGameInfoConfig, TInitConfig, TPayTableConfig, TSkipConfig, TTopLineConfig, TUILoadingDefault, TUILoadingPro, TUIMenu, TUIPanelDefault, TUIPanelPro, TUIWelcomeDefault, TUIWelcomePro } from "../shared/lib/singletones/publicEmitter";
|
|
9
|
+
import { TAdaptiveImage, TAutoPlayConfig, TConfiguration, TGameInfoConfig, TInitConfig, TPayTableConfig, TSkipConfig, TTopLineConfig, TUIFreeRounds, TUILoadingDefault, TUILoadingPro, TUIMenu, TUIPanelDefault, TUIPanelPro, TUIWelcomeDefault, TUIWelcomePro } from "../shared/lib/singletones/publicEmitter";
|
|
10
10
|
import { TStoredPayTableConfig } from './types/PayTable';
|
|
11
11
|
export declare enum EGUIPosition {
|
|
12
12
|
left = "left",
|
|
@@ -71,6 +71,7 @@ export type TStoredConfigs = {
|
|
|
71
71
|
panelDefault: TUIPanelDefault;
|
|
72
72
|
panelPro: TUIPanelPro;
|
|
73
73
|
menu: TUIMenu;
|
|
74
|
+
freeRounds: TUIFreeRounds;
|
|
74
75
|
bonus: TBonusConfig;
|
|
75
76
|
skip: TSkipConfig;
|
|
76
77
|
autoPlay: TAutoPlayConfig;
|
|
@@ -107,6 +108,7 @@ declare class ConfigManager {
|
|
|
107
108
|
getPanelDefault(): TUIPanelDefault;
|
|
108
109
|
getPanelPro(): TUIPanelPro;
|
|
109
110
|
getMenu(): TUIMenu;
|
|
111
|
+
getFreeRounds(): TUIFreeRounds;
|
|
110
112
|
getSkip(): TSkipConfig;
|
|
111
113
|
getAutoPlay(): TAutoPlayConfig;
|
|
112
114
|
getTopLine(): TTopLineConfig;
|
|
@@ -144,6 +146,7 @@ declare class ConfigManager {
|
|
|
144
146
|
savePayTableBackground(config: TAdaptiveImage): void;
|
|
145
147
|
saveGameInfo(config?: TGameInfoConfig): void;
|
|
146
148
|
saveGameInfoBackground(config: TAdaptiveImage): void;
|
|
149
|
+
saveFreeRounds(config?: TUIFreeRounds): void;
|
|
147
150
|
saveToStorage(): void;
|
|
148
151
|
getFromStorage<T extends keyof TStoredConfigs>(key: T): TStoredConfigs[T];
|
|
149
152
|
resetStorage(): void;
|
|
@@ -15,6 +15,7 @@ export declare const apiConfigPresets: {
|
|
|
15
15
|
restoreStepped: string;
|
|
16
16
|
restoreSteppedWithChoices: string;
|
|
17
17
|
restoreSimpleWithNotStartedFreeRounds: string;
|
|
18
|
+
restoreSteppedWithChoicesWithNotStartedFR: string;
|
|
18
19
|
withLevels: string;
|
|
19
20
|
differentLevels: string;
|
|
20
21
|
freeRounds: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TDevice, TOrientation } from "../../lib/types/viewPort";
|
|
2
2
|
import { TLocalizationSettings } from "../../localization";
|
|
3
3
|
import { TStake } from '../round/open';
|
|
4
|
-
import { TResponseGS } from '../round/open/types';
|
|
4
|
+
import { TPromoTool, TResponseGS } from '../round/open/types';
|
|
5
5
|
export declare enum EStakeType {
|
|
6
6
|
default = "default",
|
|
7
7
|
buy = "buy",
|
|
@@ -71,16 +71,6 @@ export type TSessionSettings = {
|
|
|
71
71
|
urls: TSessionUrls;
|
|
72
72
|
restore?: TRoundClient;
|
|
73
73
|
};
|
|
74
|
-
export type TPromoTool = {
|
|
75
|
-
balance: number;
|
|
76
|
-
count: number;
|
|
77
|
-
issued: number;
|
|
78
|
-
betIndex: number;
|
|
79
|
-
totalWon: number;
|
|
80
|
-
type: 'freerounds';
|
|
81
|
-
uuid: string;
|
|
82
|
-
level?: number;
|
|
83
|
-
};
|
|
84
74
|
export type TApiConfigPayload = {
|
|
85
75
|
lang: string;
|
|
86
76
|
analytics: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type { TStake } from './types';
|
|
2
|
-
export type { TApiRoundOpenError, TApiRoundOpenFake, TApiRoundOpenPayload, TApiRoundOpenResponse } from './types';
|
|
2
|
+
export type { TApiRoundOpenError, TApiRoundOpenFake, TApiRoundOpenPayload, TApiRoundOpenResponse, TPromoTool, } from './types';
|
|
@@ -13,7 +13,7 @@ export type TResponseGS = {
|
|
|
13
13
|
choices?: number[];
|
|
14
14
|
finished: boolean;
|
|
15
15
|
};
|
|
16
|
-
export type
|
|
16
|
+
export type TPromoTool = {
|
|
17
17
|
balance: number;
|
|
18
18
|
count: number;
|
|
19
19
|
issued: number;
|
|
@@ -34,7 +34,7 @@ export type TApiRoundOpenResponse = {
|
|
|
34
34
|
roundId: string;
|
|
35
35
|
balance: number;
|
|
36
36
|
responseGS: TResponseGS;
|
|
37
|
-
promotools?:
|
|
37
|
+
promotools?: TPromoTool[];
|
|
38
38
|
};
|
|
39
39
|
export type TApiRoundOpenError = {
|
|
40
40
|
name: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEV_TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZ3MiOiIiLCJzIjoiRVVSfHxzcGlub3xjdXJhY2FvIiwibSI6MCwiciI6IiJ9.qM2onoCEHdJOzeE5BCLS8XmRwHNTHtsNE3IgNQY9r2k";
|
|
@@ -51,6 +51,9 @@ export type TGameEvents = {
|
|
|
51
51
|
['turbo:started']: () => void;
|
|
52
52
|
['turbo:ended']: () => void;
|
|
53
53
|
['spin:ended']: () => void;
|
|
54
|
+
['freeRounds:openStartModal']: () => void;
|
|
55
|
+
['freeRounds:openWinModal']: () => void;
|
|
56
|
+
['freeRounds:openNotWinModal']: () => void;
|
|
54
57
|
};
|
|
55
58
|
export declare class GameEmitter extends Emitter<TGameEvents> {
|
|
56
59
|
log(event: string, ...args: unknown[]): void;
|
|
@@ -78,6 +78,11 @@ export type TUILoading = TUILoadingDefault | TUILoadingPro;
|
|
|
78
78
|
export type TUIWelcome = TUIWelcomeDefault | TUIWelcomePro;
|
|
79
79
|
export type TUIPanel = TUIPanelDefault | TUIPanelPro;
|
|
80
80
|
export type TUIMenu = TMenuConfig;
|
|
81
|
+
export type TUIFreeRounds = {
|
|
82
|
+
startModalVersion: `${EVersions}`;
|
|
83
|
+
winModalVersion: `${EVersions}`;
|
|
84
|
+
notWinModalVersion: `${EVersions}`;
|
|
85
|
+
};
|
|
81
86
|
export type TSkipConfig = {
|
|
82
87
|
tooltipCheckpoint?: number;
|
|
83
88
|
turboRoundsDelay?: number;
|
|
@@ -132,6 +137,7 @@ export type TConfiguration = {
|
|
|
132
137
|
topLine?: TTopLineConfig;
|
|
133
138
|
payTable?: TPayTableConfig;
|
|
134
139
|
gameInfo?: TGameInfoConfig;
|
|
140
|
+
freeRounds?: TUIFreeRounds;
|
|
135
141
|
};
|
|
136
142
|
export type TSpinEndedOptions = {
|
|
137
143
|
isBonusReached: boolean;
|
|
@@ -23,8 +23,10 @@ export declare const useAppDispatch: import("react-redux").UseDispatch<import("r
|
|
|
23
23
|
stakeModes: import("../../api/config").TStakeMode[];
|
|
24
24
|
type: import("../../api/config").EStakeType;
|
|
25
25
|
stakeLevels: number[];
|
|
26
|
+
isVisibleDropdown: boolean;
|
|
26
27
|
};
|
|
27
28
|
autoPlay: {
|
|
29
|
+
isActive: boolean;
|
|
28
30
|
isAvailable?: boolean;
|
|
29
31
|
lossLimitTotal: number;
|
|
30
32
|
inProgress: boolean;
|
|
@@ -76,7 +78,6 @@ export declare const useAppDispatch: import("react-redux").UseDispatch<import("r
|
|
|
76
78
|
isReplay: boolean;
|
|
77
79
|
isUIHidden: boolean;
|
|
78
80
|
isOffline: boolean;
|
|
79
|
-
isFullScreenSupported: boolean;
|
|
80
81
|
urlParams: {
|
|
81
82
|
isHomeButtonDisabled: boolean;
|
|
82
83
|
};
|
|
@@ -86,7 +87,7 @@ export declare const useAppDispatch: import("react-redux").UseDispatch<import("r
|
|
|
86
87
|
isProd: boolean;
|
|
87
88
|
};
|
|
88
89
|
error: import("../../model/app").TAppError;
|
|
89
|
-
test
|
|
90
|
+
test: string;
|
|
90
91
|
};
|
|
91
92
|
sound: {
|
|
92
93
|
isActive: boolean;
|
|
@@ -209,15 +210,25 @@ export declare const useAppDispatch: import("react-redux").UseDispatch<import("r
|
|
|
209
210
|
apiRoundPlay: import("../../../features/play/types/apiRoundPlay").TApiRoundPlayState;
|
|
210
211
|
freeRounds: {
|
|
211
212
|
isActive: boolean;
|
|
213
|
+
isInitial: boolean;
|
|
212
214
|
count: number;
|
|
213
215
|
issued: number;
|
|
214
216
|
displayCount: number;
|
|
215
217
|
totalWon: number;
|
|
216
218
|
dispayTotalWon: number;
|
|
219
|
+
ui: {
|
|
220
|
+
startModalVersion: "default" | "pro";
|
|
221
|
+
winModalVersion: "default" | "pro";
|
|
222
|
+
notWinModalVersion: "default" | "pro";
|
|
223
|
+
};
|
|
217
224
|
};
|
|
218
225
|
apiRoundReplay: import("../../../app/config/types/apiRoundReplay").TApiRoundReplayState;
|
|
219
226
|
gameSettings: import("../../api/config").TGameSettings;
|
|
220
227
|
complianceSettings: import("../../api/config").TComplianceSettings;
|
|
228
|
+
fullScreen: {
|
|
229
|
+
isFullScreenSupported: boolean;
|
|
230
|
+
isFullScreenEnabled: boolean;
|
|
231
|
+
};
|
|
221
232
|
topLine: {
|
|
222
233
|
config: import("../singletones/publicEmitter").TTopLineConfig;
|
|
223
234
|
};
|
|
@@ -246,8 +257,10 @@ export declare const useAppSelector: import("react-redux").UseSelector<{
|
|
|
246
257
|
stakeModes: import("../../api/config").TStakeMode[];
|
|
247
258
|
type: import("../../api/config").EStakeType;
|
|
248
259
|
stakeLevels: number[];
|
|
260
|
+
isVisibleDropdown: boolean;
|
|
249
261
|
};
|
|
250
262
|
autoPlay: {
|
|
263
|
+
isActive: boolean;
|
|
251
264
|
isAvailable?: boolean;
|
|
252
265
|
lossLimitTotal: number;
|
|
253
266
|
inProgress: boolean;
|
|
@@ -299,7 +312,6 @@ export declare const useAppSelector: import("react-redux").UseSelector<{
|
|
|
299
312
|
isReplay: boolean;
|
|
300
313
|
isUIHidden: boolean;
|
|
301
314
|
isOffline: boolean;
|
|
302
|
-
isFullScreenSupported: boolean;
|
|
303
315
|
urlParams: {
|
|
304
316
|
isHomeButtonDisabled: boolean;
|
|
305
317
|
};
|
|
@@ -309,7 +321,7 @@ export declare const useAppSelector: import("react-redux").UseSelector<{
|
|
|
309
321
|
isProd: boolean;
|
|
310
322
|
};
|
|
311
323
|
error: import("../../model/app").TAppError;
|
|
312
|
-
test
|
|
324
|
+
test: string;
|
|
313
325
|
};
|
|
314
326
|
sound: {
|
|
315
327
|
isActive: boolean;
|
|
@@ -432,15 +444,25 @@ export declare const useAppSelector: import("react-redux").UseSelector<{
|
|
|
432
444
|
apiRoundPlay: import("../../../features/play/types/apiRoundPlay").TApiRoundPlayState;
|
|
433
445
|
freeRounds: {
|
|
434
446
|
isActive: boolean;
|
|
447
|
+
isInitial: boolean;
|
|
435
448
|
count: number;
|
|
436
449
|
issued: number;
|
|
437
450
|
displayCount: number;
|
|
438
451
|
totalWon: number;
|
|
439
452
|
dispayTotalWon: number;
|
|
453
|
+
ui: {
|
|
454
|
+
startModalVersion: "default" | "pro";
|
|
455
|
+
winModalVersion: "default" | "pro";
|
|
456
|
+
notWinModalVersion: "default" | "pro";
|
|
457
|
+
};
|
|
440
458
|
};
|
|
441
459
|
apiRoundReplay: import("../../../app/config/types/apiRoundReplay").TApiRoundReplayState;
|
|
442
460
|
gameSettings: import("../../api/config").TGameSettings;
|
|
443
461
|
complianceSettings: import("../../api/config").TComplianceSettings;
|
|
462
|
+
fullScreen: {
|
|
463
|
+
isFullScreenSupported: boolean;
|
|
464
|
+
isFullScreenEnabled: boolean;
|
|
465
|
+
};
|
|
444
466
|
topLine: {
|
|
445
467
|
config: import("../singletones/publicEmitter").TTopLineConfig;
|
|
446
468
|
};
|
|
@@ -17,13 +17,12 @@ type TAppState = {
|
|
|
17
17
|
isReplay: boolean;
|
|
18
18
|
isUIHidden: boolean;
|
|
19
19
|
isOffline: boolean;
|
|
20
|
-
isFullScreenSupported: boolean;
|
|
21
20
|
urlParams: TUrlParams;
|
|
22
21
|
env: TAppEnv;
|
|
23
22
|
error: TAppError;
|
|
24
|
-
test
|
|
23
|
+
test: string;
|
|
25
24
|
};
|
|
26
|
-
export declare const setScreen: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TScreen, "app/setScreen">, hideUI: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"app/hideUI">, showUI: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"app/showUI">, setAppIsOffline: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "app/setAppIsOffline">, setUrlParams: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TUrlParams, "app/setUrlParams">,
|
|
25
|
+
export declare const setScreen: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TScreen, "app/setScreen">, hideUI: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"app/hideUI">, showUI: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"app/showUI">, setAppIsOffline: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "app/setAppIsOffline">, setUrlParams: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TUrlParams, "app/setUrlParams">, setAppEnv: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TAppEnv, "app/setAppEnv">, setAppError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TAppError, "app/setAppError">, setAppTest: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "app/setAppTest">, setIsReplay: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"app/setIsReplay">;
|
|
27
26
|
export declare const gameReady: TAppThunkAction;
|
|
28
27
|
export declare const setFailedScreen: TAppThunkAction<TAppError | Error>;
|
|
29
28
|
export declare const appReducer: import("redux").Reducer<TAppState>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { appReducer, gameReady, hideUI, setAppEnv, setAppError,
|
|
1
|
+
export { appReducer, gameReady, hideUI, setAppEnv, setAppError, setAppIsOffline, setAppTest, setFailedScreen, setIsReplay, setScreen, setUrlParams, showUI, TAppError, } from './appSlice';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type TFulScreenState = {
|
|
2
|
+
isFullScreenSupported: boolean;
|
|
3
|
+
isFullScreenEnabled: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const setFullScreenEnabled: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "fullScreen/setFullScreenEnabled">, setFullScreenSupported: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "fullScreen/setFullScreenSupported">;
|
|
6
|
+
export declare const fullScreenReducer: import("redux").Reducer<TFulScreenState>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setFullScreenEnabled, setFullScreenSupported } from './fullScreenSlice';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TConfiguration } from "../../lib/singletones/publicEmitter";
|
|
2
2
|
import { TMenuConfig } from "../../modals";
|
|
3
3
|
export type TAutoplayServiceModalType = 'numSpins' | 'lossLimit' | 'singleWinLimit' | 'bonusReached';
|
|
4
|
-
export type TModalName = 'menu' | 'bonusFeature' | 'autoplay' | 'bonusConfirm' | 'realityCheck' | 'settings' | 'payTable' | 'roundsHistory' | 'roundDetails' | 'replay' | 'serviceMaxBet' | 'serviceInsufficientFunds' | 'serviceRestore' | 'serviceMaxWin' | 'serviceQuitTheGame' | 'serviceConnectionLost' | 'serviceError' | 'serviceAutoplay' | 'gameInfo';
|
|
4
|
+
export type TModalName = 'menu' | 'bonusFeature' | 'autoplay' | 'bonusConfirm' | 'realityCheck' | 'settings' | 'payTable' | 'roundsHistory' | 'roundDetails' | 'replay' | 'serviceMaxBet' | 'serviceInsufficientFunds' | 'serviceRestore' | 'serviceMaxWin' | 'serviceQuitTheGame' | 'serviceConnectionLost' | 'serviceError' | 'serviceAutoplay' | 'gameInfo' | 'freeRounds' | 'freeRoundsResult';
|
|
5
5
|
type TModalConfigs = {
|
|
6
6
|
menu: TMenuConfig;
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truelab/truelogic",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/truelogic.min.js",
|
|
6
6
|
"types": "./dist/types/src/truelogic.d.ts",
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
"webpack-dev-server": "^5.0.2"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@mantine/hooks": "^7.9.0",
|
|
88
87
|
"bankers-round": "^1.0.7",
|
|
89
88
|
"decimal.js-light": "^2.5.1",
|
|
90
89
|
"jwt-decode": "^4.0.0",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TRoundPromoTool } from "../../../shared/api/round/open/types";
|
|
2
|
-
type TRoundState = {
|
|
3
|
-
isActive: boolean;
|
|
4
|
-
count: number;
|
|
5
|
-
issued: number;
|
|
6
|
-
displayCount: number;
|
|
7
|
-
totalWon: number;
|
|
8
|
-
dispayTotalWon: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const startFreeRounds: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/startFreeRounds">, setFreeRounds: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TRoundPromoTool, "freeRounds/setFreeRounds">, startFreeRound: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/startFreeRound">, finishFreeRound: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/finishFreeRound">, endFreeRounds: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"freeRounds/endFreeRounds">;
|
|
11
|
-
export declare const freeRoundsReducer: import("redux").Reducer<TRoundState>;
|
|
12
|
-
export {};
|