@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.
Files changed (189) hide show
  1. package/dist/esm/Overlay.d.ts +2 -0
  2. package/dist/esm/app/helpers.d.ts +2 -0
  3. package/dist/esm/app/ui/assets/IconBack.d.ts +1 -0
  4. package/dist/esm/app/ui/assets/IconClosePlain.d.ts +3 -0
  5. package/dist/esm/app/ui/components/AvatarProgress.d.ts +13 -0
  6. package/dist/esm/app/ui/components/ClosableModal.d.ts +11 -0
  7. package/dist/esm/app/ui/components/IconBalance.d.ts +3 -0
  8. package/dist/esm/app/ui/components/InputSwitch.d.ts +9 -0
  9. package/dist/esm/app/ui/components/Inventory/Inventory.d.ts +2 -0
  10. package/dist/esm/app/ui/components/Inventory/context.d.ts +10 -0
  11. package/dist/esm/app/ui/components/XsButton.d.ts +6 -0
  12. package/dist/esm/app/ui/hooks/useAnimateNumber.d.ts +1 -0
  13. package/dist/esm/app/utils.d.ts +2 -0
  14. package/dist/esm/boolean-D78EXBUO.mjs +1986 -0
  15. package/dist/esm/bootstrap.d.ts +1 -0
  16. package/dist/esm/features/profile/assets/IconAd.d.ts +1 -0
  17. package/dist/esm/features/profile/assets/IconAddCircle.d.ts +1 -0
  18. package/dist/esm/features/profile/assets/IconCurrencyStar.d.ts +3 -0
  19. package/dist/esm/features/profile/assets/IconDrag.d.ts +2 -0
  20. package/dist/esm/features/profile/assets/IconEdit.d.ts +2 -0
  21. package/dist/esm/features/profile/assets/IconGame.d.ts +2 -0
  22. package/dist/esm/features/profile/assets/IconNoSign.d.ts +1 -0
  23. package/dist/esm/features/profile/assets/IconProfile.d.ts +1 -0
  24. package/dist/esm/features/profile/assets/moneyTongue.json.d.ts +3 -0
  25. package/dist/esm/features/profile/assets/newspaper.json.d.ts +3 -0
  26. package/dist/esm/features/profile/assets/profileBgGradients.d.ts +6 -0
  27. package/dist/esm/features/profile/components/Avatars.d.ts +8 -0
  28. package/dist/esm/features/profile/components/BalanceConfetti.d.ts +6 -0
  29. package/dist/esm/features/profile/components/BuyMenu.d.ts +8 -0
  30. package/dist/esm/features/profile/components/CircleParticles.d.ts +10 -0
  31. package/dist/esm/features/profile/components/FormattedXP.d.ts +8 -0
  32. package/dist/esm/features/profile/components/LevelInfoModal.d.ts +9 -0
  33. package/dist/esm/features/profile/components/ModalContainer.d.ts +6 -0
  34. package/dist/esm/features/profile/components/OverlayProfile.d.ts +8 -0
  35. package/dist/esm/features/profile/components/Profile.d.ts +3 -0
  36. package/dist/esm/features/profile/components/PurchaseConfirm.d.ts +9 -0
  37. package/dist/esm/features/profile/components/Ribbon.d.ts +6 -0
  38. package/dist/esm/features/profile/components/StarParticles.d.ts +10 -0
  39. package/dist/esm/features/profile/components/TaskCard.d.ts +21 -0
  40. package/dist/esm/features/profile/components/XpProgress.d.ts +14 -0
  41. package/dist/esm/features/profile/hooks/useAnimatedProfile.d.ts +5 -0
  42. package/dist/esm/gaussian-splat-compression-CzzkTP3L.mjs +1632 -0
  43. package/dist/esm/hooks/useForceRerender.d.ts +1 -0
  44. package/dist/esm/hooks/useMiniApp.d.ts +3 -0
  45. package/dist/esm/howler-Mh6LB0k5.mjs +572 -0
  46. package/dist/esm/i18n/index.d.ts +2 -0
  47. package/dist/esm/i18n/locales/translations/en.json.d.ts +213 -0
  48. package/dist/esm/i18n/locales/translations/ru.json.d.ts +210 -0
  49. package/dist/esm/launcherSrc/App.d.ts +2 -0
  50. package/dist/esm/launcherSrc/api/client.d.ts +3 -0
  51. package/dist/esm/launcherSrc/api/types.d.ts +181 -0
  52. package/dist/esm/launcherSrc/api/userApi.d.ts +22 -0
  53. package/dist/esm/launcherSrc/app/components/DebugConsole.d.ts +2 -0
  54. package/dist/esm/launcherSrc/app/contexts/SnackbarContext.d.ts +18 -0
  55. package/dist/esm/launcherSrc/app/helpers.d.ts +5 -0
  56. package/dist/esm/launcherSrc/app/hooks/forceRerender.d.ts +1 -0
  57. package/dist/esm/launcherSrc/app/hooks/useMainButtonControl.d.ts +7 -0
  58. package/dist/esm/launcherSrc/app/hooks/useMiniApp.d.ts +3 -0
  59. package/dist/esm/launcherSrc/app/hooks.d.ts +11 -0
  60. package/dist/esm/launcherSrc/app/store.d.ts +19 -0
  61. package/dist/esm/launcherSrc/app/ui/assets/IconBack.d.ts +1 -0
  62. package/dist/esm/launcherSrc/app/ui/assets/IconCheck.d.ts +2 -0
  63. package/dist/esm/launcherSrc/app/ui/assets/IconCheckThin.d.ts +2 -0
  64. package/dist/esm/launcherSrc/app/ui/assets/IconCross.d.ts +2 -0
  65. package/dist/esm/launcherSrc/app/ui/assets/IconSearch.d.ts +2 -0
  66. package/dist/esm/launcherSrc/app/ui/components/AvatarProgress.d.ts +13 -0
  67. package/dist/esm/launcherSrc/app/ui/components/ClosableModal.d.ts +10 -0
  68. package/dist/esm/launcherSrc/app/ui/components/FormattedXP.d.ts +8 -0
  69. package/dist/esm/launcherSrc/app/ui/components/IconBalance.d.ts +3 -0
  70. package/dist/esm/launcherSrc/app/ui/components/InputSwitch.d.ts +9 -0
  71. package/dist/esm/launcherSrc/app/ui/components/Twemoji.d.ts +8 -0
  72. package/dist/esm/launcherSrc/app/ui/components/UICell.d.ts +16 -0
  73. package/dist/esm/launcherSrc/app/ui/components/UIDateInput.d.ts +21 -0
  74. package/dist/esm/launcherSrc/app/ui/components/UIDivider.d.ts +4 -0
  75. package/dist/esm/launcherSrc/app/ui/components/UIEmoji.d.ts +8 -0
  76. package/dist/esm/launcherSrc/app/ui/components/UIHero.d.ts +10 -0
  77. package/dist/esm/launcherSrc/app/ui/components/UISection.d.ts +9 -0
  78. package/dist/esm/launcherSrc/app/ui/components/UITextarea.d.ts +7 -0
  79. package/dist/esm/launcherSrc/app/ui/components/XpProgress.d.ts +13 -0
  80. package/dist/esm/launcherSrc/app/ui/components/XsButton.d.ts +6 -0
  81. package/dist/esm/launcherSrc/app/ui/hooks/useAnimateNumber.d.ts +1 -0
  82. package/dist/esm/launcherSrc/app/utils.d.ts +13 -0
  83. package/dist/esm/launcherSrc/assets/Icon28Edit.d.ts +2 -0
  84. package/dist/esm/launcherSrc/assets/Icon28Game.d.ts +1 -0
  85. package/dist/esm/launcherSrc/assets/Icon28Link.d.ts +1 -0
  86. package/dist/esm/launcherSrc/features/admin/components/Admin.d.ts +3 -0
  87. package/dist/esm/launcherSrc/features/admin/components/OverlayControl.d.ts +2 -0
  88. package/dist/esm/launcherSrc/features/games/assets/IconFilter.d.ts +1 -0
  89. package/dist/esm/launcherSrc/features/games/assets/IconPlayers.d.ts +2 -0
  90. package/dist/esm/launcherSrc/features/games/assets/IconQuestion.d.ts +2 -0
  91. package/dist/esm/launcherSrc/features/games/assets/IconQuestionCircle.d.ts +2 -0
  92. package/dist/esm/launcherSrc/features/games/assets/IconStar.d.ts +4 -0
  93. package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownFilled.d.ts +2 -0
  94. package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownOutlined.d.ts +2 -0
  95. package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpFilled.d.ts +2 -0
  96. package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpOutlined.d.ts +2 -0
  97. package/dist/esm/launcherSrc/features/games/components/GameItem.d.ts +10 -0
  98. package/dist/esm/launcherSrc/features/games/components/GamePage/GamePage.d.ts +6 -0
  99. package/dist/esm/launcherSrc/features/games/components/GamePage/GameReview.d.ts +10 -0
  100. package/dist/esm/launcherSrc/features/games/components/GamePage/GameReviews.d.ts +9 -0
  101. package/dist/esm/launcherSrc/features/games/components/Games.d.ts +3 -0
  102. package/dist/esm/launcherSrc/features/games/components/ResetStorageButton.d.ts +3 -0
  103. package/dist/esm/launcherSrc/features/games/components/ReviewModal.d.ts +10 -0
  104. package/dist/esm/launcherSrc/features/games/hooks/useGamesData.d.ts +13 -0
  105. package/dist/esm/launcherSrc/features/games/redux/gamesSlice.d.ts +34 -0
  106. package/dist/esm/launcherSrc/features/games/service/gamesService.d.ts +3 -0
  107. package/dist/esm/launcherSrc/features/leaderboard/components/Rating.d.ts +1 -0
  108. package/dist/esm/launcherSrc/features/leaderboard/components/RatingCard/RatingCard.d.ts +10 -0
  109. package/dist/esm/launcherSrc/features/leaderboard/components/RatingInfo/RatingInfo.d.ts +1 -0
  110. package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/IconWreaths.d.ts +3 -0
  111. package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/RatingLevel.d.ts +6 -0
  112. package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/lock.d.ts +3 -0
  113. package/dist/esm/launcherSrc/features/leaderboard/hooks/useLeaderboardData.d.ts +10 -0
  114. package/dist/esm/launcherSrc/features/leaderboard/index.d.ts +1 -0
  115. package/dist/esm/launcherSrc/features/leaderboard/redux/leaderboardSlice.d.ts +18 -0
  116. package/dist/esm/launcherSrc/features/leaderboard/services/leaderboardService.d.ts +2 -0
  117. package/dist/esm/launcherSrc/features/navigation/assets/IconGame.d.ts +1 -0
  118. package/dist/esm/launcherSrc/features/navigation/assets/IconProfile.d.ts +1 -0
  119. package/dist/esm/launcherSrc/features/navigation/assets/IconSmile.d.ts +2 -0
  120. package/dist/esm/launcherSrc/features/navigation/components/FloatingProfile.d.ts +2 -0
  121. package/dist/esm/launcherSrc/features/navigation/components/IconWithCounter.d.ts +7 -0
  122. package/dist/esm/launcherSrc/features/navigation/redux/navigationSlice.d.ts +15 -0
  123. package/dist/esm/launcherSrc/features/navigation/redux/tabsSlice.d.ts +12 -0
  124. package/dist/esm/launcherSrc/features/profile/assets/IconAd.d.ts +1 -0
  125. package/dist/esm/launcherSrc/features/profile/assets/IconAddCircle.d.ts +1 -0
  126. package/dist/esm/launcherSrc/features/profile/assets/IconChevronRight.d.ts +2 -0
  127. package/dist/esm/launcherSrc/features/profile/assets/IconColorPicker.d.ts +1 -0
  128. package/dist/esm/launcherSrc/features/profile/assets/IconCurrencyStar.d.ts +3 -0
  129. package/dist/esm/launcherSrc/features/profile/assets/IconGlobe.d.ts +2 -0
  130. package/dist/esm/launcherSrc/features/profile/assets/IconLock.d.ts +2 -0
  131. package/dist/esm/launcherSrc/features/profile/assets/IconNoSign.d.ts +1 -0
  132. package/dist/esm/launcherSrc/features/profile/assets/IconSignature.d.ts +5 -0
  133. package/dist/esm/launcherSrc/features/profile/assets/profileBgGradients.d.ts +50 -0
  134. package/dist/esm/launcherSrc/features/profile/components/AdsFree/BuyAdsFreeButton.d.ts +3 -0
  135. package/dist/esm/launcherSrc/features/profile/components/AdsFree/PurchaseAdsFree.d.ts +9 -0
  136. package/dist/esm/launcherSrc/features/profile/components/Avatars/AvatarCreation.d.ts +2 -0
  137. package/dist/esm/launcherSrc/features/profile/components/Avatars/Avatars.d.ts +11 -0
  138. package/dist/esm/launcherSrc/features/profile/components/Avatars/EditAvatarButton.d.ts +1 -0
  139. package/dist/esm/launcherSrc/features/profile/components/Balance/ProfileBalance.d.ts +6 -0
  140. package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyMenu.d.ts +8 -0
  141. package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyOption.d.ts +10 -0
  142. package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/Ribbon.d.ts +6 -0
  143. package/dist/esm/launcherSrc/features/profile/components/BoxOpeningModal.d.ts +3 -0
  144. package/dist/esm/launcherSrc/features/profile/components/DailyModal.d.ts +3 -0
  145. package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FIllBirthdate.d.ts +3 -0
  146. package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillCountry.d.ts +3 -0
  147. package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillEmail.d.ts +3 -0
  148. package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillProfile.d.ts +3 -0
  149. package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillProfileLayout.d.ts +4 -0
  150. package/dist/esm/launcherSrc/features/profile/components/LevelInfoModal.d.ts +9 -0
  151. package/dist/esm/launcherSrc/features/profile/components/Profile.d.ts +3 -0
  152. package/dist/esm/launcherSrc/features/profile/components/ProfileGames.d.ts +6 -0
  153. package/dist/esm/launcherSrc/features/profile/components/ProfileInventory.d.ts +2 -0
  154. package/dist/esm/launcherSrc/features/profile/components/ProfileLeaderboard.d.ts +6 -0
  155. package/dist/esm/launcherSrc/features/profile/components/ProfileReviews.d.ts +6 -0
  156. package/dist/esm/launcherSrc/features/profile/components/ProfileTrophies.d.ts +2 -0
  157. package/dist/esm/launcherSrc/features/profile/components/Tasks/TaskCard.d.ts +24 -0
  158. package/dist/esm/launcherSrc/features/profile/components/Tasks/Tasks.d.ts +2 -0
  159. package/dist/esm/launcherSrc/features/profile/components/particles/BalanceConfetti.d.ts +6 -0
  160. package/dist/esm/launcherSrc/features/profile/components/particles/CircleParticles.d.ts +10 -0
  161. package/dist/esm/launcherSrc/features/profile/components/particles/ConfettiParticles.d.ts +10 -0
  162. package/dist/esm/launcherSrc/features/profile/components/particles/StarParticles.d.ts +10 -0
  163. package/dist/esm/launcherSrc/features/profile/contexts/BoxOpeningContext.d.ts +12 -0
  164. package/dist/esm/launcherSrc/features/profile/data/countries.d.ts +10 -0
  165. package/dist/esm/launcherSrc/features/profile/hooks/useProfileData.d.ts +26 -0
  166. package/dist/esm/launcherSrc/features/profile/redux/profileSlice.d.ts +131 -0
  167. package/dist/esm/launcherSrc/features/profile/redux/shopSlice.d.ts +18 -0
  168. package/dist/esm/launcherSrc/features/profile/services/buyMenuService.d.ts +1 -0
  169. package/dist/esm/launcherSrc/features/profile/services/profileService.d.ts +12 -0
  170. package/dist/esm/launcherSrc/features/profile/services/shopService.d.ts +2 -0
  171. package/dist/esm/launcherSrc/i18n/index.d.ts +2 -0
  172. package/dist/esm/launcherSrc/index.d.ts +0 -0
  173. package/dist/esm/launcherSrc/setupTests.d.ts +0 -0
  174. package/dist/esm/launcherSrc/utils/openTelegramLinkFixed.d.ts +1 -0
  175. package/dist/esm/navmesh-BbINhDrO.mjs +1336 -0
  176. package/dist/esm/opentype-PR7hcvG5.mjs +4286 -0
  177. package/dist/esm/physics-B9pWoHiG.mjs +4375 -0
  178. package/dist/esm/process-DGf1Bnd3.mjs +2274 -0
  179. package/dist/esm/sdk-4y_oRGP7.mjs +76474 -0
  180. package/dist/esm/sdk.d.ts +130 -0
  181. package/dist/esm/sdk.mjs +9 -0
  182. package/dist/esm/sdk.umd.js +8382 -0
  183. package/dist/esm/stores/profileStore.d.ts +16 -0
  184. package/dist/esm/ui-C32u2WA-.mjs +2678 -0
  185. package/dist/esm/utils/global.d.ts +1 -0
  186. package/dist/umd/sdk.umd.js +8382 -0
  187. package/dist/umd_react/sdk_react.umd.js +8562 -0
  188. package/index.html +13 -0
  189. 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,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const IconCheck: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const IconCheckThin: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const IconCross: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const IconSearch: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -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,8 @@
1
+ import { CSSProperties, FC } from 'react';
2
+ interface FormattedXPProps {
3
+ xp: number;
4
+ total: number;
5
+ style?: CSSProperties;
6
+ }
7
+ export declare const FormattedXP: FC<FormattedXPProps>;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { JSX } from 'react/jsx-runtime';
3
+ export declare const IconBalance: React.FC<JSX.IntrinsicAttributes & React.ClassAttributes<HTMLImageElement> & React.ImgHTMLAttributes<HTMLImageElement>>;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface InputSwitchProps {
3
+ checked: boolean;
4
+ loading?: boolean;
5
+ onChange: (event: React.ChangeEvent) => void;
6
+ label: string;
7
+ }
8
+ export declare const InputSwitch: React.FC<InputSwitchProps>;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface TwemojiProps {
3
+ emoji: string;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ }
7
+ export declare const Twemoji: React.FC<TwemojiProps>;
8
+ 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,4 @@
1
+ import { default as React } from 'react';
2
+ import { DividerProps } from '@telegram-apps/telegram-ui';
3
+ declare const UIDivider: React.FC<DividerProps>;
4
+ export default UIDivider;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface UIEmojiProps {
3
+ emoji: string;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ }
7
+ export declare const UIEmoji: React.FC<UIEmojiProps>;
8
+ 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,9 @@
1
+ import { default as React } from 'react';
2
+ declare const UISection: React.FC<{
3
+ title?: string;
4
+ icon?: React.ReactNode;
5
+ description?: string;
6
+ children: React.ReactNode;
7
+ style?: React.CSSProperties;
8
+ }>;
9
+ export default UISection;
@@ -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,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const Icon28Edit: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -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,3 @@
1
+ import { default as React } from 'react';
2
+ declare const Admin: React.FC;
3
+ export default Admin;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const OverlayControl: React.FC;
@@ -0,0 +1 @@
1
+ export declare const IconFilter: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const IconPlayers: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const IconQuestion: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const IconQuestionCircle: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ export declare const IconStar: React.FC<{
3
+ style?: React.CSSProperties;
4
+ }>;
@@ -0,0 +1,2 @@
1
+ import { default as React, SVGProps } from 'react';
2
+ export declare const IconThumbsDownFilled: React.FC<SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ import { default as React, SVGProps } from 'react';
2
+ export declare const IconThumbsDownOutlined: React.FC<SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ import { default as React, SVGProps } from 'react';
2
+ export declare const IconThumbsUpFilled: React.FC<SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ import { default as React, SVGProps } from 'react';
2
+ export declare const IconThumbsUpOutlined: React.FC<SVGProps<SVGSVGElement>>;
@@ -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,6 @@
1
+ import { FC } from 'react';
2
+ interface GamePageProps {
3
+ openReview?: boolean;
4
+ }
5
+ declare const GamePage: FC<GamePageProps>;
6
+ export default GamePage;
@@ -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,3 @@
1
+ import { default as React } from 'react';
2
+ declare const Games: React.FC;
3
+ export default Games;
@@ -0,0 +1,3 @@
1
+ export declare const ResetStorageButton: ({ gameId }: {
2
+ gameId: number;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -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,3 @@
1
+ import { SubmitReviewRequest } from '../../../api/types';
2
+ export declare const getGames: () => Promise<import('../../../api/types').GamesResponse>;
3
+ export declare const updateGameReview: (review: SubmitReviewRequest) => Promise<import('axios').AxiosResponse<any, any>>;
@@ -0,0 +1 @@
1
+ export declare const Rating: () => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ interface RatingCardProps {
3
+ index: number;
4
+ name: string;
5
+ xp: number;
6
+ avatar?: string;
7
+ progress: number;
8
+ }
9
+ export declare const RatingCard: FC<RatingCardProps>;
10
+ export {};
@@ -0,0 +1 @@
1
+ export declare const RatingInfo: () => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import { default as React, SVGProps } from 'react';
2
+ declare const IconWreaths: React.FC<SVGProps<SVGSVGElement>>;
3
+ export default IconWreaths;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface RatingLevelProps {
3
+ level: "bronze" | "silver" | "gold";
4
+ }
5
+ export declare const RatingLevel: FC<RatingLevelProps>;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const LockSvg: ({ ...props }: {
2
+ [x: string]: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ import { LeaderboardResponse } from '../../../api/types';
2
+ export declare const leaderboard: () => Promise<LeaderboardResponse>;
@@ -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,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const IconSmile: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const FloatingProfile: React.FC;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface IconWithCounterProps {
3
+ icon: React.ReactNode;
4
+ count: number;
5
+ }
6
+ declare const IconWithCounter: React.FC<IconWithCounterProps>;
7
+ export default IconWithCounter;
@@ -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,2 @@
1
+ import { default as React, SVGProps } from 'react';
2
+ export declare const IconChevronRight: React.FC<SVGProps<SVGSVGElement>>;
@@ -0,0 +1 @@
1
+ export declare const IconColorPicker: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ import { JSX } from 'react/jsx-runtime';
3
+ export declare const IconCurrencyStar: (props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React, SVGProps } from 'react';
2
+ export declare const IconGlobe: React.FC<SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ import { default as React, SVGProps } from 'react';
2
+ export declare const IconLock: React.FC<SVGProps<SVGSVGElement>>;
@@ -0,0 +1 @@
1
+ export declare const IconNoSign: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ interface IconSignatureProps extends React.SVGProps<SVGSVGElement> {
3
+ }
4
+ export declare const IconSignature: React.FC<IconSignatureProps>;
5
+ export {};