react-render-hooks 0.0.1 → 0.0.3
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/casino/categories/useCasinoCategories/index.d.ts +6 -0
- package/dist/lib/hooks/casino/categories/useCasinoHomeCategories/index.d.ts +4 -0
- package/dist/lib/hooks/casino/{useCasinoGame → games/useCasinoGame}/index.d.ts +1 -1
- package/dist/lib/hooks/casino/games/useCasinoGames/index.d.ts +2 -0
- package/dist/lib/hooks/casino/games/useGetProviderGames/index.d.ts +2 -0
- package/dist/lib/hooks/casino/games/useHasDemoModeGame/index.d.ts +2 -0
- package/dist/lib/hooks/casino/useProviders/index.d.ts +1 -1
- package/dist/lib/hooks/profile/bonuses/useBonuses/index.d.ts +1 -1
- package/dist/lib/hooks/profile/favorites/useFavoriteController/index.d.ts +1 -5
- package/dist/lib/index.d.ts +7 -8
- package/package.json +3 -5
- package/dist/lib/hooks/casino/useCasinoCategories/index.d.ts +0 -7
- package/dist/lib/hooks/casino/useCasinoGames/index.d.ts +0 -3
- package/dist/lib/hooks/casino/useCasinoGames/types.d.ts +0 -11
- package/dist/lib/hooks/casino/useCasinoHomeCategories/index.d.ts +0 -3
- package/dist/lib/hooks/casino/useCategoryInfoByCategoryId/index.d.ts +0 -8
- package/dist/lib/hooks/casino/useGetProviderGames/index.d.ts +0 -11
- package/dist/lib/hooks/casino/useHasDemoModeGame/index.d.ts +0 -7
- /package/dist/lib/hooks/casino/{useCasinoHomeCategories → categories/useCasinoHomeCategories}/types.d.ts +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CasinoCategory, CategoriesObservableSetting, CategoryObservable } from 'react-memory-optimization/dist/lib/store/casino/entities/categories/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
isMobile: boolean;
|
|
4
|
+
} & (CategoriesObservableSetting | CategoryObservable);
|
|
5
|
+
export declare const useCasinoCategories: (props: Props) => CasinoCategory[];
|
|
6
|
+
export {};
|
|
@@ -2,5 +2,5 @@ import { Provider, ObservableProviderGameCountSetting, ObservableProviderInfoSet
|
|
|
2
2
|
type Props = {
|
|
3
3
|
isMobile: boolean;
|
|
4
4
|
} & (ObservableProvidersSetting | ObservableProviderInfoSetting | ObservableProviderGameCountSetting);
|
|
5
|
-
export declare const useProviders: (props: Props) => Provider[] | null;
|
|
5
|
+
export declare const useProviders: (props: Props) => Provider[] | Provider | null;
|
|
6
6
|
export {};
|
|
@@ -2,5 +2,5 @@ import { BonusesResponse } from 'react-memory-optimization/dist/lib/store/operat
|
|
|
2
2
|
type Props = {
|
|
3
3
|
isActive?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const useBonuses: (props: Props) => BonusesResponse;
|
|
5
|
+
export declare const useBonuses: (props: Props) => BonusesResponse | null;
|
|
6
6
|
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { PrepareFavoriteEntitiesForSavingProps } from 'react-memory-optimization/dist/lib/store/user/entities/favorites/types';
|
|
2
|
-
type Props = {
|
|
3
|
-
isConnectedApp: boolean;
|
|
4
|
-
};
|
|
5
2
|
export type ReturnType = {
|
|
6
3
|
updateFavorites?: (d: PrepareFavoriteEntitiesForSavingProps) => void;
|
|
7
4
|
};
|
|
8
|
-
export declare const useFavoriteController: (
|
|
9
|
-
export {};
|
|
5
|
+
export declare const useFavoriteController: () => ReturnType;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { getCurrencyInfoByIdOrName } from 'react-memory-optimization/dist/bundle';
|
|
2
2
|
import { useTransportControllers } from './hooks/transport/useTransportControllers';
|
|
3
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';
|
|
4
|
+
import { useCasinoGames } from './hooks/casino/games/useCasinoGames';
|
|
5
|
+
import { useCasinoHomeCategories } from './hooks/casino/categories/useCasinoHomeCategories';
|
|
6
|
+
import { useGetProviderGames } from './hooks/casino/games/useGetProviderGames';
|
|
7
7
|
import { useJackpots } from './hooks/casino/useJackpots';
|
|
8
8
|
import { useBattles } from './hooks/casino/useBattles';
|
|
9
9
|
import { useProviders } from './hooks/casino/useProviders';
|
|
10
|
-
import { useHasDemoModeGame } from './hooks/casino/useHasDemoModeGame';
|
|
11
|
-
import { useCasinoCategories } from './hooks/casino/useCasinoCategories';
|
|
10
|
+
import { useHasDemoModeGame } from './hooks/casino/games/useHasDemoModeGame';
|
|
11
|
+
import { useCasinoCategories } from './hooks/casino/categories/useCasinoCategories';
|
|
12
12
|
import { useCasinoSubCategories } from './hooks/casino/useCasinoSubCategories';
|
|
13
|
-
import { useCasinoGame } from './hooks/casino/useCasinoGame';
|
|
14
|
-
import { useCategoryInfoByCategoryId } from './hooks/casino/useCategoryInfoByCategoryId';
|
|
13
|
+
import { useCasinoGame } from './hooks/casino/games/useCasinoGame';
|
|
15
14
|
import { useLastWinner } from './hooks/casino/useLastWinner';
|
|
16
15
|
import { useHistoryTransactions } from './hooks/profile/operations/useHistoryTransactions';
|
|
17
16
|
import { useMonthlyBonus } from './hooks/profile/operations/useMonthlyBonus';
|
|
@@ -103,7 +102,7 @@ import { useUserAvatarControllers } from 'hooks/profile/avatars/useUserAvatarCon
|
|
|
103
102
|
* @public
|
|
104
103
|
*/
|
|
105
104
|
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,
|
|
105
|
+
export { useJackpots, useProviders, useCasinoGames, useCasinoGame, useCasinoSubCategories, useCasinoHomeCategories, useBattles, useGetProviderGames, useHasDemoModeGame, useCasinoCategories, useLastWinner, };
|
|
107
106
|
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
107
|
export { useReferralLink, useReferralBalance, useReferralControllers, useReferralClients, };
|
|
109
108
|
export { useDailyTasks, useDailyActiveTask, useDailyTaskControllers };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-render-hooks",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
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.3"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"brotli": "1.3.3",
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
"dev": "rm -rf dist/lib && webpack --watch",
|
|
19
19
|
"build": "rm -rf dist && webpack --mode=production --node-env=production",
|
|
20
20
|
"publish": "npm i && npm run build && npm publish",
|
|
21
|
-
"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"
|
|
21
|
+
"dev:app": "sudo npm link ../../casino-apps/front-end/web-spa/node_modules/react react-memory-optimization && npm run dev"
|
|
24
22
|
},
|
|
25
23
|
"devDependencies": {
|
|
26
24
|
"@babel/core": "^7.15.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CasinoCategory } from 'react-memory-optimization/dist/lib/store/casino/entities/categories/types';
|
|
2
|
-
type Props = {
|
|
3
|
-
isMobile: boolean;
|
|
4
|
-
isWager?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const useCasinoCategories: ({ isMobile, isWager }: Props) => CasinoCategory[];
|
|
7
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AdaptedGame } from 'react-memory-optimization/dist/lib/store/casino/entities/games/types';
|
|
2
|
-
export type Props = {
|
|
3
|
-
categoryId: null | number;
|
|
4
|
-
subCategoryId: null | number;
|
|
5
|
-
page: number;
|
|
6
|
-
limit?: number;
|
|
7
|
-
search: string;
|
|
8
|
-
providerId: number | null;
|
|
9
|
-
isMobile: boolean;
|
|
10
|
-
sortFn?: (a: AdaptedGame, b: AdaptedGame) => number;
|
|
11
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CasinoCategory } from 'react-memory-optimization/dist/lib/store/casino/entities/categories/types';
|
|
2
|
-
type Props = {
|
|
3
|
-
isConnectedApp: boolean;
|
|
4
|
-
isMobile: boolean;
|
|
5
|
-
categoryId: number;
|
|
6
|
-
};
|
|
7
|
-
export declare const useCategoryInfoByCategoryId: (props: Props) => CasinoCategory[];
|
|
8
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CasinoGamesResponse } from 'react-memory-optimization/dist/lib/store/casino/entities/games/types';
|
|
2
|
-
type Props = {
|
|
3
|
-
id: number;
|
|
4
|
-
page: number;
|
|
5
|
-
limit: number;
|
|
6
|
-
isMobile: boolean;
|
|
7
|
-
search?: string;
|
|
8
|
-
excludeGameId?: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const useGetProviderGames: (props: Props) => CasinoGamesResponse;
|
|
11
|
-
export {};
|
|
File without changes
|