react-render-hooks 0.0.69 → 0.0.71
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.
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ERegistrationFlow } from './types';
|
|
2
|
+
type Props = {
|
|
3
|
+
removeRequestId: (id: number) => void;
|
|
4
|
+
addRequestId: (id: number) => void;
|
|
5
|
+
registrationPath?: string;
|
|
6
|
+
authFailed: () => void;
|
|
7
|
+
authFlow?: (token: string) => void;
|
|
8
|
+
redirectAndSignUp?: (key: string, data: any) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const useRegistration: (props: Props) => {
|
|
11
|
+
sendRegistrationCommand: (flow: keyof typeof ERegistrationFlow) => (key: string, data: any) => Promise<void>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const prepareRegistrationData: (data: any) => {
|
|
2
|
+
step: any;
|
|
3
|
+
client_id: number;
|
|
4
|
+
name: any;
|
|
5
|
+
surname: any;
|
|
6
|
+
email: any;
|
|
7
|
+
phone: any;
|
|
8
|
+
login: string;
|
|
9
|
+
password: any;
|
|
10
|
+
currency: any;
|
|
11
|
+
country: any;
|
|
12
|
+
country_id: any;
|
|
13
|
+
timezone: any;
|
|
14
|
+
promocode: any;
|
|
15
|
+
utm_medium: any;
|
|
16
|
+
utm_source: any;
|
|
17
|
+
utm_campaign: any;
|
|
18
|
+
user_lang: any;
|
|
19
|
+
click_id: any;
|
|
20
|
+
device: any;
|
|
21
|
+
prefix: any;
|
|
22
|
+
is_sending_email: boolean;
|
|
23
|
+
city: string;
|
|
24
|
+
region: string;
|
|
25
|
+
postal_code: string;
|
|
26
|
+
address: string;
|
|
27
|
+
gender: number;
|
|
28
|
+
};
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -87,6 +87,9 @@ import { useAvatars } from 'hooks/profile/avatars/useAvatars';
|
|
|
87
87
|
import { useUserAvatarControllers } from 'hooks/profile/avatars/useUserAvatarControllers';
|
|
88
88
|
import { useAccrualHistory } from 'hooks/profile/operations/useAccrualHistory';
|
|
89
89
|
import { usePromotions } from 'hooks/casino/promotion/usePromotions';
|
|
90
|
+
import { useRegistration } from 'hooks/shared/useRegistration';
|
|
91
|
+
export { ERegistrationFlow } from 'hooks/shared/useRegistration/types';
|
|
92
|
+
export { prepareRegistrationData } from 'hooks/shared/useRegistration/utils';
|
|
90
93
|
/**
|
|
91
94
|
* This file contains a collection of custom hooks used throughout the application.
|
|
92
95
|
* Each hook is designed to encapsulate a specific functionality, making it easier to reuse and maintain code.
|
|
@@ -109,7 +112,7 @@ import { usePromotions } from 'hooks/casino/promotion/usePromotions';
|
|
|
109
112
|
*/
|
|
110
113
|
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, };
|
|
111
114
|
export { useJackpots, useProviders, useCasinoGames, useCasinoGame, useCasinoSubCategories, useCasinoHomeCategories, useBattles, useHasDemoModeGame, useCasinoCategories, useLastWinner, usePromotions, };
|
|
112
|
-
export { useIsFavoriteGame, useFavoriteGames, useFavoriteController, useHistoryTransactions, useMonthlyBonus, useTournamentBonus, useCashBonus, useWagerBonuses, useRakeBack, useGetVipProgress, useWeeklyBonus, useBonuses, useAccrualHistory, useAnyActiveBonuses, useAnyAvailableBonuses, useCountryInfo, useBalance, useBonusCoins, useCurrency, useUserMinOdd, useStories, usePromoCodeControllers, useAuth, useGoogleAuth, useUserInfo, usePayments, };
|
|
115
|
+
export { useIsFavoriteGame, useFavoriteGames, useFavoriteController, useHistoryTransactions, useMonthlyBonus, useTournamentBonus, useCashBonus, useWagerBonuses, useRakeBack, useGetVipProgress, useWeeklyBonus, useBonuses, useAccrualHistory, useAnyActiveBonuses, useAnyAvailableBonuses, useCountryInfo, useBalance, useBonusCoins, useCurrency, useUserMinOdd, useStories, usePromoCodeControllers, useAuth, useGoogleAuth, useUserInfo, usePayments, useRegistration, };
|
|
113
116
|
export { useReferralLink, useReferralBalance, useReferralControllers, useReferralClients, };
|
|
114
117
|
export { useDailyTasks, useDailyActiveTask, useDailyTaskControllers };
|
|
115
118
|
export { useAvatars, useUserAvatarControllers };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-render-hooks",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71",
|
|
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.71"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"brotli": "1.3.3",
|