@truelab/truelogic-plinko 0.0.1 → 0.0.2-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.
Files changed (56) hide show
  1. package/dist/preloader.html +1 -1
  2. package/dist/truelogic.min.css +1 -1
  3. package/dist/truelogic.min.js +1 -1
  4. package/dist/types/src/app/lib/singletones/publicEmitter.d.ts +4 -0
  5. package/dist/types/src/app/store.d.ts +35 -10
  6. package/dist/types/src/entities/activeRounds/index.d.ts +1 -0
  7. package/dist/types/src/entities/activeRounds/model/activeRoundsSlice.d.ts +18 -0
  8. package/dist/types/src/entities/autoplay/model/autoPlaySlice.d.ts +7 -2
  9. package/dist/types/src/entities/bonus/index.d.ts +1 -1
  10. package/dist/types/src/entities/bonus/model/bonusSlice.d.ts +13 -5
  11. package/dist/types/src/entities/fastplay/index.d.ts +1 -1
  12. package/dist/types/src/entities/fastplay/model/fastPlaySlice.d.ts +2 -1
  13. package/dist/types/src/entities/modals/ui/ModalBaseHeader.d.ts +2 -1
  14. package/dist/types/src/entities/round/index.d.ts +1 -1
  15. package/dist/types/src/entities/round/model/roundSlice.d.ts +2 -2
  16. package/dist/types/src/entities/session/index.d.ts +1 -1
  17. package/dist/types/src/entities/session/model/sessionSlice.d.ts +2 -3
  18. package/dist/types/src/features/bonus/index.d.ts +2 -0
  19. package/dist/types/src/features/bonus/ui/BonusFeatureSelector/BonusFeatureSelector.d.ts +6 -1
  20. package/dist/types/src/features/bonus/ui/BonusFeatureSelector/BonusFeatureSelectorItem.d.ts +9 -0
  21. package/dist/types/src/features/bonus/ui/BonusInfoTooltip/BonusInfoTooltip.d.ts +6 -0
  22. package/dist/types/src/features/bonus/ui/BonusShortcutIcons/BonusShortcutIcon.d.ts +5 -0
  23. package/dist/types/src/features/bonus/ui/BonusShortcutIcons/BonusShortcutIcons.d.ts +1 -0
  24. package/dist/types/src/features/panel/ui/PanelBonus.d.ts +3 -1
  25. package/dist/types/src/features/play/index.d.ts +1 -0
  26. package/dist/types/src/features/play/model/initRound.d.ts +10 -0
  27. package/dist/types/src/features/play/ui/PanelPlay/PanelPlay.d.ts +2 -1
  28. package/dist/types/src/features/riskSelector/index.d.ts +3 -0
  29. package/dist/types/src/features/riskSelector/model/constants.d.ts +5 -0
  30. package/dist/types/src/features/riskSelector/model/types.d.ts +5 -0
  31. package/dist/types/src/features/riskSelector/ui/RiskSelector.d.ts +1 -0
  32. package/dist/types/src/features/riskSelector/ui/RiskSelectorSelect.d.ts +1 -0
  33. package/dist/types/src/features/rowsSelector/index.d.ts +2 -0
  34. package/dist/types/src/features/rowsSelector/model/constants.d.ts +2 -0
  35. package/dist/types/src/features/rowsSelector/ui/RowsSelectorGrid.d.ts +1 -0
  36. package/dist/types/src/features/rowsSelector/ui/RowsSelectorSelect.d.ts +1 -0
  37. package/dist/types/src/sandbox/config.d.ts +4 -0
  38. package/dist/types/src/shared/api/config/index.d.ts +1 -1
  39. package/dist/types/src/shared/api/config/types.d.ts +7 -0
  40. package/dist/types/src/shared/api/round/open/index.d.ts +1 -0
  41. package/dist/types/src/shared/api/round/open/types.d.ts +4 -0
  42. package/dist/types/src/shared/lib/singletones/gameEmitter.d.ts +1 -0
  43. package/dist/types/src/shared/lib/store/redux.d.ts +14 -4
  44. package/dist/types/src/shared/lib/tests/utils/getPreloadedState.d.ts +7 -2
  45. package/dist/types/src/shared/lib/tests/utils/setupTestStore.d.ts +14 -4
  46. package/dist/types/src/shared/model/modals/modalsSlice.d.ts +1 -1
  47. package/dist/types/src/shared/ui/Switch/Switch.d.ts +6 -0
  48. package/dist/types/src/shared/ui/Tooltip/TooltipDropdown.d.ts +3 -2
  49. package/dist/types/src/truelogic.d.ts +2 -0
  50. package/dist/types/src/widgets/gameSettingsPanel/GameSettingsPanel.d.ts +1 -0
  51. package/dist/types/src/widgets/gameSettingsPanel/index.d.ts +1 -0
  52. package/dist/types/src/widgets/modals/index.d.ts +1 -0
  53. package/dist/types/src/widgets/modals/ui/ModalStakeAmounts/ModalStakeAmounts.d.ts +1 -0
  54. package/dist/types/src/widgets/modals/ui/ModalStakeAmounts/RectStakeAmount.d.ts +8 -0
  55. package/dist/types/tailwind.config.d.ts +10 -0
  56. package/package.json +1 -1
@@ -7,6 +7,12 @@ export declare enum EStakeType {
7
7
  buy = "buy",
8
8
  bonusBet = "bonusBet"
9
9
  }
10
+ export declare enum EStakeName {
11
+ default = "default",
12
+ hotgate = "hotgate",
13
+ freeball = "freeball",
14
+ hotgateFreeball = "hotgate-freeball"
15
+ }
10
16
  export type TVolatility = 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 4.5 | 5;
11
17
  export type TStakeMode = {
12
18
  name: string;
@@ -47,6 +53,7 @@ export type TGameSettings = {
47
53
  rtp: number;
48
54
  volatility: TVolatility;
49
55
  coinRatio?: number;
56
+ hasRestore: boolean;
50
57
  };
51
58
  export type TRoundClient = {
52
59
  roundId: string;
@@ -1,2 +1,3 @@
1
1
  export type { TStake } from './types';
2
2
  export type { TApiRoundOpenError, TApiRoundOpenFake, TApiRoundOpenPayload, TApiRoundOpenResponse, TPromoTool, TResponseGS, } from './types';
3
+ export type { TStakeParamsPayload } from './types';
@@ -1,3 +1,7 @@
1
+ export type TStakeParamsPayload = {
2
+ risk?: string;
3
+ rows?: number;
4
+ };
1
5
  export type TStake = {
2
6
  amount: number;
3
7
  name: string;
@@ -54,6 +54,7 @@ export type TGameReadyResponse = {
54
54
  export type TStepReceivedResponse = {
55
55
  responseGS: TResponseGS;
56
56
  autoChoice?: number;
57
+ roundId?: string;
57
58
  };
58
59
  export type TStepStartedResponse = {
59
60
  /** @deprecated */
@@ -56,13 +56,12 @@ export declare const useAppDispatch: import("react-redux").UseDispatch<import("r
56
56
  isDemo: boolean;
57
57
  partner: string;
58
58
  balance: number;
59
- balancePrevious: number;
60
59
  netValue: number;
61
- netValuePrevious: number;
62
60
  shouldResetNetValue: boolean;
63
61
  currency: string;
64
62
  currencyDecimals: number;
65
63
  urls: import("../../api/config/types").TSessionUrls;
64
+ customPay: boolean;
66
65
  };
67
66
  modals: {
68
67
  hasOpened: boolean;
@@ -132,6 +131,7 @@ export declare const useAppDispatch: import("react-redux").UseDispatch<import("r
132
131
  fake: import("../../api/round/open").TApiRoundOpenFake;
133
132
  };
134
133
  fastPlay: {
134
+ isEnabled: boolean;
135
135
  isActive: boolean;
136
136
  };
137
137
  bonus: {
@@ -143,6 +143,8 @@ export declare const useAppDispatch: import("react-redux").UseDispatch<import("r
143
143
  isConfirmModalShown: boolean;
144
144
  tmpLevel: number;
145
145
  tmpAmountIndex: number;
146
+ isTooltipOpened: boolean;
147
+ isInfoTooltipOpened: boolean;
146
148
  activeSlideWidth: number;
147
149
  activeSlideOffsetX: number;
148
150
  isSliderInTransition: boolean;
@@ -342,6 +344,9 @@ export declare const useAppDispatch: import("react-redux").UseDispatch<import("r
342
344
  hasDefferedModal?: boolean;
343
345
  defferedCampaign?: import("../../sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
344
346
  };
347
+ activeRounds: {
348
+ items: string[];
349
+ };
345
350
  } & import("redux-persist/es/persistReducer").PersistPartial, undefined, import("redux").UnknownAction> & import("redux").Dispatch<import("redux").Action>>;
346
351
  export declare const useAppSelector: import("react-redux").UseSelector<{
347
352
  viewPort: import("../../viewPort/lib/types").TViewPortState;
@@ -401,13 +406,12 @@ export declare const useAppSelector: import("react-redux").UseSelector<{
401
406
  isDemo: boolean;
402
407
  partner: string;
403
408
  balance: number;
404
- balancePrevious: number;
405
409
  netValue: number;
406
- netValuePrevious: number;
407
410
  shouldResetNetValue: boolean;
408
411
  currency: string;
409
412
  currencyDecimals: number;
410
413
  urls: import("../../api/config/types").TSessionUrls;
414
+ customPay: boolean;
411
415
  };
412
416
  modals: {
413
417
  hasOpened: boolean;
@@ -477,6 +481,7 @@ export declare const useAppSelector: import("react-redux").UseSelector<{
477
481
  fake: import("../../api/round/open").TApiRoundOpenFake;
478
482
  };
479
483
  fastPlay: {
484
+ isEnabled: boolean;
480
485
  isActive: boolean;
481
486
  };
482
487
  bonus: {
@@ -488,6 +493,8 @@ export declare const useAppSelector: import("react-redux").UseSelector<{
488
493
  isConfirmModalShown: boolean;
489
494
  tmpLevel: number;
490
495
  tmpAmountIndex: number;
496
+ isTooltipOpened: boolean;
497
+ isInfoTooltipOpened: boolean;
491
498
  activeSlideWidth: number;
492
499
  activeSlideOffsetX: number;
493
500
  isSliderInTransition: boolean;
@@ -687,5 +694,8 @@ export declare const useAppSelector: import("react-redux").UseSelector<{
687
694
  hasDefferedModal?: boolean;
688
695
  defferedCampaign?: import("../../sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
689
696
  };
697
+ activeRounds: {
698
+ items: string[];
699
+ };
690
700
  } & import("redux-persist/es/persistReducer").PersistPartial>;
691
701
  export declare const createAppSlice: <State, CaseReducers extends import("@reduxjs/toolkit").SliceCaseReducers<State>, Name extends string, Selectors extends import("@reduxjs/toolkit").SliceSelectors<State>, ReducerPath extends string = Name>(options: import("@reduxjs/toolkit").CreateSliceOptions<State, CaseReducers, Name, ReducerPath, Selectors>) => import("@reduxjs/toolkit").Slice<State, CaseReducers, Name, ReducerPath, Selectors>;
@@ -56,13 +56,12 @@ export declare const getPreloadedState: (storePartial?: DeepPartial<TRootState>)
56
56
  isDemo: boolean;
57
57
  partner: string;
58
58
  balance: number;
59
- balancePrevious: number;
60
59
  netValue: number;
61
- netValuePrevious: number;
62
60
  shouldResetNetValue: boolean;
63
61
  currency: string;
64
62
  currencyDecimals: number;
65
63
  urls: import("../../../api/config/types").TSessionUrls;
64
+ customPay: boolean;
66
65
  };
67
66
  modals: {
68
67
  hasOpened: boolean;
@@ -132,6 +131,7 @@ export declare const getPreloadedState: (storePartial?: DeepPartial<TRootState>)
132
131
  fake: import("../../../api/round/open").TApiRoundOpenFake;
133
132
  };
134
133
  fastPlay: {
134
+ isEnabled: boolean;
135
135
  isActive: boolean;
136
136
  };
137
137
  bonus: {
@@ -143,6 +143,8 @@ export declare const getPreloadedState: (storePartial?: DeepPartial<TRootState>)
143
143
  isConfirmModalShown: boolean;
144
144
  tmpLevel: number;
145
145
  tmpAmountIndex: number;
146
+ isTooltipOpened: boolean;
147
+ isInfoTooltipOpened: boolean;
146
148
  activeSlideWidth: number;
147
149
  activeSlideOffsetX: number;
148
150
  isSliderInTransition: boolean;
@@ -342,4 +344,7 @@ export declare const getPreloadedState: (storePartial?: DeepPartial<TRootState>)
342
344
  hasDefferedModal?: boolean;
343
345
  defferedCampaign?: import("../../../sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
344
346
  };
347
+ activeRounds: {
348
+ items: string[];
349
+ };
345
350
  } & import("redux-persist/es/persistReducer").PersistPartial;
@@ -56,13 +56,12 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
56
56
  isDemo: boolean;
57
57
  partner: string;
58
58
  balance: number;
59
- balancePrevious: number;
60
59
  netValue: number;
61
- netValuePrevious: number;
62
60
  shouldResetNetValue: boolean;
63
61
  currency: string;
64
62
  currencyDecimals: number;
65
63
  urls: import("../../../api/config/types").TSessionUrls;
64
+ customPay: boolean;
66
65
  };
67
66
  modals: {
68
67
  hasOpened: boolean;
@@ -132,6 +131,7 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
132
131
  fake: import("../../../api/round/open").TApiRoundOpenFake;
133
132
  };
134
133
  fastPlay: {
134
+ isEnabled: boolean;
135
135
  isActive: boolean;
136
136
  };
137
137
  bonus: {
@@ -143,6 +143,8 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
143
143
  isConfirmModalShown: boolean;
144
144
  tmpLevel: number;
145
145
  tmpAmountIndex: number;
146
+ isTooltipOpened: boolean;
147
+ isInfoTooltipOpened: boolean;
146
148
  activeSlideWidth: number;
147
149
  activeSlideOffsetX: number;
148
150
  isSliderInTransition: boolean;
@@ -342,6 +344,9 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
342
344
  hasDefferedModal?: boolean;
343
345
  defferedCampaign?: import("../../../sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
344
346
  };
347
+ activeRounds: {
348
+ items: string[];
349
+ };
345
350
  } & import("redux-persist/es/persistReducer").PersistPartial, import("redux").Action, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
346
351
  dispatch: import("redux-thunk").ThunkDispatch<{
347
352
  viewPort: import("../../../viewPort/lib/types").TViewPortState;
@@ -401,13 +406,12 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
401
406
  isDemo: boolean;
402
407
  partner: string;
403
408
  balance: number;
404
- balancePrevious: number;
405
409
  netValue: number;
406
- netValuePrevious: number;
407
410
  shouldResetNetValue: boolean;
408
411
  currency: string;
409
412
  currencyDecimals: number;
410
413
  urls: import("../../../api/config/types").TSessionUrls;
414
+ customPay: boolean;
411
415
  };
412
416
  modals: {
413
417
  hasOpened: boolean;
@@ -477,6 +481,7 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
477
481
  fake: import("../../../api/round/open").TApiRoundOpenFake;
478
482
  };
479
483
  fastPlay: {
484
+ isEnabled: boolean;
480
485
  isActive: boolean;
481
486
  };
482
487
  bonus: {
@@ -488,6 +493,8 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
488
493
  isConfirmModalShown: boolean;
489
494
  tmpLevel: number;
490
495
  tmpAmountIndex: number;
496
+ isTooltipOpened: boolean;
497
+ isInfoTooltipOpened: boolean;
491
498
  activeSlideWidth: number;
492
499
  activeSlideOffsetX: number;
493
500
  isSliderInTransition: boolean;
@@ -687,5 +694,8 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
687
694
  hasDefferedModal?: boolean;
688
695
  defferedCampaign?: import("../../../sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
689
696
  };
697
+ activeRounds: {
698
+ items: string[];
699
+ };
690
700
  } & import("redux-persist/es/persistReducer").PersistPartial, undefined, import("redux").UnknownAction>;
691
701
  }>, import("redux").StoreEnhancer]>>;
@@ -1,7 +1,7 @@
1
1
  import { TAutoplayServiceModalType } from "../../../entities/autoplay";
2
2
  import { TAppThunkAction } from "../../lib/store";
3
3
  import { TMenuConfig } from '../menu';
4
- export type TModalName = 'menu' | 'bonusFeature' | 'autoplay' | 'bonusConfirm' | 'realityCheck' | 'realityCheckReminder' | 'settings' | 'payTable' | 'roundsHistory' | 'roundDetails' | 'replay' | 'serviceMaxBet' | 'serviceInsufficientFunds' | 'serviceRestore' | 'serviceMaxWin' | 'serviceQuitTheGame' | 'serviceConnectionLost' | 'serviceError' | 'serviceFatalError' | 'serviceAutoplay' | 'gameInfo' | 'freeRounds' | 'freeRoundsResult' | 'prizeDropCongratulation' | 'prizeDropUnclaimed' | 'prizeDrop' | 'prizeDropSuccess' | 'prizeDropResult' | 'prizeDropLive' | 'prizeDropJoinError';
4
+ export type TModalName = 'menu' | 'bonusFeature' | 'autoplay' | 'bonusConfirm' | 'realityCheck' | 'realityCheckReminder' | 'settings' | 'payTable' | 'roundsHistory' | 'roundDetails' | 'replay' | 'serviceMaxBet' | 'serviceInsufficientFunds' | 'serviceRestore' | 'serviceMaxWin' | 'serviceQuitTheGame' | 'serviceConnectionLost' | 'serviceError' | 'serviceFatalError' | 'serviceAutoplay' | 'gameInfo' | 'freeRounds' | 'freeRoundsResult' | 'prizeDropCongratulation' | 'prizeDropUnclaimed' | 'prizeDrop' | 'prizeDropSuccess' | 'prizeDropResult' | 'prizeDropLive' | 'prizeDropJoinError' | 'stakeAmounts';
5
5
  type TModalConfigs = {
6
6
  menu: TMenuConfig;
7
7
  };
@@ -1,6 +1,12 @@
1
1
  import { ButtonHTMLAttributes, FC } from 'react';
2
2
  type TSwitchProps = {
3
3
  active?: boolean;
4
+ customClassNames?: {
5
+ container?: string;
6
+ handle?: string;
7
+ handleActive?: string;
8
+ handleInactive?: string;
9
+ };
4
10
  } & ButtonHTMLAttributes<HTMLButtonElement>;
5
11
  export declare const Switch: FC<TSwitchProps>;
6
12
  export {};
@@ -5,7 +5,8 @@ type TTooltipDropdownProps = {
5
5
  onClose: (event?: MouseEvent | KeyboardEvent | TouchEvent) => void;
6
6
  className?: string;
7
7
  classNameArrow?: string;
8
- refs: RefObject<HTMLButtonElement>[] | RefObject<HTMLButtonElement>;
8
+ position?: 'bottom-center' | 'top-left' | 'bottom-left';
9
+ refs: RefObject<HTMLButtonElement | HTMLDivElement>[] | RefObject<HTMLButtonElement | HTMLDivElement>;
9
10
  };
10
- export declare const TooltipDropdown: ({ visible, children, onClose, refs, className, classNameArrow, }: TTooltipDropdownProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const TooltipDropdown: ({ visible, children, onClose, refs, className, classNameArrow, position, }: TTooltipDropdownProps) => import("react/jsx-runtime").JSX.Element;
11
12
  export default TooltipDropdown;
@@ -214,6 +214,8 @@ declare class TrueLogic {
214
214
  * @see https://truelogic-test.truelab.games/docs/api-reference/public-methods/set-stake-level
215
215
  */
216
216
  setStakeLevel(level: number): void;
217
+ addBalance(amount?: number): void;
218
+ finishRound(roundId: string): void;
217
219
  }
218
220
  declare const truelogic: TrueLogic;
219
221
  export default truelogic;
@@ -0,0 +1 @@
1
+ export declare const GameSettingsPanel: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { GameSettingsPanel } from './GameSettingsPanel';
@@ -21,6 +21,7 @@ export { ModalServiceMaxWin } from './ui/ModalServiceMaxWin';
21
21
  export { ModalServiceQuitTheGame } from './ui/ModalServiceQuitTheGame';
22
22
  export { ModalServiceRestore } from './ui/ModalServiceRestore';
23
23
  export { ModalSettings } from './ui/ModalSettings';
24
+ export { ModalStakeAmounts } from './ui/ModalStakeAmounts/ModalStakeAmounts';
24
25
  export { ModalPrizeDropCongratulation } from './ui/prizeDrop/congratulation/ModalPrizeDropCongratulation';
25
26
  export { ModalPrizeDropJoinError } from './ui/prizeDrop/joinError/ModalPrizeDropJoinError';
26
27
  export { ModalPrizeDropLive } from './ui/prizeDrop/live/ModalPrizeDropLive';
@@ -0,0 +1 @@
1
+ export declare const ModalStakeAmounts: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ type TRectStakeAmountProps = {
3
+ children: ReactNode;
4
+ onClick: () => void;
5
+ active?: boolean;
6
+ } & ButtonHTMLAttributes<HTMLButtonElement>;
7
+ export declare const RectStakeAmount: ({ children, onClick, active, className, ...props }: TRectStakeAmountProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -35,6 +35,16 @@ declare const _default: {
35
35
  'cta-cashout': string;
36
36
  'modal-fill': string;
37
37
  transparent: string;
38
+ 'multiplier-success': string;
39
+ 'risk-low': string;
40
+ 'risk-medium': string;
41
+ 'risk-high': string;
42
+ 'risk-low-hover': string;
43
+ 'risk-medium-hover': string;
44
+ 'risk-high-hover': string;
45
+ 'risk-low-text': string;
46
+ 'risk-medium-text': string;
47
+ 'risk-high-text': string;
38
48
  };
39
49
  boxShadow: {
40
50
  progress: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truelab/truelogic-plinko",
3
- "version": "0.0.1",
3
+ "version": "0.0.2-0",
4
4
  "description": "",
5
5
  "main": "./dist/truelogic.min.js",
6
6
  "types": "./dist/types/src/truelogic.d.ts",