@opexa/portal-components 0.0.161 → 0.0.163

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 (75) hide show
  1. package/dist/client/utils/createContext.d.ts +2 -2
  2. package/dist/constants/EnvVar.js +5 -8
  3. package/dist/server/utils/prefetchAccountQuery.js +3 -2
  4. package/dist/server/utils/prefetchAvailablePromosQuery.js +3 -2
  5. package/dist/server/utils/prefetchAvailableQuestsCountQuery.js +3 -2
  6. package/dist/server/utils/prefetchAvailableQuestsQuery.js +3 -2
  7. package/dist/server/utils/prefetchBetRecordsQuery.js +3 -2
  8. package/dist/server/utils/prefetchBonusQuery.js +3 -2
  9. package/dist/server/utils/prefetchBonusesCountQuery.js +3 -2
  10. package/dist/server/utils/prefetchBonusesQuery.js +3 -2
  11. package/dist/server/utils/prefetchCashbackBonusQuery.js +3 -2
  12. package/dist/server/utils/prefetchCashbackBonusesCountQuery.js +3 -2
  13. package/dist/server/utils/prefetchCashbackBonusesQuery.js +3 -2
  14. package/dist/server/utils/prefetchCashbackQuery.js +3 -2
  15. package/dist/server/utils/prefetchCashbacksQuery.js +3 -2
  16. package/dist/server/utils/prefetchDepositQuery.js +3 -2
  17. package/dist/server/utils/prefetchDepositRecordsQuery.js +3 -2
  18. package/dist/server/utils/prefetchDepositsCountQuery.js +3 -2
  19. package/dist/server/utils/prefetchFavoriteGamesQuery.js +3 -2
  20. package/dist/server/utils/prefetchFileQuery.js +3 -2
  21. package/dist/server/utils/prefetchGamesQuery.js +3 -2
  22. package/dist/server/utils/prefetchInstapayBankListQuery.js +3 -2
  23. package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +3 -2
  24. package/dist/server/utils/prefetchJackpotsCountQuery.js +3 -2
  25. package/dist/server/utils/prefetchJackpotsQuery.js +3 -2
  26. package/dist/server/utils/prefetchMemberVerificationQuery.js +3 -2
  27. package/dist/server/utils/prefetchOnboardingStatusQuery.js +3 -2
  28. package/dist/server/utils/prefetchPaymentSettingsQuery.js +3 -2
  29. package/dist/server/utils/prefetchPlatformQuery.d.ts +1 -1
  30. package/dist/server/utils/prefetchPlatformQuery.js +3 -2
  31. package/dist/server/utils/prefetchProfileCompletionQuery.js +3 -2
  32. package/dist/server/utils/prefetchPromoQuery.js +3 -2
  33. package/dist/server/utils/prefetchPromosQuery.js +3 -2
  34. package/dist/server/utils/prefetchRecommendedGamesQuery.js +3 -2
  35. package/dist/server/utils/prefetchSessionQuery.d.ts +1 -1
  36. package/dist/server/utils/prefetchSessionQuery.js +3 -2
  37. package/dist/server/utils/prefetchSiteQuery.js +3 -2
  38. package/dist/server/utils/prefetchTopWinsQuery.js +3 -2
  39. package/dist/server/utils/prefetchTournamentsCountQuery.js +3 -2
  40. package/dist/server/utils/prefetchTournamentsQuery.js +3 -2
  41. package/dist/server/utils/prefetchTransactionRecordsQuery.js +3 -2
  42. package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +3 -2
  43. package/dist/server/utils/prefetchWalletQuery.js +3 -2
  44. package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +3 -2
  45. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  46. package/dist/ui/Avatar/Avatar.d.ts +9 -9
  47. package/dist/ui/Badge/Badge.d.ts +12 -12
  48. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  49. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  50. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  51. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  52. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  53. package/dist/ui/Dialog/Dialog.d.ts +88 -88
  54. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  55. package/dist/ui/Field/Field.d.ts +21 -21
  56. package/dist/ui/Menu/Menu.d.ts +90 -90
  57. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  58. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  59. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  60. package/dist/ui/Popover/Popover.d.ts +88 -88
  61. package/dist/ui/Progress/Progress.d.ts +27 -27
  62. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  63. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  64. package/dist/ui/Select/Select.d.ts +45 -45
  65. package/dist/ui/Table/Table.d.ts +21 -21
  66. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  67. package/dist/utils/capitalize.d.ts +1 -2
  68. package/dist/utils/capitalize.js +3 -1
  69. package/dist/utils/createPoll.d.ts +1 -2
  70. package/dist/utils/createSplitProps.d.ts +1 -1
  71. package/dist/utils/createSplitProps.js +3 -2
  72. package/dist/utils/mask.d.ts +2 -3
  73. package/dist/utils/mask.js +3 -2
  74. package/dist/utils/onMobileDevice.d.ts +1 -2
  75. package/package.json +1 -1
@@ -1,8 +1,9 @@
1
+ import { cache } from 'react';
1
2
  import { getQueryClient } from '../../utils/getQueryClient.js';
2
3
  import { log } from '../../utils/log.js';
3
4
  import { getSessionQueryKey } from '../../utils/queryKeys.js';
4
5
  import { getSession } from '../services/getSession.js';
5
- export async function prefetchSessionQuery() {
6
+ export const prefetchSessionQuery = cache(async () => {
6
7
  await getQueryClient()
7
8
  .prefetchQuery({
8
9
  queryKey: getSessionQueryKey(),
@@ -11,4 +12,4 @@ export async function prefetchSessionQuery() {
11
12
  },
12
13
  })
13
14
  .catch(() => log.text("'prefetchSessionQuery' failed", 'error'));
14
- }
15
+ });
@@ -1,8 +1,9 @@
1
+ import { cache } from 'react';
1
2
  import { getSite } from '../../services/cmsPortal.js';
2
3
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
4
  import { log } from '../../utils/log.js';
4
5
  import { getSiteQueryKey } from '../../utils/queryKeys.js';
5
- export const prefetchSiteQuery = async () => {
6
+ export const prefetchSiteQuery = cache(async () => {
6
7
  await getQueryClient()
7
8
  .prefetchQuery({
8
9
  queryKey: getSiteQueryKey(),
@@ -11,4 +12,4 @@ export const prefetchSiteQuery = async () => {
11
12
  },
12
13
  })
13
14
  .catch(() => log.text("'prefetchSiteQuery' failed", 'error'));
14
- };
15
+ });
@@ -1,8 +1,9 @@
1
+ import { cache } from 'react';
1
2
  import { getTopWins } from '../../services/portal.js';
2
3
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
4
  import { log } from '../../utils/log.js';
4
5
  import { getTopWinsQueryKey } from '../../utils/queryKeys.js';
5
- export const prefetchTopWinsQuery = async () => {
6
+ export const prefetchTopWinsQuery = cache(async () => {
6
7
  await getQueryClient()
7
8
  .prefetchQuery({
8
9
  queryKey: getTopWinsQueryKey(),
@@ -11,4 +12,4 @@ export const prefetchTopWinsQuery = async () => {
11
12
  },
12
13
  })
13
14
  .catch(() => log.text("'prefetchTopWinsQuery' failed", 'error'));
14
- };
15
+ });
@@ -1,8 +1,9 @@
1
+ import { cache } from 'react';
1
2
  import { getTournamentsCount, } from '../../services/report.js';
2
3
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
4
  import { log } from '../../utils/log.js';
4
5
  import { getTournamentsCountQueryKey } from '../../utils/queryKeys.js';
5
- export const prefetchTournamentsCountQuery = async (input) => {
6
+ export const prefetchTournamentsCountQuery = cache(async (input) => {
6
7
  await getQueryClient()
7
8
  .prefetchQuery({
8
9
  queryKey: getTournamentsCountQueryKey(input),
@@ -11,4 +12,4 @@ export const prefetchTournamentsCountQuery = async (input) => {
11
12
  },
12
13
  })
13
14
  .catch(() => log.text("'prefetchTournamentsCountQuery' failed", 'error'));
14
- };
15
+ });
@@ -1,8 +1,9 @@
1
+ import { cache } from 'react';
1
2
  import { getTournaments } from '../../services/report.js';
2
3
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
4
  import { log } from '../../utils/log.js';
4
5
  import { getTournamentsQueryKey } from '../../utils/queryKeys.js';
5
- export const prefetchTournamentsQuery = async (input) => {
6
+ export const prefetchTournamentsQuery = cache(async (input) => {
6
7
  await getQueryClient()
7
8
  .prefetchInfiniteQuery({
8
9
  queryKey: getTournamentsQueryKey(input),
@@ -12,4 +13,4 @@ export const prefetchTournamentsQuery = async (input) => {
12
13
  initialPageParam: undefined,
13
14
  })
14
15
  .catch(() => log.text("'prefetchTournamentsQuery' failed", 'error'));
15
- };
16
+ });
@@ -1,9 +1,10 @@
1
+ import { cache } from 'react';
1
2
  import { getTransactionRecords, } from '../../services/report.js';
2
3
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
4
  import { log } from '../../utils/log.js';
4
5
  import { getTransactionRecordsQueryKey } from '../../utils/queryKeys.js';
5
6
  import { getSession } from '../services/getSession.js';
6
- export const prefetchTransactionRecordsQuery = async (input) => {
7
+ export const prefetchTransactionRecordsQuery = cache(async (input) => {
7
8
  const session = await getSession();
8
9
  if (session.status === 'unauthenticated')
9
10
  return;
@@ -21,4 +22,4 @@ export const prefetchTransactionRecordsQuery = async (input) => {
21
22
  initialPageParam: undefined,
22
23
  })
23
24
  .catch(() => log.text("'prefetchTransactionRecordsQuery' failed", 'error'));
24
- };
25
+ });
@@ -1,9 +1,10 @@
1
+ import { cache } from 'react';
1
2
  import { getUnreadMessagesCount, } from '../../services/trigger.js';
2
3
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
4
  import { log } from '../../utils/log.js';
4
5
  import { getAccountQueryKey } from '../../utils/queryKeys.js';
5
6
  import { getSession } from '../services/getSession.js';
6
- export const prefetchUnreadMessagesCountQuery = async (input) => {
7
+ export const prefetchUnreadMessagesCountQuery = cache(async (input) => {
7
8
  const session = await getSession();
8
9
  if (session.status === 'unauthenticated')
9
10
  return;
@@ -20,4 +21,4 @@ export const prefetchUnreadMessagesCountQuery = async (input) => {
20
21
  },
21
22
  })
22
23
  .catch(() => log.text("'prefetchUnreadMessagesCountQuery' failed", 'error'));
23
- };
24
+ });
@@ -1,9 +1,10 @@
1
+ import { cache } from 'react';
1
2
  import { getWallet } from '../../services/wallet.js';
2
3
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
4
  import { log } from '../../utils/log.js';
4
5
  import { getWalletQueryKey } from '../../utils/queryKeys.js';
5
6
  import { getSession } from '../services/getSession.js';
6
- export const prefetchWalletQuery = async () => {
7
+ export const prefetchWalletQuery = cache(async () => {
7
8
  const session = await getSession();
8
9
  if (session.status === 'unauthenticated')
9
10
  return;
@@ -21,4 +22,4 @@ export const prefetchWalletQuery = async () => {
21
22
  },
22
23
  })
23
24
  .catch(() => log.text("'prefetchWalletQuery' failed", 'error'));
24
- };
25
+ });
@@ -1,9 +1,10 @@
1
+ import { cache } from 'react';
1
2
  import { getWithdrawalRecords, } from '../../services/report.js';
2
3
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
4
  import { log } from '../../utils/log.js';
4
5
  import { getWithdrawalRecordsQueryKey } from '../../utils/queryKeys.js';
5
6
  import { getSession } from '../services/getSession.js';
6
- export const prefetchWithdrawalRecordsQuery = async (input) => {
7
+ export const prefetchWithdrawalRecordsQuery = cache(async (input) => {
7
8
  const session = await getSession();
8
9
  if (session.status === 'unauthenticated')
9
10
  return;
@@ -21,4 +22,4 @@ export const prefetchWithdrawalRecordsQuery = async (input) => {
21
22
  initialPageParam: undefined,
22
23
  })
23
24
  .catch(() => log.text("'prefetchWithdrawalRecordsQuery' failed", 'error'));
24
- };
25
+ });