@opexa/portal-components 0.0.12 → 0.0.14
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/{hooks → client/hooks}/useAccountQuery.d.ts +1 -1
- package/dist/client/hooks/useAccountQuery.js +1 -0
- package/dist/client/hooks/useAccountQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useAuthenticateMutation.d.ts +1 -1
- package/dist/client/hooks/useAuthenticateMutation.js +1 -0
- package/dist/client/hooks/useAuthenticateMutation.mjs +24 -0
- package/dist/{hooks → client/hooks}/useAvailablePromosQuery.d.ts +1 -1
- package/dist/client/hooks/useAvailablePromosQuery.js +1 -0
- package/dist/client/hooks/useAvailablePromosQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useBetRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useBetRecordsQuery.js +1 -0
- package/dist/client/hooks/useBetRecordsQuery.mjs +47 -0
- package/dist/{hooks → client/hooks}/useCashbacksQuery.d.ts +1 -1
- package/dist/client/hooks/useCashbacksQuery.js +1 -0
- package/dist/client/hooks/useCashbacksQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useCreateGCashDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGCashDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateGCashDepositMutation.mjs +15 -18
- package/dist/{hooks → client/hooks}/useCreateGameSessionMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateGameSessionMutation.mjs +20 -23
- package/dist/{hooks → client/hooks}/useCreateMayaAppDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +1 -0
- package/dist/client/hooks/useCreateMayaAppDepositMutation.mjs +66 -0
- package/dist/{hooks → client/hooks}/useCreateMayaDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateMayaDepositMutation.mjs +24 -27
- package/dist/{hooks → client/hooks}/useCreateOnlineBankDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateOnlineBankDepositMutation.mjs +14 -17
- package/dist/{hooks → client/hooks}/useCreateQRPHDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateQRPHDepositMutation.mjs +14 -17
- package/dist/{hooks → client/hooks}/useDepositQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositQuery.js +1 -0
- package/dist/client/hooks/useDepositQuery.mjs +39 -0
- package/dist/{hooks → client/hooks}/useDepositRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositRecordsQuery.js +1 -0
- package/dist/client/hooks/useDepositRecordsQuery.mjs +47 -0
- package/dist/{hooks → client/hooks}/useDepositsCountQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositsCountQuery.js +1 -0
- package/dist/client/hooks/useDepositsCountQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useEndGameSessionMutation.d.ts +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useEndGameSessionMutation.mjs +12 -15
- package/dist/{hooks → client/hooks}/useGamesQuery.d.ts +1 -1
- package/dist/client/hooks/useGamesQuery.js +1 -0
- package/dist/client/hooks/useGamesQuery.mjs +39 -0
- package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.d.ts +1 -1
- package/dist/{hooks → client/hooks}/useInstapayBankListQuery.d.ts +1 -1
- package/dist/client/hooks/useInstapayBankListQuery.js +1 -0
- package/dist/client/hooks/useInstapayBankListQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useIsMayaSessionValidQuery.d.ts +1 -1
- package/dist/client/hooks/useIsMayaSessionValidQuery.js +1 -0
- package/dist/client/hooks/useIsMayaSessionValidQuery.mjs +48 -0
- package/dist/{hooks → client/hooks}/useJackpotsQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotsQuery.js +1 -0
- package/dist/client/hooks/useJackpotsQuery.mjs +31 -0
- package/dist/client/hooks/useLocaleInfo.d.ts +1 -0
- package/dist/client/hooks/useLocaleInfo.js +1 -0
- package/dist/client/hooks/useLocaleInfo.mjs +15 -0
- package/dist/{hooks → client/hooks}/useMemberVerificationQuery.d.ts +1 -1
- package/dist/client/hooks/useMemberVerificationQuery.js +1 -0
- package/dist/client/hooks/useMemberVerificationQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/usePaymentSettingsQuery.d.ts +1 -1
- package/dist/client/hooks/usePaymentSettingsQuery.js +1 -0
- package/dist/client/hooks/usePaymentSettingsQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/usePlatformQuery.d.ts +1 -1
- package/dist/client/hooks/usePlatformQuery.js +1 -0
- package/dist/client/hooks/usePlatformQuery.mjs +21 -0
- package/dist/{hooks → client/hooks}/usePromoQuery.d.ts +1 -1
- package/dist/client/hooks/usePromoQuery.js +1 -0
- package/dist/client/hooks/usePromoQuery.mjs +24 -0
- package/dist/{hooks → client/hooks}/usePromosQuery.d.ts +1 -1
- package/dist/client/hooks/usePromosQuery.js +1 -0
- package/dist/client/hooks/usePromosQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useSendVerificationCodeMutation.d.ts +1 -1
- package/dist/client/hooks/useSendVerificationCodeMutation.js +1 -0
- package/dist/client/hooks/useSendVerificationCodeMutation.mjs +24 -0
- package/dist/{hooks → client/hooks}/useSessionQuery.d.ts +1 -1
- package/dist/client/hooks/useSessionQuery.js +1 -0
- package/dist/client/hooks/useSessionQuery.mjs +19 -0
- package/dist/{hooks → client/hooks}/useSignInMutation.d.ts +1 -1
- package/dist/client/hooks/useSignInMutation.js +1 -0
- package/dist/client/hooks/useSignInMutation.mjs +25 -0
- package/dist/{hooks → client/hooks}/useSignOutMutation.d.ts +1 -1
- package/dist/client/hooks/useSignOutMutation.js +1 -0
- package/dist/client/hooks/useSignOutMutation.mjs +22 -0
- package/dist/{hooks → client/hooks}/useSignUpMutation.d.ts +1 -1
- package/dist/client/hooks/useSignUpMutation.js +1 -0
- package/dist/client/hooks/useSignUpMutation.mjs +25 -0
- package/dist/{hooks → client/hooks}/useSiteQuery.d.ts +1 -1
- package/dist/client/hooks/useSiteQuery.js +1 -0
- package/dist/client/hooks/useSiteQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useTopWinsQuery.d.ts +1 -1
- package/dist/client/hooks/useTopWinsQuery.js +1 -0
- package/dist/client/hooks/useTopWinsQuery.mjs +22 -0
- package/dist/{hooks → client/hooks}/useTournamentsQuery.d.ts +1 -1
- package/dist/client/hooks/useTournamentsQuery.js +1 -0
- package/dist/client/hooks/useTournamentsQuery.mjs +32 -0
- package/dist/{hooks → client/hooks}/useTransactionRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useTransactionRecordsQuery.js +1 -0
- package/dist/{hooks → client/hooks}/useTransactionRecordsQuery.mjs +17 -20
- package/dist/{hooks → client/hooks}/useWalletQuery.d.ts +1 -1
- package/dist/client/hooks/useWalletQuery.js +1 -0
- package/dist/client/hooks/useWalletQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useWithdrawalRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useWithdrawalRecordsQuery.js +1 -0
- package/dist/client/hooks/useWithdrawalRecordsQuery.mjs +47 -0
- package/dist/client/services/authenticate.js +1 -0
- package/dist/{services → client/services}/authenticate.mjs +1 -1
- package/dist/{services → client/services}/getSession.d.ts +1 -1
- package/dist/client/services/signIn.js +1 -0
- package/dist/{services → client/services}/signIn.mjs +1 -1
- package/dist/client/utils/createRecipeContext.js +1 -0
- package/dist/client/utils/createRecipeContext.mjs +55 -0
- package/dist/client/utils/index.d.ts +2 -0
- package/dist/client-hooks.d.ts +2 -0
- package/dist/client-hooks.js +1 -0
- package/dist/client-hooks.mjs +88 -0
- package/dist/client-services.d.ts +2 -0
- package/dist/client-services.js +1 -0
- package/dist/client-services.mjs +10 -0
- package/dist/client-utils.d.ts +2 -0
- package/dist/client-utils.js +1 -0
- package/dist/client-utils.mjs +6 -0
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +16 -17
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +16 -17
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +6 -7
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +10 -11
- package/dist/components/DepositWithdrawal/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/AvailablePromos.mjs +7 -8
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +30 -54
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +12 -12
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +9 -9
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +12 -12
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +9 -10
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -9
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +8 -9
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -9
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +7 -8
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +10 -11
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +2 -3
- package/dist/components/Disclaimer/useDisclaimer.js +1 -1
- package/dist/components/Disclaimer/useDisclaimer.mjs +2 -2
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +15 -16
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +8 -8
- package/dist/components/Games/Games.client.d.ts +2 -0
- package/dist/components/Games/Games.client.js +1 -0
- package/dist/components/Games/Games.client.mjs +150 -0
- package/dist/components/Games/Games.d.ts +1 -1
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +11 -141
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +5 -6
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +14 -15
- package/dist/components/PortalProvider/PortalProvider.d.ts +1 -1
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +18 -58
- package/dist/components/PortalProvider/Providers.d.ts +2 -0
- package/dist/components/PortalProvider/Providers.js +1 -0
- package/dist/components/PortalProvider/Providers.mjs +65 -0
- package/dist/components/Promo/PromoContent.js +1 -1
- package/dist/components/Promo/PromoContent.mjs +6 -7
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +16 -17
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +10 -11
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +2 -4
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +6 -8
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +5 -6
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +8 -8
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +25 -26
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +9 -9
- package/dist/components/TopWins/TopWins.client.d.ts +2 -0
- package/dist/components/TopWins/TopWins.client.js +1 -0
- package/dist/components/TopWins/TopWins.client.mjs +64 -0
- package/dist/components/TopWins/TopWins.d.ts +1 -1
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +8 -56
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +5 -6
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +5 -6
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +6 -7
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +5 -6
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +4 -6
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +6 -7
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +6 -7
- package/dist/components/index.d.ts +0 -1
- package/dist/components.js +1 -1
- package/dist/components.mjs +34 -39
- package/dist/server/utils/prefetchAccountQuery.js +1 -1
- package/dist/server/utils/prefetchAccountQuery.mjs +9 -12
- package/dist/server/utils/prefetchAvailablePromosQuery.js +1 -1
- package/dist/server/utils/prefetchAvailablePromosQuery.mjs +10 -13
- package/dist/server/utils/prefetchBetRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchBetRecordsQuery.mjs +8 -11
- package/dist/server/utils/prefetchCashbacksQuery.js +1 -1
- package/dist/server/utils/prefetchCashbacksQuery.mjs +10 -13
- package/dist/server/utils/prefetchDepositQuery.js +1 -1
- package/dist/server/utils/prefetchDepositQuery.mjs +13 -16
- package/dist/server/utils/prefetchDepositRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchDepositRecordsQuery.mjs +13 -16
- package/dist/server/utils/prefetchGamesQuery.js +1 -1
- package/dist/server/utils/prefetchGamesQuery.mjs +9 -12
- package/dist/server/utils/prefetchInstapayBankListQuery.js +1 -1
- package/dist/server/utils/prefetchInstapayBankListQuery.mjs +8 -11
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +1 -1
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.mjs +12 -15
- package/dist/server/utils/prefetchJackpotsQuery.js +1 -1
- package/dist/server/utils/prefetchJackpotsQuery.mjs +9 -12
- package/dist/server/utils/prefetchMemberVerificationQuery.js +1 -1
- package/dist/server/utils/prefetchMemberVerificationQuery.mjs +8 -11
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +1 -1
- package/dist/server/utils/prefetchPaymentSettingsQuery.mjs +2 -5
- package/dist/server/utils/prefetchPlatformQuery.js +1 -1
- package/dist/server/utils/prefetchPlatformQuery.mjs +2 -5
- package/dist/server/utils/prefetchPromoQuery.js +1 -1
- package/dist/server/utils/prefetchPromoQuery.mjs +7 -10
- package/dist/server/utils/prefetchPromosQuery.js +1 -1
- package/dist/server/utils/prefetchPromosQuery.mjs +7 -10
- package/dist/server/utils/prefetchSessionQuery.js +1 -1
- package/dist/server/utils/prefetchSessionQuery.mjs +2 -5
- package/dist/server/utils/prefetchSiteQuery.js +1 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +6 -9
- package/dist/server/utils/prefetchTopWinsQuery.js +1 -1
- package/dist/server/utils/prefetchTopWinsQuery.mjs +6 -9
- package/dist/server/utils/prefetchTournamentsQuery.js +1 -1
- package/dist/server/utils/prefetchTournamentsQuery.mjs +2 -5
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchTransactionRecordsQuery.mjs +6 -9
- package/dist/server/utils/prefetchWalletQuery.js +1 -1
- package/dist/server/utils/prefetchWalletQuery.mjs +11 -14
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.mjs +2 -5
- package/dist/ui/AlertDialog/AlertDialog.js +1 -1
- package/dist/ui/AlertDialog/AlertDialog.mjs +15 -21
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +2 -5
- package/dist/ui/Avatar/Avatar.js +1 -1
- package/dist/ui/Avatar/Avatar.mjs +8 -14
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Avatar/avatar.recipe.mjs +5 -8
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +10 -16
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +2 -5
- package/dist/ui/Button/Button.js +1 -1
- package/dist/ui/Button/Button.mjs +2 -4
- package/dist/ui/Checkbox/Checkbox.js +1 -1
- package/dist/ui/Checkbox/Checkbox.mjs +12 -18
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +5 -8
- package/dist/ui/Clipboard/Clipboard.js +1 -1
- package/dist/ui/Clipboard/Clipboard.mjs +11 -17
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Clipboard/clipboard.recipe.mjs +2 -5
- package/dist/ui/DatePicker/DatePicker.js +1 -1
- package/dist/ui/DatePicker/DatePicker.mjs +31 -37
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +2 -5
- package/dist/ui/Dialog/Dialog.js +1 -1
- package/dist/ui/Dialog/Dialog.mjs +15 -21
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +2 -5
- package/dist/ui/Drawer/Drawer.js +1 -1
- package/dist/ui/Drawer/Drawer.mjs +15 -21
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +5 -8
- package/dist/ui/Field/Field.js +1 -1
- package/dist/ui/Field/Field.mjs +11 -17
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +2 -5
- package/dist/ui/IconButton/IconButton.js +1 -1
- package/dist/ui/IconButton/IconButton.mjs +2 -4
- package/dist/ui/NumberInput/NumberInput.js +1 -1
- package/dist/ui/NumberInput/NumberInput.mjs +17 -23
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +2 -5
- package/dist/ui/PinInput/PinInput.js +1 -1
- package/dist/ui/PinInput/PinInput.mjs +10 -16
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +2 -5
- package/dist/ui/Popover/Popover.js +1 -1
- package/dist/ui/Popover/Popover.mjs +15 -21
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +5 -8
- package/dist/ui/Presence.js +1 -1
- package/dist/ui/Presence.mjs +7 -6
- package/dist/ui/SegmentGroup/SegmentGroup.js +1 -1
- package/dist/ui/SegmentGroup/SegmentGroup.mjs +12 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +4 -7
- package/dist/ui/Select/Select.js +1 -1
- package/dist/ui/Select/Select.mjs +23 -29
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +5 -8
- package/dist/ui/Table/Table.js +1 -1
- package/dist/ui/Table/Table.mjs +10 -16
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +2 -5
- package/dist/ui/Tabs/Tabs.js +1 -1
- package/dist/ui/Tabs/Tabs.mjs +10 -16
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +4 -7
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +54 -58
- package/package.json +143 -128
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +0 -6
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.js +0 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.mjs +0 -13
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.d.ts +0 -6
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.js +0 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.mjs +0 -64
- package/dist/components/FeatureFlagProvider/index.d.ts +0 -2
- package/dist/components/FeatureFlagProvider/useFeatureFlag.d.ts +0 -8
- package/dist/components/FeatureFlagProvider/useFeatureFlag.js +0 -1
- package/dist/components/FeatureFlagProvider/useFeatureFlag.mjs +0 -22
- package/dist/hooks/useAccountQuery.js +0 -1
- package/dist/hooks/useAccountQuery.mjs +0 -41
- package/dist/hooks/useAuthenticateMutation.js +0 -1
- package/dist/hooks/useAuthenticateMutation.mjs +0 -27
- package/dist/hooks/useAvailablePromosQuery.js +0 -1
- package/dist/hooks/useAvailablePromosQuery.mjs +0 -41
- package/dist/hooks/useBetRecordsQuery.js +0 -1
- package/dist/hooks/useBetRecordsQuery.mjs +0 -50
- package/dist/hooks/useCashbacksQuery.js +0 -1
- package/dist/hooks/useCashbacksQuery.mjs +0 -26
- package/dist/hooks/useCreateGCashDepositMutation.js +0 -1
- package/dist/hooks/useCreateGameSessionMutation.js +0 -1
- package/dist/hooks/useCreateMayaAppDepositMutation.js +0 -1
- package/dist/hooks/useCreateMayaAppDepositMutation.mjs +0 -69
- package/dist/hooks/useCreateMayaDepositMutation.js +0 -1
- package/dist/hooks/useCreateOnlineBankDepositMutation.js +0 -1
- package/dist/hooks/useCreateQRPHDepositMutation.js +0 -1
- package/dist/hooks/useDepositQuery.js +0 -1
- package/dist/hooks/useDepositQuery.mjs +0 -42
- package/dist/hooks/useDepositRecordsQuery.js +0 -1
- package/dist/hooks/useDepositRecordsQuery.mjs +0 -50
- package/dist/hooks/useDepositsCountQuery.js +0 -1
- package/dist/hooks/useDepositsCountQuery.mjs +0 -41
- package/dist/hooks/useEndGameSessionMutation.js +0 -1
- package/dist/hooks/useGamesQuery.js +0 -1
- package/dist/hooks/useGamesQuery.mjs +0 -42
- package/dist/hooks/useInstapayBankListQuery.js +0 -1
- package/dist/hooks/useInstapayBankListQuery.mjs +0 -41
- package/dist/hooks/useIsMayaSessionValidQuery.js +0 -1
- package/dist/hooks/useIsMayaSessionValidQuery.mjs +0 -51
- package/dist/hooks/useJackpotsQuery.js +0 -1
- package/dist/hooks/useJackpotsQuery.mjs +0 -34
- package/dist/hooks/useLocaleInfo.d.ts +0 -1
- package/dist/hooks/useLocaleInfo.js +0 -1
- package/dist/hooks/useLocaleInfo.mjs +0 -18
- package/dist/hooks/useMemberVerificationQuery.js +0 -1
- package/dist/hooks/useMemberVerificationQuery.mjs +0 -41
- package/dist/hooks/usePaymentSettingsQuery.js +0 -1
- package/dist/hooks/usePaymentSettingsQuery.mjs +0 -41
- package/dist/hooks/usePlatformQuery.js +0 -1
- package/dist/hooks/usePlatformQuery.mjs +0 -24
- package/dist/hooks/usePromoQuery.js +0 -1
- package/dist/hooks/usePromoQuery.mjs +0 -27
- package/dist/hooks/usePromosQuery.js +0 -1
- package/dist/hooks/usePromosQuery.mjs +0 -26
- package/dist/hooks/useSendVerificationCodeMutation.js +0 -1
- package/dist/hooks/useSendVerificationCodeMutation.mjs +0 -27
- package/dist/hooks/useSessionQuery.js +0 -1
- package/dist/hooks/useSessionQuery.mjs +0 -22
- package/dist/hooks/useSignInMutation.js +0 -1
- package/dist/hooks/useSignInMutation.mjs +0 -28
- package/dist/hooks/useSignOutMutation.js +0 -1
- package/dist/hooks/useSignOutMutation.mjs +0 -25
- package/dist/hooks/useSignUpMutation.js +0 -1
- package/dist/hooks/useSignUpMutation.mjs +0 -28
- package/dist/hooks/useSiteQuery.js +0 -1
- package/dist/hooks/useSiteQuery.mjs +0 -26
- package/dist/hooks/useTopWinsQuery.js +0 -1
- package/dist/hooks/useTopWinsQuery.mjs +0 -25
- package/dist/hooks/useTournamentsQuery.js +0 -1
- package/dist/hooks/useTournamentsQuery.mjs +0 -35
- package/dist/hooks/useTransactionRecordsQuery.js +0 -1
- package/dist/hooks/useWalletQuery.js +0 -1
- package/dist/hooks/useWalletQuery.mjs +0 -41
- package/dist/hooks/useWithdrawalRecordsQuery.js +0 -1
- package/dist/hooks/useWithdrawalRecordsQuery.mjs +0 -50
- package/dist/hooks.d.ts +0 -2
- package/dist/hooks.js +0 -1
- package/dist/hooks.mjs +0 -88
- package/dist/services/authenticate.js +0 -1
- package/dist/services/signIn.js +0 -1
- package/dist/services.d.ts +0 -2
- package/dist/services.js +0 -1
- package/dist/services.mjs +0 -10
- package/dist/utils/createRecipeContext.js +0 -1
- package/dist/utils/createRecipeContext.mjs +0 -49
- /package/dist/{hooks → client/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.js +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.js +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.js +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.js +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.js +0 -0
- /package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.js +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.js +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.mjs +0 -0
- /package/dist/{services → client/services}/authenticate.d.ts +0 -0
- /package/dist/{services → client/services}/getSession.js +0 -0
- /package/dist/{services → client/services}/getSession.mjs +0 -0
- /package/dist/{services → client/services}/index.d.ts +0 -0
- /package/dist/{services → client/services}/signIn.d.ts +0 -0
- /package/dist/{services → client/services}/signOut.d.ts +0 -0
- /package/dist/{services → client/services}/signOut.js +0 -0
- /package/dist/{services → client/services}/signOut.mjs +0 -0
- /package/dist/{utils → client/utils}/createRecipeContext.d.ts +0 -0
- /package/dist/{utils → client/utils}/toaster.d.ts +0 -0
- /package/dist/{utils → client/utils}/toaster.js +0 -0
- /package/dist/{utils → client/utils}/toaster.mjs +0 -0
package/package.json
CHANGED
|
@@ -1,128 +1,143 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@opexa/portal-components",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"exports": {
|
|
5
|
-
".": {
|
|
6
|
-
"types": "./dist/components/index.d.ts",
|
|
7
|
-
"import": "./dist/components.mjs",
|
|
8
|
-
"require": "./dist/components.js"
|
|
9
|
-
},
|
|
10
|
-
"./
|
|
11
|
-
"types": "./dist/
|
|
12
|
-
"import": "./dist/
|
|
13
|
-
"require": "./dist/
|
|
14
|
-
},
|
|
15
|
-
"./
|
|
16
|
-
"types": "./dist/
|
|
17
|
-
"import": "./dist/
|
|
18
|
-
"require": "./dist/
|
|
19
|
-
},
|
|
20
|
-
"./
|
|
21
|
-
"types": "./dist/
|
|
22
|
-
"import": "./dist/
|
|
23
|
-
"require": "./dist/
|
|
24
|
-
},
|
|
25
|
-
"./
|
|
26
|
-
"types": "./dist/
|
|
27
|
-
"import": "./dist/
|
|
28
|
-
"require": "./dist/
|
|
29
|
-
},
|
|
30
|
-
"./
|
|
31
|
-
"types": "./dist/
|
|
32
|
-
"import": "./dist/
|
|
33
|
-
"require": "./dist/
|
|
34
|
-
},
|
|
35
|
-
"./
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"@
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@opexa/portal-components",
|
|
3
|
+
"version": "0.0.14",
|
|
4
|
+
"exports": {
|
|
5
|
+
".": {
|
|
6
|
+
"types": "./dist/components/index.d.ts",
|
|
7
|
+
"import": "./dist/components.mjs",
|
|
8
|
+
"require": "./dist/components.js"
|
|
9
|
+
},
|
|
10
|
+
"./ui": {
|
|
11
|
+
"types": "./dist/ui/index.d.ts",
|
|
12
|
+
"import": "./dist/ui.mjs",
|
|
13
|
+
"require": "./dist/ui.js"
|
|
14
|
+
},
|
|
15
|
+
"./handlers": {
|
|
16
|
+
"types": "./dist/handlers.d.ts",
|
|
17
|
+
"import": "./dist/handlers.mjs",
|
|
18
|
+
"require": "./dist/handlers.js"
|
|
19
|
+
},
|
|
20
|
+
"./middleware": {
|
|
21
|
+
"types": "./dist/middleware.d.ts",
|
|
22
|
+
"import": "./dist/middleware.mjs",
|
|
23
|
+
"require": "./dist/middleware.js"
|
|
24
|
+
},
|
|
25
|
+
"./client/utils": {
|
|
26
|
+
"types": "./dist/client-utils.d.ts",
|
|
27
|
+
"import": "./dist/client-utils.mjs",
|
|
28
|
+
"require": "./dist/client-utils.js"
|
|
29
|
+
},
|
|
30
|
+
"./client/hooks": {
|
|
31
|
+
"types": "./dist/client-hooks.d.ts",
|
|
32
|
+
"import": "./dist/client-hooks.mjs",
|
|
33
|
+
"require": "./dist/client-hooks.js"
|
|
34
|
+
},
|
|
35
|
+
"./client/services": {
|
|
36
|
+
"types": "./dist/client-services.d.ts",
|
|
37
|
+
"import": "./dist/client-services.mjs",
|
|
38
|
+
"require": "./dist/client-services.js"
|
|
39
|
+
},
|
|
40
|
+
"./server/utils": {
|
|
41
|
+
"types": "./dist/server-utils.d.ts",
|
|
42
|
+
"import": "./dist/server-utils.mjs",
|
|
43
|
+
"require": "./dist/server-utils.js"
|
|
44
|
+
},
|
|
45
|
+
"./server/services": {
|
|
46
|
+
"types": "./dist/server-services.d.ts",
|
|
47
|
+
"import": "./dist/server-services.mjs",
|
|
48
|
+
"require": "./dist/server-services.js"
|
|
49
|
+
},
|
|
50
|
+
"./theme.css": "./dist/theme.css",
|
|
51
|
+
"./package.json": "./package.json"
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"dist"
|
|
55
|
+
],
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"dev": "next dev --port 4000 --turbopack",
|
|
61
|
+
"build": "vite build",
|
|
62
|
+
"build:app": "next build",
|
|
63
|
+
"start": "next start",
|
|
64
|
+
"lint": "next lint",
|
|
65
|
+
"release": "release-it"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@ark-ui/anatomy": "3.5.0",
|
|
69
|
+
"@ark-ui/react": "5.9.2",
|
|
70
|
+
"@date-fns/tz": "^1.2.0",
|
|
71
|
+
"@tailwindcss/typography": "0.5.15",
|
|
72
|
+
"date-fns": "4.1.0",
|
|
73
|
+
"embla-carousel-autoplay": "8.6.0",
|
|
74
|
+
"embla-carousel-react": "8.6.0",
|
|
75
|
+
"is-mobile": "^5.0.0",
|
|
76
|
+
"lodash-es": "4.17.21",
|
|
77
|
+
"react-fast-marquee": "^1.6.5",
|
|
78
|
+
"tailwind-merge": "3.3.0",
|
|
79
|
+
"tailwind-variants": "1.0.0",
|
|
80
|
+
"tailwindcss-plugin-zag": "0.1.0",
|
|
81
|
+
"tiny-invariant": "1.3.3",
|
|
82
|
+
"usehooks-ts": "3.1.1",
|
|
83
|
+
"zustand": "5.0.5"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@eslint/eslintrc": "3",
|
|
87
|
+
"@hookform/resolvers": "5.0.1",
|
|
88
|
+
"@opexa/portal-sdk-core": "0.0.22",
|
|
89
|
+
"@tailwindcss/postcss": "4",
|
|
90
|
+
"@tanstack/react-query": "5.77.0",
|
|
91
|
+
"@tanstack/react-query-devtools": "5.77.0",
|
|
92
|
+
"@total-typescript/ts-reset": "0.6.1",
|
|
93
|
+
"@tsconfig/vite-react": "^6.3.5",
|
|
94
|
+
"@types/lodash-es": "4.17.12",
|
|
95
|
+
"@types/node": "22",
|
|
96
|
+
"@types/react": "19",
|
|
97
|
+
"@types/react-dom": "19",
|
|
98
|
+
"@vitejs/plugin-react": "^4.5.0",
|
|
99
|
+
"eslint": "9",
|
|
100
|
+
"eslint-config-next": "15.3.2",
|
|
101
|
+
"next": "15.1.8",
|
|
102
|
+
"react": "19.1.0",
|
|
103
|
+
"react-dom": "19.1.0",
|
|
104
|
+
"react-hook-form": "7.56.4",
|
|
105
|
+
"release-it": "19.0.2",
|
|
106
|
+
"rollup-preserve-directives": "^1.1.3",
|
|
107
|
+
"tailwindcss": "4",
|
|
108
|
+
"type-fest": "4.41.0",
|
|
109
|
+
"typescript": "5",
|
|
110
|
+
"vite": "^6.3.5",
|
|
111
|
+
"vite-plugin-dts": "^4.5.4",
|
|
112
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
113
|
+
"zod": "3.25.28"
|
|
114
|
+
},
|
|
115
|
+
"peerDependencies": {
|
|
116
|
+
"@hookform/resolvers": "^4.0.0",
|
|
117
|
+
"@opexa/portal-sdk-core": "^0.0.22",
|
|
118
|
+
"@tanstack/react-query": "^5.0.0",
|
|
119
|
+
"next": "^15.0.0",
|
|
120
|
+
"react": "^19.0.0",
|
|
121
|
+
"react-dom": "^19.0.0",
|
|
122
|
+
"react-hook-form": "^7.0.0",
|
|
123
|
+
"tailwindcss": "^4.0.0",
|
|
124
|
+
"zod": "^3.0.0"
|
|
125
|
+
},
|
|
126
|
+
"release-it": {
|
|
127
|
+
"git": {
|
|
128
|
+
"commitMessage": "chore: release ${npm.name} v${version}",
|
|
129
|
+
"tagName": "${npm.name}@${version}"
|
|
130
|
+
},
|
|
131
|
+
"github": {
|
|
132
|
+
"release": false
|
|
133
|
+
},
|
|
134
|
+
"hooks": {
|
|
135
|
+
"before:bump": [
|
|
136
|
+
"pnpm lint"
|
|
137
|
+
],
|
|
138
|
+
"after:bump": [
|
|
139
|
+
"pnpm build"
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { UseFeatureFlagReturn } from './useFeatureFlag';
|
|
2
|
-
export declare const FeatureFlagContext: import('react').Context<UseFeatureFlagReturn | null>;
|
|
3
|
-
export declare const useFeatureFlagContext: () => UseFeatureFlagReturn | {
|
|
4
|
-
disable: (...args: any[]) => void;
|
|
5
|
-
enabled: false;
|
|
6
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("lodash-es"),e=require("react"),t=e.createContext(null),o=()=>e.useContext(t)??{disable:n.noop,enabled:!1};exports.FeatureFlagContext=t;exports.useFeatureFlagContext=o;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { noop as t } from "lodash-es";
|
|
3
|
-
import { createContext as e, useContext as o } from "react";
|
|
4
|
-
const n = e(
|
|
5
|
-
null
|
|
6
|
-
), s = () => o(n) ?? {
|
|
7
|
-
disable: t,
|
|
8
|
-
enabled: !1
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
n as FeatureFlagContext,
|
|
12
|
-
s as useFeatureFlagContext
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("@ark-ui/react");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");require("../../utils/capitalize.js");require("react");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/toaster.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");const i=require("../../ui/Presence.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const n=require("./FeatureFlagContext.js"),a=require("./useFeatureFlag.js");function l(u){const r=a.useFeatureFlag();return e.jsxs(n.FeatureFlagContext,{value:r,children:[u.children,e.jsx(t.Portal,{children:e.jsxs(i.Presence,{lazyMount:!0,unmountOnExit:!0,present:r.enabled,className:"fixed bottom-2 left-1/2 z-toast flex -translate-x-1/2 gap-1 rounded-full bg-black/50 px-1.5 py-0.5 text-2xs leading-tight text-white backdrop-blur-sm",suppressHydrationWarning:!0,children:["Experimental features are enabled."," ",e.jsx("button",{type:"button",onClick:r.disable,className:"underline underline-offset-2",children:"Disable"})]})})]})}exports.FeatureFlagProvider=l;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { Portal as i } from "@ark-ui/react";
|
|
4
|
-
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
5
|
-
import "../../ui/Avatar/Avatar.mjs";
|
|
6
|
-
import "../../ui/Badge/Badge.mjs";
|
|
7
|
-
import "../../utils/capitalize.mjs";
|
|
8
|
-
import "react";
|
|
9
|
-
import "../../utils/parseDecimal.mjs";
|
|
10
|
-
import "../../constants/index.mjs";
|
|
11
|
-
import "../../utils/getLocaleInfo.mjs";
|
|
12
|
-
import "../../utils/getQueryClient.mjs";
|
|
13
|
-
import "../../utils/isMobile.mjs";
|
|
14
|
-
import "../../utils/toaster.mjs";
|
|
15
|
-
import "../../ui/Button/button.recipe.mjs";
|
|
16
|
-
import "../../ui/Checkbox/Checkbox.mjs";
|
|
17
|
-
import "../../ui/Clipboard/Clipboard.mjs";
|
|
18
|
-
import "../../ui/DatePicker/DatePicker.mjs";
|
|
19
|
-
import "../../ui/Dialog/Dialog.mjs";
|
|
20
|
-
import "../../ui/Drawer/Drawer.mjs";
|
|
21
|
-
import "../../ui/Field/Field.mjs";
|
|
22
|
-
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
23
|
-
import "../../ui/NumberInput/NumberInput.mjs";
|
|
24
|
-
import "../../ui/PinInput/PinInput.mjs";
|
|
25
|
-
import "../../ui/Popover/Popover.mjs";
|
|
26
|
-
import { Presence as m } from "../../ui/Presence.mjs";
|
|
27
|
-
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
28
|
-
import "../../ui/Select/Select.mjs";
|
|
29
|
-
import "../../ui/Table/Table.mjs";
|
|
30
|
-
import "../../ui/Tabs/Tabs.mjs";
|
|
31
|
-
import { FeatureFlagContext as p } from "./FeatureFlagContext.mjs";
|
|
32
|
-
import { useFeatureFlag as n } from "./useFeatureFlag.mjs";
|
|
33
|
-
function I(o) {
|
|
34
|
-
const t = n();
|
|
35
|
-
return /* @__PURE__ */ r(p, { value: t, children: [
|
|
36
|
-
o.children,
|
|
37
|
-
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ r(
|
|
38
|
-
m,
|
|
39
|
-
{
|
|
40
|
-
lazyMount: !0,
|
|
41
|
-
unmountOnExit: !0,
|
|
42
|
-
present: t.enabled,
|
|
43
|
-
className: "fixed bottom-2 left-1/2 z-toast flex -translate-x-1/2 gap-1 rounded-full bg-black/50 px-1.5 py-0.5 text-2xs leading-tight text-white backdrop-blur-sm",
|
|
44
|
-
suppressHydrationWarning: !0,
|
|
45
|
-
children: [
|
|
46
|
-
"Experimental features are enabled.",
|
|
47
|
-
" ",
|
|
48
|
-
/* @__PURE__ */ e(
|
|
49
|
-
"button",
|
|
50
|
-
{
|
|
51
|
-
type: "button",
|
|
52
|
-
onClick: t.disable,
|
|
53
|
-
className: "underline underline-offset-2",
|
|
54
|
-
children: "Disable"
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
) })
|
|
60
|
-
] });
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
I as FeatureFlagProvider
|
|
64
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("next/navigation"),o=require("react"),c=require("usehooks-ts");function l(){const[e,t]=c.useLocalStorage("WebPortalFeatureFlagEnabled",!1),r=a.useRouter(),u=a.usePathname(),s=a.useSearchParams(),n=async()=>{r.push(u),setTimeout(()=>{t(!1)},250)};return o.useEffect(()=>{e||s.has("future")&&t(!0)},[e,s,t]),{enabled:e,disable:n}}exports.useFeatureFlag=l;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { useRouter as u, usePathname as n, useSearchParams as c } from "next/navigation";
|
|
2
|
-
import { useEffect as f } from "react";
|
|
3
|
-
import { useLocalStorage as m } from "usehooks-ts";
|
|
4
|
-
function p() {
|
|
5
|
-
const [e, t] = m(
|
|
6
|
-
"WebPortalFeatureFlagEnabled",
|
|
7
|
-
!1
|
|
8
|
-
), a = u(), s = n(), r = c(), o = async () => {
|
|
9
|
-
a.push(s), setTimeout(() => {
|
|
10
|
-
t(!1);
|
|
11
|
-
}, 250);
|
|
12
|
-
};
|
|
13
|
-
return f(() => {
|
|
14
|
-
e || r.has("future") && t(!0);
|
|
15
|
-
}, [e, r, t]), {
|
|
16
|
-
enabled: e,
|
|
17
|
-
disable: o
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
p as useFeatureFlag
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@opexa/portal-sdk-core"),a=require("@tanstack/react-query"),c=require("tiny-invariant"),u=require("../constants/index.js"),q=require("../services/getSession.js");require("../utils/capitalize.js");require("react/jsx-runtime");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const l=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const s=require("../utils/queryKeys.js");require("../utils/toaster.js");const Q=require("./useSessionQuery.js"),d=e=>{var r;const n=l.getQueryClient(),i=Q.useSessionQuery();return a.useQuery({...e,enabled:(e==null?void 0:e.enabled)===!1?!1:((r=i.data)==null?void 0:r.status)==="authenticated",queryKey:s.getAccountQueryKey(),queryFn:async({signal:o})=>{const t=await n.fetchQuery({queryKey:s.getSessionQueryKey(),queryFn:()=>q.getSession()});return c(t.status==="authenticated"),await y.getMemberAccount({signal:o,environment:u.ENVIRONMENT,headers:{"Platform-Code":u.PLATFORM_CODE,Authorization:`Bearer ${t.token}`}})}})};exports.useAccountQuery=d;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { getMemberAccount as i } from "@opexa/portal-sdk-core";
|
|
2
|
-
import { useQuery as m } from "@tanstack/react-query";
|
|
3
|
-
import n from "tiny-invariant";
|
|
4
|
-
import { PLATFORM_CODE as a, ENVIRONMENT as y } from "../constants/index.mjs";
|
|
5
|
-
import { getSession as p } from "../services/getSession.mjs";
|
|
6
|
-
import "../utils/capitalize.mjs";
|
|
7
|
-
import "react/jsx-runtime";
|
|
8
|
-
import "react";
|
|
9
|
-
import "../utils/parseDecimal.mjs";
|
|
10
|
-
import "../utils/getLocaleInfo.mjs";
|
|
11
|
-
import { getQueryClient as c } from "../utils/getQueryClient.mjs";
|
|
12
|
-
import "../utils/isMobile.mjs";
|
|
13
|
-
import { getAccountQueryKey as Q, getSessionQueryKey as d } from "../utils/queryKeys.mjs";
|
|
14
|
-
import "../utils/toaster.mjs";
|
|
15
|
-
import { useSessionQuery as f } from "./useSessionQuery.mjs";
|
|
16
|
-
const R = (e) => {
|
|
17
|
-
var t;
|
|
18
|
-
const o = c(), s = f();
|
|
19
|
-
return m({
|
|
20
|
-
...e,
|
|
21
|
-
enabled: (e == null ? void 0 : e.enabled) === !1 ? !1 : ((t = s.data) == null ? void 0 : t.status) === "authenticated",
|
|
22
|
-
queryKey: Q(),
|
|
23
|
-
queryFn: async ({ signal: u }) => {
|
|
24
|
-
const r = await o.fetchQuery({
|
|
25
|
-
queryKey: d(),
|
|
26
|
-
queryFn: () => p()
|
|
27
|
-
});
|
|
28
|
-
return n(r.status === "authenticated"), await i({
|
|
29
|
-
signal: u,
|
|
30
|
-
environment: y,
|
|
31
|
-
headers: {
|
|
32
|
-
"Platform-Code": a,
|
|
33
|
-
Authorization: `Bearer ${r.token}`
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
R as useAccountQuery
|
|
41
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@tanstack/react-query"),n=require("../services/authenticate.js");require("../constants/index.js");require("../utils/capitalize.js");require("react/jsx-runtime");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const a=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const e=require("../utils/queryKeys.js");require("../utils/toaster.js");const o=t=>{const r=a.getQueryClient();return i.useMutation({...t,mutationKey:e.getAuthenticateMutationKey(),mutationFn:async u=>{await n.authenticate(u),await r.invalidateQueries({queryKey:e.getSessionQueryKey()})}})};exports.useAuthenticateMutation=o;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { useMutation as o } from "@tanstack/react-query";
|
|
2
|
-
import { authenticate as r } from "../services/authenticate.mjs";
|
|
3
|
-
import "../constants/index.mjs";
|
|
4
|
-
import "../utils/capitalize.mjs";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "react";
|
|
7
|
-
import "../utils/parseDecimal.mjs";
|
|
8
|
-
import "../utils/getLocaleInfo.mjs";
|
|
9
|
-
import { getQueryClient as m } from "../utils/getQueryClient.mjs";
|
|
10
|
-
import "../utils/isMobile.mjs";
|
|
11
|
-
import { getAuthenticateMutationKey as n, getSessionQueryKey as a } from "../utils/queryKeys.mjs";
|
|
12
|
-
import "../utils/toaster.mjs";
|
|
13
|
-
const q = (t) => {
|
|
14
|
-
const i = m();
|
|
15
|
-
return o({
|
|
16
|
-
...t,
|
|
17
|
-
mutationKey: n(),
|
|
18
|
-
mutationFn: async (e) => {
|
|
19
|
-
await r(e), await i.invalidateQueries({
|
|
20
|
-
queryKey: a()
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
q as useAuthenticateMutation
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@opexa/portal-sdk-core"),q=require("@tanstack/react-query"),l=require("tiny-invariant"),u=require("../constants/index.js"),c=require("../services/getSession.js");require("../utils/capitalize.js");require("react/jsx-runtime");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const Q=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const i=require("../utils/queryKeys.js");require("../utils/toaster.js");const d=require("./useSessionQuery.js"),b=(r,e)=>{var t;const n=Q.getQueryClient(),a=d.useSessionQuery();return q.useQuery({...e,enabled:(e==null?void 0:e.enabled)===!1?!1:((t=a.data)==null?void 0:t.status)==="authenticated",queryKey:i.getAvailablePromosQueryKey(r),queryFn:async({signal:o})=>{const s=await n.fetchQuery({queryKey:i.getSessionQueryKey(),queryFn:()=>c.getSession()});return l(s.status==="authenticated"),await y.getAvailablePromos(r,{signal:o,environment:u.ENVIRONMENT,headers:{"Platform-Code":u.PLATFORM_CODE,Authorization:`Bearer ${s.token}`}})}})};exports.useAvailablePromosQuery=b;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { getAvailablePromos as m } from "@opexa/portal-sdk-core";
|
|
2
|
-
import { useQuery as u } from "@tanstack/react-query";
|
|
3
|
-
import n from "tiny-invariant";
|
|
4
|
-
import { PLATFORM_CODE as y, ENVIRONMENT as p } from "../constants/index.mjs";
|
|
5
|
-
import { getSession as l } from "../services/getSession.mjs";
|
|
6
|
-
import "../utils/capitalize.mjs";
|
|
7
|
-
import "react/jsx-runtime";
|
|
8
|
-
import "react";
|
|
9
|
-
import "../utils/parseDecimal.mjs";
|
|
10
|
-
import "../utils/getLocaleInfo.mjs";
|
|
11
|
-
import { getQueryClient as Q } from "../utils/getQueryClient.mjs";
|
|
12
|
-
import "../utils/isMobile.mjs";
|
|
13
|
-
import { getAvailablePromosQueryKey as d, getSessionQueryKey as f } from "../utils/queryKeys.mjs";
|
|
14
|
-
import "../utils/toaster.mjs";
|
|
15
|
-
import { useSessionQuery as q } from "./useSessionQuery.mjs";
|
|
16
|
-
const T = (r, e) => {
|
|
17
|
-
var t;
|
|
18
|
-
const s = Q(), a = q();
|
|
19
|
-
return u({
|
|
20
|
-
...e,
|
|
21
|
-
enabled: (e == null ? void 0 : e.enabled) === !1 ? !1 : ((t = a.data) == null ? void 0 : t.status) === "authenticated",
|
|
22
|
-
queryKey: d(r),
|
|
23
|
-
queryFn: async ({ signal: i }) => {
|
|
24
|
-
const o = await s.fetchQuery({
|
|
25
|
-
queryKey: f(),
|
|
26
|
-
queryFn: () => l()
|
|
27
|
-
});
|
|
28
|
-
return n(o.status === "authenticated"), await m(r, {
|
|
29
|
-
signal: i,
|
|
30
|
-
environment: p,
|
|
31
|
-
headers: {
|
|
32
|
-
"Platform-Code": y,
|
|
33
|
-
Authorization: `Bearer ${o.token}`
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
T as useAvailablePromosQuery
|
|
41
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("@opexa/portal-sdk-core"),a=require("@tanstack/react-query"),d=require("tiny-invariant"),i=require("../constants/index.js"),Q=require("../services/getSession.js");require("../utils/capitalize.js");require("react/jsx-runtime");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const f=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const o=require("../utils/queryKeys.js");require("../utils/toaster.js");const S=require("./useSessionQuery.js"),C=(u,s)=>{var n;const y=f.getQueryClient(),c=S.useSessionQuery();return a.useInfiniteQuery({enabled:((n=c.data)==null?void 0:n.status)==="authenticated",...s,queryKey:o.getBetRecordsQueryKey(u),queryFn:async({pageParam:e,signal:t})=>{const r=await y.fetchQuery({queryKey:o.getSessionQueryKey(),queryFn:()=>Q.getSession()});return d(r.status==="authenticated"),await q.getBetRecords({...u,after:e},{signal:t,environment:i.ENVIRONMENT,headers:{"Platform-Code":i.PLATFORM_CODE,Authorization:`Bearer ${r.token}`}})},initialPageParam:void 0,getNextPageParam(e){var t,r;if((t=e==null?void 0:e.pageInfo)!=null&&t.hasNextPage)return(r=e==null?void 0:e.pageInfo)==null?void 0:r.endCursor}})};exports.useBetRecordsQuery=C;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { getBetRecords as s } from "@opexa/portal-sdk-core";
|
|
2
|
-
import { useInfiniteQuery as y } from "@tanstack/react-query";
|
|
3
|
-
import p from "tiny-invariant";
|
|
4
|
-
import { PLATFORM_CODE as f, ENVIRONMENT as a } from "../constants/index.mjs";
|
|
5
|
-
import { getSession as c } from "../services/getSession.mjs";
|
|
6
|
-
import "../utils/capitalize.mjs";
|
|
7
|
-
import "react/jsx-runtime";
|
|
8
|
-
import "react";
|
|
9
|
-
import "../utils/parseDecimal.mjs";
|
|
10
|
-
import "../utils/getLocaleInfo.mjs";
|
|
11
|
-
import { getQueryClient as d } from "../utils/getQueryClient.mjs";
|
|
12
|
-
import "../utils/isMobile.mjs";
|
|
13
|
-
import { getBetRecordsQueryKey as Q, getSessionQueryKey as q } from "../utils/queryKeys.mjs";
|
|
14
|
-
import "../utils/toaster.mjs";
|
|
15
|
-
import { useSessionQuery as h } from "./useSessionQuery.mjs";
|
|
16
|
-
const T = (o, n) => {
|
|
17
|
-
var i;
|
|
18
|
-
const m = d(), u = h();
|
|
19
|
-
return y({
|
|
20
|
-
enabled: ((i = u.data) == null ? void 0 : i.status) === "authenticated",
|
|
21
|
-
...n,
|
|
22
|
-
queryKey: Q(o),
|
|
23
|
-
queryFn: async ({ pageParam: e, signal: t }) => {
|
|
24
|
-
const r = await m.fetchQuery({
|
|
25
|
-
queryKey: q(),
|
|
26
|
-
queryFn: () => c()
|
|
27
|
-
});
|
|
28
|
-
return p(r.status === "authenticated"), await s(
|
|
29
|
-
{ ...o, after: e },
|
|
30
|
-
{
|
|
31
|
-
signal: t,
|
|
32
|
-
environment: a,
|
|
33
|
-
headers: {
|
|
34
|
-
"Platform-Code": f,
|
|
35
|
-
Authorization: `Bearer ${r.token}`
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
},
|
|
40
|
-
initialPageParam: void 0,
|
|
41
|
-
getNextPageParam(e) {
|
|
42
|
-
var t, r;
|
|
43
|
-
if ((t = e == null ? void 0 : e.pageInfo) != null && t.hasNextPage)
|
|
44
|
-
return (r = e == null ? void 0 : e.pageInfo) == null ? void 0 : r.endCursor;
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
T as useBetRecordsQuery
|
|
50
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@opexa/portal-sdk-core"),t=require("@tanstack/react-query"),e=require("../constants/index.js");require("../utils/capitalize.js");require("react/jsx-runtime");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");require("../utils/getQueryClient.js");require("../utils/isMobile.js");const i=require("../utils/queryKeys.js");require("../utils/toaster.js");const a=r=>t.useQuery({...r,queryKey:i.getCashbacksQueryKey(),queryFn:async({signal:u})=>await s.getCashbacks({signal:u,environment:e.ENVIRONMENT,headers:{"Platform-Code":e.PLATFORM_CODE}})});exports.useCashbacksQuery=a;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { getCashbacks as t } from "@opexa/portal-sdk-core";
|
|
2
|
-
import { useQuery as e } from "@tanstack/react-query";
|
|
3
|
-
import { PLATFORM_CODE as m, ENVIRONMENT as i } from "../constants/index.mjs";
|
|
4
|
-
import "../utils/capitalize.mjs";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "react";
|
|
7
|
-
import "../utils/parseDecimal.mjs";
|
|
8
|
-
import "../utils/getLocaleInfo.mjs";
|
|
9
|
-
import "../utils/getQueryClient.mjs";
|
|
10
|
-
import "../utils/isMobile.mjs";
|
|
11
|
-
import { getCashbacksQueryKey as p } from "../utils/queryKeys.mjs";
|
|
12
|
-
import "../utils/toaster.mjs";
|
|
13
|
-
const N = (r) => e({
|
|
14
|
-
...r,
|
|
15
|
-
queryKey: p(),
|
|
16
|
-
queryFn: async ({ signal: o }) => await t({
|
|
17
|
-
signal: o,
|
|
18
|
-
environment: i,
|
|
19
|
-
headers: {
|
|
20
|
-
"Platform-Code": m
|
|
21
|
-
}
|
|
22
|
-
})
|
|
23
|
-
});
|
|
24
|
-
export {
|
|
25
|
-
N as useCashbacksQuery
|
|
26
|
-
};
|