@truelab/truelogic 3.2.3 → 3.3.0
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/103.min.js +1 -0
- package/dist/113.min.js +1 -0
- package/dist/172.min.js +1 -0
- package/dist/180.min.js +1 -0
- package/dist/203.min.js +1 -0
- package/dist/266.min.js +1 -0
- package/dist/546.min.js +1 -0
- package/dist/585.min.js +1 -0
- package/dist/59.min.js +1 -0
- package/dist/683.min.js +1 -0
- package/dist/728.min.js +1 -0
- package/dist/756.min.js +1 -0
- package/dist/761.min.js +1 -0
- package/dist/90.min.js +1 -0
- package/dist/929.min.js +1 -0
- package/dist/assets/cash-prize.4ef22f77cafcace9ef38.webp +0 -0
- package/dist/assets/locales/de.json +1 -0
- package/dist/assets/locales/en.json +1 -0
- package/dist/assets/locales/es.json +1 -0
- package/dist/assets/locales/fi.json +1 -0
- package/dist/assets/locales/fr.json +1 -0
- package/dist/assets/locales/hr.json +1 -0
- package/dist/assets/locales/nl.json +1 -0
- package/dist/assets/locales/no.json +1 -0
- package/dist/assets/locales/pt.json +1 -0
- package/dist/assets/locales/ru.json +1 -0
- package/dist/assets/locales/sr.json +1 -0
- package/dist/assets/locales/sv.json +1 -0
- package/dist/assets/locales/th.json +1 -0
- package/dist/assets/locales/tr.json +1 -0
- package/dist/assets/locales/zh.json +1 -0
- package/dist/truelogic.min.css +1 -1
- package/dist/truelogic.min.js +1 -1
- package/dist/types/config/webpack/types.d.ts +2 -0
- package/dist/types/docs/src/components/StorybookPreview.d.ts +4 -2
- package/dist/types/docs/src/theme/MDXComponents.d.ts +1 -9
- package/dist/types/src/app/lib/integration/index.d.ts +1 -0
- package/dist/types/src/app/lib/integration/socketEvents/useSocketEvents.d.ts +1 -0
- package/dist/types/src/app/lib/singletones/publicEmitter.d.ts +4 -1
- package/dist/types/src/app/store.d.ts +148 -28
- package/dist/types/src/entities/autoplay/index.d.ts +1 -0
- package/dist/types/src/entities/autoplay/lib/types.d.ts +1 -0
- package/dist/types/src/entities/complianceSettings/lib/isDisabledByCompliance.d.ts +1 -0
- package/dist/types/src/entities/gameInfo/index.d.ts +2 -11
- package/dist/types/src/entities/gameInfo/model/gameInfoSlice.d.ts +8 -13
- package/dist/types/src/entities/gameInfo/model/presets/getTruelabGamePreset.d.ts +3 -0
- package/dist/types/src/entities/gameInfo/model/types.d.ts +11 -44
- package/dist/types/src/entities/loading/index.d.ts +1 -1
- package/dist/types/src/entities/loading/model/loadingSlice.d.ts +3 -1
- package/dist/types/src/entities/prizeDrop/index.d.ts +7 -2
- package/dist/types/src/entities/prizeDrop/model/prizeDropSlice.d.ts +52 -4
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropBadge.d.ts +7 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropButton.d.ts +7 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/PrizeDropEvents.d.ts +1 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropCountDown.d.ts +5 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropEventsBetStatus.d.ts +5 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropEventsHeader.d.ts +8 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropEventsMinBet.d.ts +6 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropEventsPrizes.d.ts +5 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropEventsStats.d.ts +6 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/index.d.ts +1 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropInterval.d.ts +7 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropPrizePool.d.ts +1 -0
- package/dist/types/src/entities/prizeDrop/ui/TabsHeader.d.ts +13 -0
- package/dist/types/src/entities/prizeDrop/ui/staticData.d.ts +2 -0
- package/dist/types/src/features/prizeDrop/api/apiPrizeDropCampaignsList.d.ts +2 -0
- package/dist/types/src/features/prizeDrop/api/apiPrizeDropJoinCampaign.d.ts +4 -0
- package/dist/types/src/features/prizeDrop/api/apiPrizeDropSocketCredentials.d.ts +2 -0
- package/dist/types/src/features/prizeDrop/index.d.ts +0 -0
- package/dist/types/src/sandbox/config.d.ts +31 -2
- package/dist/types/src/sandbox/presets/config/prizeDrop.d.ts +2 -0
- package/dist/types/src/sandbox/presets/config/prizeDropFreeRounds.d.ts +2 -0
- package/dist/types/src/sandbox/presets/config/prizeDropRestore.d.ts +2 -0
- package/dist/types/src/sandbox/presets/gameInfo/features.d.ts +3 -3
- package/dist/types/src/sandbox/presets/gameInfo/separator.d.ts +2 -2
- package/dist/types/src/sandbox/presets/index.d.ts +18 -3
- package/dist/types/src/sandbox/presets/prizeDrop/campaignsList.d.ts +4 -0
- package/dist/types/src/sandbox/presets/prizeDrop/joinCampaign.d.ts +3 -0
- package/dist/types/src/sandbox/presets/prizeDrop/socketCredentials.d.ts +2 -0
- package/dist/types/src/shared/api/config/types.d.ts +5 -0
- package/dist/types/src/shared/api/prizeDrop/campaignsList.d.ts +12 -0
- package/dist/types/src/shared/api/prizeDrop/index.d.ts +5 -0
- package/dist/types/src/shared/api/prizeDrop/joinCampaign.d.ts +15 -0
- package/dist/types/src/shared/api/prizeDrop/lib.d.ts +1 -0
- package/dist/types/src/shared/api/prizeDrop/socketCredentials.d.ts +15 -0
- package/dist/types/src/shared/api/prizeDrop/types.d.ts +4 -0
- package/dist/types/src/shared/lib/classes/cashService.d.ts +9 -3
- package/dist/types/src/shared/lib/classes/logger.d.ts +1 -0
- package/dist/types/src/shared/lib/functions/index.d.ts +2 -0
- package/dist/types/src/shared/lib/functions/retryImport.d.ts +1 -0
- package/dist/types/src/shared/lib/functions/tryCatch.d.ts +11 -0
- package/dist/types/src/shared/lib/store/redux.d.ts +74 -14
- package/dist/types/src/shared/lib/tests/decorators/InteractiveEventsDecorator.d.ts +3 -0
- package/dist/types/src/shared/lib/tests/decorators/StyleDecorator.d.ts +3 -3
- package/dist/types/src/shared/lib/tests/index.d.ts +1 -0
- package/dist/types/src/shared/lib/tests/utils/getPreloadedState.d.ts +37 -7
- package/dist/types/src/shared/lib/tests/utils/setupTestStore.d.ts +74 -14
- package/dist/types/src/shared/lib/types/complianceOptions.d.ts +7 -0
- package/dist/types/src/shared/localization/index.d.ts +1 -0
- package/dist/types/src/shared/localization/lib/langsImportFactory.d.ts +2 -0
- package/dist/types/src/shared/model/modals/modalsSlice.d.ts +2 -2
- package/dist/types/src/shared/model/prizeDrop/index.d.ts +1 -0
- package/dist/types/src/shared/model/prizeDrop/types.d.ts +54 -0
- package/dist/types/src/shared/model/welcome/types.d.ts +1 -0
- package/dist/types/src/shared/sockets/index.d.ts +2 -0
- package/dist/types/src/shared/sockets/prizeDropSocketService.d.ts +46 -0
- package/dist/types/src/shared/sockets/types.d.ts +48 -0
- package/dist/types/src/shared/ui/InfoConstructor/InfoConstructor.d.ts +6 -0
- package/dist/types/src/shared/ui/InfoConstructor/index.d.ts +5 -0
- package/dist/types/src/{entities/gameInfo/ui/GameInfoConstructor/items/GameInfoFeatureV1.d.ts → shared/ui/InfoConstructor/items/InfoFeatureV1.d.ts} +6 -5
- package/dist/types/src/{entities/gameInfo/ui/GameInfoConstructor/items/GameInfoFeatureV2.d.ts → shared/ui/InfoConstructor/items/InfoFeatureV2.d.ts} +6 -5
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoListItem.d.ts +12 -0
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoSubTitle.d.ts +15 -0
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoTableCell.d.ts +13 -0
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoTableHead.d.ts +13 -0
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoText.d.ts +13 -0
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoTitle.d.ts +12 -0
- package/dist/types/src/shared/ui/InfoConstructor/model/types.d.ts +43 -0
- package/dist/types/src/truelogic.d.ts +24 -24
- package/dist/types/src/widgets/modals/index.d.ts +3 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/live/ModalPrizeDropLive.d.ts +1 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/live/ModalPrizeDropLive.stories.d.ts +22 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/result/ModalPrizeDropResult.d.ts +1 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/result/ModalPrizeDropResult.stories.d.ts +25 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/success/ModalPrizeDropSuccess.d.ts +1 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/success/ModalPrizeDropSuccess.stories.d.ts +22 -0
- package/package.json +5 -1
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/GameInfoConstructor.d.ts +0 -1
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoListItem.d.ts +0 -11
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoSubTitle.d.ts +0 -12
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoTableCell.d.ts +0 -11
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoTableHead.d.ts +0 -11
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoText.d.ts +0 -11
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoTitle.d.ts +0 -11
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvent.d.ts +0 -1
- package/dist/types/src/shared/ui/Tabs/Tabs.d.ts +0 -11
- package/dist/types/src/shared/ui/Tabs/index.d.ts +0 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
type TProps = {
|
|
2
|
-
resourceUrl?: string;
|
|
3
2
|
id: string;
|
|
3
|
+
/** For stories without changing dimensions after loading */
|
|
4
|
+
forceDimensions: boolean;
|
|
5
|
+
resourceUrl?: string;
|
|
4
6
|
width?: string;
|
|
5
7
|
height?: string;
|
|
6
8
|
title?: string;
|
|
7
9
|
};
|
|
8
|
-
declare const StorybookPreview: ({ resourceUrl, id, width, height, title, }: TProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const StorybookPreview: ({ forceDimensions, resourceUrl, id, width: defaultWidth, height: defaultHeight, title, }: TProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export default StorybookPreview;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
StorybookPreview: ({ resourceUrl, id, width, height, title, }: {
|
|
3
|
-
resourceUrl?: string;
|
|
4
|
-
id: string;
|
|
5
|
-
width?: string;
|
|
6
|
-
height?: string;
|
|
7
|
-
title?: string;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
};
|
|
1
|
+
declare const _default: any;
|
|
10
2
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useSocketEvents(): void;
|
|
@@ -7,6 +7,7 @@ import { TWin } from "../../../entities/round";
|
|
|
7
7
|
import { TSoundsConfig } from "../../../entities/sound";
|
|
8
8
|
import { TMeetUiConfig } from "../../../features/meetUi";
|
|
9
9
|
import { TApiConfigFake } from "../../../shared/api/config";
|
|
10
|
+
import { TApiPrizeDropCampaignsListFake, TApiPrizeDropJoinCampaignFake, TApiPrizeDropSocketCredentialsFake } from "../../../shared/api/prizeDrop";
|
|
10
11
|
import { TApiRoundCloseFake } from "../../../shared/api/round/close";
|
|
11
12
|
import { TApiRoundOpenFake } from "../../../shared/api/round/open";
|
|
12
13
|
import { TApiRoundPlayFake } from "../../../shared/api/round/play";
|
|
@@ -33,6 +34,9 @@ export type TInitConfig = {
|
|
|
33
34
|
roundClose?: TApiRoundCloseFake;
|
|
34
35
|
roundsHistory?: TApiRoundsHistoryFake;
|
|
35
36
|
roundReplay?: TApiRoundReplayFake;
|
|
37
|
+
prizeDropCampaignsList?: TApiPrizeDropCampaignsListFake;
|
|
38
|
+
prizeDropJoinCampaign?: TApiPrizeDropJoinCampaignFake;
|
|
39
|
+
prizeDropSocketCredentials?: TApiPrizeDropSocketCredentialsFake;
|
|
36
40
|
};
|
|
37
41
|
analytics?: {
|
|
38
42
|
google?: TGoogleAnlyticsConfig;
|
|
@@ -56,7 +60,6 @@ export type TConfiguration = {
|
|
|
56
60
|
gameInfo?: TGameInfoConfig;
|
|
57
61
|
freeRounds?: TFreeRoundsConfig;
|
|
58
62
|
sounds?: TSoundsConfig;
|
|
59
|
-
logger?: TLoggerConfig;
|
|
60
63
|
fillFrame?: TFillFrameConfig;
|
|
61
64
|
meetUi?: TMeetUiConfig;
|
|
62
65
|
};
|
|
@@ -6,6 +6,7 @@ export declare const rootReducer: import("redux").Reducer<{
|
|
|
6
6
|
gameLoadingProgress: number;
|
|
7
7
|
imagesLoadingProgress: number;
|
|
8
8
|
areFontsLoaded: boolean;
|
|
9
|
+
areTranslationsLoaded: boolean;
|
|
9
10
|
isFinishedAnimation: boolean;
|
|
10
11
|
isPreloadSuccess: boolean;
|
|
11
12
|
isWaitingSuccess: boolean;
|
|
@@ -79,7 +80,7 @@ export declare const rootReducer: import("redux").Reducer<{
|
|
|
79
80
|
isModalReady: boolean;
|
|
80
81
|
serviceErrorName: string;
|
|
81
82
|
serviceErrorMessage: string;
|
|
82
|
-
serviceAutoplayType: import("../
|
|
83
|
+
serviceAutoplayType: import("../entities/autoplay").TAutoplayServiceModalType;
|
|
83
84
|
};
|
|
84
85
|
app: {
|
|
85
86
|
screen: import("../shared/model/app/appSlice").TScreen;
|
|
@@ -255,13 +256,13 @@ export declare const rootReducer: import("redux").Reducer<{
|
|
|
255
256
|
fake: import("../shared/api/roundsHistory").TApiRoundsHistoryFake;
|
|
256
257
|
};
|
|
257
258
|
gameInfo: {
|
|
258
|
-
|
|
259
|
+
deferredConfig: import("../entities/gameInfo").TGameInfoConfig;
|
|
260
|
+
containers: import("../shared/ui/InfoConstructor").TInfoContainer[];
|
|
259
261
|
background?: {
|
|
260
262
|
portrait?: string;
|
|
261
263
|
landscape?: string;
|
|
262
264
|
};
|
|
263
|
-
|
|
264
|
-
lastUpdate?: string;
|
|
265
|
+
preset?: import("../entities/gameInfo").TGameInfoPreset;
|
|
265
266
|
};
|
|
266
267
|
apiRoundPlay: {
|
|
267
268
|
data: import("../shared/api/round/play").TApiRoundPlayResponse;
|
|
@@ -314,10 +315,39 @@ export declare const rootReducer: import("redux").Reducer<{
|
|
|
314
315
|
showed?: boolean;
|
|
315
316
|
};
|
|
316
317
|
prizeDrop: {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
rulesContainers: import("../shared/ui/InfoConstructor").TInfoContainer[];
|
|
319
|
+
campaign?: import("../shared/model/prizeDrop").TPrizeDropCampaign;
|
|
320
|
+
winDropItem?: import("../shared/model/prizeDrop").TPrizeDropWinItem;
|
|
321
|
+
apiCampaignsList: {
|
|
322
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropCampaignsListResponse;
|
|
323
|
+
isPending: boolean;
|
|
324
|
+
error: {
|
|
325
|
+
name: string;
|
|
326
|
+
message: string;
|
|
327
|
+
};
|
|
328
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropCampaignsListFake;
|
|
329
|
+
};
|
|
330
|
+
apiJoinCampaign: {
|
|
331
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropJoinCampaignResponse;
|
|
332
|
+
isPending: boolean;
|
|
333
|
+
error: {
|
|
334
|
+
name: string;
|
|
335
|
+
message: string;
|
|
336
|
+
};
|
|
337
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropJoinCampaignFake;
|
|
338
|
+
};
|
|
339
|
+
apiSocketCredentials: {
|
|
340
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropSocketCredentialsResponse;
|
|
341
|
+
isPending: boolean;
|
|
342
|
+
error: {
|
|
343
|
+
name: string;
|
|
344
|
+
message: string;
|
|
345
|
+
};
|
|
346
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropSocketCredentialsFake;
|
|
320
347
|
};
|
|
348
|
+
socketConnection?: import("../shared/sockets").TPrizeDropSocketConnection;
|
|
349
|
+
restData?: import("../shared/api/prizeDrop").TPrizeDropApiData;
|
|
350
|
+
hasDefferedModal?: boolean;
|
|
321
351
|
};
|
|
322
352
|
}, import("redux").UnknownAction, Partial<{
|
|
323
353
|
viewPort: import("../shared/viewPort/lib/types").TViewPortState;
|
|
@@ -327,6 +357,7 @@ export declare const rootReducer: import("redux").Reducer<{
|
|
|
327
357
|
gameLoadingProgress: number;
|
|
328
358
|
imagesLoadingProgress: number;
|
|
329
359
|
areFontsLoaded: boolean;
|
|
360
|
+
areTranslationsLoaded: boolean;
|
|
330
361
|
isFinishedAnimation: boolean;
|
|
331
362
|
isPreloadSuccess: boolean;
|
|
332
363
|
isWaitingSuccess: boolean;
|
|
@@ -400,7 +431,7 @@ export declare const rootReducer: import("redux").Reducer<{
|
|
|
400
431
|
isModalReady: boolean;
|
|
401
432
|
serviceErrorName: string;
|
|
402
433
|
serviceErrorMessage: string;
|
|
403
|
-
serviceAutoplayType: import("../
|
|
434
|
+
serviceAutoplayType: import("../entities/autoplay").TAutoplayServiceModalType;
|
|
404
435
|
};
|
|
405
436
|
app: {
|
|
406
437
|
screen: import("../shared/model/app/appSlice").TScreen;
|
|
@@ -576,13 +607,13 @@ export declare const rootReducer: import("redux").Reducer<{
|
|
|
576
607
|
fake: import("../shared/api/roundsHistory").TApiRoundsHistoryFake;
|
|
577
608
|
};
|
|
578
609
|
gameInfo: {
|
|
579
|
-
|
|
610
|
+
deferredConfig: import("../entities/gameInfo").TGameInfoConfig;
|
|
611
|
+
containers: import("../shared/ui/InfoConstructor").TInfoContainer[];
|
|
580
612
|
background?: {
|
|
581
613
|
portrait?: string;
|
|
582
614
|
landscape?: string;
|
|
583
615
|
};
|
|
584
|
-
|
|
585
|
-
lastUpdate?: string;
|
|
616
|
+
preset?: import("../entities/gameInfo").TGameInfoPreset;
|
|
586
617
|
};
|
|
587
618
|
apiRoundPlay: {
|
|
588
619
|
data: import("../shared/api/round/play").TApiRoundPlayResponse;
|
|
@@ -635,10 +666,39 @@ export declare const rootReducer: import("redux").Reducer<{
|
|
|
635
666
|
showed?: boolean;
|
|
636
667
|
};
|
|
637
668
|
prizeDrop: {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
669
|
+
rulesContainers: import("../shared/ui/InfoConstructor").TInfoContainer[];
|
|
670
|
+
campaign?: import("../shared/model/prizeDrop").TPrizeDropCampaign;
|
|
671
|
+
winDropItem?: import("../shared/model/prizeDrop").TPrizeDropWinItem;
|
|
672
|
+
apiCampaignsList: {
|
|
673
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropCampaignsListResponse;
|
|
674
|
+
isPending: boolean;
|
|
675
|
+
error: {
|
|
676
|
+
name: string;
|
|
677
|
+
message: string;
|
|
678
|
+
};
|
|
679
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropCampaignsListFake;
|
|
680
|
+
};
|
|
681
|
+
apiJoinCampaign: {
|
|
682
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropJoinCampaignResponse;
|
|
683
|
+
isPending: boolean;
|
|
684
|
+
error: {
|
|
685
|
+
name: string;
|
|
686
|
+
message: string;
|
|
687
|
+
};
|
|
688
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropJoinCampaignFake;
|
|
641
689
|
};
|
|
690
|
+
apiSocketCredentials: {
|
|
691
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropSocketCredentialsResponse;
|
|
692
|
+
isPending: boolean;
|
|
693
|
+
error: {
|
|
694
|
+
name: string;
|
|
695
|
+
message: string;
|
|
696
|
+
};
|
|
697
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropSocketCredentialsFake;
|
|
698
|
+
};
|
|
699
|
+
socketConnection?: import("../shared/sockets").TPrizeDropSocketConnection;
|
|
700
|
+
restData?: import("../shared/api/prizeDrop").TPrizeDropApiData;
|
|
701
|
+
hasDefferedModal?: boolean;
|
|
642
702
|
};
|
|
643
703
|
}>>;
|
|
644
704
|
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
@@ -649,6 +709,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
649
709
|
gameLoadingProgress: number;
|
|
650
710
|
imagesLoadingProgress: number;
|
|
651
711
|
areFontsLoaded: boolean;
|
|
712
|
+
areTranslationsLoaded: boolean;
|
|
652
713
|
isFinishedAnimation: boolean;
|
|
653
714
|
isPreloadSuccess: boolean;
|
|
654
715
|
isWaitingSuccess: boolean;
|
|
@@ -722,7 +783,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
722
783
|
isModalReady: boolean;
|
|
723
784
|
serviceErrorName: string;
|
|
724
785
|
serviceErrorMessage: string;
|
|
725
|
-
serviceAutoplayType: import("../
|
|
786
|
+
serviceAutoplayType: import("../entities/autoplay").TAutoplayServiceModalType;
|
|
726
787
|
};
|
|
727
788
|
app: {
|
|
728
789
|
screen: import("../shared/model/app/appSlice").TScreen;
|
|
@@ -898,13 +959,13 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
898
959
|
fake: import("../shared/api/roundsHistory").TApiRoundsHistoryFake;
|
|
899
960
|
};
|
|
900
961
|
gameInfo: {
|
|
901
|
-
|
|
962
|
+
deferredConfig: import("../entities/gameInfo").TGameInfoConfig;
|
|
963
|
+
containers: import("../shared/ui/InfoConstructor").TInfoContainer[];
|
|
902
964
|
background?: {
|
|
903
965
|
portrait?: string;
|
|
904
966
|
landscape?: string;
|
|
905
967
|
};
|
|
906
|
-
|
|
907
|
-
lastUpdate?: string;
|
|
968
|
+
preset?: import("../entities/gameInfo").TGameInfoPreset;
|
|
908
969
|
};
|
|
909
970
|
apiRoundPlay: {
|
|
910
971
|
data: import("../shared/api/round/play").TApiRoundPlayResponse;
|
|
@@ -957,10 +1018,39 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
957
1018
|
showed?: boolean;
|
|
958
1019
|
};
|
|
959
1020
|
prizeDrop: {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
1021
|
+
rulesContainers: import("../shared/ui/InfoConstructor").TInfoContainer[];
|
|
1022
|
+
campaign?: import("../shared/model/prizeDrop").TPrizeDropCampaign;
|
|
1023
|
+
winDropItem?: import("../shared/model/prizeDrop").TPrizeDropWinItem;
|
|
1024
|
+
apiCampaignsList: {
|
|
1025
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropCampaignsListResponse;
|
|
1026
|
+
isPending: boolean;
|
|
1027
|
+
error: {
|
|
1028
|
+
name: string;
|
|
1029
|
+
message: string;
|
|
1030
|
+
};
|
|
1031
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropCampaignsListFake;
|
|
963
1032
|
};
|
|
1033
|
+
apiJoinCampaign: {
|
|
1034
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropJoinCampaignResponse;
|
|
1035
|
+
isPending: boolean;
|
|
1036
|
+
error: {
|
|
1037
|
+
name: string;
|
|
1038
|
+
message: string;
|
|
1039
|
+
};
|
|
1040
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropJoinCampaignFake;
|
|
1041
|
+
};
|
|
1042
|
+
apiSocketCredentials: {
|
|
1043
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropSocketCredentialsResponse;
|
|
1044
|
+
isPending: boolean;
|
|
1045
|
+
error: {
|
|
1046
|
+
name: string;
|
|
1047
|
+
message: string;
|
|
1048
|
+
};
|
|
1049
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropSocketCredentialsFake;
|
|
1050
|
+
};
|
|
1051
|
+
socketConnection?: import("../shared/sockets").TPrizeDropSocketConnection;
|
|
1052
|
+
restData?: import("../shared/api/prizeDrop").TPrizeDropApiData;
|
|
1053
|
+
hasDefferedModal?: boolean;
|
|
964
1054
|
};
|
|
965
1055
|
} & import("redux-persist/es/persistReducer").PersistPartial, import("redux").Action, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
966
1056
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
@@ -971,6 +1061,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
971
1061
|
gameLoadingProgress: number;
|
|
972
1062
|
imagesLoadingProgress: number;
|
|
973
1063
|
areFontsLoaded: boolean;
|
|
1064
|
+
areTranslationsLoaded: boolean;
|
|
974
1065
|
isFinishedAnimation: boolean;
|
|
975
1066
|
isPreloadSuccess: boolean;
|
|
976
1067
|
isWaitingSuccess: boolean;
|
|
@@ -1044,7 +1135,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
1044
1135
|
isModalReady: boolean;
|
|
1045
1136
|
serviceErrorName: string;
|
|
1046
1137
|
serviceErrorMessage: string;
|
|
1047
|
-
serviceAutoplayType: import("../
|
|
1138
|
+
serviceAutoplayType: import("../entities/autoplay").TAutoplayServiceModalType;
|
|
1048
1139
|
};
|
|
1049
1140
|
app: {
|
|
1050
1141
|
screen: import("../shared/model/app/appSlice").TScreen;
|
|
@@ -1220,13 +1311,13 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
1220
1311
|
fake: import("../shared/api/roundsHistory").TApiRoundsHistoryFake;
|
|
1221
1312
|
};
|
|
1222
1313
|
gameInfo: {
|
|
1223
|
-
|
|
1314
|
+
deferredConfig: import("../entities/gameInfo").TGameInfoConfig;
|
|
1315
|
+
containers: import("../shared/ui/InfoConstructor").TInfoContainer[];
|
|
1224
1316
|
background?: {
|
|
1225
1317
|
portrait?: string;
|
|
1226
1318
|
landscape?: string;
|
|
1227
1319
|
};
|
|
1228
|
-
|
|
1229
|
-
lastUpdate?: string;
|
|
1320
|
+
preset?: import("../entities/gameInfo").TGameInfoPreset;
|
|
1230
1321
|
};
|
|
1231
1322
|
apiRoundPlay: {
|
|
1232
1323
|
data: import("../shared/api/round/play").TApiRoundPlayResponse;
|
|
@@ -1279,10 +1370,39 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
1279
1370
|
showed?: boolean;
|
|
1280
1371
|
};
|
|
1281
1372
|
prizeDrop: {
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1373
|
+
rulesContainers: import("../shared/ui/InfoConstructor").TInfoContainer[];
|
|
1374
|
+
campaign?: import("../shared/model/prizeDrop").TPrizeDropCampaign;
|
|
1375
|
+
winDropItem?: import("../shared/model/prizeDrop").TPrizeDropWinItem;
|
|
1376
|
+
apiCampaignsList: {
|
|
1377
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropCampaignsListResponse;
|
|
1378
|
+
isPending: boolean;
|
|
1379
|
+
error: {
|
|
1380
|
+
name: string;
|
|
1381
|
+
message: string;
|
|
1382
|
+
};
|
|
1383
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropCampaignsListFake;
|
|
1384
|
+
};
|
|
1385
|
+
apiJoinCampaign: {
|
|
1386
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropJoinCampaignResponse;
|
|
1387
|
+
isPending: boolean;
|
|
1388
|
+
error: {
|
|
1389
|
+
name: string;
|
|
1390
|
+
message: string;
|
|
1391
|
+
};
|
|
1392
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropJoinCampaignFake;
|
|
1393
|
+
};
|
|
1394
|
+
apiSocketCredentials: {
|
|
1395
|
+
data: import("../shared/api/prizeDrop").TApiPrizeDropSocketCredentialsResponse;
|
|
1396
|
+
isPending: boolean;
|
|
1397
|
+
error: {
|
|
1398
|
+
name: string;
|
|
1399
|
+
message: string;
|
|
1400
|
+
};
|
|
1401
|
+
fake: import("../shared/api/prizeDrop").TApiPrizeDropSocketCredentialsFake;
|
|
1285
1402
|
};
|
|
1403
|
+
socketConnection?: import("../shared/sockets").TPrizeDropSocketConnection;
|
|
1404
|
+
restData?: import("../shared/api/prizeDrop").TPrizeDropApiData;
|
|
1405
|
+
hasDefferedModal?: boolean;
|
|
1286
1406
|
};
|
|
1287
1407
|
} & import("redux-persist/es/persistReducer").PersistPartial, undefined, import("redux").UnknownAction>;
|
|
1288
1408
|
}>, import("redux").StoreEnhancer]>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
export { TAutoplayServiceModalType } from './lib/types';
|
|
1
2
|
export { useAutoplayNumbers } from './lib/useAutoplayNumbers';
|
|
2
3
|
export { autoPlayReducer, calcAutoPlayLossLimit, decreaseAutoPlayNumber, getAutoPlayIsReadyForStart, setAutoPlayActiveIndex, setAutoPlayActiveNumber, setAutoPlayConfig, setAutoPlayEnd, setAutoPlayLossLimit, setAutoPlayProgress, setAutoPlaySingleWin, setAutoPlayStart, setAutoPlayStopInBonusGame, setAutoPlayVisibleDropdown, } from './model/autoPlaySlice';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TAutoplayServiceModalType = 'numSpins' | 'lossLimit' | 'singleWinLimit' | 'bonusReached';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { TComplianceSettings } from "../../../shared/api/config";
|
|
2
2
|
import { TComplianceOptions } from "../../../shared/lib/types/complianceOptions";
|
|
3
|
+
/** @deprecated */
|
|
3
4
|
export declare const isDisabledByCompliance: (complianceOptions: TComplianceOptions, complianceSettings: TComplianceSettings, isDesktop: boolean) => boolean;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
export { gameInfoReducer, setGameInfoConfig } from './model/gameInfoSlice';
|
|
2
|
-
export { TGameInfoConfig,
|
|
3
|
-
export { GameInfoConstructor } from './ui/GameInfoConstructor/GameInfoConstructor';
|
|
4
|
-
export { EFeatureAlignmentV1Type, GameInfoFeatureV1, TGameInfoFeatureV1, } from './ui/GameInfoConstructor/items/GameInfoFeatureV1';
|
|
5
|
-
export { EFeatureWidthV2Type, GameInfoFeatureV2, TGameInfoFeatureV2, } from './ui/GameInfoConstructor/items/GameInfoFeatureV2';
|
|
6
|
-
export { GameInfoListItem, TGameInfoListItem } from './ui/GameInfoConstructor/items/GameInfoListItem';
|
|
7
|
-
export { GameInfoSubTitle, TGameInfoSubTitle } from './ui/GameInfoConstructor/items/GameInfoSubTitle';
|
|
8
|
-
export { GameInfoTableCell, TGameInfoTableCell } from './ui/GameInfoConstructor/items/GameInfoTableCell';
|
|
9
|
-
export { GameInfoTableHead, TGameInfoTableHead } from './ui/GameInfoConstructor/items/GameInfoTableHead';
|
|
10
|
-
export { GameInfoText, TGameInfoText } from './ui/GameInfoConstructor/items/GameInfoText';
|
|
11
|
-
export { GameInfoTitle, TGameInfoTitle } from './ui/GameInfoConstructor/items/GameInfoTitle';
|
|
1
|
+
export { gameInfoReducer, saveGameInfoConfig, setGameInfoConfig } from './model/gameInfoSlice';
|
|
2
|
+
export { TGameInfoConfig, TGameInfoPreset } from './model/types';
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TAppThunkAction } from "../../../shared/lib/store";
|
|
2
|
+
import { TInfoContainer } from "../../../shared/ui/InfoConstructor";
|
|
3
|
+
import { TGameInfoConfig, TGameInfoPreset } from './types';
|
|
2
4
|
type TGameInfoState = {
|
|
3
|
-
|
|
5
|
+
deferredConfig: TGameInfoConfig;
|
|
6
|
+
containers: TInfoContainer[];
|
|
4
7
|
background?: {
|
|
5
8
|
portrait?: string;
|
|
6
9
|
landscape?: string;
|
|
7
10
|
};
|
|
8
|
-
|
|
9
|
-
lastUpdate?: string;
|
|
11
|
+
preset?: TGameInfoPreset;
|
|
10
12
|
};
|
|
11
|
-
export declare const
|
|
12
|
-
items: TGameInfoItem[];
|
|
13
|
-
version: string;
|
|
14
|
-
lastUpdate: string;
|
|
15
|
-
background?: {
|
|
16
|
-
portrait?: string;
|
|
17
|
-
landscape?: string;
|
|
18
|
-
};
|
|
19
|
-
}, "gameInfo/setGameInfoConfig">;
|
|
13
|
+
export declare const handleGameInfoConfig: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TGameInfoConfig, "gameInfo/handleGameInfoConfig">, saveGameInfoConfig: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TGameInfoConfig, "gameInfo/saveGameInfoConfig">;
|
|
20
14
|
export declare const gameInfoReducer: import("redux").Reducer<TGameInfoState>;
|
|
15
|
+
export declare const setGameInfoConfig: TAppThunkAction;
|
|
21
16
|
export {};
|
|
@@ -1,49 +1,16 @@
|
|
|
1
|
-
import { TComplianceOptions } from "../../../shared/lib/types/complianceOptions";
|
|
2
1
|
import { TAdaptiveImage } from "../../../shared/lib/types/image";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { TGameInfoSubTitle } from '../ui/GameInfoConstructor/items/GameInfoSubTitle';
|
|
7
|
-
import { TGameInfoTableCell } from '../ui/GameInfoConstructor/items/GameInfoTableCell';
|
|
8
|
-
import { TGameInfoTableHead } from '../ui/GameInfoConstructor/items/GameInfoTableHead';
|
|
9
|
-
import { TGameInfoText } from '../ui/GameInfoConstructor/items/GameInfoText';
|
|
10
|
-
import { TGameInfoTitle } from '../ui/GameInfoConstructor/items/GameInfoTitle';
|
|
11
|
-
export type TGameInfoSeparator = {
|
|
12
|
-
type: 'separator';
|
|
13
|
-
size?: 'default' | 'small';
|
|
14
|
-
} & TComplianceOptions;
|
|
15
|
-
export type TGameInfoItem = TGameInfoTitle | TGameInfoFeatureV1 | TGameInfoFeatureV2 | TGameInfoSeparator | TGameInfoSubTitle | TGameInfoText | TGameInfoListItem | TGameInfoTableHead | TGameInfoTableCell;
|
|
16
|
-
export type TGameInfoContainer = {
|
|
17
|
-
type: TGameInfoTitle['type'];
|
|
18
|
-
items: TGameInfoTitle[];
|
|
19
|
-
} | {
|
|
20
|
-
type: TGameInfoFeatureV1['type'];
|
|
21
|
-
items: TGameInfoFeatureV1[];
|
|
22
|
-
} | {
|
|
23
|
-
type: TGameInfoFeatureV2['type'];
|
|
24
|
-
items: TGameInfoFeatureV2[];
|
|
25
|
-
} | {
|
|
26
|
-
type: TGameInfoSeparator['type'];
|
|
27
|
-
items: TGameInfoSeparator[];
|
|
28
|
-
} | {
|
|
29
|
-
type: TGameInfoSubTitle['type'];
|
|
30
|
-
items: TGameInfoSubTitle[];
|
|
31
|
-
} | {
|
|
32
|
-
type: TGameInfoText['type'];
|
|
33
|
-
items: TGameInfoText[];
|
|
34
|
-
} | {
|
|
35
|
-
type: TGameInfoListItem['type'];
|
|
36
|
-
items: TGameInfoListItem[];
|
|
37
|
-
} | {
|
|
38
|
-
type: TGameInfoTableHead['type'];
|
|
39
|
-
items: TGameInfoTableHead[];
|
|
40
|
-
} | {
|
|
41
|
-
type: TGameInfoTableCell['type'];
|
|
42
|
-
items: TGameInfoTableCell[];
|
|
43
|
-
};
|
|
44
|
-
export type TGameInfoConfig = {
|
|
45
|
-
items: TGameInfoItem[];
|
|
2
|
+
import { TInfoItem } from "../../../shared/ui/InfoConstructor";
|
|
3
|
+
export type TGameInfoPreset = {
|
|
4
|
+
name: 'truelab-game';
|
|
46
5
|
version: string;
|
|
47
6
|
lastUpdate: string;
|
|
7
|
+
};
|
|
8
|
+
export type TGameInfoConfig = {
|
|
9
|
+
items: TInfoItem[];
|
|
10
|
+
/** @deprecated */
|
|
11
|
+
version?: string;
|
|
12
|
+
/** @deprecated */
|
|
13
|
+
lastUpdate?: string;
|
|
48
14
|
background?: TAdaptiveImage;
|
|
15
|
+
preset?: TGameInfoPreset;
|
|
49
16
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { useLoadingListeners } from './lib/useLoadingListeners';
|
|
2
|
-
export { getLoadingIsSuccess, getLoadingProgress, loadingReducer, preloadFonts, preloadImages, preloadLoadingImages, setLoadingAssetsPreloaded, setLoadingConfig, setLoadingFinishedAnimation, setLoadingFontsLoaded, setLoadingGameProgress, setLoadingGameStarted, setLoadingWaitingSuccess, } from './model/loadingSlice';
|
|
2
|
+
export { getLoadingIsSuccess, getLoadingProgress, loadingReducer, preloadFonts, preloadImages, preloadLoadingImages, preloadTranslations, setLoadingAssetsPreloaded, setLoadingConfig, setLoadingFinishedAnimation, setLoadingFontsLoaded, setLoadingGameProgress, setLoadingGameStarted, setLoadingWaitingSuccess, } from './model/loadingSlice';
|
|
3
3
|
export { GameLoader } from './ui/default/GameLoader';
|
|
4
4
|
export { GameLoaderPro } from './ui/pro/GameLoaderPro';
|
|
@@ -6,6 +6,7 @@ type TLoadingState = {
|
|
|
6
6
|
gameLoadingProgress: number;
|
|
7
7
|
imagesLoadingProgress: number;
|
|
8
8
|
areFontsLoaded: boolean;
|
|
9
|
+
areTranslationsLoaded: boolean;
|
|
9
10
|
isFinishedAnimation: boolean;
|
|
10
11
|
isPreloadSuccess: boolean;
|
|
11
12
|
isWaitingSuccess: boolean;
|
|
@@ -15,7 +16,7 @@ type TLoadingState = {
|
|
|
15
16
|
imagesToLoad: number;
|
|
16
17
|
imagesLoaded: number;
|
|
17
18
|
};
|
|
18
|
-
export declare const setLoadingGameProgress: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number, "loading/setLoadingGameProgress">, setLoadingFinishedAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "loading/setLoadingFinishedAnimation">, setLoadingWaitingSuccess: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "loading/setLoadingWaitingSuccess">, setLoadingConfig: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TLoadingConfig, "loading/setLoadingConfig">, setLoadingImagesToLoad: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number, "loading/setLoadingImagesToLoad">, setLoadingImagesLoaded: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number, "loading/setLoadingImagesLoaded">, setLoadingGameStarted: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"loading/setLoadingGameStarted">, setLoadingPreloadingSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"loading/setLoadingPreloadingSuccess">, setLoadingAssetsPreloaded: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"loading/setLoadingAssetsPreloaded">, setLoadingFontsLoaded: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"loading/setLoadingFontsLoaded">;
|
|
19
|
+
export declare const setLoadingGameProgress: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number, "loading/setLoadingGameProgress">, setLoadingFinishedAnimation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "loading/setLoadingFinishedAnimation">, setLoadingWaitingSuccess: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "loading/setLoadingWaitingSuccess">, setLoadingConfig: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TLoadingConfig, "loading/setLoadingConfig">, setLoadingImagesToLoad: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number, "loading/setLoadingImagesToLoad">, setLoadingImagesLoaded: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number, "loading/setLoadingImagesLoaded">, setLoadingGameStarted: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"loading/setLoadingGameStarted">, setLoadingPreloadingSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"loading/setLoadingPreloadingSuccess">, setLoadingAssetsPreloaded: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"loading/setLoadingAssetsPreloaded">, setLoadingFontsLoaded: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"loading/setLoadingFontsLoaded">, setLoadingTranslationsLoaded: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"loading/setLoadingTranslationsLoaded">;
|
|
19
20
|
export declare const getLoadingIsSuccess: import("reselect").Selector<{
|
|
20
21
|
loading: TLoadingState;
|
|
21
22
|
}, boolean, []> & {
|
|
@@ -29,4 +30,5 @@ export declare const loadingReducer: import("redux").Reducer<TLoadingState>;
|
|
|
29
30
|
export declare const preloadImages: TAppThunkAction<string[]>;
|
|
30
31
|
export declare const preloadFonts: TAppThunkAction<TFontsConfig>;
|
|
31
32
|
export declare const preloadLoadingImages: TAppThunkAction<string[]>;
|
|
33
|
+
export declare const preloadTranslations: TAppThunkAction<string>;
|
|
32
34
|
export {};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
export { prizeDropReducer } from './model/prizeDropSlice';
|
|
1
|
+
export { clearPrizeDropWinItem, connectPrizeDropSocketService, fetchApiPrizeDropCampaignsList, fetchApiPrizeDropJoinCampaign, fetchApiPrizeDropSocketCredentials, getPrizeDropMode, handlePrizeDropSocketEventCampaignUpdated, handlePrizeDropSocketEventDrop, isPrizeDropActive, isPrizeDropJoined, joinPrizeDropCampaign, prizeDropReducer, setApiPrizeDropCampaignsListFake, setApiPrizeDropJoinCampaignFake, setApiPrizeDropSocketCredentialsFake, setPrizeDropCampaign, setPrizeDropRestData, setPrizeDropRulesConfig, setPrizeDropSocketData, setPrizeDropWinItem, TPrizeDropMode, } from './model/prizeDropSlice';
|
|
2
2
|
export { PanelPrizeDrop } from './ui/PanelPrizeDrop';
|
|
3
|
-
export {
|
|
3
|
+
export { PrizeDropBadge } from './ui/PrizeDropBadge';
|
|
4
|
+
export { PrizeDropButton } from './ui/PrizeDropButton';
|
|
5
|
+
export { PrizeDropEvents } from './ui/PrizeDropEvents';
|
|
6
|
+
export { PrizeDropInterval } from './ui/PrizeDropInterval';
|
|
7
|
+
export { PrizeDropPrizePool } from './ui/PrizeDropPrizePool';
|
|
4
8
|
export { PrizeDropRules } from './ui/PrizeDropRules';
|
|
9
|
+
export { TabsHeader, TTabId, TTabsHeaderConfig } from './ui/TabsHeader';
|
|
@@ -1,8 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TApiPrizeDropCampaignsListError, TApiPrizeDropCampaignsListFake, TApiPrizeDropCampaignsListResponse, TApiPrizeDropJoinCampaignError, TApiPrizeDropJoinCampaignFake, TApiPrizeDropJoinCampaignPayload, TApiPrizeDropJoinCampaignResponse, TApiPrizeDropSocketCredentials, TApiPrizeDropSocketCredentialsError, TApiPrizeDropSocketCredentialsFake, TApiPrizeDropSocketCredentialsResponse, TPrizeDropApiData } from "../../../shared/api/prizeDrop";
|
|
2
|
+
import { TAppThunkAction } from "../../../shared/lib/store";
|
|
3
|
+
import { TPrizeDropCampaign, TPrizeDropWinItem } from "../../../shared/model/prizeDrop";
|
|
4
|
+
import { TPrizeDropSocketConnection, TPrizeDropSocketEventPayloadCampaignUpdated, TPrizeDropSocketEventPayloadDrop } from "../../../shared/sockets";
|
|
5
|
+
import { TInfoContainer, TInfoItem } from "../../../shared/ui/InfoConstructor";
|
|
6
|
+
export type TPrizeDropMode = 'live' | 'upcoming' | 'ended';
|
|
7
|
+
type TApiData<D, F> = {
|
|
8
|
+
data: D;
|
|
9
|
+
isPending: boolean;
|
|
10
|
+
error: {
|
|
11
|
+
name: string;
|
|
12
|
+
message: string;
|
|
5
13
|
};
|
|
14
|
+
fake: F;
|
|
15
|
+
};
|
|
16
|
+
type TPrizeDropsState = {
|
|
17
|
+
rulesContainers: TInfoContainer[];
|
|
18
|
+
campaign?: TPrizeDropCampaign;
|
|
19
|
+
winDropItem?: TPrizeDropWinItem;
|
|
20
|
+
apiCampaignsList: TApiData<TApiPrizeDropCampaignsListResponse, TApiPrizeDropCampaignsListFake>;
|
|
21
|
+
apiJoinCampaign: TApiData<TApiPrizeDropJoinCampaignResponse, TApiPrizeDropJoinCampaignFake>;
|
|
22
|
+
apiSocketCredentials: TApiData<TApiPrizeDropSocketCredentialsResponse, TApiPrizeDropSocketCredentialsFake>;
|
|
23
|
+
socketConnection?: TPrizeDropSocketConnection;
|
|
24
|
+
restData?: TPrizeDropApiData;
|
|
25
|
+
hasDefferedModal?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare const setPrizeDropRulesConfig: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
28
|
+
items: TInfoItem[];
|
|
29
|
+
}, "prizeDrop/setPrizeDropRulesConfig">, setPrizeDropCampaign: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPrizeDropCampaign, "prizeDrop/setPrizeDropCampaign">, setPrizeDropSocketEventCampaignUpdated: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPrizeDropSocketEventPayloadCampaignUpdated, "prizeDrop/setPrizeDropSocketEventCampaignUpdated">, setPrizeDropSocketEventDrop: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPrizeDropSocketEventPayloadDrop, "prizeDrop/setPrizeDropSocketEventDrop">, setPrizeDropWinItem: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPrizeDropWinItem, "prizeDrop/setPrizeDropWinItem">, clearPrizeDropWinItem: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"prizeDrop/clearPrizeDropWinItem">, setApiPrizeDropCampaignsListFake: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TApiPrizeDropCampaignsListFake, "prizeDrop/setApiPrizeDropCampaignsListFake">, setApiPrizeDropJoinCampaignFake: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TApiPrizeDropJoinCampaignFake, "prizeDrop/setApiPrizeDropJoinCampaignFake">, setApiPrizeDropSocketCredentialsFake: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TApiPrizeDropSocketCredentialsFake, "prizeDrop/setApiPrizeDropSocketCredentialsFake">, setPrizeDropRestData: import("@reduxjs/toolkit").ActionCreatorWithNonInferrablePayload<"prizeDrop/setPrizeDropRestData">, fetchApiPrizeDropCampaignsList: import("@reduxjs/toolkit").AsyncThunk<TApiPrizeDropCampaignsListResponse, void, {
|
|
30
|
+
rejectValue: TApiPrizeDropCampaignsListError;
|
|
31
|
+
}>, fetchApiPrizeDropJoinCampaign: import("@reduxjs/toolkit").AsyncThunk<TApiPrizeDropJoinCampaignResponse, TApiPrizeDropJoinCampaignPayload, {
|
|
32
|
+
rejectValue: TApiPrizeDropJoinCampaignError;
|
|
33
|
+
}>, fetchApiPrizeDropSocketCredentials: import("@reduxjs/toolkit").AsyncThunk<TApiPrizeDropSocketCredentialsResponse, void, {
|
|
34
|
+
rejectValue: TApiPrizeDropSocketCredentialsError;
|
|
35
|
+
}>, setPrizeDropSocketData: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TApiPrizeDropSocketCredentials, "prizeDrop/setPrizeDropSocketData">, connectPrizeDropSocketService: import("@reduxjs/toolkit").AsyncThunk<Promise<void>, void, {
|
|
36
|
+
rejectValue: TApiPrizeDropSocketCredentialsError;
|
|
37
|
+
}>, setPrizeDropDefferedModal: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "prizeDrop/setPrizeDropDefferedModal">, joinPrizeDropCampaign: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
38
|
+
campaignId: string;
|
|
39
|
+
}, "prizeDrop/joinPrizeDropCampaign">;
|
|
40
|
+
export declare const isPrizeDropActive: import("reselect").Selector<{
|
|
41
|
+
prizeDrop: TPrizeDropsState;
|
|
42
|
+
}, boolean, []> & {
|
|
43
|
+
unwrapped: (state: TPrizeDropsState) => boolean;
|
|
44
|
+
}, getPrizeDropMode: import("reselect").Selector<{
|
|
45
|
+
prizeDrop: TPrizeDropsState;
|
|
46
|
+
}, TPrizeDropMode, []> & {
|
|
47
|
+
unwrapped: (state: TPrizeDropsState) => TPrizeDropMode;
|
|
48
|
+
}, isPrizeDropJoined: import("reselect").Selector<{
|
|
49
|
+
prizeDrop: TPrizeDropsState;
|
|
50
|
+
}, boolean, []> & {
|
|
51
|
+
unwrapped: (state: TPrizeDropsState) => boolean;
|
|
6
52
|
};
|
|
7
53
|
export declare const prizeDropReducer: import("redux").Reducer<TPrizeDropsState>;
|
|
54
|
+
export declare const handlePrizeDropSocketEventCampaignUpdated: TAppThunkAction;
|
|
55
|
+
export declare const handlePrizeDropSocketEventDrop: TAppThunkAction;
|
|
8
56
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TPrizeDropMode } from '../model/prizeDropSlice';
|
|
2
|
+
type TProps = {
|
|
3
|
+
prizeDropMode: TPrizeDropMode;
|
|
4
|
+
className: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const PrizeDropBadge: ({ prizeDropMode, className }: TProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PrizeDropEvents: () => import("react/jsx-runtime").JSX.Element;
|