@orbit-software/sdk 1.10.0
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/Overlay.d.ts +2 -0
- package/dist/esm/app/helpers.d.ts +2 -0
- package/dist/esm/app/ui/assets/IconBack.d.ts +1 -0
- package/dist/esm/app/ui/assets/IconClosePlain.d.ts +3 -0
- package/dist/esm/app/ui/components/AvatarProgress.d.ts +13 -0
- package/dist/esm/app/ui/components/ClosableModal.d.ts +11 -0
- package/dist/esm/app/ui/components/IconBalance.d.ts +3 -0
- package/dist/esm/app/ui/components/InputSwitch.d.ts +9 -0
- package/dist/esm/app/ui/components/Inventory/Inventory.d.ts +2 -0
- package/dist/esm/app/ui/components/Inventory/context.d.ts +10 -0
- package/dist/esm/app/ui/components/XsButton.d.ts +6 -0
- package/dist/esm/app/ui/hooks/useAnimateNumber.d.ts +1 -0
- package/dist/esm/app/utils.d.ts +2 -0
- package/dist/esm/boolean-D78EXBUO.mjs +1986 -0
- package/dist/esm/bootstrap.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconAd.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconAddCircle.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconCurrencyStar.d.ts +3 -0
- package/dist/esm/features/profile/assets/IconDrag.d.ts +2 -0
- package/dist/esm/features/profile/assets/IconEdit.d.ts +2 -0
- package/dist/esm/features/profile/assets/IconGame.d.ts +2 -0
- package/dist/esm/features/profile/assets/IconNoSign.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconProfile.d.ts +1 -0
- package/dist/esm/features/profile/assets/moneyTongue.json.d.ts +3 -0
- package/dist/esm/features/profile/assets/newspaper.json.d.ts +3 -0
- package/dist/esm/features/profile/assets/profileBgGradients.d.ts +6 -0
- package/dist/esm/features/profile/components/Avatars.d.ts +8 -0
- package/dist/esm/features/profile/components/BalanceConfetti.d.ts +6 -0
- package/dist/esm/features/profile/components/BuyMenu.d.ts +8 -0
- package/dist/esm/features/profile/components/CircleParticles.d.ts +10 -0
- package/dist/esm/features/profile/components/FormattedXP.d.ts +8 -0
- package/dist/esm/features/profile/components/LevelInfoModal.d.ts +9 -0
- package/dist/esm/features/profile/components/ModalContainer.d.ts +6 -0
- package/dist/esm/features/profile/components/OverlayProfile.d.ts +8 -0
- package/dist/esm/features/profile/components/Profile.d.ts +3 -0
- package/dist/esm/features/profile/components/PurchaseConfirm.d.ts +9 -0
- package/dist/esm/features/profile/components/Ribbon.d.ts +6 -0
- package/dist/esm/features/profile/components/StarParticles.d.ts +10 -0
- package/dist/esm/features/profile/components/TaskCard.d.ts +21 -0
- package/dist/esm/features/profile/components/XpProgress.d.ts +14 -0
- package/dist/esm/features/profile/hooks/useAnimatedProfile.d.ts +5 -0
- package/dist/esm/gaussian-splat-compression-CzzkTP3L.mjs +1632 -0
- package/dist/esm/hooks/useForceRerender.d.ts +1 -0
- package/dist/esm/hooks/useMiniApp.d.ts +3 -0
- package/dist/esm/howler-Mh6LB0k5.mjs +572 -0
- package/dist/esm/i18n/index.d.ts +2 -0
- package/dist/esm/i18n/locales/translations/en.json.d.ts +213 -0
- package/dist/esm/i18n/locales/translations/ru.json.d.ts +210 -0
- package/dist/esm/launcherSrc/App.d.ts +2 -0
- package/dist/esm/launcherSrc/api/client.d.ts +3 -0
- package/dist/esm/launcherSrc/api/types.d.ts +181 -0
- package/dist/esm/launcherSrc/api/userApi.d.ts +22 -0
- package/dist/esm/launcherSrc/app/components/DebugConsole.d.ts +2 -0
- package/dist/esm/launcherSrc/app/contexts/SnackbarContext.d.ts +18 -0
- package/dist/esm/launcherSrc/app/helpers.d.ts +5 -0
- package/dist/esm/launcherSrc/app/hooks/forceRerender.d.ts +1 -0
- package/dist/esm/launcherSrc/app/hooks/useMainButtonControl.d.ts +7 -0
- package/dist/esm/launcherSrc/app/hooks/useMiniApp.d.ts +3 -0
- package/dist/esm/launcherSrc/app/hooks.d.ts +11 -0
- package/dist/esm/launcherSrc/app/store.d.ts +19 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconBack.d.ts +1 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconCheck.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconCheckThin.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconCross.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconSearch.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/components/AvatarProgress.d.ts +13 -0
- package/dist/esm/launcherSrc/app/ui/components/ClosableModal.d.ts +10 -0
- package/dist/esm/launcherSrc/app/ui/components/FormattedXP.d.ts +8 -0
- package/dist/esm/launcherSrc/app/ui/components/IconBalance.d.ts +3 -0
- package/dist/esm/launcherSrc/app/ui/components/InputSwitch.d.ts +9 -0
- package/dist/esm/launcherSrc/app/ui/components/Twemoji.d.ts +8 -0
- package/dist/esm/launcherSrc/app/ui/components/UICell.d.ts +16 -0
- package/dist/esm/launcherSrc/app/ui/components/UIDateInput.d.ts +21 -0
- package/dist/esm/launcherSrc/app/ui/components/UIDivider.d.ts +4 -0
- package/dist/esm/launcherSrc/app/ui/components/UIEmoji.d.ts +8 -0
- package/dist/esm/launcherSrc/app/ui/components/UIHero.d.ts +10 -0
- package/dist/esm/launcherSrc/app/ui/components/UISection.d.ts +9 -0
- package/dist/esm/launcherSrc/app/ui/components/UITextarea.d.ts +7 -0
- package/dist/esm/launcherSrc/app/ui/components/XpProgress.d.ts +13 -0
- package/dist/esm/launcherSrc/app/ui/components/XsButton.d.ts +6 -0
- package/dist/esm/launcherSrc/app/ui/hooks/useAnimateNumber.d.ts +1 -0
- package/dist/esm/launcherSrc/app/utils.d.ts +13 -0
- package/dist/esm/launcherSrc/assets/Icon28Edit.d.ts +2 -0
- package/dist/esm/launcherSrc/assets/Icon28Game.d.ts +1 -0
- package/dist/esm/launcherSrc/assets/Icon28Link.d.ts +1 -0
- package/dist/esm/launcherSrc/features/admin/components/Admin.d.ts +3 -0
- package/dist/esm/launcherSrc/features/admin/components/OverlayControl.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconFilter.d.ts +1 -0
- package/dist/esm/launcherSrc/features/games/assets/IconPlayers.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconQuestion.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconQuestionCircle.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconStar.d.ts +4 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownFilled.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownOutlined.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpFilled.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpOutlined.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/components/GameItem.d.ts +10 -0
- package/dist/esm/launcherSrc/features/games/components/GamePage/GamePage.d.ts +6 -0
- package/dist/esm/launcherSrc/features/games/components/GamePage/GameReview.d.ts +10 -0
- package/dist/esm/launcherSrc/features/games/components/GamePage/GameReviews.d.ts +9 -0
- package/dist/esm/launcherSrc/features/games/components/Games.d.ts +3 -0
- package/dist/esm/launcherSrc/features/games/components/ResetStorageButton.d.ts +3 -0
- package/dist/esm/launcherSrc/features/games/components/ReviewModal.d.ts +10 -0
- package/dist/esm/launcherSrc/features/games/hooks/useGamesData.d.ts +13 -0
- package/dist/esm/launcherSrc/features/games/redux/gamesSlice.d.ts +34 -0
- package/dist/esm/launcherSrc/features/games/service/gamesService.d.ts +3 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/Rating.d.ts +1 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingCard/RatingCard.d.ts +10 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingInfo/RatingInfo.d.ts +1 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/IconWreaths.d.ts +3 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/RatingLevel.d.ts +6 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/lock.d.ts +3 -0
- package/dist/esm/launcherSrc/features/leaderboard/hooks/useLeaderboardData.d.ts +10 -0
- package/dist/esm/launcherSrc/features/leaderboard/index.d.ts +1 -0
- package/dist/esm/launcherSrc/features/leaderboard/redux/leaderboardSlice.d.ts +18 -0
- package/dist/esm/launcherSrc/features/leaderboard/services/leaderboardService.d.ts +2 -0
- package/dist/esm/launcherSrc/features/navigation/assets/IconGame.d.ts +1 -0
- package/dist/esm/launcherSrc/features/navigation/assets/IconProfile.d.ts +1 -0
- package/dist/esm/launcherSrc/features/navigation/assets/IconSmile.d.ts +2 -0
- package/dist/esm/launcherSrc/features/navigation/components/FloatingProfile.d.ts +2 -0
- package/dist/esm/launcherSrc/features/navigation/components/IconWithCounter.d.ts +7 -0
- package/dist/esm/launcherSrc/features/navigation/redux/navigationSlice.d.ts +15 -0
- package/dist/esm/launcherSrc/features/navigation/redux/tabsSlice.d.ts +12 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconAd.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconAddCircle.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconChevronRight.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconColorPicker.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconCurrencyStar.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconGlobe.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconLock.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconNoSign.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconSignature.d.ts +5 -0
- package/dist/esm/launcherSrc/features/profile/assets/profileBgGradients.d.ts +50 -0
- package/dist/esm/launcherSrc/features/profile/components/AdsFree/BuyAdsFreeButton.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/AdsFree/PurchaseAdsFree.d.ts +9 -0
- package/dist/esm/launcherSrc/features/profile/components/Avatars/AvatarCreation.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/Avatars/Avatars.d.ts +11 -0
- package/dist/esm/launcherSrc/features/profile/components/Avatars/EditAvatarButton.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/ProfileBalance.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyMenu.d.ts +8 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyOption.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/Ribbon.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/BoxOpeningModal.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/DailyModal.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FIllBirthdate.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillCountry.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillEmail.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillProfile.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillProfileLayout.d.ts +4 -0
- package/dist/esm/launcherSrc/features/profile/components/LevelInfoModal.d.ts +9 -0
- package/dist/esm/launcherSrc/features/profile/components/Profile.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileGames.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileInventory.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileLeaderboard.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileReviews.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileTrophies.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/Tasks/TaskCard.d.ts +24 -0
- package/dist/esm/launcherSrc/features/profile/components/Tasks/Tasks.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/BalanceConfetti.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/CircleParticles.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/ConfettiParticles.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/StarParticles.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/contexts/BoxOpeningContext.d.ts +12 -0
- package/dist/esm/launcherSrc/features/profile/data/countries.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/hooks/useProfileData.d.ts +26 -0
- package/dist/esm/launcherSrc/features/profile/redux/profileSlice.d.ts +131 -0
- package/dist/esm/launcherSrc/features/profile/redux/shopSlice.d.ts +18 -0
- package/dist/esm/launcherSrc/features/profile/services/buyMenuService.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/services/profileService.d.ts +12 -0
- package/dist/esm/launcherSrc/features/profile/services/shopService.d.ts +2 -0
- package/dist/esm/launcherSrc/i18n/index.d.ts +2 -0
- 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 +1 -0
- package/dist/esm/navmesh-BbINhDrO.mjs +1336 -0
- package/dist/esm/opentype-PR7hcvG5.mjs +4286 -0
- package/dist/esm/physics-B9pWoHiG.mjs +4375 -0
- package/dist/esm/process-DGf1Bnd3.mjs +2274 -0
- package/dist/esm/sdk-4y_oRGP7.mjs +76474 -0
- package/dist/esm/sdk.d.ts +130 -0
- package/dist/esm/sdk.mjs +9 -0
- package/dist/esm/sdk.umd.js +8382 -0
- package/dist/esm/stores/profileStore.d.ts +16 -0
- package/dist/esm/ui-C32u2WA-.mjs +2678 -0
- package/dist/esm/utils/global.d.ts +1 -0
- package/dist/umd/sdk.umd.js +8382 -0
- package/dist/umd_react/sdk_react.umd.js +8562 -0
- package/index.html +13 -0
- package/package.json +96 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
+
import { RootState } from './store';
|
|
3
|
+
export declare const useAppDispatch: () => import('@reduxjs/toolkit').ThunkDispatch<{
|
|
4
|
+
games: import('../features/games/redux/gamesSlice').GamesState;
|
|
5
|
+
profile: import('../features/profile/redux/profileSlice').ProfileState;
|
|
6
|
+
shop: import('../features/profile/redux/shopSlice').ShopState;
|
|
7
|
+
tabs: import('../features/navigation/redux/tabsSlice').TabNavigationState;
|
|
8
|
+
navigation: import('../features/navigation/redux/navigationSlice').NavigationState;
|
|
9
|
+
leaderboard: import('../features/leaderboard/redux/leaderboardSlice').LeaderboardState;
|
|
10
|
+
}, undefined, import('@reduxjs/toolkit').AnyAction> & import('@reduxjs/toolkit').Dispatch<import('@reduxjs/toolkit').AnyAction>;
|
|
11
|
+
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ThunkAction, Action } from '@reduxjs/toolkit';
|
|
2
|
+
export declare const store: import('@reduxjs/toolkit/dist/configureStore').ToolkitStore<{
|
|
3
|
+
games: import('../features/games/redux/gamesSlice').GamesState;
|
|
4
|
+
profile: import('../features/profile/redux/profileSlice').ProfileState;
|
|
5
|
+
shop: import('../features/profile/redux/shopSlice').ShopState;
|
|
6
|
+
tabs: import('../features/navigation/redux/tabsSlice').TabNavigationState;
|
|
7
|
+
navigation: import('../features/navigation/redux/navigationSlice').NavigationState;
|
|
8
|
+
leaderboard: import('../features/leaderboard/redux/leaderboardSlice').LeaderboardState;
|
|
9
|
+
}, import('@reduxjs/toolkit').AnyAction, [import('@reduxjs/toolkit').ThunkMiddleware<{
|
|
10
|
+
games: import('../features/games/redux/gamesSlice').GamesState;
|
|
11
|
+
profile: import('../features/profile/redux/profileSlice').ProfileState;
|
|
12
|
+
shop: import('../features/profile/redux/shopSlice').ShopState;
|
|
13
|
+
tabs: import('../features/navigation/redux/tabsSlice').TabNavigationState;
|
|
14
|
+
navigation: import('../features/navigation/redux/navigationSlice').NavigationState;
|
|
15
|
+
leaderboard: import('../features/leaderboard/redux/leaderboardSlice').LeaderboardState;
|
|
16
|
+
}, import('@reduxjs/toolkit').AnyAction>]>;
|
|
17
|
+
export type AppDispatch = typeof store.dispatch;
|
|
18
|
+
export type RootState = ReturnType<typeof store.getState>;
|
|
19
|
+
export type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IconBack: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { User } from '../../../api/types';
|
|
3
|
+
interface AvatarProgressProps {
|
|
4
|
+
profile: User | null;
|
|
5
|
+
progress?: number;
|
|
6
|
+
animateFromZero?: boolean;
|
|
7
|
+
size?: number;
|
|
8
|
+
gap?: number;
|
|
9
|
+
strokeWidth?: number;
|
|
10
|
+
previousProgress?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const AvatarProgress: React.FC<AvatarProgressProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ClosableModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onOpenChange: (isOpen: boolean) => void;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
textAreaFix?: boolean;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
export declare const ClosableModal: React.FC<ClosableModalProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
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;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,7 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface XpProgressProps {
|
|
3
|
+
level: number;
|
|
4
|
+
xp: number;
|
|
5
|
+
xpNeeded: number;
|
|
6
|
+
compact?: boolean;
|
|
7
|
+
variant?: 'square' | 'row' | 'card';
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
size?: number;
|
|
10
|
+
levelFontSize?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const XpProgress: React.FC<XpProgressProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Button } from '@telegram-apps/telegram-ui';
|
|
3
|
+
interface XsButtonProps extends Omit<React.ComponentProps<typeof Button>, 'size'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const XsButton: React.ForwardRefExoticComponent<Omit<XsButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAnimateNumber: (num: number, fromZero?: boolean) => [number, (newNumber: number) => void];
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Icon28Game: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Icon28Link: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IconFilter: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GameReview as GameReviewType, Game } from '../../../../api/types';
|
|
2
|
+
declare const GameReview: React.FC<{
|
|
3
|
+
review: GameReviewType;
|
|
4
|
+
isUserReview?: boolean;
|
|
5
|
+
onAddReview?: () => void;
|
|
6
|
+
game?: Game;
|
|
7
|
+
shrink?: boolean;
|
|
8
|
+
onGameClick?: (gameId: number) => void;
|
|
9
|
+
}>;
|
|
10
|
+
export default GameReview;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Game } from '../../../../api/types';
|
|
3
|
+
interface GameReviewsProps {
|
|
4
|
+
game: Game;
|
|
5
|
+
isReviewModalOpen: boolean;
|
|
6
|
+
setIsReviewModalOpen: (isOpen: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const GameReviews: FC<GameReviewsProps>;
|
|
9
|
+
export default GameReviews;
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Rating: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RatingInfo: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Leaderboard: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
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>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IconGame: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IconProfile: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IconAd: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IconAddCircle: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IconColorPicker: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IconNoSign: () => import("react/jsx-runtime").JSX.Element;
|