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.
Files changed (26) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/hooks/banners/useBanners/index.d.ts +5 -0
  3. package/dist/lib/hooks/betting/sports/useBettingSportsById/index.d.ts +1 -1
  4. package/dist/lib/hooks/betting/tickets/useTicketInfo/index.d.ts +2 -2
  5. package/dist/lib/hooks/betting/tournaments/useBettingTopTournaments/index.d.ts +1 -1
  6. package/dist/lib/hooks/casino/categories/useCasinoCategories/index.d.ts +1 -1
  7. package/dist/lib/hooks/casino/categories/useCasinoHomeCategories/index.d.ts +1 -1
  8. package/dist/lib/hooks/casino/categories/useCasinoSubCategories/index.d.ts +1 -1
  9. package/dist/lib/hooks/casino/games/useCasinoGame/index.d.ts +1 -1
  10. package/dist/lib/hooks/casino/games/useCasinoGames/index.d.ts +1 -1
  11. package/dist/lib/hooks/casino/promotion/usePromotions/index.d.ts +1 -1
  12. package/dist/lib/hooks/casino/useBattles/index.d.ts +1 -1
  13. package/dist/lib/hooks/casino/useJackpots/index.d.ts +1 -1
  14. package/dist/lib/hooks/profile/avatars/useAvatars/index.d.ts +1 -1
  15. package/dist/lib/hooks/profile/avatars/useUserAvatarControllers/index.d.ts +0 -8
  16. package/dist/lib/hooks/profile/operations/useGetVipProgress/index.d.ts +1 -1
  17. package/dist/lib/hooks/profile/promoCode/usePromoCodeControllers/index.d.ts +1 -1
  18. package/dist/lib/hooks/transport/useTransportControllers/index.d.ts +2 -2
  19. package/dist/lib/hooks/transport/useUpdateSettings/index.d.ts +1 -1
  20. package/dist/lib/index.d.ts +2 -6
  21. package/dist/lib/services/transport.d.ts +0 -2
  22. package/package.json +2 -2
  23. package/dist/lib/hooks/profile/kGames/bonusWheel/useBonusWheelController/index.d.ts +0 -8
  24. package/dist/lib/hooks/profile/kGames/dailyTasks/useActiveDailyTask/index.d.ts +0 -2
  25. package/dist/lib/hooks/profile/kGames/dailyTasks/useDailyTaskControllers/index.d.ts +0 -3
  26. package/dist/lib/hooks/profile/kGames/dailyTasks/useDailyTasks/index.d.ts +0 -2
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ isMobile: boolean;
3
+ };
4
+ export declare const useHomeBanners: (props: Props) => any;
5
+ export {};
@@ -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,4 +1,4 @@
1
1
  import { ResponseHomePageInfo } from 'react-memory-optimization/dist/lib/store/casino/entities/categories/types';
2
2
  export declare const useCasinoHomeCategories: ({ isMobile, }: {
3
3
  isMobile: boolean;
4
- }) => ResponseHomePageInfo;
4
+ }) => ResponseHomePageInfo | null;
@@ -3,5 +3,5 @@ type Props = {
3
3
  categoryId: number | null;
4
4
  isMobile: boolean;
5
5
  };
6
- export declare const useCasinoSubCategories: (props: Props) => CasinoSubCategory[];
6
+ export declare const useCasinoSubCategories: (props: Props) => CasinoSubCategory[] | null;
7
7
  export {};
@@ -4,4 +4,4 @@ export type Props = {
4
4
  isMobile: boolean;
5
5
  force?: boolean;
6
6
  };
7
- export declare const useCasinoGame: (props: Props) => AdaptedGame;
7
+ export declare const useCasinoGame: (props: Props) => AdaptedGame | null;
@@ -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
  };
@@ -7,6 +7,6 @@ export type ReturnTypeProps = {
7
7
  percent: number;
8
8
  };
9
9
  export declare const useGetVipProgress: ({ path, }: {
10
- path?: string;
10
+ path?: string | undefined;
11
11
  }) => ReturnTypeProps;
12
12
  export {};
@@ -1,3 +1,3 @@
1
1
  export declare const usePromoCodeControllers: () => {
2
- handleActivate: (code: string) => void;
2
+ handleActivate: (code: string) => void | undefined;
3
3
  };
@@ -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;
@@ -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, };
@@ -19,8 +19,6 @@ declare class Transport {
19
19
  };
20
20
  };
21
21
  };
22
- socketCallback: (status: ESocketCallbackStep) => void;
23
- decodedDataCallback: (key: string, result: any) => void;
24
22
  constructor();
25
23
  set isConnected(state: boolean);
26
24
  get isConnected(): boolean;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "react-render-hooks",
3
- "version": "0.0.97",
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.97"
10
+ "react-memory-optimization": "0.0.99"
11
11
  },
12
12
  "peerDependencies": {
13
13
  "brotli": "1.3.3",
@@ -1,8 +0,0 @@
1
- import { BaseHookType } from 'hooks/types';
2
- export declare const useBonusWheelController: ({ isConnectedApp }: BaseHookType) => {
3
- getWheelResult: () => {
4
- value: number;
5
- result: number;
6
- };
7
- getWheelContent: () => number[];
8
- };
@@ -1,2 +0,0 @@
1
- import { BaseHookType } from 'hooks/types';
2
- export declare const useDailyActiveTask: ({ isConnectedApp }: BaseHookType) => any;
@@ -1,3 +0,0 @@
1
- export declare const useDailyTaskControllers: (isConnectedApp: boolean) => {
2
- setActiveDailyTask: (id: string) => void;
3
- };
@@ -1,2 +0,0 @@
1
- import { BaseHookType } from 'hooks/types';
2
- export declare const useDailyTasks: ({ isConnectedApp }: BaseHookType) => any[];