react-render-hooks 0.0.1
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/index.js +1 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipAmount/index.d.ts +2 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipBets/index.d.ts +3 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipControllers/index.d.ts +3 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipEventCounter/index.d.ts +2 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipIsSelectedOdd/index.d.ts +8 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipMaxLimit/index.d.ts +6 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipPlaceBet/index.d.ts +3 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipShortInfo/index.d.ts +5 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipSpecialOdd/index.d.ts +11 -0
- package/dist/lib/hooks/betting/categories/useBettingCategoryIds/index.d.ts +10 -0
- package/dist/lib/hooks/betting/categories/useGetCategoryInfo/index.d.ts +7 -0
- package/dist/lib/hooks/betting/events/useBettingTopEvents/index.d.ts +3 -0
- package/dist/lib/hooks/betting/events/useEventDetailsMarketTabs/index.d.ts +9 -0
- package/dist/lib/hooks/betting/events/useEventDetailsMarketsByGroupId/index.d.ts +10 -0
- package/dist/lib/hooks/betting/events/useEventsByTournamentId/index.d.ts +11 -0
- package/dist/lib/hooks/betting/events/useScore/index.d.ts +8 -0
- package/dist/lib/hooks/betting/events/useShortEventInfo/index.d.ts +8 -0
- package/dist/lib/hooks/betting/lines/useAdditionalLines/index.d.ts +9 -0
- package/dist/lib/hooks/betting/lines/useCounterLines/index.d.ts +7 -0
- package/dist/lib/hooks/betting/lines/useGetLines/index.d.ts +16 -0
- package/dist/lib/hooks/betting/lines/useShortLineInfo/index.d.ts +10 -0
- package/dist/lib/hooks/betting/markets/useGetFilterMarketNames/index.d.ts +8 -0
- package/dist/lib/hooks/betting/markets/useGetMarketFilters/index.d.ts +8 -0
- package/dist/lib/hooks/betting/odd/useOdd/index.d.ts +10 -0
- package/dist/lib/hooks/betting/settings/useBettingAvailableStatus/index.d.ts +2 -0
- package/dist/lib/hooks/betting/settings/useBettingSettingStatus/index.d.ts +2 -0
- package/dist/lib/hooks/betting/sports/useBettingSports/index.d.ts +7 -0
- package/dist/lib/hooks/betting/sports/useBettingSportsById/index.d.ts +7 -0
- package/dist/lib/hooks/betting/tickets/useHistoryTickets/index.d.ts +7 -0
- package/dist/lib/hooks/betting/tickets/useTicketControllers/index.d.ts +2 -0
- package/dist/lib/hooks/betting/tickets/useTicketControllers/types.d.ts +11 -0
- package/dist/lib/hooks/betting/tickets/useTicketInfo/index.d.ts +9 -0
- package/dist/lib/hooks/betting/tickets/useTickets/index.d.ts +21 -0
- package/dist/lib/hooks/betting/tournaments/useBettingTopTournaments/index.d.ts +3 -0
- package/dist/lib/hooks/betting/tournaments/useBettingTournamentById/index.d.ts +7 -0
- package/dist/lib/hooks/betting/tournaments/useBettingTournamentsByCategoryIdOrSportId/index.d.ts +19 -0
- package/dist/lib/hooks/casino/useBattles/index.d.ts +4 -0
- package/dist/lib/hooks/casino/useCasinoCategories/index.d.ts +7 -0
- package/dist/lib/hooks/casino/useCasinoGame/index.d.ts +7 -0
- package/dist/lib/hooks/casino/useCasinoGames/index.d.ts +3 -0
- package/dist/lib/hooks/casino/useCasinoGames/types.d.ts +11 -0
- package/dist/lib/hooks/casino/useCasinoHomeCategories/index.d.ts +3 -0
- package/dist/lib/hooks/casino/useCasinoHomeCategories/types.d.ts +4 -0
- package/dist/lib/hooks/casino/useCasinoSubCategories/index.d.ts +7 -0
- package/dist/lib/hooks/casino/useCategoryInfoByCategoryId/index.d.ts +8 -0
- package/dist/lib/hooks/casino/useGetProviderGames/index.d.ts +11 -0
- package/dist/lib/hooks/casino/useHasDemoModeGame/index.d.ts +7 -0
- package/dist/lib/hooks/casino/useJackpots/index.d.ts +2 -0
- package/dist/lib/hooks/casino/useLastWinner/index.d.ts +8 -0
- package/dist/lib/hooks/casino/useProviders/index.d.ts +6 -0
- package/dist/lib/hooks/profile/avatars/useUserAvatar/index.d.ts +7 -0
- package/dist/lib/hooks/profile/avatars/useUserAvatarControllers/index.d.ts +16 -0
- package/dist/lib/hooks/profile/avatars/useUserAvatars/index.d.ts +6 -0
- package/dist/lib/hooks/profile/balance/useBalance/index.d.ts +2 -0
- package/dist/lib/hooks/profile/balance/useBonusCoins/index.d.ts +1 -0
- package/dist/lib/hooks/profile/bonuses/useAnyActiveBonuses/index.d.ts +1 -0
- package/dist/lib/hooks/profile/bonuses/useBonuses/index.d.ts +6 -0
- package/dist/lib/hooks/profile/depOdd/index.d.ts +1 -0
- package/dist/lib/hooks/profile/favorites/useFavoriteController/index.d.ts +9 -0
- package/dist/lib/hooks/profile/favorites/useFavoriteGames/index.d.ts +4 -0
- package/dist/lib/hooks/profile/favorites/useIsFavoriteGame/index.d.ts +6 -0
- package/dist/lib/hooks/profile/favorites/useIsFavoriteGame/types.d.ts +5 -0
- package/dist/lib/hooks/profile/kGames/bonusWheel/useBonusWheelController/index.d.ts +8 -0
- package/dist/lib/hooks/profile/kGames/dailyTasks/useActiveDailyTask/index.d.ts +2 -0
- package/dist/lib/hooks/profile/kGames/dailyTasks/useDailyTaskControllers/index.d.ts +3 -0
- package/dist/lib/hooks/profile/kGames/dailyTasks/useDailyTasks/index.d.ts +2 -0
- package/dist/lib/hooks/profile/operations/useCashBonus/index.d.ts +8 -0
- package/dist/lib/hooks/profile/operations/useGetPaymentsOperations/index.d.ts +6 -0
- package/dist/lib/hooks/profile/operations/useGetVipProgress/index.d.ts +10 -0
- package/dist/lib/hooks/profile/operations/useHistoryTransactions/index.d.ts +8 -0
- package/dist/lib/hooks/profile/operations/useMonthlyBonus/index.d.ts +2 -0
- package/dist/lib/hooks/profile/operations/useRakeBack/index.d.ts +2 -0
- package/dist/lib/hooks/profile/operations/useTournamentBonus/index.d.ts +6 -0
- package/dist/lib/hooks/profile/operations/useWagerBonuses/index.d.ts +1 -0
- package/dist/lib/hooks/profile/operations/useWeeklyBonus/index.d.ts +2 -0
- package/dist/lib/hooks/profile/payments/usePayments/adapters.d.ts +5 -0
- package/dist/lib/hooks/profile/payments/usePayments/index.d.ts +8 -0
- package/dist/lib/hooks/profile/payments/usePayments/types.d.ts +8 -0
- package/dist/lib/hooks/profile/promoCode/usePromoCodeControllers/index.d.ts +3 -0
- package/dist/lib/hooks/profile/referral/useReferralBalance/index.d.ts +6 -0
- package/dist/lib/hooks/profile/referral/useReferralClients/index.d.ts +2 -0
- package/dist/lib/hooks/profile/referral/useReferralControllers/index.d.ts +3 -0
- package/dist/lib/hooks/profile/referral/useReferralLink/index.d.ts +5 -0
- package/dist/lib/hooks/profile/useAuth/index.d.ts +2 -0
- package/dist/lib/hooks/profile/useCountryInfo/index.d.ts +2 -0
- package/dist/lib/hooks/profile/useCurrency/index.d.ts +2 -0
- package/dist/lib/hooks/profile/useUserInfo/index.d.ts +2 -0
- package/dist/lib/hooks/transport/useInitTransport/index.d.ts +12 -0
- package/dist/lib/hooks/transport/useTransportControllers/index.d.ts +15 -0
- package/dist/lib/hooks/transport/useUid/index.d.ts +2 -0
- package/dist/lib/hooks/transport/useUpdateSettings/index.d.ts +1 -0
- package/dist/lib/hooks/types.d.ts +15 -0
- package/dist/lib/index.d.ts +112 -0
- package/dist/lib/services/transport.d.ts +34 -0
- package/dist/lib/services/types.d.ts +12 -0
- package/dist/lib/utils/shared.d.ts +2 -0
- package/package.json +55 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CommonOperationProperties } from 'react-memory-optimization/dist/lib/store/operations/types';
|
|
2
|
+
type ReturnTypeTournamentBonus = CommonOperationProperties | CommonOperationProperties[];
|
|
3
|
+
export declare const useTournamentBonus: (props: {
|
|
4
|
+
isActive: boolean;
|
|
5
|
+
}) => null | ReturnTypeTournamentBonus;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useWagerBonuses: () => boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EPaymentSpecAction, PaymentDictionary } from 'react-memory-optimization/dist/lib/store/user/types';
|
|
2
|
+
export type GetMethodsProps = {
|
|
3
|
+
paymentInfo: PaymentDictionary;
|
|
4
|
+
paymentAction: EPaymentSpecAction;
|
|
5
|
+
isDeposit: boolean;
|
|
6
|
+
successDepositCnt: number;
|
|
7
|
+
order: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TransportSetting } from 'services/types';
|
|
2
|
+
import { ESocketCallbackStep } from 'react-memory-optimization/dist/lib/socket/types';
|
|
3
|
+
export type InitTransportProps = {
|
|
4
|
+
transportInfo: {
|
|
5
|
+
address: string;
|
|
6
|
+
} | null;
|
|
7
|
+
responseCallback: (r: any) => void;
|
|
8
|
+
callbackRequestKey: () => void;
|
|
9
|
+
initialSettings: TransportSetting;
|
|
10
|
+
languageName: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const useInitTransport: (props: InitTransportProps) => ESocketCallbackStep;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const useTransportControllers: () => {
|
|
2
|
+
setSettings: (transportSetting: import("../../../services/types").TransportSetting) => void;
|
|
3
|
+
init: () => void;
|
|
4
|
+
reInit: () => void;
|
|
5
|
+
endpoints: import("react-memory-optimization/dist/lib/socket/types").SocketInterface;
|
|
6
|
+
addSubscriber: (key: keyof import("react-memory-optimization/dist/lib/socket/types").SocketInterface, data: unknown) => any;
|
|
7
|
+
removeSubscriber: (key: keyof import("react-memory-optimization/dist/lib/socket/types").SocketInterface, uid: string | {
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
uid: string;
|
|
10
|
+
}) => any;
|
|
11
|
+
sendCommand: (key: string, data: {
|
|
12
|
+
[key: string]: string | number | any[];
|
|
13
|
+
}, isWatching?: boolean) => void;
|
|
14
|
+
isConnected: boolean;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useUpdateSettings: <T>(props: any) => T;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum EGettingInfoStatus {
|
|
2
|
+
Idle = "idle",
|
|
3
|
+
Pending = "pending",
|
|
4
|
+
Success = "success",
|
|
5
|
+
Error = "error"
|
|
6
|
+
}
|
|
7
|
+
export declare enum DeviceType {
|
|
8
|
+
Desktop = 0,
|
|
9
|
+
Mobile = 1,
|
|
10
|
+
Tablet = 2
|
|
11
|
+
}
|
|
12
|
+
export type BaseHookType = {
|
|
13
|
+
isConnectedApp: boolean;
|
|
14
|
+
betUid?: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { getCurrencyInfoByIdOrName } from 'react-memory-optimization/dist/bundle';
|
|
2
|
+
import { useTransportControllers } from './hooks/transport/useTransportControllers';
|
|
3
|
+
import { useInitTransport } from './hooks/transport/useInitTransport';
|
|
4
|
+
import { useCasinoGames } from './hooks/casino/useCasinoGames';
|
|
5
|
+
import { useCasinoHomeCategories } from './hooks/casino/useCasinoHomeCategories';
|
|
6
|
+
import { useGetProviderGames } from './hooks/casino/useGetProviderGames';
|
|
7
|
+
import { useJackpots } from './hooks/casino/useJackpots';
|
|
8
|
+
import { useBattles } from './hooks/casino/useBattles';
|
|
9
|
+
import { useProviders } from './hooks/casino/useProviders';
|
|
10
|
+
import { useHasDemoModeGame } from './hooks/casino/useHasDemoModeGame';
|
|
11
|
+
import { useCasinoCategories } from './hooks/casino/useCasinoCategories';
|
|
12
|
+
import { useCasinoSubCategories } from './hooks/casino/useCasinoSubCategories';
|
|
13
|
+
import { useCasinoGame } from './hooks/casino/useCasinoGame';
|
|
14
|
+
import { useCategoryInfoByCategoryId } from './hooks/casino/useCategoryInfoByCategoryId';
|
|
15
|
+
import { useLastWinner } from './hooks/casino/useLastWinner';
|
|
16
|
+
import { useHistoryTransactions } from './hooks/profile/operations/useHistoryTransactions';
|
|
17
|
+
import { useMonthlyBonus } from './hooks/profile/operations/useMonthlyBonus';
|
|
18
|
+
import { useTournamentBonus } from './hooks/profile/operations/useTournamentBonus';
|
|
19
|
+
import { useCashBonus } from './hooks/profile/operations/useCashBonus';
|
|
20
|
+
import { useGetPaymentsOperations } from './hooks/profile/operations/useGetPaymentsOperations';
|
|
21
|
+
import { useRakeBack } from './hooks/profile/operations/useRakeBack';
|
|
22
|
+
import { useGetVipProgress } from './hooks/profile/operations/useGetVipProgress';
|
|
23
|
+
import { useWeeklyBonus } from './hooks/profile/operations/useWeeklyBonus';
|
|
24
|
+
import { useWagerBonuses } from './hooks/profile/operations/useWagerBonuses';
|
|
25
|
+
import { useCountryInfo } from './hooks/profile/useCountryInfo';
|
|
26
|
+
import { useBonuses } from './hooks/profile/bonuses/useBonuses';
|
|
27
|
+
import { useAnyActiveBonuses } from './hooks/profile/bonuses/useAnyActiveBonuses';
|
|
28
|
+
import { useFavoriteController } from './hooks/profile/favorites/useFavoriteController';
|
|
29
|
+
import { useIsFavoriteGame } from './hooks/profile/favorites/useIsFavoriteGame';
|
|
30
|
+
import { useFavoriteGames } from './hooks/profile/favorites/useFavoriteGames';
|
|
31
|
+
import { useBalance } from './hooks/profile/balance/useBalance';
|
|
32
|
+
import { useCurrency } from './hooks/profile/useCurrency';
|
|
33
|
+
import { useUserMinOdd } from './hooks/profile/depOdd';
|
|
34
|
+
import { usePromoCodeControllers } from './hooks/profile/promoCode/usePromoCodeControllers';
|
|
35
|
+
import { useAuth } from './hooks/profile/useAuth';
|
|
36
|
+
import { useUserInfo } from './hooks/profile/useUserInfo';
|
|
37
|
+
import { usePayments } from './hooks/profile/payments/usePayments';
|
|
38
|
+
import { useReferralLink } from './hooks/profile/referral/useReferralLink';
|
|
39
|
+
import { useBettingAvailableStatus } from './hooks/betting/settings/useBettingAvailableStatus';
|
|
40
|
+
import { useBettingSettingStatus } from './hooks/betting/settings/useBettingSettingStatus';
|
|
41
|
+
import { useBettingTopTournaments } from './hooks/betting/tournaments/useBettingTopTournaments';
|
|
42
|
+
import { useBettingTournamentById } from './hooks/betting/tournaments/useBettingTournamentById';
|
|
43
|
+
import { useBettingTournamentsByCategoryIdOrSportId } from './hooks/betting/tournaments/useBettingTournamentsByCategoryIdOrSportId';
|
|
44
|
+
import { useBettingCategoryIds } from './hooks/betting/categories/useBettingCategoryIds';
|
|
45
|
+
import { useGetCategoryInfo } from './hooks/betting/categories/useGetCategoryInfo';
|
|
46
|
+
import { useBettingSports } from './hooks/betting/sports/useBettingSports';
|
|
47
|
+
import { useBettingSportsById } from './hooks/betting/sports/useBettingSportsById';
|
|
48
|
+
import { useOdd } from './hooks/betting/odd/useOdd';
|
|
49
|
+
import { useGetLines } from './hooks/betting/lines/useGetLines';
|
|
50
|
+
import { useShortLineInfo } from './hooks/betting/lines/useShortLineInfo';
|
|
51
|
+
import { useAdditionalLines } from './hooks/betting/lines/useAdditionalLines';
|
|
52
|
+
import { useCounterLines } from './hooks/betting/lines/useCounterLines';
|
|
53
|
+
import { useHistoryTickets } from './hooks/betting/tickets/useHistoryTickets';
|
|
54
|
+
import { useTickets } from './hooks/betting/tickets/useTickets';
|
|
55
|
+
import { useTicketInfo } from './hooks/betting/tickets/useTicketInfo';
|
|
56
|
+
import { useTicketControllers } from './hooks/betting/tickets/useTicketControllers';
|
|
57
|
+
import { useBettingTopEvents } from './hooks/betting/events/useBettingTopEvents';
|
|
58
|
+
import { useEventDetailsMarketTabs } from './hooks/betting/events/useEventDetailsMarketTabs';
|
|
59
|
+
import { useEventDetailsMarketsByGroupId } from './hooks/betting/events/useEventDetailsMarketsByGroupId';
|
|
60
|
+
import { useEventsByTournamentId } from './hooks/betting/events/useEventsByTournamentId';
|
|
61
|
+
import { useScore } from './hooks/betting/events/useScore';
|
|
62
|
+
import { useShortEventInfo } from './hooks/betting/events/useShortEventInfo';
|
|
63
|
+
import { useGetMarketFilters } from './hooks/betting/markets/useGetMarketFilters';
|
|
64
|
+
import { useGetFilterMarketNames } from './hooks/betting/markets/useGetFilterMarketNames';
|
|
65
|
+
import { useBetSlipIsSelectedOdd } from './hooks/betting/betSlip/useBetSlipIsSelectedOdd';
|
|
66
|
+
import { useBetSlipBets } from './hooks/betting/betSlip/useBetSlipBets';
|
|
67
|
+
import { useBetSlipControllers } from './hooks/betting/betSlip/useBetSlipControllers';
|
|
68
|
+
import { useBetSlipEventCounter } from './hooks/betting/betSlip/useBetSlipEventCounter';
|
|
69
|
+
import { useBetSlipPlaceBet } from './hooks/betting/betSlip/useBetSlipPlaceBet';
|
|
70
|
+
import { useBetSlipShortInfo } from './hooks/betting/betSlip/useBetSlipShortInfo';
|
|
71
|
+
import { useBetSlipMaxLimit } from './hooks/betting/betSlip/useBetSlipMaxLimit';
|
|
72
|
+
import { useBetSlipSpecialOdd } from './hooks/betting/betSlip/useBetSlipSpecialOdd';
|
|
73
|
+
import { useBetSlipAmount } from 'hooks/betting/betSlip/useBetSlipAmount';
|
|
74
|
+
import { useReferralBalance } from 'hooks/profile/referral/useReferralBalance';
|
|
75
|
+
import { useReferralControllers } from 'hooks/profile/referral/useReferralControllers';
|
|
76
|
+
import { useReferralClients } from 'hooks/profile/referral/useReferralClients';
|
|
77
|
+
import { useBonusCoins } from 'hooks/profile/balance/useBonusCoins';
|
|
78
|
+
import { useBonusWheelController } from 'hooks/profile/kGames/bonusWheel/useBonusWheelController';
|
|
79
|
+
import { useDailyTasks } from 'hooks/profile/kGames/dailyTasks/useDailyTasks';
|
|
80
|
+
import { useDailyActiveTask } from 'hooks/profile/kGames/dailyTasks/useActiveDailyTask';
|
|
81
|
+
import { useDailyTaskControllers } from 'hooks/profile/kGames/dailyTasks/useDailyTaskControllers';
|
|
82
|
+
import { useUserAvatars } from 'hooks/profile/avatars/useUserAvatars';
|
|
83
|
+
import { useUserAvatar } from 'hooks/profile/avatars/useUserAvatar';
|
|
84
|
+
import { useUserAvatarControllers } from 'hooks/profile/avatars/useUserAvatarControllers';
|
|
85
|
+
/**
|
|
86
|
+
* This file contains a collection of custom hooks used throughout the application.
|
|
87
|
+
* Each hook is designed to encapsulate a specific functionality, making it easier to reuse and maintain code.
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* The hooks are organized into categories based on their functionality, such as "betting", "casino", "profile", and "experimental".
|
|
91
|
+
* Each category contains a set of related hooks that can be used together to build complex features.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* To use a hook, simply import it from this file and call it in your component. For example:
|
|
95
|
+
* ```
|
|
96
|
+
* import { useBettingAvailableStatus } from './hooks/betting/settings/useBettingAvailableStatus';
|
|
97
|
+
*
|
|
98
|
+
* const MyComponent = () => {
|
|
99
|
+
* const isBettingAvailable = useBettingAvailableStatus();
|
|
100
|
+
* // ...
|
|
101
|
+
* }
|
|
102
|
+
* ```
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export { useBettingAvailableStatus, useBettingSettingStatus, useBettingTopTournaments, useBettingTournamentById, useBettingTournamentsByCategoryIdOrSportId, useBettingCategoryIds, useGetCategoryInfo, useBettingSports, useBettingSportsById, useOdd, useGetLines, useShortLineInfo, useCounterLines, useAdditionalLines, useTickets, useTicketInfo, useTicketControllers, useHistoryTickets, useBettingTopEvents, useEventDetailsMarketTabs, useEventDetailsMarketsByGroupId, useEventsByTournamentId, useScore, useShortEventInfo, useGetMarketFilters, useGetFilterMarketNames, useBetSlipIsSelectedOdd, useBetSlipBets, useBetSlipControllers, useBetSlipEventCounter, useBetSlipPlaceBet, useBetSlipShortInfo, useBetSlipMaxLimit, useBetSlipSpecialOdd, useBetSlipAmount, };
|
|
106
|
+
export { useJackpots, useProviders, useCasinoGames, useCasinoGame, useCasinoSubCategories, useCasinoHomeCategories, useBattles, useGetProviderGames, useHasDemoModeGame, useCasinoCategories, useCategoryInfoByCategoryId, useLastWinner, };
|
|
107
|
+
export { useIsFavoriteGame, useFavoriteGames, useFavoriteController, useHistoryTransactions, useMonthlyBonus, useTournamentBonus, useCashBonus, useGetPaymentsOperations, useWagerBonuses, useRakeBack, useGetVipProgress, useWeeklyBonus, useBonuses, useAnyActiveBonuses, useCountryInfo, useBalance, useBonusCoins, useCurrency, useUserMinOdd, usePromoCodeControllers, useAuth, useUserInfo, usePayments, };
|
|
108
|
+
export { useReferralLink, useReferralBalance, useReferralControllers, useReferralClients, };
|
|
109
|
+
export { useDailyTasks, useDailyActiveTask, useDailyTaskControllers };
|
|
110
|
+
export { useUserAvatar, useUserAvatars, useUserAvatarControllers };
|
|
111
|
+
export { useBonusWheelController };
|
|
112
|
+
export { getCurrencyInfoByIdOrName, useTransportControllers, useInitTransport };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ESocketCallbackStep, SocketInterface } from 'react-memory-optimization/dist/lib/socket/types';
|
|
2
|
+
import { TransportSetting } from './types';
|
|
3
|
+
declare class Transport {
|
|
4
|
+
try: number;
|
|
5
|
+
settings: TransportSetting | null;
|
|
6
|
+
_isConnected: boolean;
|
|
7
|
+
socketUrl: string | null;
|
|
8
|
+
socket: SocketInterface | null;
|
|
9
|
+
language: string;
|
|
10
|
+
subscribers: {
|
|
11
|
+
key: keyof SocketInterface;
|
|
12
|
+
data: unknown;
|
|
13
|
+
}[];
|
|
14
|
+
socketCallback: (status: ESocketCallbackStep) => void;
|
|
15
|
+
decodedDataCallback: (key: string, result: any) => void;
|
|
16
|
+
constructor();
|
|
17
|
+
set isConnected(state: boolean);
|
|
18
|
+
get isConnected(): boolean;
|
|
19
|
+
addSubscriber(key: keyof SocketInterface, data: unknown): any;
|
|
20
|
+
removeSubscriber(key: keyof SocketInterface, uid: string | {
|
|
21
|
+
uid: string;
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
}): any;
|
|
24
|
+
parseSocketSocketStatus(state: ESocketCallbackStep): void;
|
|
25
|
+
init(): void;
|
|
26
|
+
reInit(): void;
|
|
27
|
+
throttleInit(): void;
|
|
28
|
+
sendCommand(key: string, data: {
|
|
29
|
+
[key: string]: string | number | any[];
|
|
30
|
+
}, isWatching?: boolean): void;
|
|
31
|
+
setSettings(transportSetting: TransportSetting): void;
|
|
32
|
+
}
|
|
33
|
+
export declare const transport: Transport;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ERequestIds } from 'react-memory-optimization/dist/lib/binary/types';
|
|
2
|
+
import { ESocketCallbackStep, TBettingSettings, TCasinoSettings } from 'react-memory-optimization/dist/lib/socket/types';
|
|
3
|
+
export type TransportSetting = {
|
|
4
|
+
socketUrl: string;
|
|
5
|
+
language: string;
|
|
6
|
+
appType: number;
|
|
7
|
+
socketCallback: (key: ESocketCallbackStep) => void;
|
|
8
|
+
decodedDataCallback: (key: string, result: any) => void;
|
|
9
|
+
addRequestQueue?: (requestId: ERequestIds) => void;
|
|
10
|
+
casinoSettings: TCasinoSettings;
|
|
11
|
+
bettingSettings: TBettingSettings;
|
|
12
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-render-hooks",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"keywords": [],
|
|
7
|
+
"author": "decoderdog",
|
|
8
|
+
"license": "",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"react-memory-optimization": "0.0.1"
|
|
11
|
+
},
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"brotli": "1.3.3",
|
|
14
|
+
"react": "*",
|
|
15
|
+
"react-dom": "*"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "rm -rf dist/lib && webpack --watch",
|
|
19
|
+
"build": "rm -rf dist && webpack --mode=production --node-env=production",
|
|
20
|
+
"publish": "npm i && npm run build && npm publish",
|
|
21
|
+
"dev:elon": "sudo npm link ../../casino-apps/front-end/web-spa/node_modules/react react-memory-optimization && npm run dev",
|
|
22
|
+
"dev:ssr": "sudo npm link ../../casino-apps/front-end/web-ssr/node_modules/react react-memory-optimization && npm run dev",
|
|
23
|
+
"dev:xxx": "sudo npm link ../../xxxbet/web/node_modules/react react-memory-optimization && npm run dev"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@babel/core": "^7.15.0",
|
|
27
|
+
"@types/react": "^17.0.17",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
|
29
|
+
"@typescript-eslint/parser": "^6.7.5",
|
|
30
|
+
"babel-loader": "^8.2.2",
|
|
31
|
+
"eslint": "^8.42.0",
|
|
32
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
33
|
+
"eslint-config-prettier": "^8.8.0",
|
|
34
|
+
"eslint-plugin-import": "^2.27.5",
|
|
35
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
36
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
37
|
+
"eslint-plugin-react": "^7.32.2",
|
|
38
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
39
|
+
"prettier": "^2.8.8",
|
|
40
|
+
"ts-loader": "^9.2.5",
|
|
41
|
+
"typescript": "^4.3.5",
|
|
42
|
+
"webpack": "^5.88.2",
|
|
43
|
+
"webpack-cli": "^5.1.4"
|
|
44
|
+
},
|
|
45
|
+
"eslintConfig": {
|
|
46
|
+
"extends": [
|
|
47
|
+
"react-app",
|
|
48
|
+
"react-app/jest"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"files": [
|
|
52
|
+
"dist"
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
}
|