@truelab/truelogic-plinko 0.0.4 → 0.0.6

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 (67) hide show
  1. package/dist/100.min.js +1 -1
  2. package/dist/103.min.js +1 -1
  3. package/dist/113.min.js +1 -1
  4. package/dist/172.min.js +1 -1
  5. package/dist/180.min.js +1 -1
  6. package/dist/201.min.js +1 -1
  7. package/dist/203.min.js +1 -1
  8. package/dist/266.min.js +1 -1
  9. package/dist/282.min.js +1 -1
  10. package/dist/383.min.js +1 -1
  11. package/dist/4.min.js +1 -1
  12. package/dist/423.min.js +1 -1
  13. package/dist/546.min.js +1 -1
  14. package/dist/585.min.js +1 -1
  15. package/dist/59.min.js +1 -1
  16. package/dist/683.min.js +1 -1
  17. package/dist/699.min.js +1 -1
  18. package/dist/728.min.js +1 -1
  19. package/dist/756.min.js +1 -1
  20. package/dist/761.min.js +1 -1
  21. package/dist/80.min.js +1 -1
  22. package/dist/90.min.js +1 -1
  23. package/dist/929.min.js +1 -1
  24. package/dist/937.min.js +1 -1
  25. package/dist/988.min.js +1 -1
  26. package/dist/assets/locales/cs.json +3 -3
  27. package/dist/assets/locales/de.json +3 -3
  28. package/dist/assets/locales/en.json +3 -3
  29. package/dist/assets/locales/es.json +3 -3
  30. package/dist/assets/locales/fi.json +4 -4
  31. package/dist/assets/locales/fr.json +3 -3
  32. package/dist/assets/locales/hi.json +3 -3
  33. package/dist/assets/locales/hr.json +3 -3
  34. package/dist/assets/locales/id.json +3 -3
  35. package/dist/assets/locales/it.json +3 -3
  36. package/dist/assets/locales/ja.json +6 -6
  37. package/dist/assets/locales/kk.json +4 -4
  38. package/dist/assets/locales/ko.json +3 -3
  39. package/dist/assets/locales/nl.json +3 -3
  40. package/dist/assets/locales/no.json +3 -3
  41. package/dist/assets/locales/pl.json +3 -3
  42. package/dist/assets/locales/pt.json +3 -3
  43. package/dist/assets/locales/ru.json +1 -1
  44. package/dist/assets/locales/sr.json +3 -3
  45. package/dist/assets/locales/sv.json +3 -3
  46. package/dist/assets/locales/th.json +3 -3
  47. package/dist/assets/locales/tr.json +3 -3
  48. package/dist/assets/locales/uk.json +3 -3
  49. package/dist/assets/locales/vi.json +3 -3
  50. package/dist/assets/locales/zh.json +5 -5
  51. package/dist/preloader.html +1 -1
  52. package/dist/truelogic.min.css +1 -1
  53. package/dist/truelogic.min.js +1 -1
  54. package/dist/types/src/app/store.d.ts +25 -5
  55. package/dist/types/src/entities/activeRounds/model/activeRoundsSlice.d.ts +12 -3
  56. package/dist/types/src/entities/autoplay/model/autoPlaySlice.d.ts +5 -1
  57. package/dist/types/src/entities/bonus/model/bonusSlice.d.ts +10 -2
  58. package/dist/types/src/features/play/index.d.ts +2 -0
  59. package/dist/types/src/features/play/model/addBalance.d.ts +2 -0
  60. package/dist/types/src/features/play/model/finishRound.d.ts +2 -0
  61. package/dist/types/src/shared/lib/classes/analyticsService.d.ts +2 -1
  62. package/dist/types/src/shared/lib/singletones/analyticsEmitter.d.ts +1 -0
  63. package/dist/types/src/shared/lib/singletones/index.d.ts +1 -0
  64. package/dist/types/src/shared/lib/store/redux.d.ts +10 -2
  65. package/dist/types/src/shared/lib/tests/utils/getPreloadedState.d.ts +5 -1
  66. package/dist/types/src/shared/lib/tests/utils/setupTestStore.d.ts +10 -2
  67. package/package.json +1 -1
@@ -346,7 +346,11 @@ export declare const rootReducer: import("redux").Reducer<{
346
346
  defferedCampaign?: import("../shared/sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
347
347
  };
348
348
  activeRounds: {
349
- items: string[];
349
+ items: Record<string, {
350
+ balance: number;
351
+ winCash: number;
352
+ stakeName: string;
353
+ }>;
350
354
  };
351
355
  }, import("redux").UnknownAction, Partial<{
352
356
  viewPort: import("../shared/viewPort/lib/types").TViewPortState;
@@ -696,7 +700,11 @@ export declare const rootReducer: import("redux").Reducer<{
696
700
  defferedCampaign?: import("../shared/sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
697
701
  };
698
702
  activeRounds: {
699
- items: string[];
703
+ items: Record<string, {
704
+ balance: number;
705
+ winCash: number;
706
+ stakeName: string;
707
+ }>;
700
708
  };
701
709
  }>>;
702
710
  export declare const persistedReducer: import("redux").Reducer<{
@@ -1047,7 +1055,11 @@ export declare const persistedReducer: import("redux").Reducer<{
1047
1055
  defferedCampaign?: import("../shared/sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
1048
1056
  };
1049
1057
  activeRounds: {
1050
- items: string[];
1058
+ items: Record<string, {
1059
+ balance: number;
1060
+ winCash: number;
1061
+ stakeName: string;
1062
+ }>;
1051
1063
  };
1052
1064
  } & import("redux-persist/es/persistReducer").PersistPartial, import("redux").Action>;
1053
1065
  export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
@@ -1398,7 +1410,11 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
1398
1410
  defferedCampaign?: import("../shared/sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
1399
1411
  };
1400
1412
  activeRounds: {
1401
- items: string[];
1413
+ items: Record<string, {
1414
+ balance: number;
1415
+ winCash: number;
1416
+ stakeName: string;
1417
+ }>;
1402
1418
  };
1403
1419
  } & import("redux-persist/es/persistReducer").PersistPartial, import("redux").Action, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
1404
1420
  dispatch: import("redux-thunk").ThunkDispatch<{
@@ -1749,7 +1765,11 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
1749
1765
  defferedCampaign?: import("../shared/sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
1750
1766
  };
1751
1767
  activeRounds: {
1752
- items: string[];
1768
+ items: Record<string, {
1769
+ balance: number;
1770
+ winCash: number;
1771
+ stakeName: string;
1772
+ }>;
1753
1773
  };
1754
1774
  } & import("redux-persist/es/persistReducer").PersistPartial, undefined, import("redux").UnknownAction>;
1755
1775
  }>, import("redux").StoreEnhancer]>>;
@@ -1,14 +1,23 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
+ type TRoundMeta = {
3
+ balance: number;
4
+ winCash: number;
5
+ stakeName: string;
6
+ };
2
7
  type TActiveRoundsState = {
3
- items: string[];
8
+ items: Record<string, TRoundMeta>;
4
9
  };
5
10
  export declare const activeRoundsSlice: import("@reduxjs/toolkit").Slice<TActiveRoundsState, {
6
- addActiveRoundsItem: (state: import("immer").WritableDraft<TActiveRoundsState>, action: PayloadAction<string>) => void;
11
+ addActiveRoundsItem: (state: import("immer").WritableDraft<TActiveRoundsState>, action: PayloadAction<{
12
+ id: string;
13
+ } & TRoundMeta>) => void;
7
14
  finishActiveRoundsItem: (state: import("immer").WritableDraft<TActiveRoundsState>, action: PayloadAction<string>) => void;
8
15
  }, "activeRounds", "activeRounds", {
9
16
  getHasActiveRounds: (state: TActiveRoundsState) => boolean;
10
17
  }>;
11
- export declare const addActiveRoundsItem: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "activeRounds/addActiveRoundsItem">, finishActiveRoundsItem: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "activeRounds/finishActiveRoundsItem">;
18
+ export declare const addActiveRoundsItem: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
19
+ id: string;
20
+ } & TRoundMeta, "activeRounds/addActiveRoundsItem">, finishActiveRoundsItem: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "activeRounds/finishActiveRoundsItem">;
12
21
  export declare const getHasActiveRounds: import("reselect").Selector<{
13
22
  activeRounds: TActiveRoundsState;
14
23
  }, boolean, []> & {
@@ -345,7 +345,11 @@ export declare const getAutoPlayIsSupported: ((state: {
345
345
  defferedCampaign?: import("../../../shared/sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
346
346
  };
347
347
  activeRounds: {
348
- items: string[];
348
+ items: Record<string, {
349
+ balance: number;
350
+ winCash: number;
351
+ stakeName: string;
352
+ }>;
349
353
  };
350
354
  } & import("redux-persist/es/persistReducer").PersistPartial) => boolean) & {
351
355
  clearCache: () => void;
@@ -349,7 +349,11 @@ export declare const getBonusIsConfirmDisabled: ((state: {
349
349
  defferedCampaign?: import("../../../shared/sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
350
350
  };
351
351
  activeRounds: {
352
- items: string[];
352
+ items: Record<string, {
353
+ balance: number;
354
+ winCash: number;
355
+ stakeName: string;
356
+ }>;
353
357
  };
354
358
  } & import("redux-persist/es/persistReducer").PersistPartial) => boolean) & {
355
359
  clearCache: () => void;
@@ -703,7 +707,11 @@ export declare const getBonusCashPrice: ((state: {
703
707
  defferedCampaign?: import("../../../shared/sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
704
708
  };
705
709
  activeRounds: {
706
- items: string[];
710
+ items: Record<string, {
711
+ balance: number;
712
+ winCash: number;
713
+ stakeName: string;
714
+ }>;
707
715
  };
708
716
  } & import("redux-persist/es/persistReducer").PersistPartial) => number) & {
709
717
  clearCache: () => void;
@@ -8,6 +8,8 @@ export { spinEnd } from './lib/flow/spinEnd';
8
8
  export { stepEnd } from './lib/flow/stepEnd';
9
9
  export { stepStart } from './lib/flow/stepStart';
10
10
  export { getApiRoundOpenAnalytics } from './lib/getApiRoundOpenAnalytics';
11
+ export { addBalance } from './model/addBalance';
12
+ export { finishRound } from './model/finishRound';
11
13
  export { initRound } from './model/initRound';
12
14
  export { startPlay } from './model/startPlay';
13
15
  export { PanelPlay } from './ui/PanelPlay/PanelPlay';
@@ -0,0 +1,2 @@
1
+ import { TAppThunkAction } from "../../../shared/lib/store";
2
+ export declare const addBalance: TAppThunkAction<number>;
@@ -0,0 +1,2 @@
1
+ import { TAppThunkAction } from "../../../shared/lib/store";
2
+ export declare const finishRound: TAppThunkAction<string>;
@@ -31,7 +31,8 @@ export declare enum EAnalyticsEvents {
31
31
  setOperator = "operatorIdSet",
32
32
  setBrand = "brandIdSet",
33
33
  setSession = "setSession",
34
- setCurrency = "currency"
34
+ setCurrency = "currency",
35
+ spinHold = "spin_hold"
35
36
  }
36
37
  export declare enum EAnalyticsEventsPrizeDrop {
37
38
  setCampaignId = "campaignIdSet",
@@ -63,6 +63,7 @@ export type TAnalyticsEvents = {
63
63
  ['pdModalJoinError:unsuccessfulRetry']: () => void;
64
64
  ['pdModalJoinError:successRetry']: () => void;
65
65
  ['pdModalJoinError:closed']: () => void;
66
+ ['spin:hold']: () => void;
66
67
  };
67
68
  export declare class AnalyticsEmitter extends Emitter<TAnalyticsEvents> {
68
69
  log(event: string, ...args: unknown[]): void;
@@ -4,4 +4,5 @@ export { api } from './api';
4
4
  export { cashService } from './cashService';
5
5
  export { gameEmitter, TStakeResponse } from './gameEmitter';
6
6
  export { logger } from './logger';
7
+ export { operatorEmitter } from './operatorEmitter';
7
8
  export { utilsService } from './utilsService';
@@ -346,7 +346,11 @@ export declare const useAppDispatch: import("react-redux").UseDispatch<import("r
346
346
  defferedCampaign?: import("../../sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
347
347
  };
348
348
  activeRounds: {
349
- items: string[];
349
+ items: Record<string, {
350
+ balance: number;
351
+ winCash: number;
352
+ stakeName: string;
353
+ }>;
350
354
  };
351
355
  } & import("redux-persist/es/persistReducer").PersistPartial, undefined, import("redux").UnknownAction> & import("redux").Dispatch<import("redux").Action>>;
352
356
  export declare const useAppSelector: import("react-redux").UseSelector<{
@@ -697,7 +701,11 @@ export declare const useAppSelector: import("react-redux").UseSelector<{
697
701
  defferedCampaign?: import("../../sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
698
702
  };
699
703
  activeRounds: {
700
- items: string[];
704
+ items: Record<string, {
705
+ balance: number;
706
+ winCash: number;
707
+ stakeName: string;
708
+ }>;
701
709
  };
702
710
  } & import("redux-persist/es/persistReducer").PersistPartial>;
703
711
  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>;
@@ -346,6 +346,10 @@ export declare const getPreloadedState: (storePartial?: DeepPartial<TRootState>)
346
346
  defferedCampaign?: import("../../../sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
347
347
  };
348
348
  activeRounds: {
349
- items: string[];
349
+ items: Record<string, {
350
+ balance: number;
351
+ winCash: number;
352
+ stakeName: string;
353
+ }>;
350
354
  };
351
355
  } & import("redux-persist/es/persistReducer").PersistPartial;
@@ -346,7 +346,11 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
346
346
  defferedCampaign?: import("../../../sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
347
347
  };
348
348
  activeRounds: {
349
- items: string[];
349
+ items: Record<string, {
350
+ balance: number;
351
+ winCash: number;
352
+ stakeName: string;
353
+ }>;
350
354
  };
351
355
  } & import("redux-persist/es/persistReducer").PersistPartial, import("redux").Action, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
352
356
  dispatch: import("redux-thunk").ThunkDispatch<{
@@ -697,7 +701,11 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
697
701
  defferedCampaign?: import("../../../sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
698
702
  };
699
703
  activeRounds: {
700
- items: string[];
704
+ items: Record<string, {
705
+ balance: number;
706
+ winCash: number;
707
+ stakeName: string;
708
+ }>;
701
709
  };
702
710
  } & import("redux-persist/es/persistReducer").PersistPartial, undefined, import("redux").UnknownAction>;
703
711
  }>, import("redux").StoreEnhancer]>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truelab/truelogic-plinko",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "main": "./dist/truelogic.min.js",
6
6
  "types": "./dist/types/src/truelogic.d.ts",