@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,6 +1,6 @@
|
|
|
1
1
|
import { TConfiguration, TInitConfig } from './app/lib/singletones/publicEmitter';
|
|
2
2
|
import { TSpinEndedOptions, TStepEndedOptions } from './entities/play';
|
|
3
|
-
import { TWin } from './entities/round
|
|
3
|
+
import { TWin } from './entities/round';
|
|
4
4
|
import { TGameReadyResponse, TInitResponse } from './shared/lib/singletones/gameEmitter';
|
|
5
5
|
import { TPanelCounterData } from './shared/model/panels';
|
|
6
6
|
declare class TrueLogic {
|
|
@@ -27,7 +27,7 @@ declare class TrueLogic {
|
|
|
27
27
|
* @example
|
|
28
28
|
* truelogic.cashFormatter.formatCash(250, { showCurrency: true }) // '250 EUR'
|
|
29
29
|
*/
|
|
30
|
-
formatCash: (cashValue: number, options?: import("./shared/lib/classes/cashService").
|
|
30
|
+
formatCash: (cashValue: number, options?: import("./shared/lib/classes/cashService").TFormatCashOptions) => string;
|
|
31
31
|
};
|
|
32
32
|
utils: {
|
|
33
33
|
/**
|
|
@@ -48,7 +48,7 @@ declare class TrueLogic {
|
|
|
48
48
|
* Loads the initial game configuration. Initializes analytics, prepares UI for rendering and makes session activation request
|
|
49
49
|
* @example
|
|
50
50
|
* const initResponse = await trueLogic.init()
|
|
51
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
51
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/init
|
|
52
52
|
*/
|
|
53
53
|
init(initConfig?: TInitConfig): Promise<TInitResponse>;
|
|
54
54
|
/**
|
|
@@ -57,98 +57,98 @@ declare class TrueLogic {
|
|
|
57
57
|
* await truelogic.configure({
|
|
58
58
|
* // your required configuration
|
|
59
59
|
* })
|
|
60
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
60
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/configure
|
|
61
61
|
*/
|
|
62
62
|
configure(configuration: TConfiguration): Promise<unknown>;
|
|
63
63
|
/**
|
|
64
64
|
* Triggers the start of the game assets loading process. Displays the loading screen. Waits until the loading screen assets are loaded
|
|
65
65
|
* @example
|
|
66
66
|
* trueLogic.startLoading()
|
|
67
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
67
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/startloading
|
|
68
68
|
*/
|
|
69
69
|
startLoading(): Promise<unknown>;
|
|
70
70
|
/**
|
|
71
71
|
* Updates loading progress.
|
|
72
72
|
* @example
|
|
73
73
|
* trueLogic.setLoadingProgress(50)
|
|
74
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
74
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/setloadingprogress
|
|
75
75
|
*/
|
|
76
76
|
setLoadingProgress(progress: number): void;
|
|
77
77
|
/**
|
|
78
78
|
* Ends the loading process. Waits until inner TrueLogic assets are loaded
|
|
79
79
|
* @example
|
|
80
80
|
* await trueLogic.endLoading()
|
|
81
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
81
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/endloading
|
|
82
82
|
*/
|
|
83
83
|
endLoading(): Promise<unknown>;
|
|
84
84
|
/**
|
|
85
85
|
* Marks the game as ready and opens the welcome screen. Waits until the welcome screen is closed
|
|
86
86
|
* @example
|
|
87
87
|
* await trueLogic.setGameReady()
|
|
88
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
88
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/setgameready
|
|
89
89
|
*/
|
|
90
90
|
setGameReady(): Promise<TGameReadyResponse>;
|
|
91
91
|
/**
|
|
92
92
|
* Hides the panel buttons for specific in-game screens (big win, etc).
|
|
93
93
|
* @example
|
|
94
94
|
* trueLogic.hideUI()
|
|
95
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
95
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/hideui
|
|
96
96
|
*/
|
|
97
97
|
hideUI(): void;
|
|
98
98
|
/**
|
|
99
99
|
* Shows the panel buttons which was hidden by hideUI() method
|
|
100
100
|
* @example
|
|
101
101
|
* trueLogic.showUI()
|
|
102
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
102
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/showui
|
|
103
103
|
*/
|
|
104
104
|
showUI(): void;
|
|
105
105
|
/**
|
|
106
106
|
* Sets the active bonus modes. Use this for specific in-game modes
|
|
107
107
|
* @example
|
|
108
108
|
* trueLogic.setActiveBonusModes(['buyBonus-extreme', 'buyBonusSuper-extreme'])
|
|
109
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
109
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/setactivebonusmodes
|
|
110
110
|
*/
|
|
111
111
|
setActiveBonusModes(bonusModeNames: string[]): void;
|
|
112
112
|
/**
|
|
113
113
|
* Sets parameters for current stake mode. Use this if the game supports specific data for the stake mode
|
|
114
114
|
* @example
|
|
115
115
|
* trueLogic.setStakeParams(JSON.stringify({ extraMode: 'custom' }))
|
|
116
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
116
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/setstakeparams
|
|
117
117
|
*/
|
|
118
118
|
setStakeParams(params: string): void;
|
|
119
119
|
/**
|
|
120
120
|
* Marks the spin is started. Call the method in the beginning of each spin
|
|
121
121
|
* @example
|
|
122
122
|
* trueLogic.startSpin()
|
|
123
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
123
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/startspin
|
|
124
124
|
*/
|
|
125
125
|
startSpin(): void;
|
|
126
126
|
/**
|
|
127
127
|
* Marks the spin is ended. Waits until autoplay bonus limit modal is closed if the limit was activated
|
|
128
128
|
* @example
|
|
129
129
|
* await trueLogic.endSpin({ isBonusReached: true })
|
|
130
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
130
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/endspin
|
|
131
131
|
*/
|
|
132
132
|
endSpin(spinEndedOptions: TSpinEndedOptions): Promise<unknown>;
|
|
133
133
|
/**
|
|
134
134
|
* Marks the spin is ended. Waits until max win modal is closed if the win was reached
|
|
135
135
|
* @example
|
|
136
136
|
* trueLogic.endStep({ hasMaxWin: true })
|
|
137
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
137
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/endstep
|
|
138
138
|
*/
|
|
139
139
|
endStep(stepEndedOptions: TStepEndedOptions): void;
|
|
140
140
|
/**
|
|
141
141
|
* Marks the skip is available. Skip button is enabled
|
|
142
142
|
* @example
|
|
143
143
|
* trueLogic.enableSkip()
|
|
144
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
144
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/enableskip
|
|
145
145
|
*/
|
|
146
146
|
enableSkip(): void;
|
|
147
147
|
/**
|
|
148
148
|
* Marks the skip is unavailable. Skip button is disabled
|
|
149
149
|
* @example
|
|
150
150
|
* trueLogic.disableSkip()
|
|
151
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
151
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/disableskip
|
|
152
152
|
*/
|
|
153
153
|
disableSkip(): void;
|
|
154
154
|
/**
|
|
@@ -162,49 +162,49 @@ declare class TrueLogic {
|
|
|
162
162
|
* Makes a choice. Trigger the method using in-game component to select the next gameplay step
|
|
163
163
|
* @example
|
|
164
164
|
* trueLogic.makeChoice(2)
|
|
165
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
165
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/makechoice
|
|
166
166
|
*/
|
|
167
167
|
makeChoice(choice: number): void;
|
|
168
168
|
/**
|
|
169
169
|
* Sets a win result. Win amount is displayed in currency
|
|
170
170
|
* @example
|
|
171
171
|
* trueLogic.setWin({ winCash: 1000, mode: 'total', animate: true })
|
|
172
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
172
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/setwin
|
|
173
173
|
*/
|
|
174
174
|
setWin(win: TWin): void;
|
|
175
175
|
/**
|
|
176
176
|
* Opens the tap-anywhere component. Waits until click/tap/Esc is triggered to close the component
|
|
177
177
|
* @example
|
|
178
178
|
* await trueLogic.startTapAnywhere()
|
|
179
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
179
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/starttapanywhere
|
|
180
180
|
*/
|
|
181
181
|
startTapAnywhere(autocloseDelay?: number): Promise<unknown>;
|
|
182
182
|
/**
|
|
183
183
|
* Sets some test data for each round open request to handle them on game server. Don't use this on production!
|
|
184
184
|
* @example
|
|
185
185
|
* trueLogic.setTest(JSON.stringify(testSettings))
|
|
186
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
186
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/settest
|
|
187
187
|
*/
|
|
188
188
|
setTest(test: string): void;
|
|
189
189
|
/**
|
|
190
190
|
* Updates the panel counter with new data. Shows the counter first time if it was hidden
|
|
191
191
|
* @example
|
|
192
192
|
* trueLogic.updatePanelCounter({ count: 5, title: 'Free spins' })
|
|
193
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
193
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/updatepanelcounter
|
|
194
194
|
*/
|
|
195
195
|
updatePanelCounter(data: TPanelCounterData): void;
|
|
196
196
|
/**
|
|
197
197
|
* Hides the panel counter
|
|
198
198
|
* @example
|
|
199
199
|
* trueLogic.hidePanelCounter()
|
|
200
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
200
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/hidepanelcounter
|
|
201
201
|
*/
|
|
202
202
|
hidePanelCounter(): void;
|
|
203
203
|
/**
|
|
204
204
|
* Sets the stake level. Use this if the game has custom level selection component
|
|
205
205
|
* @example
|
|
206
206
|
* trueLogic.setStakeLevel(3)
|
|
207
|
-
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods
|
|
207
|
+
* @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/setstakelevel
|
|
208
208
|
*/
|
|
209
209
|
setStakeLevel(level: number): void;
|
|
210
210
|
}
|
|
@@ -22,5 +22,8 @@ export { ModalServiceQuitTheGame } from './ui/ModalServiceQuitTheGame';
|
|
|
22
22
|
export { ModalServiceRestore } from './ui/ModalServiceRestore';
|
|
23
23
|
export { ModalSettings } from './ui/ModalSettings';
|
|
24
24
|
export { ModalPrizeDropCongratulation } from './ui/prizeDrop/congratulation/ModalPrizeDropCongratulation';
|
|
25
|
+
export { ModalPrizeDropLive } from './ui/prizeDrop/live/ModalPrizeDropLive';
|
|
25
26
|
export { ModalPrizeDrop } from './ui/prizeDrop/ModalPrizeDrop';
|
|
27
|
+
export { ModalPrizeDropResult } from './ui/prizeDrop/result/ModalPrizeDropResult';
|
|
28
|
+
export { ModalPrizeDropSuccess } from './ui/prizeDrop/success/ModalPrizeDropSuccess';
|
|
26
29
|
export { ModalPrizeDropUnclaimed } from './ui/prizeDrop/unclaimed/ModalPrizeDropUnclaimed';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModalPrizeDropLive: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
decorators: (((Story: import("@storybook/csf").PartialStoryFn<import("@storybook/react").ReactRenderer>, { parameters }: {
|
|
6
|
+
parameters: {
|
|
7
|
+
storePartial?: DeepPartial<TRootState>;
|
|
8
|
+
};
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element) | ((Story: import("@storybook/csf").PartialStoryFn<import("@storybook/react").ReactRenderer>, { parameters }: {
|
|
10
|
+
parameters: {
|
|
11
|
+
imagesToLoad?: string[];
|
|
12
|
+
};
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element))[];
|
|
14
|
+
parameters: {
|
|
15
|
+
imagesToLoad: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
type TStory = StoryObj<typeof meta>;
|
|
20
|
+
export declare const Landscape: TStory;
|
|
21
|
+
export declare const Portrait: TStory;
|
|
22
|
+
export declare const PortraitWide: TStory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModalPrizeDropResult: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
decorators: (((Story: import("@storybook/csf").PartialStoryFn<import("@storybook/react").ReactRenderer>, { parameters }: {
|
|
6
|
+
parameters: {
|
|
7
|
+
storePartial?: DeepPartial<TRootState>;
|
|
8
|
+
};
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element) | ((Story: import("@storybook/csf").PartialStoryFn<import("@storybook/react").ReactRenderer>, { parameters }: {
|
|
10
|
+
parameters: {
|
|
11
|
+
imagesToLoad?: string[];
|
|
12
|
+
};
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element))[];
|
|
14
|
+
parameters: {
|
|
15
|
+
imagesToLoad: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
type TStory = StoryObj<typeof meta>;
|
|
20
|
+
export declare const EndedLandscape: TStory;
|
|
21
|
+
export declare const EndedPortrait: TStory;
|
|
22
|
+
export declare const EndedPortraitWide: TStory;
|
|
23
|
+
export declare const CancelledLandscape: TStory;
|
|
24
|
+
export declare const CancelledPortrait: TStory;
|
|
25
|
+
export declare const CancelledPortraitWide: TStory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModalPrizeDropSuccess: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
decorators: (((Story: import("@storybook/csf").PartialStoryFn<import("@storybook/react").ReactRenderer>, { parameters }: {
|
|
6
|
+
parameters: {
|
|
7
|
+
storePartial?: DeepPartial<TRootState>;
|
|
8
|
+
};
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element) | ((Story: import("@storybook/csf").PartialStoryFn<import("@storybook/react").ReactRenderer>, { parameters }: {
|
|
10
|
+
parameters: {
|
|
11
|
+
imagesToLoad?: string[];
|
|
12
|
+
};
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element))[];
|
|
14
|
+
parameters: {
|
|
15
|
+
imagesToLoad: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
type TStory = StoryObj<typeof meta>;
|
|
20
|
+
export declare const Landscape: TStory;
|
|
21
|
+
export declare const Portrait: TStory;
|
|
22
|
+
export declare const PortraitWide: TStory;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truelab/truelogic",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/truelogic.min.js",
|
|
6
6
|
"types": "./dist/types/src/truelogic.d.ts",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"prepare": "husky install",
|
|
31
31
|
"docs": "npm start --prefix ./docs",
|
|
32
32
|
"storybook": "storybook dev -p 2992 -c ./config/storybook",
|
|
33
|
+
"storybook:docs": "storybook dev -p 2992 -c ./config/storybook -- --docs",
|
|
33
34
|
"loki": "loki test --diffingEngine looks-same",
|
|
34
35
|
"loki:approve": "loki approve",
|
|
35
36
|
"loki:ci": "loki --diffingEngine looks-same --chromeDockerWithoutSeccomp --verboseRenderer --requireReference --reactUri file:./dist/storybook --chromeFlags=\"--headless --disable-gpu --hide-scrollbars --no-sandbox\""
|
|
@@ -75,6 +76,7 @@
|
|
|
75
76
|
"@typescript-eslint/parser": "^7.1.0",
|
|
76
77
|
"autoprefixer": "^10.4.19",
|
|
77
78
|
"classnames": "^2.5.1",
|
|
79
|
+
"copy-webpack-plugin": "^13.0.0",
|
|
78
80
|
"css-loader": "^6.10.0",
|
|
79
81
|
"css-minimizer-webpack-plugin": "^6.0.0",
|
|
80
82
|
"docs": "file:docs",
|
|
@@ -132,6 +134,7 @@
|
|
|
132
134
|
"@rlx/feim": "^1.16.0",
|
|
133
135
|
"@sentry/react": "^9.9.0",
|
|
134
136
|
"bankers-round": "^1.0.7",
|
|
137
|
+
"dayjs": "^1.11.13",
|
|
135
138
|
"decimal.js-light": "^2.5.1",
|
|
136
139
|
"inline-style-prefixer": "^7.0.1",
|
|
137
140
|
"jwt-decode": "^4.0.0",
|
|
@@ -139,6 +142,7 @@
|
|
|
139
142
|
"react": "19.0.0",
|
|
140
143
|
"react-dom": "19.0.0",
|
|
141
144
|
"redux-persist": "^6.0.0",
|
|
145
|
+
"socket.io-client": "^4.8.1",
|
|
142
146
|
"swiper": "^11.1.9"
|
|
143
147
|
},
|
|
144
148
|
"overrides": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GameInfoConstructor: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TComplianceOptions } from "../../../../../shared/lib/types/complianceOptions";
|
|
3
|
-
export type TGameInfoListItem = {
|
|
4
|
-
type: 'list-item';
|
|
5
|
-
text: string;
|
|
6
|
-
} & TComplianceOptions;
|
|
7
|
-
type TGameInfoListItemProps = {
|
|
8
|
-
item: TGameInfoListItem;
|
|
9
|
-
};
|
|
10
|
-
export declare const GameInfoListItem: FC<TGameInfoListItemProps>;
|
|
11
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TComplianceOptions } from "../../../../../shared/lib/types/complianceOptions";
|
|
3
|
-
export type TGameInfoSubTitle = {
|
|
4
|
-
type: 'subtitle';
|
|
5
|
-
text: string;
|
|
6
|
-
} & TComplianceOptions;
|
|
7
|
-
type TGameInfoSubTitleProps = {
|
|
8
|
-
item: TGameInfoSubTitle;
|
|
9
|
-
isFirstElement: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const GameInfoSubTitle: FC<TGameInfoSubTitleProps>;
|
|
12
|
-
export {};
|
package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoTableCell.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TComplianceOptions } from "../../../../../shared/lib/types/complianceOptions";
|
|
3
|
-
export type TGameInfoTableCell = {
|
|
4
|
-
type: 'table-cell';
|
|
5
|
-
values: [string, string];
|
|
6
|
-
} & TComplianceOptions;
|
|
7
|
-
type TGameInfoTableCellProps = {
|
|
8
|
-
item: TGameInfoTableCell;
|
|
9
|
-
};
|
|
10
|
-
export declare const GameInfoTableCell: FC<TGameInfoTableCellProps>;
|
|
11
|
-
export {};
|
package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoTableHead.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TComplianceOptions } from "../../../../../shared/lib/types/complianceOptions";
|
|
3
|
-
export type TGameInfoTableHead = {
|
|
4
|
-
type: 'table-head';
|
|
5
|
-
values: [string, string];
|
|
6
|
-
} & TComplianceOptions;
|
|
7
|
-
type TGameInfoTableHeadProps = {
|
|
8
|
-
item: TGameInfoTableHead;
|
|
9
|
-
};
|
|
10
|
-
export declare const GameInfoTableHead: FC<TGameInfoTableHeadProps>;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TComplianceOptions } from "../../../../../shared/lib/types/complianceOptions";
|
|
3
|
-
export type TGameInfoText = {
|
|
4
|
-
type: 'text';
|
|
5
|
-
text: string;
|
|
6
|
-
} & TComplianceOptions;
|
|
7
|
-
type TGameInfoTextProps = {
|
|
8
|
-
item: TGameInfoText;
|
|
9
|
-
};
|
|
10
|
-
export declare const GameInfoText: FC<TGameInfoTextProps>;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TComplianceOptions } from "../../../../../shared/lib/types/complianceOptions";
|
|
3
|
-
export type TGameInfoTitle = {
|
|
4
|
-
type: 'title';
|
|
5
|
-
text: string;
|
|
6
|
-
} & TComplianceOptions;
|
|
7
|
-
type TGameInfoTitleProps = {
|
|
8
|
-
item: TGameInfoTitle;
|
|
9
|
-
};
|
|
10
|
-
export declare const GameInfoTitle: FC<TGameInfoTitleProps>;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PrizeDropEvent: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tabs, TTabsConfig } from './Tabs';
|