@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,50 @@
1
+ declare const profileBgGradients: readonly [{
2
+ readonly name: "Dreamy Sunrise";
3
+ readonly deg: 0;
4
+ readonly value: string;
5
+ }, {
6
+ readonly name: "Ocean Twilight";
7
+ readonly deg: 60;
8
+ readonly value: string;
9
+ }, {
10
+ readonly name: "Tropical Sunset";
11
+ readonly deg: 120;
12
+ readonly value: string;
13
+ }, {
14
+ readonly name: "Fire & Fuchsia";
15
+ readonly deg: 180;
16
+ readonly value: string;
17
+ }, {
18
+ readonly name: "Pastel Bloom";
19
+ readonly deg: 240;
20
+ readonly value: string;
21
+ }, {
22
+ readonly name: "Mystic Cloud";
23
+ readonly deg: 300;
24
+ readonly value: string;
25
+ }, {
26
+ readonly name: "Aurora Glow";
27
+ readonly deg: 360;
28
+ readonly value: string;
29
+ }, {
30
+ readonly name: "Forest Mist";
31
+ readonly deg: 420;
32
+ readonly value: string;
33
+ }, {
34
+ readonly name: "Golden Horizon";
35
+ readonly deg: 480;
36
+ readonly value: string;
37
+ }, {
38
+ readonly name: "Deep Sea Blush";
39
+ readonly deg: 540;
40
+ readonly value: string;
41
+ }, {
42
+ readonly name: "Rainbow Whirl";
43
+ readonly deg: 600;
44
+ readonly value: string;
45
+ }, {
46
+ readonly name: "Velvet Mirage";
47
+ readonly deg: 660;
48
+ readonly value: string;
49
+ }];
50
+ export default profileBgGradients;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const BuyAdsFreeButton: React.FC;
3
+ export default BuyAdsFreeButton;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { ShopItem } from '../../../../api/types';
3
+ interface PurchaseAdsFreeProps {
4
+ shopItem: ShopItem;
5
+ balance: number;
6
+ onClose?: () => void;
7
+ }
8
+ declare const PurchaseAdsFree: React.FC<PurchaseAdsFreeProps>;
9
+ export default PurchaseAdsFree;
@@ -0,0 +1,2 @@
1
+ export declare const AvatarCreation: React.FC;
2
+ export default AvatarCreation;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { User } from '../../../../api/types';
3
+ interface AvatarsProps {
4
+ profile: User | null;
5
+ handleChangeBackground: (backgroundName: string) => void;
6
+ background: string;
7
+ setBackground: (background: string) => void;
8
+ backgroundStyle: React.CSSProperties;
9
+ }
10
+ export declare const Avatars: React.FC<AvatarsProps>;
11
+ export {};
@@ -0,0 +1 @@
1
+ export declare const EditAvatarButton: React.FC;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ProfileBalanceProps {
3
+ setShowTopupConfetti: (show: boolean) => void;
4
+ }
5
+ export declare const ProfileBalance: React.FC<ProfileBalanceProps>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { User } from '../../../../../api/types';
3
+ interface BuyMenuProps {
4
+ user: User;
5
+ onSuccessTopup?: () => void;
6
+ }
7
+ declare const BuyMenu: React.FC<BuyMenuProps>;
8
+ export default BuyMenu;
@@ -0,0 +1,10 @@
1
+ interface BuyOptionProps {
2
+ amount: number;
3
+ price: number;
4
+ onClick: () => void;
5
+ loading: boolean;
6
+ discount?: string;
7
+ optionIcon: string;
8
+ }
9
+ declare const BuyOption: React.FC<BuyOptionProps>;
10
+ export default BuyOption;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface RibbonProps {
3
+ text: string;
4
+ }
5
+ export declare const Ribbon: React.FC<RibbonProps>;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const BoxOpeningModal: React.FC;
3
+ export default BoxOpeningModal;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const DailyModal: React.FC;
3
+ export default DailyModal;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const FillBirthdate: React.FC;
3
+ export default FillBirthdate;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const FillCountry: React.FC;
3
+ export default FillCountry;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const FillEmail: React.FC;
3
+ export default FillEmail;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const FillProfile: React.FC;
3
+ export default FillProfile;
@@ -0,0 +1,4 @@
1
+ declare const FillProfileLayout: ({ children }: {
2
+ children: React.ReactNode;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default FillProfileLayout;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface LevelInfoModalProps {
3
+ level: number;
4
+ xp: number;
5
+ xpNeeded: number;
6
+ onClose: () => void;
7
+ }
8
+ export declare const LevelInfoModal: React.FC<LevelInfoModalProps>;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const Profile: React.FC;
3
+ export default Profile;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ProfileGamesProps {
3
+ headerColor?: string;
4
+ }
5
+ export declare const ProfileGames: React.FC<ProfileGamesProps>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const ProfileInventory: React.FC;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ProfileLeaderboardProps {
3
+ headerColor?: string;
4
+ }
5
+ export declare const ProfileLeaderboard: React.FC<ProfileLeaderboardProps>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ProfileReviewsProps {
3
+ headerColor?: string;
4
+ }
5
+ export declare const ProfileReviews: React.FC<ProfileReviewsProps>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const ProfileTrophies: React.FC;
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ type ClaimFunction = (taskId?: number, param?: boolean) => void;
3
+ interface TaskCardProps {
4
+ icon?: React.ReactNode;
5
+ title: string;
6
+ description?: string;
7
+ reward: number;
8
+ isClaimable: boolean;
9
+ isDone: boolean;
10
+ loading?: boolean;
11
+ taskId?: number;
12
+ taskActionText?: string;
13
+ taskCompletedText?: string;
14
+ handleClaim: ClaimFunction;
15
+ getUpTo?: boolean;
16
+ playConfetti?: boolean;
17
+ isNavigationAction?: boolean;
18
+ isGameTask?: boolean;
19
+ isReviewTask?: boolean;
20
+ taskType?: "invite" | "fill_profile" | "game" | "daily" | "default";
21
+ rewardType?: "coin" | "box";
22
+ }
23
+ export declare const TaskCard: React.FC<TaskCardProps>;
24
+ export {};
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const Tasks: React.FC;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface BalanceConfettiProps {
3
+ onComplete: () => void;
4
+ }
5
+ export declare const BalanceConfetti: React.FC<BalanceConfettiProps>;
6
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface CircleParticlesProps {
3
+ count?: number;
4
+ width: number;
5
+ height: number;
6
+ style?: React.CSSProperties;
7
+ delay?: number;
8
+ }
9
+ export declare const CircleParticles: React.FC<CircleParticlesProps>;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface ConfettiParticlesProps {
3
+ count?: number;
4
+ style?: React.CSSProperties;
5
+ delay?: number;
6
+ margin?: number;
7
+ padding?: number;
8
+ }
9
+ export declare const ConfettiParticles: React.FC<ConfettiParticlesProps>;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface StarParticlesProps {
3
+ count?: number;
4
+ width: number;
5
+ height: number;
6
+ style?: React.CSSProperties;
7
+ delay?: number;
8
+ }
9
+ export declare const StarParticles: React.FC<StarParticlesProps>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ interface BoxOpeningContextType {
3
+ isBoxOpeningModalOpen: boolean;
4
+ currentBoxId: number | undefined;
5
+ openBoxModal: (boxId: number) => void;
6
+ closeBoxModal: () => void;
7
+ }
8
+ export declare const BoxOpeningProvider: React.FC<{
9
+ children: ReactNode;
10
+ }>;
11
+ export declare const useBoxOpening: () => BoxOpeningContextType;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ interface CountryTranslation {
2
+ en: string;
3
+ ru: string;
4
+ }
5
+ interface Country {
6
+ name: CountryTranslation;
7
+ emoji: string;
8
+ }
9
+ declare const countries: Country[];
10
+ export default countries;
@@ -0,0 +1,26 @@
1
+ export declare const useProfileData: () => {
2
+ profile: import('../../../api/types').User | null;
3
+ shopItems: import('../../../api/types').ShopItem[];
4
+ tasks: import('../../../api/types').Task[];
5
+ dailyStreak: number;
6
+ inventory: import('../../../api/types').InventoryItem[];
7
+ claimTask: (id: number) => Promise<import('../../../api/types').ClaimTaskResponse>;
8
+ profileLoading: boolean;
9
+ profileLoaded: boolean;
10
+ profileError: string | null;
11
+ shopLoading: boolean;
12
+ shopError: string | null;
13
+ handleNewBalance: (balance: number) => Promise<void>;
14
+ handleNewXp: (xp: number) => Promise<void>;
15
+ handleToggleAdsFree: () => Promise<void>;
16
+ handleResetTasks: () => Promise<void>;
17
+ handleResetProfile: () => Promise<void>;
18
+ handleChangeBackground: (backgroundName: string) => Promise<void>;
19
+ animatedXp: number;
20
+ animatedBalance: number;
21
+ animatedLevel: number;
22
+ dailyModalOpen: boolean;
23
+ handleChangeDailyModalOpen: (isOpen: boolean) => void;
24
+ recentlyPlayed: import('../../../api/types').ShortGameInfo[];
25
+ trophies: import('../../../api/types').Trophy[];
26
+ };
@@ -0,0 +1,131 @@
1
+ import { ProfilePostRequest, RecentlyPlayedGamesResponse, Task, TasksResponse, User, ShortGameInfo, InventoryItem, Trophy, TrophiesResponse } from '../../../api/types';
2
+ import { AppDispatch } from '../../../app/store';
3
+ export interface ProfileState {
4
+ currentUser: User | null;
5
+ tasks: Task[];
6
+ dailyStreak: number;
7
+ loading: boolean;
8
+ loaded: boolean;
9
+ error: string | null;
10
+ dailyModalOpen: boolean;
11
+ recentlyPlayed: ShortGameInfo[];
12
+ inventory: InventoryItem[];
13
+ trophies: Trophy[];
14
+ }
15
+ export declare const fetchProfile: import('@reduxjs/toolkit').AsyncThunk<User, void, {
16
+ state?: unknown;
17
+ dispatch?: import('@reduxjs/toolkit').Dispatch;
18
+ extra?: unknown;
19
+ rejectValue?: unknown;
20
+ serializedErrorType?: unknown;
21
+ pendingMeta?: unknown;
22
+ fulfilledMeta?: unknown;
23
+ rejectedMeta?: unknown;
24
+ }>;
25
+ export declare const fetchTrophies: import('@reduxjs/toolkit').AsyncThunk<TrophiesResponse, void, {
26
+ state?: unknown;
27
+ dispatch?: import('@reduxjs/toolkit').Dispatch;
28
+ extra?: unknown;
29
+ rejectValue?: unknown;
30
+ serializedErrorType?: unknown;
31
+ pendingMeta?: unknown;
32
+ fulfilledMeta?: unknown;
33
+ rejectedMeta?: unknown;
34
+ }>;
35
+ export declare const postProfile: import('@reduxjs/toolkit').AsyncThunk<void, ProfilePostRequest, {
36
+ state?: unknown;
37
+ dispatch?: import('@reduxjs/toolkit').Dispatch;
38
+ extra?: unknown;
39
+ rejectValue?: unknown;
40
+ serializedErrorType?: unknown;
41
+ pendingMeta?: unknown;
42
+ fulfilledMeta?: unknown;
43
+ rejectedMeta?: unknown;
44
+ }>;
45
+ export declare const fetchTasks: import('@reduxjs/toolkit').AsyncThunk<TasksResponse, void, {
46
+ state?: unknown;
47
+ dispatch?: import('@reduxjs/toolkit').Dispatch;
48
+ extra?: unknown;
49
+ rejectValue?: unknown;
50
+ serializedErrorType?: unknown;
51
+ pendingMeta?: unknown;
52
+ fulfilledMeta?: unknown;
53
+ rejectedMeta?: unknown;
54
+ }>;
55
+ export declare const mintTask: import('@reduxjs/toolkit').AsyncThunk<import('../../../api/types').ClaimTaskResponse, number, {
56
+ state?: unknown;
57
+ dispatch?: import('@reduxjs/toolkit').Dispatch;
58
+ extra?: unknown;
59
+ rejectValue?: unknown;
60
+ serializedErrorType?: unknown;
61
+ pendingMeta?: unknown;
62
+ fulfilledMeta?: unknown;
63
+ rejectedMeta?: unknown;
64
+ }>;
65
+ export declare const setBalance: import('@reduxjs/toolkit').AsyncThunk<{
66
+ balance: number;
67
+ }, number, {
68
+ dispatch: AppDispatch;
69
+ state?: unknown;
70
+ extra?: unknown;
71
+ rejectValue?: unknown;
72
+ serializedErrorType?: unknown;
73
+ pendingMeta?: unknown;
74
+ fulfilledMeta?: unknown;
75
+ rejectedMeta?: unknown;
76
+ }>;
77
+ export declare const setXP: import('@reduxjs/toolkit').AsyncThunk<{
78
+ xp: number;
79
+ }, number, {
80
+ dispatch: AppDispatch;
81
+ state?: unknown;
82
+ extra?: unknown;
83
+ rejectValue?: unknown;
84
+ serializedErrorType?: unknown;
85
+ pendingMeta?: unknown;
86
+ fulfilledMeta?: unknown;
87
+ rejectedMeta?: unknown;
88
+ }>;
89
+ export declare const addNoAds: import('@reduxjs/toolkit').AsyncThunk<void, void, {
90
+ state?: unknown;
91
+ dispatch?: import('@reduxjs/toolkit').Dispatch;
92
+ extra?: unknown;
93
+ rejectValue?: unknown;
94
+ serializedErrorType?: unknown;
95
+ pendingMeta?: unknown;
96
+ fulfilledMeta?: unknown;
97
+ rejectedMeta?: unknown;
98
+ }>;
99
+ export declare const clearItems: import('@reduxjs/toolkit').AsyncThunk<void, void, {
100
+ state?: unknown;
101
+ dispatch?: import('@reduxjs/toolkit').Dispatch;
102
+ extra?: unknown;
103
+ rejectValue?: unknown;
104
+ serializedErrorType?: unknown;
105
+ pendingMeta?: unknown;
106
+ fulfilledMeta?: unknown;
107
+ rejectedMeta?: unknown;
108
+ }>;
109
+ export declare const resetTasks: import('@reduxjs/toolkit').AsyncThunk<void, void, {
110
+ state?: unknown;
111
+ dispatch?: import('@reduxjs/toolkit').Dispatch;
112
+ extra?: unknown;
113
+ rejectValue?: unknown;
114
+ serializedErrorType?: unknown;
115
+ pendingMeta?: unknown;
116
+ fulfilledMeta?: unknown;
117
+ rejectedMeta?: unknown;
118
+ }>;
119
+ export declare const fetchRecentlyPlayed: import('@reduxjs/toolkit').AsyncThunk<RecentlyPlayedGamesResponse, number, {
120
+ state?: unknown;
121
+ dispatch?: import('@reduxjs/toolkit').Dispatch;
122
+ extra?: unknown;
123
+ rejectValue?: unknown;
124
+ serializedErrorType?: unknown;
125
+ pendingMeta?: unknown;
126
+ fulfilledMeta?: unknown;
127
+ rejectedMeta?: unknown;
128
+ }>;
129
+ export declare const setDailyModalOpen: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "profileSlice/setDailyModalOpen">;
130
+ declare const _default: import('@reduxjs/toolkit').Reducer<ProfileState>;
131
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { ShopItem } from '../../../api/types';
2
+ export interface ShopState {
3
+ items: ShopItem[];
4
+ loading: boolean;
5
+ error: string | null;
6
+ }
7
+ export declare const fetchShopItems: import('@reduxjs/toolkit').AsyncThunk<ShopItem[], void, {
8
+ state?: unknown;
9
+ dispatch?: import('@reduxjs/toolkit').Dispatch;
10
+ extra?: unknown;
11
+ rejectValue?: unknown;
12
+ serializedErrorType?: unknown;
13
+ pendingMeta?: unknown;
14
+ fulfilledMeta?: unknown;
15
+ rejectedMeta?: unknown;
16
+ }>;
17
+ declare const _default: import('@reduxjs/toolkit').Reducer<ShopState>;
18
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const getInvoice: (amount: number, toUserId: number) => Promise<import('../../../api/types').InvoiceResponse>;
@@ -0,0 +1,12 @@
1
+ import { TasksResponse, User, ProfilePostRequest, ClaimTaskResponse, RecentlyPlayedGamesResponse, TrophiesResponse } from '../../../api/types';
2
+ export declare const fetchProfileData: () => Promise<User>;
3
+ export declare const fetchTrophiesData: () => Promise<TrophiesResponse>;
4
+ export declare const postProfileData: (req: ProfilePostRequest) => Promise<void>;
5
+ export declare const setProfileBalance: (balance: number) => Promise<void>;
6
+ export declare const setProfileXP: (xp: number) => Promise<void>;
7
+ export declare const setNoAds: () => Promise<void>;
8
+ export declare const setClearItems: () => Promise<void>;
9
+ export declare const tasks: () => Promise<TasksResponse>;
10
+ export declare const mint: (id: number) => Promise<ClaimTaskResponse>;
11
+ export declare const resetTasksData: () => Promise<void>;
12
+ export declare const getRecentlyPlayed: (userId: number) => Promise<RecentlyPlayedGamesResponse>;
@@ -0,0 +1,2 @@
1
+ import { ShopItem } from '../../../api/types';
2
+ export declare const shopItems: () => Promise<ShopItem[]>;
@@ -0,0 +1,2 @@
1
+ import { default as i18n } from 'i18next';
2
+ export default i18n;
File without changes
File without changes
@@ -0,0 +1 @@
1
+ export declare const openTelegramLinkFixed: (link: string, openLinkText?: string) => void;