@orbit-software/sdk 1.75.0 → 1.80.1
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/esm/assets/icons/IconBalanceCoins.d.ts +3 -0
- package/dist/esm/{app/ui/components/IconBalanceCoin.d.ts → assets/icons/IconBalanceGems.d.ts} +1 -1
- package/dist/esm/assets/icons/IconUsdt.d.ts +3 -0
- package/dist/esm/components/BuyAdsFreeButton.d.ts +1 -0
- package/dist/esm/{features/profile/components → components}/OverlayProfile.d.ts +2 -2
- package/dist/esm/components/layout/BottomSentinel.d.ts +2 -0
- package/dist/esm/components/modals/BoxOpeningModal/AnimatedFullscreen.d.ts +14 -0
- package/dist/esm/components/modals/BoxOpeningModal/BoxOpeningModal.d.ts +2 -0
- package/dist/esm/{launcherSrc/features/profile/components → components/modals/BoxOpeningModal}/PrizeCarousel.d.ts +4 -3
- package/dist/esm/components/modals/BoxOpeningModal/RewardBoxRareBadge.d.ts +5 -0
- package/dist/esm/{launcherSrc/features/profile/components → components/modals/BoxOpeningModal}/RewardTypeBadge.d.ts +2 -2
- package/dist/esm/{launcherSrc/features/profile/components → components/modals/BoxOpeningModal}/RewardTypeImage.d.ts +3 -3
- package/dist/esm/{launcherSrc/features/profile → components/modals/BoxOpeningModal}/utils/findPrizeIndex.d.ts +1 -1
- package/dist/esm/components/modals/BoxOpeningModal/utils/generateExcitingPrizes.d.ts +9 -0
- package/dist/esm/components/modals/BoxOpeningModal/utils/sortPrizesDistributed.d.ts +2 -0
- package/dist/esm/components/modals/LevelInfoModal.d.ts +2 -0
- package/dist/esm/components/modals/ProfileInventoryModal.d.ts +2 -0
- package/dist/esm/components/modals/PurchaseAdsFreeModal.d.ts +2 -0
- package/dist/esm/components/modals/TopUpModal/TopUpModal.d.ts +2 -0
- package/dist/esm/components/{AnimatedBalance.d.ts → ui/AnimatedBalance.d.ts} +2 -1
- package/dist/esm/components/ui/BalanceHeader.d.ts +4 -0
- package/dist/esm/components/ui/Drawer.d.ts +9 -0
- package/dist/esm/components/ui/EventsStack.d.ts +6 -0
- package/dist/esm/components/ui/FormattedXP.d.ts +4 -0
- package/dist/esm/components/ui/Icon.d.ts +27 -0
- package/dist/esm/{launcherSrc/app/ui/components → components/ui}/XpProgress.d.ts +2 -4
- package/dist/esm/{launcherSrc/app/contexts → components/ui/snackbar}/SnackbarContext.d.ts +4 -2
- package/dist/esm/confirm/confirm.d.ts +2 -0
- package/dist/esm/constants/animations.d.ts +2 -0
- package/dist/esm/hooks/useAnimateNumber.d.ts +1 -0
- package/dist/esm/hooks/useLottie.d.ts +12 -0
- package/dist/esm/hooks/useThrottle.d.ts +1 -0
- package/dist/esm/i18n/generate-types.d.ts +1 -0
- package/dist/esm/i18n/generated-translation-type.d.ts +112 -0
- package/dist/esm/i18n/languages.d.ts +7 -0
- package/dist/esm/i18n/locales/en.json.d.ts +137 -0
- package/dist/esm/i18n/locales/es.json.d.ts +136 -0
- package/dist/esm/i18n/locales/hi.json.d.ts +137 -0
- package/dist/esm/i18n/locales/pt.json.d.ts +136 -0
- package/dist/esm/i18n/locales/ru.json.d.ts +137 -0
- package/dist/esm/i18n/types.d.ts +9 -0
- package/dist/esm/i18n/useTranslation.d.ts +6 -0
- package/dist/esm/lib/BannerManager.d.ts +36 -0
- package/dist/esm/lib/WebSocketManager.d.ts +3 -3
- package/dist/esm/lib/activity-detector.d.ts +1 -1
- package/dist/esm/lib/tma-network.d.ts +1 -1
- package/dist/esm/providers/BoxOpeningProvider.d.ts +21 -0
- package/dist/esm/providers/ConfettiProvider.d.ts +3 -0
- package/dist/esm/providers/I18nBackendLanguageProvider.d.ts +3 -0
- package/dist/esm/queries/box/useBoxRewards.d.ts +13 -0
- package/dist/esm/queries/box/useRevealReward.d.ts +10 -0
- package/dist/esm/queries/user/useCancelNoAds.d.ts +2 -0
- package/dist/esm/queries/user/useCreateInvoiceBuyNoAds.d.ts +3 -0
- package/dist/esm/queries/user/usePrices.d.ts +3 -0
- package/dist/esm/queries/user/useProfile.d.ts +4 -0
- package/dist/esm/queryClient.d.ts +2 -0
- package/dist/esm/sdk.d.ts +56 -31
- package/dist/esm/sdk.mjs +44640 -43919
- package/dist/esm/sdk.umd.js +134 -198
- package/dist/esm/stores/confettiStore.d.ts +8 -0
- package/dist/esm/stores/inventroryModalStore.d.ts +6 -0
- package/dist/esm/stores/topUpModalStore.d.ts +6 -0
- package/dist/esm/types/api.d.ts +39 -0
- package/dist/esm/utils/cn.d.ts +2 -0
- package/dist/esm/utils/formatter.d.ts +5 -0
- package/dist/esm/utils/price.d.ts +2 -0
- package/dist/esm/utils/shuffleArray.d.ts +1 -0
- package/dist/esm/utils/telegramLanguageCodeToFlagEmoji.d.ts +11 -0
- package/dist/stats-confirm.html +1 -1
- package/dist/stats-esm.html +1 -1
- package/dist/stats-umd-react.html +1 -1
- package/dist/stats-umd.html +1 -1
- package/dist/umd/sdk.umd.js +134 -198
- package/dist/umd_react/sdk_react.umd.js +191 -255
- package/package.json +28 -30
- package/dist/confirm/index.html +0 -24
- package/dist/esm/app/helpers.d.ts +0 -2
- package/dist/esm/app/ui/assets/IconBack.d.ts +0 -1
- package/dist/esm/app/ui/components/AvatarProgress.d.ts +0 -13
- package/dist/esm/app/ui/components/ClosableModal.d.ts +0 -12
- package/dist/esm/app/ui/components/IconBalanceDiamond.d.ts +0 -3
- package/dist/esm/app/ui/components/InputSwitch.d.ts +0 -9
- package/dist/esm/app/ui/components/Inventory/Inventory.d.ts +0 -2
- package/dist/esm/app/ui/components/Inventory/context.d.ts +0 -10
- package/dist/esm/app/ui/components/XsButton.d.ts +0 -6
- package/dist/esm/app/ui/hooks/useAnimateNumber.d.ts +0 -1
- package/dist/esm/app/utils.d.ts +0 -2
- package/dist/esm/components/AppContent/AppContent.d.ts +0 -10
- package/dist/esm/components/AppContent/BottomSentinel.d.ts +0 -2
- package/dist/esm/components/BuyShopItem.d.ts +0 -1
- package/dist/esm/components/ModalCardContent.d.ts +0 -5
- package/dist/esm/features/profile/assets/IconAd.d.ts +0 -1
- package/dist/esm/features/profile/assets/IconAddCircle.d.ts +0 -1
- package/dist/esm/features/profile/assets/IconChevronRight.d.ts +0 -2
- package/dist/esm/features/profile/assets/IconDrag.d.ts +0 -2
- package/dist/esm/features/profile/assets/IconEdit.d.ts +0 -2
- package/dist/esm/features/profile/assets/IconGame.d.ts +0 -2
- package/dist/esm/features/profile/assets/IconNoSign.d.ts +0 -1
- package/dist/esm/features/profile/assets/IconProfile.d.ts +0 -1
- package/dist/esm/features/profile/assets/profileBgGradients.d.ts +0 -6
- package/dist/esm/features/profile/components/BalanceConfetti.d.ts +0 -6
- package/dist/esm/features/profile/components/BuyMenu.d.ts +0 -8
- package/dist/esm/features/profile/components/CircleParticles.d.ts +0 -10
- package/dist/esm/features/profile/components/FormattedXP.d.ts +0 -8
- package/dist/esm/features/profile/components/LevelInfoModal.d.ts +0 -9
- package/dist/esm/features/profile/components/ModalContainer.d.ts +0 -6
- package/dist/esm/features/profile/components/PurchaseConfirm.d.ts +0 -9
- package/dist/esm/features/profile/components/TaskCard.d.ts +0 -21
- package/dist/esm/features/profile/components/XpProgress.d.ts +0 -14
- package/dist/esm/features/profile/components/adsFree/BuyAdsFreeButton.d.ts +0 -3
- package/dist/esm/features/profile/components/adsFree/PurchaseAdsFree.d.ts +0 -11
- package/dist/esm/features/profile/hooks/useAnimatedProfile.d.ts +0 -5
- package/dist/esm/features/profile/utils/getFormattedDate.d.ts +0 -1
- package/dist/esm/features/wages/components/ModalContainer.d.ts +0 -6
- package/dist/esm/features/wages/components/WageCollapsedOverlay.d.ts +0 -6
- package/dist/esm/features/wages/components/WageExpandedOverlay.d.ts +0 -7
- package/dist/esm/features/wages/components/WageMenu.d.ts +0 -4
- package/dist/esm/features/wages/index.d.ts +0 -3
- package/dist/esm/features/wages/utils/formatTime.d.ts +0 -1
- package/dist/esm/features/wages/utils/formatTimeWageItem.d.ts +0 -1
- package/dist/esm/features/wages/utils/getSecondsPassed.d.ts +0 -1
- package/dist/esm/i18n/locales/translations/en.json.d.ts +0 -300
- package/dist/esm/i18n/locales/translations/hi.json.d.ts +0 -300
- package/dist/esm/i18n/locales/translations/ru.json.d.ts +0 -300
- package/dist/esm/launcherSrc/App.d.ts +0 -2
- package/dist/esm/launcherSrc/api/types.d.ts +0 -211
- package/dist/esm/launcherSrc/api/userApi.d.ts +0 -24
- package/dist/esm/launcherSrc/app/components/DebugConsole.d.ts +0 -2
- package/dist/esm/launcherSrc/app/helpers.d.ts +0 -3
- package/dist/esm/launcherSrc/app/hooks/forceRerender.d.ts +0 -1
- package/dist/esm/launcherSrc/app/hooks/useMainButtonControl.d.ts +0 -7
- package/dist/esm/launcherSrc/app/hooks/useMiniApp.d.ts +0 -3
- package/dist/esm/launcherSrc/app/hooks.d.ts +0 -10
- package/dist/esm/launcherSrc/app/store.d.ts +0 -17
- package/dist/esm/launcherSrc/app/ui/assets/IconBack.d.ts +0 -1
- package/dist/esm/launcherSrc/app/ui/assets/IconCheck.d.ts +0 -2
- package/dist/esm/launcherSrc/app/ui/assets/IconCheckThin.d.ts +0 -2
- package/dist/esm/launcherSrc/app/ui/assets/IconCross.d.ts +0 -2
- package/dist/esm/launcherSrc/app/ui/assets/IconSearch.d.ts +0 -2
- package/dist/esm/launcherSrc/app/ui/components/AvatarProgress.d.ts +0 -13
- package/dist/esm/launcherSrc/app/ui/components/ClosableModal.d.ts +0 -10
- package/dist/esm/launcherSrc/app/ui/components/FormattedXP.d.ts +0 -8
- package/dist/esm/launcherSrc/app/ui/components/IconBalance.d.ts +0 -3
- package/dist/esm/launcherSrc/app/ui/components/InputSwitch.d.ts +0 -9
- package/dist/esm/launcherSrc/app/ui/components/Twemoji.d.ts +0 -8
- package/dist/esm/launcherSrc/app/ui/components/UICell.d.ts +0 -16
- package/dist/esm/launcherSrc/app/ui/components/UIDateInput.d.ts +0 -21
- package/dist/esm/launcherSrc/app/ui/components/UIDivider.d.ts +0 -4
- package/dist/esm/launcherSrc/app/ui/components/UIEmoji.d.ts +0 -8
- package/dist/esm/launcherSrc/app/ui/components/UIHero.d.ts +0 -10
- package/dist/esm/launcherSrc/app/ui/components/UISection.d.ts +0 -9
- package/dist/esm/launcherSrc/app/ui/components/UITextarea.d.ts +0 -7
- package/dist/esm/launcherSrc/app/ui/hooks/useAnimateNumber.d.ts +0 -1
- package/dist/esm/launcherSrc/app/utils.d.ts +0 -13
- package/dist/esm/launcherSrc/assets/Icon28Edit.d.ts +0 -2
- package/dist/esm/launcherSrc/assets/Icon28Game.d.ts +0 -1
- package/dist/esm/launcherSrc/assets/Icon28Link.d.ts +0 -1
- package/dist/esm/launcherSrc/features/games/assets/IconFilter.d.ts +0 -1
- package/dist/esm/launcherSrc/features/games/assets/IconPlayers.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconQuestion.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconQuestionCircle.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconStar.d.ts +0 -4
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownFilled.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownOutlined.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpFilled.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpOutlined.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/components/GameItem.d.ts +0 -10
- package/dist/esm/launcherSrc/features/games/components/ResetStorageButton.d.ts +0 -3
- package/dist/esm/launcherSrc/features/games/components/ReviewModal.d.ts +0 -10
- package/dist/esm/launcherSrc/features/games/hooks/useGamesData.d.ts +0 -13
- package/dist/esm/launcherSrc/features/games/redux/gamesSlice.d.ts +0 -34
- package/dist/esm/launcherSrc/features/games/service/gamesService.d.ts +0 -3
- package/dist/esm/launcherSrc/features/leaderboard/components/Rating.d.ts +0 -1
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingCard/RatingCard.d.ts +0 -10
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingInfo/RatingInfo.d.ts +0 -1
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/IconWreaths.d.ts +0 -3
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/RatingLevel.d.ts +0 -6
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/lock.d.ts +0 -3
- package/dist/esm/launcherSrc/features/leaderboard/hooks/useLeaderboardData.d.ts +0 -10
- package/dist/esm/launcherSrc/features/leaderboard/index.d.ts +0 -1
- package/dist/esm/launcherSrc/features/leaderboard/redux/leaderboardSlice.d.ts +0 -18
- package/dist/esm/launcherSrc/features/leaderboard/services/leaderboardService.d.ts +0 -2
- package/dist/esm/launcherSrc/features/navigation/assets/IconGame.d.ts +0 -1
- package/dist/esm/launcherSrc/features/navigation/assets/IconProfile.d.ts +0 -1
- package/dist/esm/launcherSrc/features/navigation/assets/IconSmile.d.ts +0 -2
- package/dist/esm/launcherSrc/features/navigation/components/FloatingProfile.d.ts +0 -2
- package/dist/esm/launcherSrc/features/navigation/components/IconWithCounter.d.ts +0 -7
- package/dist/esm/launcherSrc/features/navigation/redux/navigationSlice.d.ts +0 -15
- package/dist/esm/launcherSrc/features/navigation/redux/tabsSlice.d.ts +0 -12
- package/dist/esm/launcherSrc/features/profile/assets/IconAd.d.ts +0 -1
- package/dist/esm/launcherSrc/features/profile/assets/IconAddCircle.d.ts +0 -1
- package/dist/esm/launcherSrc/features/profile/assets/IconChevronRight.d.ts +0 -2
- package/dist/esm/launcherSrc/features/profile/assets/IconColorPicker.d.ts +0 -1
- package/dist/esm/launcherSrc/features/profile/assets/IconCurrencyStar.d.ts +0 -3
- package/dist/esm/launcherSrc/features/profile/assets/IconGlobe.d.ts +0 -2
- package/dist/esm/launcherSrc/features/profile/assets/IconLock.d.ts +0 -2
- package/dist/esm/launcherSrc/features/profile/assets/IconNoSign.d.ts +0 -1
- package/dist/esm/launcherSrc/features/profile/assets/IconSignature.d.ts +0 -5
- package/dist/esm/launcherSrc/features/profile/assets/profileBgGradients.d.ts +0 -50
- package/dist/esm/launcherSrc/features/profile/components/AdsFree/BuyAdsFreeButton.d.ts +0 -0
- package/dist/esm/launcherSrc/features/profile/components/AdsFree/PurchaseAdsFree.d.ts +0 -9
- package/dist/esm/launcherSrc/features/profile/components/Balance/ProfileBalance.d.ts +0 -6
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyMenu.d.ts +0 -8
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/Ribbon.d.ts +0 -6
- package/dist/esm/launcherSrc/features/profile/components/BoxOpeningModal.d.ts +0 -3
- package/dist/esm/launcherSrc/features/profile/components/LevelInfoModal.d.ts +0 -9
- package/dist/esm/launcherSrc/features/profile/components/ProfileInventory.d.ts +0 -1
- package/dist/esm/launcherSrc/features/profile/components/ProfileLeaderboard.d.ts +0 -6
- package/dist/esm/launcherSrc/features/profile/components/ProfileReviews.d.ts +0 -6
- package/dist/esm/launcherSrc/features/profile/components/RewardBoxRareBadge.d.ts +0 -4
- package/dist/esm/launcherSrc/features/profile/components/particles/BalanceConfetti.d.ts +0 -6
- package/dist/esm/launcherSrc/features/profile/components/particles/CircleParticles.d.ts +0 -10
- package/dist/esm/launcherSrc/features/profile/components/particles/StarParticles.d.ts +0 -10
- package/dist/esm/launcherSrc/features/profile/contexts/BoxOpeningContext.d.ts +0 -12
- package/dist/esm/launcherSrc/features/profile/data/countries.d.ts +0 -10
- package/dist/esm/launcherSrc/features/profile/hooks/useProfileData.d.ts +0 -24
- package/dist/esm/launcherSrc/features/profile/redux/profileSlice.d.ts +0 -130
- package/dist/esm/launcherSrc/features/profile/services/buyMenuService.d.ts +0 -3
- package/dist/esm/launcherSrc/features/profile/services/profileService.d.ts +0 -12
- package/dist/esm/launcherSrc/i18n/index.d.ts +0 -2
- package/dist/esm/launcherSrc/index.d.ts +0 -0
- package/dist/esm/launcherSrc/setupTests.d.ts +0 -0
- package/dist/esm/launcherSrc/utils/openTelegramLinkFixed.d.ts +0 -1
- package/dist/esm/lib/init-sentry.d.ts +0 -5
- package/dist/esm/stores/buyShopModalStore.d.ts +0 -8
- package/dist/esm/stores/profileStore.d.ts +0 -17
- package/dist/esm/stores/wageStore.d.ts +0 -12
- package/dist/esm/{app/ui/assets → assets/icons}/IconClosePlain.d.ts +0 -0
- package/dist/esm/{features/profile/assets → assets/icons}/IconCurrencyStar.d.ts +0 -0
- package/dist/esm/{features/profile/assets → assets/icons}/IconTelegramStar.d.ts +0 -0
- package/dist/esm/{features/profile/assets → assets/lottie}/moneyTongue.json.d.ts +0 -0
- package/dist/esm/{features/profile/assets → assets/lottie}/newspaper.json.d.ts +0 -0
- package/dist/esm/{launcherSrc/features/profile/components/Balance → components/modals}/TopUpModal/BuyOption.d.ts +0 -0
- package/dist/esm/{features/profile/components → components/modals/TopUpModal}/Ribbon.d.ts +0 -0
- package/dist/esm/{launcherSrc/app/ui/components → components/ui/XsButton}/XsButton.d.ts +1 -1
- /package/dist/esm/{launcherSrc/features/profile/components → components/ui}/particles/ConfettiParticles.d.ts +0 -0
- /package/dist/esm/{features/profile/components → components/ui/particles}/StarParticles.d.ts +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface UICellProps {
|
|
3
|
-
icon?: React.ReactNode;
|
|
4
|
-
label?: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
showOnlyValue?: boolean;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
after?: React.ReactNode;
|
|
10
|
-
chevron?: boolean;
|
|
11
|
-
dividerAfter?: boolean;
|
|
12
|
-
editable?: boolean;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
declare const UICell: React.FC<UICellProps>;
|
|
16
|
-
export default UICell;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface UIDateInputProps {
|
|
3
|
-
value: string;
|
|
4
|
-
onChange: (value: string) => void;
|
|
5
|
-
limits?: {
|
|
6
|
-
day?: {
|
|
7
|
-
min: number;
|
|
8
|
-
max: number;
|
|
9
|
-
};
|
|
10
|
-
month?: {
|
|
11
|
-
min: number;
|
|
12
|
-
max: number;
|
|
13
|
-
};
|
|
14
|
-
year?: {
|
|
15
|
-
min: number;
|
|
16
|
-
max: number | undefined;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export declare const UIDateInput: React.FC<UIDateInputProps>;
|
|
21
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface UIHeroProps {
|
|
3
|
-
title: React.ReactNode | string;
|
|
4
|
-
subtitle: React.ReactNode | string;
|
|
5
|
-
hint?: React.ReactNode | string;
|
|
6
|
-
lottieData?: any;
|
|
7
|
-
img?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const UIHero: React.FC<UIHeroProps>;
|
|
10
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface UITextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
-
value: string;
|
|
4
|
-
onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const UITextarea: React.ForwardRefExoticComponent<UITextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useAnimateNumber: (num: number, fromZero?: boolean) => [number, (newNumber: number) => void];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare function capitalizeFirstLetter(str: string): string;
|
|
2
|
-
export declare function hexToRgba(hex: string, alpha?: number | undefined): string;
|
|
3
|
-
export declare function parseCSSString(cssString: string): React.CSSProperties;
|
|
4
|
-
export declare const throttle: (callback: Function, delay?: number) => (...args: any[]) => void;
|
|
5
|
-
export declare const debounce: (callback: Function, delay?: number) => (...args: any[]) => void;
|
|
6
|
-
/**
|
|
7
|
-
* Formats a time value in minutes to a string with appropriate units (hours or minutes)
|
|
8
|
-
* @param minutes - Time in minutes
|
|
9
|
-
* @param t - Translation function
|
|
10
|
-
* @returns Formatted time string with appropriate unit
|
|
11
|
-
*/
|
|
12
|
-
export declare const formatPlayTime: (minutes: number, t: (key: string) => string) => string;
|
|
13
|
-
export declare const formatDate: (date: string, t: (key: string, params?: Record<string, string>) => string, locale?: string) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Icon28Game: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Icon28Link: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconFilter: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Game } from '../../../api/types';
|
|
3
|
-
interface GameItemProps {
|
|
4
|
-
model: Game;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
openBtn?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const GameItem: React.FC<GameItemProps>;
|
|
10
|
-
export default GameItem;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Game, Task } from '../../../api/types';
|
|
3
|
-
interface ReviewModalProps {
|
|
4
|
-
game: Game;
|
|
5
|
-
liked: boolean;
|
|
6
|
-
onOpenChange: (isOpen: boolean) => void;
|
|
7
|
-
reviewTask?: Task;
|
|
8
|
-
}
|
|
9
|
-
export declare const ReviewModal: FC<ReviewModalProps>;
|
|
10
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SubmitReviewRequest } from '../../../api/types';
|
|
2
|
-
export declare const useGamesData: () => {
|
|
3
|
-
games: import('../../../api/types').Game[];
|
|
4
|
-
gamesLoading: boolean;
|
|
5
|
-
gamesLoaded: boolean;
|
|
6
|
-
error: string | null;
|
|
7
|
-
isStartParamCompleted: boolean;
|
|
8
|
-
setIsStartParamCompleted: (value: boolean) => {
|
|
9
|
-
payload: boolean;
|
|
10
|
-
type: "gamesSlice/setStartParamCompleted";
|
|
11
|
-
};
|
|
12
|
-
reviewGame: (review: SubmitReviewRequest) => Promise<void>;
|
|
13
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Game, SubmitReviewRequest } from '../../../api/types';
|
|
2
|
-
import { AppDispatch } from '../../../app/store';
|
|
3
|
-
export interface GamesState {
|
|
4
|
-
games: Game[];
|
|
5
|
-
loading: boolean;
|
|
6
|
-
loaded: boolean;
|
|
7
|
-
error: string | null;
|
|
8
|
-
isStartParamCompleted: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const fetchGamesThunk: import('@reduxjs/toolkit').AsyncThunk<{
|
|
11
|
-
games: Game[];
|
|
12
|
-
}, void, {
|
|
13
|
-
state?: unknown;
|
|
14
|
-
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
15
|
-
extra?: unknown;
|
|
16
|
-
rejectValue?: unknown;
|
|
17
|
-
serializedErrorType?: unknown;
|
|
18
|
-
pendingMeta?: unknown;
|
|
19
|
-
fulfilledMeta?: unknown;
|
|
20
|
-
rejectedMeta?: unknown;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const submitReview: import('@reduxjs/toolkit').AsyncThunk<void, SubmitReviewRequest, {
|
|
23
|
-
dispatch: AppDispatch;
|
|
24
|
-
state?: unknown;
|
|
25
|
-
extra?: unknown;
|
|
26
|
-
rejectValue?: unknown;
|
|
27
|
-
serializedErrorType?: unknown;
|
|
28
|
-
pendingMeta?: unknown;
|
|
29
|
-
fulfilledMeta?: unknown;
|
|
30
|
-
rejectedMeta?: unknown;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const setStartParamCompleted: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "gamesSlice/setStartParamCompleted">;
|
|
33
|
-
declare const _default: import('@reduxjs/toolkit').Reducer<GamesState>;
|
|
34
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Rating: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RatingInfo: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom hook for managing leaderboard data
|
|
3
|
-
* @returns The leaderboard data, loading state, and utility functions
|
|
4
|
-
*/
|
|
5
|
-
export declare const useLeaderboardData: () => {
|
|
6
|
-
leaderboard: import('../../../api/types').LeaderboardResponse | null;
|
|
7
|
-
loading: boolean;
|
|
8
|
-
loaded: boolean;
|
|
9
|
-
error: string | null;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Leaderboard: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LeaderboardResponse } from '../../../api/types';
|
|
2
|
-
export interface LeaderboardState {
|
|
3
|
-
leaderboard: LeaderboardResponse | null;
|
|
4
|
-
loading: boolean;
|
|
5
|
-
loaded: boolean;
|
|
6
|
-
error: string | null;
|
|
7
|
-
}
|
|
8
|
-
export declare const fetchLeaderboard: import('@reduxjs/toolkit').AsyncThunk<LeaderboardResponse, void, {
|
|
9
|
-
state?: unknown;
|
|
10
|
-
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
11
|
-
extra?: unknown;
|
|
12
|
-
rejectValue?: unknown;
|
|
13
|
-
serializedErrorType?: unknown;
|
|
14
|
-
pendingMeta?: unknown;
|
|
15
|
-
fulfilledMeta?: unknown;
|
|
16
|
-
rejectedMeta?: unknown;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const leaderboardReducer: import('@reduxjs/toolkit').Reducer<LeaderboardState>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconGame: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconProfile: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NavigateFunction } from 'react-router-dom';
|
|
2
|
-
import { AppDispatch, RootState } from '../../../app/store';
|
|
3
|
-
export type MainRoute = 'games' | 'profile' | 'admin';
|
|
4
|
-
export interface NavigationState {
|
|
5
|
-
stack: string[];
|
|
6
|
-
currentRoute: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const determineMainRoute: (path: string) => MainRoute;
|
|
9
|
-
export declare const getBaseRoute: (path: string) => string;
|
|
10
|
-
export declare const push: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "navigation/push">, pop: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"navigation/pop">, reset: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "navigation/reset">, initialize: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "navigation/initialize">;
|
|
11
|
-
export declare const navigateTo: (route: string, navigate: NavigateFunction) => (dispatch: AppDispatch, getState: () => RootState) => void;
|
|
12
|
-
export declare const goBack: (navigate: NavigateFunction) => (dispatch: AppDispatch, getState: () => RootState) => boolean;
|
|
13
|
-
export declare const resetNavigation: (route: string, navigate: NavigateFunction) => (dispatch: AppDispatch) => void;
|
|
14
|
-
declare const _default: import('@reduxjs/toolkit').Reducer<NavigationState>;
|
|
15
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const tabNames: string[];
|
|
2
|
-
export interface TabNavigationState {
|
|
3
|
-
games: string;
|
|
4
|
-
profile: string;
|
|
5
|
-
admin: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const setTabRoute: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
8
|
-
tab: keyof TabNavigationState;
|
|
9
|
-
route: string;
|
|
10
|
-
}, "tabNavigation/setTabRoute">;
|
|
11
|
-
declare const _default: import('@reduxjs/toolkit').Reducer<TabNavigationState>;
|
|
12
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconAd: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconAddCircle: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconColorPicker: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconNoSign: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
declare const profileBgGradients: readonly [{
|
|
2
|
-
readonly name: "Dreamy Sunrise";
|
|
3
|
-
readonly deg: 0;
|
|
4
|
-
readonly value: string;
|
|
5
|
-
}, {
|
|
6
|
-
readonly name: "Ocean Twilight";
|
|
7
|
-
readonly deg: 60;
|
|
8
|
-
readonly value: string;
|
|
9
|
-
}, {
|
|
10
|
-
readonly name: "Tropical Sunset";
|
|
11
|
-
readonly deg: 120;
|
|
12
|
-
readonly value: string;
|
|
13
|
-
}, {
|
|
14
|
-
readonly name: "Fire & Fuchsia";
|
|
15
|
-
readonly deg: 180;
|
|
16
|
-
readonly value: string;
|
|
17
|
-
}, {
|
|
18
|
-
readonly name: "Pastel Bloom";
|
|
19
|
-
readonly deg: 240;
|
|
20
|
-
readonly value: string;
|
|
21
|
-
}, {
|
|
22
|
-
readonly name: "Mystic Cloud";
|
|
23
|
-
readonly deg: 300;
|
|
24
|
-
readonly value: string;
|
|
25
|
-
}, {
|
|
26
|
-
readonly name: "Aurora Glow";
|
|
27
|
-
readonly deg: 360;
|
|
28
|
-
readonly value: string;
|
|
29
|
-
}, {
|
|
30
|
-
readonly name: "Forest Mist";
|
|
31
|
-
readonly deg: 420;
|
|
32
|
-
readonly value: string;
|
|
33
|
-
}, {
|
|
34
|
-
readonly name: "Golden Horizon";
|
|
35
|
-
readonly deg: 480;
|
|
36
|
-
readonly value: string;
|
|
37
|
-
}, {
|
|
38
|
-
readonly name: "Deep Sea Blush";
|
|
39
|
-
readonly deg: 540;
|
|
40
|
-
readonly value: string;
|
|
41
|
-
}, {
|
|
42
|
-
readonly name: "Rainbow Whirl";
|
|
43
|
-
readonly deg: 600;
|
|
44
|
-
readonly value: string;
|
|
45
|
-
}, {
|
|
46
|
-
readonly name: "Velvet Mirage";
|
|
47
|
-
readonly deg: 660;
|
|
48
|
-
readonly value: string;
|
|
49
|
-
}];
|
|
50
|
-
export default profileBgGradients;
|
|
File without changes
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ShopItem } from '../../../../api/types';
|
|
3
|
-
interface PurchaseAdsFreeProps {
|
|
4
|
-
shopItem: ShopItem;
|
|
5
|
-
balance: number;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const PurchaseAdsFree: React.FC<PurchaseAdsFreeProps>;
|
|
9
|
-
export default PurchaseAdsFree;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ProfileInventory: React.FC;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface CircleParticlesProps {
|
|
3
|
-
count?: number;
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
delay?: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const CircleParticles: React.FC<CircleParticlesProps>;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface StarParticlesProps {
|
|
3
|
-
count?: number;
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
delay?: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const StarParticles: React.FC<StarParticlesProps>;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
|
-
interface BoxOpeningContextType {
|
|
3
|
-
isBoxOpeningModalOpen: boolean;
|
|
4
|
-
currentBoxId: number | undefined;
|
|
5
|
-
openBoxModal: (boxId: number) => void;
|
|
6
|
-
closeBoxModal: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const BoxOpeningProvider: React.FC<{
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
}>;
|
|
11
|
-
export declare const useBoxOpening: () => BoxOpeningContextType;
|
|
12
|
-
export {};
|