@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
package/dist/esm/{app/ui/components/IconBalanceCoin.d.ts → assets/icons/IconBalanceGems.d.ts}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const IconBalanceGems: React.FC<JSX.IntrinsicAttributes & React.ClassAttributes<HTMLImageElement> & React.ImgHTMLAttributes<HTMLImageElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BuyAdsFreeButton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface OverlayProfileProps {
|
|
3
3
|
onOpenProfile: () => void;
|
|
4
|
-
variant?:
|
|
5
|
-
initialPosition?:
|
|
4
|
+
variant?: 'light' | 'dark' | 'translucent';
|
|
5
|
+
initialPosition?: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
6
6
|
}
|
|
7
7
|
export declare const OverlayProfile: React.FC<OverlayProfileProps>;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface AnimatedFullscreenProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
backgroundImage?: string;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
animationType?: 'scale' | 'fade' | 'circle';
|
|
8
|
+
disableTabbarToggle?: boolean;
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
overlayImage?: string;
|
|
11
|
+
showOverlay?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const AnimatedFullscreen: React.FC<AnimatedFullscreenProps>;
|
|
14
|
+
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WheelSpinState } from '../../../providers/BoxOpeningProvider';
|
|
2
|
+
import { InventoryReward } from '../../../types/api';
|
|
2
3
|
import { Dispatch } from 'react';
|
|
3
|
-
export type WheelSpinState = "IDLE" | "SPINNING" | "STOPPED";
|
|
4
4
|
interface PrizeCarouselProps {
|
|
5
5
|
prizes: InventoryReward[];
|
|
6
6
|
wheelSpinState: WheelSpinState;
|
|
7
7
|
actualReward: InventoryReward | null;
|
|
8
8
|
setSpinState: Dispatch<WheelSpinState>;
|
|
9
|
+
isSkipped?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export declare const PrizeCarousel: ({ prizes, wheelSpinState, actualReward, setSpinState, }: PrizeCarouselProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const PrizeCarousel: ({ prizes, wheelSpinState, actualReward, setSpinState, isSkipped, }: PrizeCarouselProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InventoryReward } from '../../../api
|
|
1
|
+
import { InventoryReward } from '../../../types/api';
|
|
2
2
|
export declare function RewardTypeBadge({ reward, className, size, }: {
|
|
3
3
|
reward: InventoryReward;
|
|
4
4
|
className?: string;
|
|
5
|
-
size:
|
|
5
|
+
size: 's' | 'm';
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { WheelSpinState } from '../../../providers/BoxOpeningProvider';
|
|
2
|
+
import { InventoryReward } from '../../../types/api';
|
|
3
3
|
export declare function RewardTypeImage({ reward, className, badgeSize, wheelSpinState, }: {
|
|
4
4
|
reward: InventoryReward;
|
|
5
5
|
className: string;
|
|
6
|
-
badgeSize?:
|
|
6
|
+
badgeSize?: 's' | 'm';
|
|
7
7
|
wheelSpinState?: WheelSpinState;
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ServiceBoxOpenResponse } from '../../../../types/api';
|
|
2
|
+
interface ExcitingPrizeConfig {
|
|
3
|
+
excitementChance: number;
|
|
4
|
+
excitementDistance: number;
|
|
5
|
+
excitementMultiplier: number;
|
|
6
|
+
mode: 'dramatic' | 'progressive';
|
|
7
|
+
}
|
|
8
|
+
export declare function generateExcitingPrizes(prizes: ServiceBoxOpenResponse[], actualReward: ServiceBoxOpenResponse, config?: Partial<ExcitingPrizeConfig>): ServiceBoxOpenResponse[];
|
|
9
|
+
export {};
|
|
@@ -3,6 +3,7 @@ interface AnimatedBalanceProps {
|
|
|
3
3
|
style?: React.CSSProperties;
|
|
4
4
|
colorText?: string;
|
|
5
5
|
className?: string;
|
|
6
|
+
noRounding?: boolean;
|
|
6
7
|
}
|
|
7
|
-
export declare function AnimatedBalance({ value, style, className, colorText, }: AnimatedBalanceProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function AnimatedBalance({ value, style, className, colorText, noRounding, }: AnimatedBalanceProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ModalProps } from '@telegram-apps/telegram-ui';
|
|
2
|
+
import { ModalHeaderProps } from '@telegram-apps/telegram-ui/dist/components/Overlays/Modal/components/ModalHeader/ModalHeader';
|
|
3
|
+
import { CSSProperties } from 'react';
|
|
4
|
+
export declare function Drawer({ children, headerOptions, closeButtonStyles, className, variant, style, ...props }: ModalProps & {
|
|
5
|
+
headerOptions?: ModalHeaderProps;
|
|
6
|
+
closeButtonStyles?: CSSProperties;
|
|
7
|
+
variant?: 'default' | 'secondary';
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const DrawerContent: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceRecentReward } from '../../types/api';
|
|
2
|
+
export declare function EventToast({ recentReward }: {
|
|
3
|
+
recentReward: ServiceRecentReward;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function getEventsBottomOffset(): number;
|
|
6
|
+
export declare function EventsStack(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
declare const Icons: {
|
|
3
|
+
thumbsDownOutlined: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
thumbsUpOutlined: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
thumbsDownFilled: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
thumbsUpFilled: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
star: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
smile: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
discountOutline: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
cup: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
games: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
download: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
checkThin: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
addCircle: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
search: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
chevronLeft: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
chevronRight: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
close: (props: ComponentPropsWithoutRef<"svg">) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
interface IconProps extends ComponentPropsWithoutRef<'svg'> {
|
|
21
|
+
name: keyof typeof Icons;
|
|
22
|
+
size?: number;
|
|
23
|
+
title?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function Icon({ name, size, className, title, 'aria-label': ariaLabel, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export type IconName = keyof typeof Icons;
|
|
27
|
+
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface XpProgressProps {
|
|
3
3
|
level: number;
|
|
4
|
-
|
|
4
|
+
experience: number;
|
|
5
5
|
xpNeeded: number;
|
|
6
|
-
|
|
7
|
-
variant?: 'square' | 'row' | 'card';
|
|
8
|
-
style?: React.CSSProperties;
|
|
6
|
+
className?: string;
|
|
9
7
|
size?: number;
|
|
10
8
|
levelFontSize?: number;
|
|
11
9
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
type SnackbarType =
|
|
2
|
+
export type SnackbarType = 'success' | 'success_top' | 'warning' | 'error' | 'default';
|
|
3
3
|
interface SnackbarOptions {
|
|
4
4
|
type?: SnackbarType;
|
|
5
5
|
before?: React.ReactNode;
|
|
6
6
|
after?: React.ReactNode;
|
|
7
7
|
coins?: string;
|
|
8
|
+
usdt?: string;
|
|
9
|
+
gems?: string;
|
|
10
|
+
isSpentCoins?: boolean;
|
|
8
11
|
boxes?: string;
|
|
9
|
-
duration?: number;
|
|
10
12
|
}
|
|
11
13
|
interface SnackbarContextType {
|
|
12
14
|
showSnackbar: (message: string, options?: SnackbarOptions) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAnimateNumber: (num: number, fromZero?: boolean, noRounding?: boolean) => [number, (newNumber: number) => void];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AnimationConfigWithData, AnimationItem } from 'lottie-web';
|
|
2
|
+
interface UseLottieOptions {
|
|
3
|
+
animationData: AnimationConfigWithData['animationData'];
|
|
4
|
+
loop?: boolean;
|
|
5
|
+
autoplay?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface UseLottieReturn {
|
|
8
|
+
ref: (node: HTMLDivElement | null) => void;
|
|
9
|
+
animation: AnimationItem | null;
|
|
10
|
+
}
|
|
11
|
+
export declare function useLottie({ animationData, loop, autoplay, }: UseLottieOptions): UseLottieReturn;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useThrottle(value: number, interval?: number): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export interface TranslationKeys {
|
|
2
|
+
balance: string;
|
|
3
|
+
topUp: string;
|
|
4
|
+
ads: string;
|
|
5
|
+
adsOn: string;
|
|
6
|
+
adsOff: string;
|
|
7
|
+
level: string;
|
|
8
|
+
toLevelUp: string;
|
|
9
|
+
xpCounter: string;
|
|
10
|
+
lootBox: string;
|
|
11
|
+
forLevel: string;
|
|
12
|
+
unopenedLootBox: string;
|
|
13
|
+
emptyBox: string;
|
|
14
|
+
openItem: string;
|
|
15
|
+
reward_type: {
|
|
16
|
+
coins: string;
|
|
17
|
+
usdt: string;
|
|
18
|
+
ton: string;
|
|
19
|
+
telegram_premium: string;
|
|
20
|
+
double_balance: string;
|
|
21
|
+
box: string;
|
|
22
|
+
box_common: string;
|
|
23
|
+
box_rare: string;
|
|
24
|
+
box_epic: string;
|
|
25
|
+
box_legend: string;
|
|
26
|
+
};
|
|
27
|
+
months: {
|
|
28
|
+
january: string;
|
|
29
|
+
february: string;
|
|
30
|
+
march: string;
|
|
31
|
+
april: string;
|
|
32
|
+
may: string;
|
|
33
|
+
june: string;
|
|
34
|
+
july: string;
|
|
35
|
+
august: string;
|
|
36
|
+
september: string;
|
|
37
|
+
october: string;
|
|
38
|
+
november: string;
|
|
39
|
+
december: string;
|
|
40
|
+
};
|
|
41
|
+
box_open: {
|
|
42
|
+
skip: string;
|
|
43
|
+
you_ve_got: string;
|
|
44
|
+
button_reveal_reward: string;
|
|
45
|
+
button_open_now: string;
|
|
46
|
+
button_save_inventory: string;
|
|
47
|
+
recent_rewards: string;
|
|
48
|
+
later_open_later_inventory: string;
|
|
49
|
+
};
|
|
50
|
+
common: {
|
|
51
|
+
error: string;
|
|
52
|
+
continue: string;
|
|
53
|
+
timeAgo: {
|
|
54
|
+
sec: string;
|
|
55
|
+
now: string;
|
|
56
|
+
min: string;
|
|
57
|
+
h: string;
|
|
58
|
+
d: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
snackbar: {
|
|
62
|
+
purchase: {
|
|
63
|
+
blackHolePurchaseChest: string;
|
|
64
|
+
blackHolePurchaseLevel: string;
|
|
65
|
+
blackHolePurchaseAutoBurn: string;
|
|
66
|
+
walletPurchaseGems: string;
|
|
67
|
+
blackHoleBurnCoins: string;
|
|
68
|
+
error: string;
|
|
69
|
+
};
|
|
70
|
+
receiving: {
|
|
71
|
+
claimedTask: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
purchaseAdsFreeModal: {
|
|
75
|
+
title: string;
|
|
76
|
+
disableAllInterruptions: string;
|
|
77
|
+
noInterruptionsInGames: string;
|
|
78
|
+
activeRecurring: string;
|
|
79
|
+
aMonth: string;
|
|
80
|
+
nextPayment: string;
|
|
81
|
+
activeUntil: string;
|
|
82
|
+
subscriptionPaused: string;
|
|
83
|
+
resumeSubscription: string;
|
|
84
|
+
cancelSubscription: string;
|
|
85
|
+
continue: string;
|
|
86
|
+
month: string;
|
|
87
|
+
errorCancelSubscription: string;
|
|
88
|
+
};
|
|
89
|
+
levelInfoModal: {
|
|
90
|
+
title: string;
|
|
91
|
+
description: string;
|
|
92
|
+
action: string;
|
|
93
|
+
};
|
|
94
|
+
topUpModal: {
|
|
95
|
+
balance: string;
|
|
96
|
+
topUpBalance: string;
|
|
97
|
+
coins: string;
|
|
98
|
+
gems: string;
|
|
99
|
+
topUp: string;
|
|
100
|
+
};
|
|
101
|
+
inventoryModal: {
|
|
102
|
+
title: string;
|
|
103
|
+
description: string;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export type NestedKeyOf<T> = {
|
|
107
|
+
[K in keyof T & (string | number)]: T[K] extends object ? `${K}.${NestedKeyOf<T[K]>}` : `${K}`;
|
|
108
|
+
}[keyof T & (string | number)];
|
|
109
|
+
export type TranslationKey = NestedKeyOf<TranslationKeys>;
|
|
110
|
+
export interface TranslationParams {
|
|
111
|
+
[key: string]: string | number;
|
|
112
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"balance": "Balance",
|
|
3
|
+
"topUp": "Top Up",
|
|
4
|
+
"ads": "Ads",
|
|
5
|
+
"adsOn": "On",
|
|
6
|
+
"adsOff": "Off",
|
|
7
|
+
"level": "Level",
|
|
8
|
+
"toLevelUp": "to lvl up",
|
|
9
|
+
"xpCounter": "/ {{total}} XP",
|
|
10
|
+
"lootBox": "Loot Box",
|
|
11
|
+
"forLevel": "for level {{level}}",
|
|
12
|
+
"unopenedLootBox": "Unopened Loot Box",
|
|
13
|
+
"emptyBox": "Empty Box",
|
|
14
|
+
"openItem": "Open Item",
|
|
15
|
+
"reward_type": {
|
|
16
|
+
"coins": "{{count}} coin",
|
|
17
|
+
"coins_one": "{{count}} coin",
|
|
18
|
+
"coins_few": "{{count}} coins",
|
|
19
|
+
"coins_many": "{{count}} coins",
|
|
20
|
+
"usdt": "{{count}} USDT",
|
|
21
|
+
"usdt_one": "{{count}} USDT",
|
|
22
|
+
"usdt_few": "{{count}} USDT",
|
|
23
|
+
"usdt_many": "{{count}} USDT",
|
|
24
|
+
"ton": "{{count}} TON",
|
|
25
|
+
"ton_one": "{{count}} TON",
|
|
26
|
+
"ton_few": "{{count}} TON",
|
|
27
|
+
"ton_many": "{{count}} TON",
|
|
28
|
+
"telegram_premium": "Telegram Premium",
|
|
29
|
+
"double_balance": "Double Balance",
|
|
30
|
+
"box": "LOOT BOX",
|
|
31
|
+
"box_common": "BASIC",
|
|
32
|
+
"box_rare": "RARE",
|
|
33
|
+
"box_epic": "EPIC",
|
|
34
|
+
"box_legend": "LEGEND"
|
|
35
|
+
},
|
|
36
|
+
"months": {
|
|
37
|
+
"january": "Jan",
|
|
38
|
+
"february": "Feb",
|
|
39
|
+
"march": "Mar",
|
|
40
|
+
"april": "Apr",
|
|
41
|
+
"may": "May",
|
|
42
|
+
"june": "Jun",
|
|
43
|
+
"july": "Jul",
|
|
44
|
+
"august": "Aug",
|
|
45
|
+
"september": "Sep",
|
|
46
|
+
"october": "Oct",
|
|
47
|
+
"november": "Nov",
|
|
48
|
+
"december": "Dec"
|
|
49
|
+
},
|
|
50
|
+
"box_open": {
|
|
51
|
+
"skip": "Skip",
|
|
52
|
+
"you_ve_got": "You’ve got",
|
|
53
|
+
"button_reveal_reward": "Reveal Reward",
|
|
54
|
+
"button_open_now": "Open Now",
|
|
55
|
+
"button_save_inventory": "Save to Inventory",
|
|
56
|
+
"recent_rewards": "Recent rewards",
|
|
57
|
+
"later_open_later_inventory": "You can open it later in inventory"
|
|
58
|
+
},
|
|
59
|
+
"common": {
|
|
60
|
+
"error": "Oops! Something went wrong. Please try again later.",
|
|
61
|
+
"continue": "Continue",
|
|
62
|
+
"timeAgo": {
|
|
63
|
+
"sec_zero": "{{count}} seconds ago",
|
|
64
|
+
"sec_one": "{{count}} second ago",
|
|
65
|
+
"sec_two": "{{count}} seconds ago",
|
|
66
|
+
"sec_few": "{{count}} seconds ago",
|
|
67
|
+
"sec_many": "{{count}} seconds ago",
|
|
68
|
+
"sec_other": "{{count}} seconds ago",
|
|
69
|
+
"now": "Just now",
|
|
70
|
+
"min_zero": "{{count}} minutes ago",
|
|
71
|
+
"min_one": "{{count}} minute ago",
|
|
72
|
+
"min_two": "{{count}} minutes ago",
|
|
73
|
+
"min_few": "{{count}} minutes ago",
|
|
74
|
+
"min_many": "{{count}} minutes ago",
|
|
75
|
+
"min_other": "{{count}} minutes ago",
|
|
76
|
+
"h_zero": "{{count}} hours ago",
|
|
77
|
+
"h_one": "{{count}} hour ago",
|
|
78
|
+
"h_two": "{{count}} hours ago",
|
|
79
|
+
"h_few": "{{count}} hours ago",
|
|
80
|
+
"h_many": "{{count}} hours ago",
|
|
81
|
+
"h_other": "{{count}} hours ago",
|
|
82
|
+
"d_zero": "{{count}} days ago",
|
|
83
|
+
"d_one": "{{count}} day ago",
|
|
84
|
+
"d_two": "{{count}} days ago",
|
|
85
|
+
"d_few": "{{count}} days ago",
|
|
86
|
+
"d_many": "{{count}} days ago",
|
|
87
|
+
"d_other": "{{count}} days ago"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"snackbar": {
|
|
91
|
+
"purchase": {
|
|
92
|
+
"blackHolePurchaseChest": "Purchase",
|
|
93
|
+
"blackHolePurchaseLevel": "Purchase",
|
|
94
|
+
"blackHolePurchaseAutoBurn": "Purchase",
|
|
95
|
+
"walletPurchaseGems": "Purchase",
|
|
96
|
+
"blackHoleBurnCoins": "Burned",
|
|
97
|
+
"error": "Failed to make a purchase"
|
|
98
|
+
},
|
|
99
|
+
"receiving": {
|
|
100
|
+
"claimedTask": "Received"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"purchaseAdsFreeModal": {
|
|
104
|
+
"title": "Remove Ads",
|
|
105
|
+
"disableAllInterruptions": "Disable all interruptions in games with a recurring monthly subscription. No worries, you will also have the option to turn ads on back if you want anytime!",
|
|
106
|
+
"noInterruptionsInGames": "No interruptions in games with a recurring subscription.",
|
|
107
|
+
"activeRecurring": "Active recurring payments at {{price}}",
|
|
108
|
+
"aMonth": " a month.",
|
|
109
|
+
"nextPayment": "Next payment {{date}}",
|
|
110
|
+
"activeUntil": "Active until {{date}}",
|
|
111
|
+
"subscriptionPaused": "Subscription is Paused",
|
|
112
|
+
"resumeSubscription": "Resume Subscription",
|
|
113
|
+
"cancelSubscription": "Cancel Subscription",
|
|
114
|
+
"continue": "Continue",
|
|
115
|
+
"month": "{{price}} / month",
|
|
116
|
+
"errorCancelSubscription": "Failed to cancel subscription. Please try again"
|
|
117
|
+
},
|
|
118
|
+
"levelInfoModal": {
|
|
119
|
+
"title": "Your Level",
|
|
120
|
+
"description": "Gain experience by playing games. For leveling up you get loot boxes, which may contain USDT, coins or better loot boxes. Compete with other players to win real USDT every week.",
|
|
121
|
+
"action": "Got It"
|
|
122
|
+
},
|
|
123
|
+
"topUpModal": {
|
|
124
|
+
"balance": "Balance",
|
|
125
|
+
"topUpBalance": "Top Up Gems",
|
|
126
|
+
"coins": "coins",
|
|
127
|
+
"gems": "gems",
|
|
128
|
+
"topUp": "Top Up"
|
|
129
|
+
},
|
|
130
|
+
"inventoryModal": {
|
|
131
|
+
"title": "Inventory",
|
|
132
|
+
"description": "It's your personal storage space for all unopened loot boxes. Tap each image to reveal reward inside!"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
;
|
|
136
|
+
|
|
137
|
+
export default _default;
|