react-render-hooks 0.0.97 → 0.0.99
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 -1
- package/dist/lib/hooks/banners/useBanners/index.d.ts +5 -0
- package/dist/lib/hooks/betting/sports/useBettingSportsById/index.d.ts +1 -1
- package/dist/lib/hooks/betting/tickets/useTicketInfo/index.d.ts +2 -2
- package/dist/lib/hooks/betting/tournaments/useBettingTopTournaments/index.d.ts +1 -1
- package/dist/lib/hooks/casino/categories/useCasinoCategories/index.d.ts +1 -1
- package/dist/lib/hooks/casino/categories/useCasinoHomeCategories/index.d.ts +1 -1
- package/dist/lib/hooks/casino/categories/useCasinoSubCategories/index.d.ts +1 -1
- package/dist/lib/hooks/casino/games/useCasinoGame/index.d.ts +1 -1
- package/dist/lib/hooks/casino/games/useCasinoGames/index.d.ts +1 -1
- package/dist/lib/hooks/casino/promotion/usePromotions/index.d.ts +1 -1
- package/dist/lib/hooks/casino/useBattles/index.d.ts +1 -1
- package/dist/lib/hooks/casino/useJackpots/index.d.ts +1 -1
- package/dist/lib/hooks/profile/avatars/useAvatars/index.d.ts +1 -1
- package/dist/lib/hooks/profile/avatars/useUserAvatarControllers/index.d.ts +0 -8
- package/dist/lib/hooks/profile/operations/useGetVipProgress/index.d.ts +1 -1
- package/dist/lib/hooks/profile/promoCode/usePromoCodeControllers/index.d.ts +1 -1
- package/dist/lib/hooks/transport/useTransportControllers/index.d.ts +2 -2
- package/dist/lib/hooks/transport/useUpdateSettings/index.d.ts +1 -1
- package/dist/lib/index.d.ts +2 -6
- package/dist/lib/services/transport.d.ts +0 -2
- package/package.json +2 -2
- package/dist/lib/hooks/profile/kGames/bonusWheel/useBonusWheelController/index.d.ts +0 -8
- package/dist/lib/hooks/profile/kGames/dailyTasks/useActiveDailyTask/index.d.ts +0 -2
- package/dist/lib/hooks/profile/kGames/dailyTasks/useDailyTaskControllers/index.d.ts +0 -3
- package/dist/lib/hooks/profile/kGames/dailyTasks/useDailyTasks/index.d.ts +0 -2
|
@@ -3,5 +3,5 @@ import { BaseHookType } from 'hooks/types';
|
|
|
3
3
|
type Props = BaseHookType & {
|
|
4
4
|
sportId: number;
|
|
5
5
|
};
|
|
6
|
-
export declare const useBettingSportsById: ({ sportId, isConnectedApp }: Props) => Sport;
|
|
6
|
+
export declare const useBettingSportsById: ({ sportId, isConnectedApp }: Props) => Sport | null;
|
|
7
7
|
export {};
|
|
@@ -3,7 +3,7 @@ import { Ticket } from 'react-memory-optimization/dist/lib/store/betting/entitie
|
|
|
3
3
|
type Props = BaseHookType & {
|
|
4
4
|
ticketId: number;
|
|
5
5
|
};
|
|
6
|
-
export declare const useTicketInfo: (props: Props) => Ticket & {
|
|
6
|
+
export declare const useTicketInfo: (props: Props) => (Ticket & {
|
|
7
7
|
cashOutInfo: number | null;
|
|
8
|
-
};
|
|
8
|
+
}) | null;
|
|
9
9
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Tournament } from 'react-memory-optimization/dist/lib/store/betting/entities/tournaments/types';
|
|
2
|
-
export declare const useBettingTopTournaments: () => Tournament[];
|
|
2
|
+
export declare const useBettingTopTournaments: () => Tournament[] | null;
|
|
@@ -2,5 +2,5 @@ import { CasinoCategory, CategoriesObservableSetting, CategoryObservable } from
|
|
|
2
2
|
type Props = {
|
|
3
3
|
isMobile: boolean;
|
|
4
4
|
} & (CategoriesObservableSetting | CategoryObservable);
|
|
5
|
-
export declare const useCasinoCategories: (props: Props) => CasinoCategory | CasinoCategory[];
|
|
5
|
+
export declare const useCasinoCategories: (props: Props) => CasinoCategory | CasinoCategory[] | null;
|
|
6
6
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CasinoGamesResponse, ObservableSettingGames } from 'react-memory-optimization/dist/lib/store/casino/entities/games/types';
|
|
2
|
-
export declare const useCasinoGames: (props: ObservableSettingGames) => CasinoGamesResponse;
|
|
2
|
+
export declare const useCasinoGames: (props: ObservableSettingGames) => CasinoGamesResponse | null;
|
|
@@ -2,5 +2,5 @@ import { PromotionEntity } from 'react-memory-optimization/dist/lib/store/casino
|
|
|
2
2
|
type Props = {
|
|
3
3
|
isActive: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const usePromotions: (props: Props) => PromotionEntity | PromotionEntity[];
|
|
5
|
+
export declare const usePromotions: (props: Props) => PromotionEntity | PromotionEntity[] | null;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ActiveTournaments, BattleDetails, HistoryTournaments, TournamentSubscribeProps } from 'react-memory-optimization/dist/lib/store/casino/entities/casinoTournaments/types';
|
|
2
2
|
type Props = TournamentSubscribeProps;
|
|
3
|
-
export declare const useBattles: (props: Props) => HistoryTournaments | ActiveTournaments | BattleDetails;
|
|
3
|
+
export declare const useBattles: (props: Props) => HistoryTournaments | ActiveTournaments | BattleDetails | null;
|
|
4
4
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SubscribeHookType } from 'react-memory-optimization/dist/lib/store/casino/entities/jackpots/types';
|
|
2
|
-
export declare const useJackpots: (props: SubscribeHookType) => any[];
|
|
2
|
+
export declare const useJackpots: (props: SubscribeHookType) => any[] | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { UserInfo } from 'react-memory-optimization/dist/lib/store/user/types';
|
|
2
2
|
import { SubscribeAvatarParams } from 'react-memory-optimization/dist/lib/store/user/entities/avatars/types';
|
|
3
|
-
export declare const useAvatars: (props: SubscribeAvatarParams) => UserInfo[];
|
|
3
|
+
export declare const useAvatars: (props: SubscribeAvatarParams) => UserInfo[] | null;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { AvatarType } from 'react-memory-optimization/dist/lib/store/user/entities/avatars/types';
|
|
2
2
|
export declare const useUserAvatarControllers: () => {
|
|
3
3
|
handleSaveAvatar: (id: AvatarType | null) => void;
|
|
4
|
-
handleBuyAvatar: (info: {
|
|
5
|
-
id: number;
|
|
6
|
-
price: number;
|
|
7
|
-
}) => void;
|
|
8
|
-
handleBuyHero: (info: {
|
|
9
|
-
id: number;
|
|
10
|
-
price: number;
|
|
11
|
-
}) => void;
|
|
12
4
|
};
|
|
@@ -2,7 +2,7 @@ export declare const useTransportControllers: () => {
|
|
|
2
2
|
setSettings: (transportSetting: import("../../../services/types").TransportSetting) => void;
|
|
3
3
|
init: () => void;
|
|
4
4
|
reInit: () => void;
|
|
5
|
-
endpoints: import("react-memory-optimization/dist/lib/socket/types/socket").SocketInterface;
|
|
5
|
+
endpoints: import("react-memory-optimization/dist/lib/socket/types/socket").SocketInterface | null;
|
|
6
6
|
addSubscriber: (key: keyof import("react-memory-optimization/dist/lib/socket/types/socket").SocketInterface, data: unknown) => any;
|
|
7
7
|
removeSubscriber: (key: keyof import("react-memory-optimization/dist/lib/socket/types/socket").SocketInterface, uid: string | {
|
|
8
8
|
[key: string]: unknown;
|
|
@@ -14,7 +14,7 @@ export declare const useTransportControllers: () => {
|
|
|
14
14
|
sendCommand: (key: string, data: {
|
|
15
15
|
[key: string]: string | number | any[];
|
|
16
16
|
} & {
|
|
17
|
-
isRestRequest?: boolean;
|
|
17
|
+
isRestRequest?: boolean | undefined;
|
|
18
18
|
}, isWatching?: boolean) => void;
|
|
19
19
|
isConnected: boolean;
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useUpdateSettings: <T>(props: any) => T;
|
|
1
|
+
export declare const useUpdateSettings: <T>(props: any) => T | null;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -79,16 +79,13 @@ import { useReferralBalance } from 'hooks/profile/referral/useReferralBalance';
|
|
|
79
79
|
import { useReferralControllers } from 'hooks/profile/referral/useReferralControllers';
|
|
80
80
|
import { useReferralClients } from 'hooks/profile/referral/useReferralClients';
|
|
81
81
|
import { useBonusCoins } from 'hooks/profile/balance/useBonusCoins';
|
|
82
|
-
import { useBonusWheelController } from 'hooks/profile/kGames/bonusWheel/useBonusWheelController';
|
|
83
|
-
import { useDailyTasks } from 'hooks/profile/kGames/dailyTasks/useDailyTasks';
|
|
84
|
-
import { useDailyActiveTask } from 'hooks/profile/kGames/dailyTasks/useActiveDailyTask';
|
|
85
|
-
import { useDailyTaskControllers } from 'hooks/profile/kGames/dailyTasks/useDailyTaskControllers';
|
|
86
82
|
import { useAvatars } from 'hooks/profile/avatars/useAvatars';
|
|
87
83
|
import { useUserAvatarControllers } from 'hooks/profile/avatars/useUserAvatarControllers';
|
|
88
84
|
import { useAccrualHistory } from 'hooks/profile/operations/useAccrualHistory';
|
|
89
85
|
import { usePromotions } from 'hooks/casino/promotion/usePromotions';
|
|
90
86
|
import { useRegistration } from 'hooks/shared/useRegistration';
|
|
91
87
|
import { usePresets } from 'hooks/profile/payments/usePresets';
|
|
88
|
+
import { useHomeBanners } from 'hooks/banners/useBanners';
|
|
92
89
|
export { ERegistrationFlow } from 'hooks/shared/useRegistration/types';
|
|
93
90
|
export { prepareRegistrationData } from 'hooks/shared/useRegistration/utils';
|
|
94
91
|
/**
|
|
@@ -112,11 +109,10 @@ export { prepareRegistrationData } from 'hooks/shared/useRegistration/utils';
|
|
|
112
109
|
* @public
|
|
113
110
|
*/
|
|
114
111
|
export { useBettingStatus, useBettingControllers, 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, useFrameUrl, };
|
|
112
|
+
export { useHomeBanners };
|
|
115
113
|
export { useJackpots, useProviders, useCasinoGames, useCasinoGame, useCasinoSubCategories, useCasinoHomeCategories, useBattles, useHasDemoModeGame, useCasinoCategories, useLastWinner, usePromotions, };
|
|
116
114
|
export { useIsFavoriteGame, useFavoriteGames, useFavoriteController, useHistoryTransactions, useMonthlyBonus, useTournamentBonus, useCashBonus, useWagerBonuses, useRakeBack, useGetVipProgress, useWeeklyBonus, useBonuses, useAccrualHistory, useAnyActiveBonuses, useAnyAvailableBonuses, useCountryInfo, useBalance, useBonusCoins, useCurrency, useUserMinOdd, usePresets, useStories, usePromoCodeControllers, useAuth, useGoogleAuth, useUserInfo, usePayments, useRegistration, };
|
|
117
115
|
export { useReferralLink, useReferralBalance, useReferralControllers, useReferralClients, };
|
|
118
|
-
export { useDailyTasks, useDailyActiveTask, useDailyTaskControllers };
|
|
119
116
|
export { useAvatars, useUserAvatarControllers };
|
|
120
|
-
export { useBonusWheelController };
|
|
121
117
|
export { useCurrencies };
|
|
122
118
|
export { getCurrencyInfoByIdOrName, useTransportControllers, useInitTransport, api, };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-render-hooks",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.99",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"keywords": [],
|
|
7
7
|
"author": "decoderdog",
|
|
8
8
|
"license": "",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"react-memory-optimization": "0.0.
|
|
10
|
+
"react-memory-optimization": "0.0.99"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"brotli": "1.3.3",
|