react-native-monflowts 0.0.0-stage → 0.5.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 (479) hide show
  1. package/LICENSE +20 -0
  2. package/Monflowts.podspec +22 -0
  3. package/README.md +229 -2
  4. package/android/build.gradle +58 -0
  5. package/android/src/main/AndroidManifest.xml +8 -0
  6. package/android/src/main/java/com/monflowts/MonflowtsAssetsModule.kt +219 -0
  7. package/android/src/main/java/com/monflowts/MonflowtsCrashFeedModule.kt +175 -0
  8. package/android/src/main/java/com/monflowts/MonflowtsHapticModule.kt +170 -0
  9. package/android/src/main/java/com/monflowts/MonflowtsLottieView.kt +96 -0
  10. package/android/src/main/java/com/monflowts/MonflowtsLottieViewManager.kt +53 -0
  11. package/android/src/main/java/com/monflowts/MonflowtsPackage.kt +70 -0
  12. package/android/src/main/java/com/monflowts/MonflowtsSoundModule.kt +132 -0
  13. package/android/src/main/java/com/monflowts/MonflowtsSpeechModule.kt +81 -0
  14. package/android/src/main/java/com/monflowts/MonflowtsSvgView.kt +355 -0
  15. package/android/src/main/java/com/monflowts/MonflowtsSvgViewManager.kt +59 -0
  16. package/android/src/main/java/com/monflowts/MonflowtsWebView.kt +86 -0
  17. package/android/src/main/java/com/monflowts/MonflowtsWebViewManager.kt +33 -0
  18. package/android/src/main/java/com/monflowts/MonflowtsWheelView.kt +98 -0
  19. package/android/src/main/java/com/monflowts/MonflowtsWheelViewManager.kt +46 -0
  20. package/ios/Monflowts-Bridging-Header.h +5 -0
  21. package/ios/MonflowtsAssetsBridge.m +14 -0
  22. package/ios/MonflowtsAssetsModule.swift +217 -0
  23. package/ios/MonflowtsCrashFeedBridge.m +9 -0
  24. package/ios/MonflowtsCrashFeedModule.swift +88 -0
  25. package/ios/MonflowtsHTTP1EventSource.swift +296 -0
  26. package/ios/MonflowtsHapticBridge.m +8 -0
  27. package/ios/MonflowtsHapticModule.swift +55 -0
  28. package/ios/MonflowtsLottieBridge.m +12 -0
  29. package/ios/MonflowtsLottieUIView.swift +95 -0
  30. package/ios/MonflowtsLottieViewManager.swift +13 -0
  31. package/ios/MonflowtsSSEParser.swift +58 -0
  32. package/ios/MonflowtsSoundBridge.m +8 -0
  33. package/ios/MonflowtsSoundModule.swift +100 -0
  34. package/ios/MonflowtsSpeechBridge.m +9 -0
  35. package/ios/MonflowtsSpeechModule.swift +61 -0
  36. package/ios/MonflowtsSvgBridge.m +11 -0
  37. package/ios/MonflowtsSvgUIView.swift +431 -0
  38. package/ios/MonflowtsSvgViewManager.swift +13 -0
  39. package/ios/MonflowtsWebBridge.m +8 -0
  40. package/ios/MonflowtsWebUIView.swift +92 -0
  41. package/ios/MonflowtsWebViewManager.swift +14 -0
  42. package/ios/MonflowtsWheelBridge.m +7 -0
  43. package/ios/MonflowtsWheelUIView.swift +126 -0
  44. package/ios/MonflowtsWheelViewManager.swift +14 -0
  45. package/lib/module/HapticsManager.js +93 -0
  46. package/lib/module/HapticsManager.js.map +1 -0
  47. package/lib/module/HubContent.js +642 -0
  48. package/lib/module/HubContent.js.map +1 -0
  49. package/lib/module/Icons.js +64 -0
  50. package/lib/module/Icons.js.map +1 -0
  51. package/lib/module/MonflowtsHub.js +233 -0
  52. package/lib/module/MonflowtsHub.js.map +1 -0
  53. package/lib/module/NativeLottieView.js +6 -0
  54. package/lib/module/NativeLottieView.js.map +1 -0
  55. package/lib/module/NativeSvgView.js +6 -0
  56. package/lib/module/NativeSvgView.js.map +1 -0
  57. package/lib/module/NativeWebView.js +14 -0
  58. package/lib/module/NativeWebView.js.map +1 -0
  59. package/lib/module/NativeWheelView.js +6 -0
  60. package/lib/module/NativeWheelView.js.map +1 -0
  61. package/lib/module/SoundManager.js +120 -0
  62. package/lib/module/SoundManager.js.map +1 -0
  63. package/lib/module/SpeechManager.js +40 -0
  64. package/lib/module/SpeechManager.js.map +1 -0
  65. package/lib/module/api/client.js +109 -0
  66. package/lib/module/api/client.js.map +1 -0
  67. package/lib/module/api/gameTypes.js +2 -0
  68. package/lib/module/api/gameTypes.js.map +1 -0
  69. package/lib/module/api/http.js +252 -0
  70. package/lib/module/api/http.js.map +1 -0
  71. package/lib/module/api/mutations.js +359 -0
  72. package/lib/module/api/mutations.js.map +1 -0
  73. package/lib/module/api/playerTypes.js +2 -0
  74. package/lib/module/api/playerTypes.js.map +1 -0
  75. package/lib/module/api/queries.js +403 -0
  76. package/lib/module/api/queries.js.map +1 -0
  77. package/lib/module/api/sdkTypes.js +2 -0
  78. package/lib/module/api/sdkTypes.js.map +1 -0
  79. package/lib/module/assets/assetKeys.js +4 -0
  80. package/lib/module/assets/assetKeys.js.map +1 -0
  81. package/lib/module/assets/assetSync.js +61 -0
  82. package/lib/module/assets/assetSync.js.map +1 -0
  83. package/lib/module/assets/nativeAssets.js +25 -0
  84. package/lib/module/assets/nativeAssets.js.map +1 -0
  85. package/lib/module/assets/remote.js +47 -0
  86. package/lib/module/assets/remote.js.map +1 -0
  87. package/lib/module/components/AbandonPolicyNotice.js +200 -0
  88. package/lib/module/components/AbandonPolicyNotice.js.map +1 -0
  89. package/lib/module/components/AnimatedAmount.js +39 -0
  90. package/lib/module/components/AnimatedAmount.js.map +1 -0
  91. package/lib/module/components/CoinFlyOverlay.js +157 -0
  92. package/lib/module/components/CoinFlyOverlay.js.map +1 -0
  93. package/lib/module/components/GameCharacter.js +45 -0
  94. package/lib/module/components/GameCharacter.js.map +1 -0
  95. package/lib/module/components/GameRulesModal.js +279 -0
  96. package/lib/module/components/GameRulesModal.js.map +1 -0
  97. package/lib/module/components/HypeCallout.js +103 -0
  98. package/lib/module/components/HypeCallout.js.map +1 -0
  99. package/lib/module/components/InsufficientFundsOverlay.js +285 -0
  100. package/lib/module/components/InsufficientFundsOverlay.js.map +1 -0
  101. package/lib/module/components/JackpotNearMiss.js +89 -0
  102. package/lib/module/components/JackpotNearMiss.js.map +1 -0
  103. package/lib/module/components/JackpotTeaser.js +341 -0
  104. package/lib/module/components/JackpotTeaser.js.map +1 -0
  105. package/lib/module/components/MonflowtsButton.js +129 -0
  106. package/lib/module/components/MonflowtsButton.js.map +1 -0
  107. package/lib/module/components/MonflowtsChipGroup.js +40 -0
  108. package/lib/module/components/MonflowtsChipGroup.js.map +1 -0
  109. package/lib/module/components/MonflowtsPressable.js +42 -0
  110. package/lib/module/components/MonflowtsPressable.js.map +1 -0
  111. package/lib/module/components/QuitConfirmModal.js +180 -0
  112. package/lib/module/components/QuitConfirmModal.js.map +1 -0
  113. package/lib/module/components/SessionTimer.js +77 -0
  114. package/lib/module/components/SessionTimer.js.map +1 -0
  115. package/lib/module/components/SideDemoTab.js +110 -0
  116. package/lib/module/components/SideDemoTab.js.map +1 -0
  117. package/lib/module/components/StakeInput.js +138 -0
  118. package/lib/module/components/StakeInput.js.map +1 -0
  119. package/lib/module/constants.js +50 -0
  120. package/lib/module/constants.js.map +1 -0
  121. package/lib/module/content.js +21 -0
  122. package/lib/module/content.js.map +1 -0
  123. package/lib/module/effects/EffectBurst.js +56 -0
  124. package/lib/module/effects/EffectBurst.js.map +1 -0
  125. package/lib/module/effects/beaverStates.js +11 -0
  126. package/lib/module/effects/beaverStates.js.map +1 -0
  127. package/lib/module/effects/hypePhrases.js +67 -0
  128. package/lib/module/effects/hypePhrases.js.map +1 -0
  129. package/lib/module/effects/particleAnims.js +17 -0
  130. package/lib/module/effects/particleAnims.js.map +1 -0
  131. package/lib/module/hooks/useAvailableGames.js +29 -0
  132. package/lib/module/hooks/useAvailableGames.js.map +1 -0
  133. package/lib/module/hooks/useCrash.js +137 -0
  134. package/lib/module/hooks/useCrash.js.map +1 -0
  135. package/lib/module/hooks/useCrashFeed.js +49 -0
  136. package/lib/module/hooks/useCrashFeed.js.map +1 -0
  137. package/lib/module/hooks/useCurrency.js +13 -0
  138. package/lib/module/hooks/useCurrency.js.map +1 -0
  139. package/lib/module/hooks/useFairSeed.js +55 -0
  140. package/lib/module/hooks/useFairSeed.js.map +1 -0
  141. package/lib/module/hooks/useGameEvents.js +186 -0
  142. package/lib/module/hooks/useGameEvents.js.map +1 -0
  143. package/lib/module/hooks/useGameHistory.js +55 -0
  144. package/lib/module/hooks/useGameHistory.js.map +1 -0
  145. package/lib/module/hooks/useLeaderboard.js +83 -0
  146. package/lib/module/hooks/useLeaderboard.js.map +1 -0
  147. package/lib/module/hooks/useMines.js +166 -0
  148. package/lib/module/hooks/useMines.js.map +1 -0
  149. package/lib/module/hooks/useNotifications.js +66 -0
  150. package/lib/module/hooks/useNotifications.js.map +1 -0
  151. package/lib/module/hooks/usePlayGame.js +408 -0
  152. package/lib/module/hooks/usePlayGame.js.map +1 -0
  153. package/lib/module/hooks/usePlinko.js +75 -0
  154. package/lib/module/hooks/usePlinko.js.map +1 -0
  155. package/lib/module/hooks/useRaffleDrawState.js +57 -0
  156. package/lib/module/hooks/useRaffleDrawState.js.map +1 -0
  157. package/lib/module/hooks/useRefreshWallet.js +24 -0
  158. package/lib/module/hooks/useRefreshWallet.js.map +1 -0
  159. package/lib/module/hooks/useResponsive.js +16 -0
  160. package/lib/module/hooks/useResponsive.js.map +1 -0
  161. package/lib/module/hooks/useRevealWin.js +120 -0
  162. package/lib/module/hooks/useRevealWin.js.map +1 -0
  163. package/lib/module/hooks/useScreenShake.js +32 -0
  164. package/lib/module/hooks/useScreenShake.js.map +1 -0
  165. package/lib/module/hooks/useWallet.js +77 -0
  166. package/lib/module/hooks/useWallet.js.map +1 -0
  167. package/lib/module/i18n.js +104 -0
  168. package/lib/module/i18n.js.map +1 -0
  169. package/lib/module/index.js +22 -0
  170. package/lib/module/index.js.map +1 -0
  171. package/lib/module/lottieAnimations.js +15 -0
  172. package/lib/module/lottieAnimations.js.map +1 -0
  173. package/lib/module/package.json +1 -0
  174. package/lib/module/stores/assetStore.js +140 -0
  175. package/lib/module/stores/assetStore.js.map +1 -0
  176. package/lib/module/stores/authStore.js +47 -0
  177. package/lib/module/stores/authStore.js.map +1 -0
  178. package/lib/module/stores/gameStore.js +23 -0
  179. package/lib/module/stores/gameStore.js.map +1 -0
  180. package/lib/module/stores/sdkInitStore.js +155 -0
  181. package/lib/module/stores/sdkInitStore.js.map +1 -0
  182. package/lib/module/stores/settingsStore.js +40 -0
  183. package/lib/module/stores/settingsStore.js.map +1 -0
  184. package/lib/module/theme.js +160 -0
  185. package/lib/module/theme.js.map +1 -0
  186. package/lib/module/types.js +4 -0
  187. package/lib/module/types.js.map +1 -0
  188. package/lib/module/utils/apolloError.js +69 -0
  189. package/lib/module/utils/apolloError.js.map +1 -0
  190. package/lib/module/utils/crashMultiplier.js +8 -0
  191. package/lib/module/utils/crashMultiplier.js.map +1 -0
  192. package/lib/module/utils/crashMultiplier.test.js +34 -0
  193. package/lib/module/utils/crashMultiplier.test.js.map +1 -0
  194. package/lib/module/utils/deviceAnalytics.js +51 -0
  195. package/lib/module/utils/deviceAnalytics.js.map +1 -0
  196. package/lib/module/utils/idempotency.js +66 -0
  197. package/lib/module/utils/idempotency.js.map +1 -0
  198. package/lib/module/utils/layout.js +14 -0
  199. package/lib/module/utils/layout.js.map +1 -0
  200. package/lib/module/utils/safeInlineScript.js +12 -0
  201. package/lib/module/utils/safeInlineScript.js.map +1 -0
  202. package/lib/module/utils/sseClient.js +40 -0
  203. package/lib/module/utils/sseClient.js.map +1 -0
  204. package/lib/module/views/DepositSelect.js +275 -0
  205. package/lib/module/views/DepositSelect.js.map +1 -0
  206. package/lib/module/views/Dice.js +111 -0
  207. package/lib/module/views/Dice.js.map +1 -0
  208. package/lib/module/views/DiceBattle.js +815 -0
  209. package/lib/module/views/DiceBattle.js.map +1 -0
  210. package/lib/module/views/DiceLobby.js +577 -0
  211. package/lib/module/views/DiceLobby.js.map +1 -0
  212. package/lib/module/views/FortuneWheel.js +892 -0
  213. package/lib/module/views/FortuneWheel.js.map +1 -0
  214. package/lib/module/views/Freefall.js +808 -0
  215. package/lib/module/views/Freefall.js.map +1 -0
  216. package/lib/module/views/History.js +366 -0
  217. package/lib/module/views/History.js.map +1 -0
  218. package/lib/module/views/Home.js +554 -0
  219. package/lib/module/views/Home.js.map +1 -0
  220. package/lib/module/views/Jetstream.js +889 -0
  221. package/lib/module/views/Jetstream.js.map +1 -0
  222. package/lib/module/views/Leaderboard.js +1206 -0
  223. package/lib/module/views/Leaderboard.js.map +1 -0
  224. package/lib/module/views/MillionaireHunter.js +1697 -0
  225. package/lib/module/views/MillionaireHunter.js.map +1 -0
  226. package/lib/module/views/Minefield.js +826 -0
  227. package/lib/module/views/Minefield.js.map +1 -0
  228. package/lib/module/views/PaymentWebView.js +546 -0
  229. package/lib/module/views/PaymentWebView.js.map +1 -0
  230. package/lib/module/views/PlayerCard.js +184 -0
  231. package/lib/module/views/PlayerCard.js.map +1 -0
  232. package/lib/module/views/Profile.js +531 -0
  233. package/lib/module/views/Profile.js.map +1 -0
  234. package/lib/module/views/RaffleDraw.js +1242 -0
  235. package/lib/module/views/RaffleDraw.js.map +1 -0
  236. package/lib/module/views/RevealWin.js +1267 -0
  237. package/lib/module/views/RevealWin.js.map +1 -0
  238. package/lib/module/views/Splash.js +363 -0
  239. package/lib/module/views/Splash.js.map +1 -0
  240. package/lib/module/views/Success.js +363 -0
  241. package/lib/module/views/Success.js.map +1 -0
  242. package/lib/module/views/TicketShop.js +372 -0
  243. package/lib/module/views/TicketShop.js.map +1 -0
  244. package/lib/module/views/TriviaLobby.js +582 -0
  245. package/lib/module/views/TriviaLobby.js.map +1 -0
  246. package/lib/module/views/TriviaMaster.js +884 -0
  247. package/lib/module/views/TriviaMaster.js.map +1 -0
  248. package/lib/module/views/Wallet.js +622 -0
  249. package/lib/module/views/Wallet.js.map +1 -0
  250. package/lib/module/views/WithdrawFlow.js +445 -0
  251. package/lib/module/views/WithdrawFlow.js.map +1 -0
  252. package/lib/module/views/gridGeometry.js +26 -0
  253. package/lib/module/views/gridGeometry.js.map +1 -0
  254. package/lib/module/views/revealWinHelpers.js +29 -0
  255. package/lib/module/views/revealWinHelpers.js.map +1 -0
  256. package/lib/module/views/ticketBundlePresets.js +29 -0
  257. package/lib/module/views/ticketBundlePresets.js.map +1 -0
  258. package/lib/module/views/triviaHelpers.js +78 -0
  259. package/lib/module/views/triviaHelpers.js.map +1 -0
  260. package/lib/module/voiceClips.js +16 -0
  261. package/lib/module/voiceClips.js.map +1 -0
  262. package/lib/typescript/package.json +1 -0
  263. package/lib/typescript/src/HapticsManager.d.ts +28 -0
  264. package/lib/typescript/src/HapticsManager.d.ts.map +1 -0
  265. package/lib/typescript/src/HubContent.d.ts +7 -0
  266. package/lib/typescript/src/HubContent.d.ts.map +1 -0
  267. package/lib/typescript/src/Icons.d.ts +14 -0
  268. package/lib/typescript/src/Icons.d.ts.map +1 -0
  269. package/lib/typescript/src/MonflowtsHub.d.ts +5 -0
  270. package/lib/typescript/src/MonflowtsHub.d.ts.map +1 -0
  271. package/lib/typescript/src/NativeLottieView.d.ts +13 -0
  272. package/lib/typescript/src/NativeLottieView.d.ts.map +1 -0
  273. package/lib/typescript/src/NativeSvgView.d.ts +12 -0
  274. package/lib/typescript/src/NativeSvgView.d.ts.map +1 -0
  275. package/lib/typescript/src/NativeWebView.d.ts +22 -0
  276. package/lib/typescript/src/NativeWebView.d.ts.map +1 -0
  277. package/lib/typescript/src/NativeWheelView.d.ts +9 -0
  278. package/lib/typescript/src/NativeWheelView.d.ts.map +1 -0
  279. package/lib/typescript/src/SoundManager.d.ts +29 -0
  280. package/lib/typescript/src/SoundManager.d.ts.map +1 -0
  281. package/lib/typescript/src/SpeechManager.d.ts +10 -0
  282. package/lib/typescript/src/SpeechManager.d.ts.map +1 -0
  283. package/lib/typescript/src/api/client.d.ts +7 -0
  284. package/lib/typescript/src/api/client.d.ts.map +1 -0
  285. package/lib/typescript/src/api/gameTypes.d.ts +326 -0
  286. package/lib/typescript/src/api/gameTypes.d.ts.map +1 -0
  287. package/lib/typescript/src/api/http.d.ts +61 -0
  288. package/lib/typescript/src/api/http.d.ts.map +1 -0
  289. package/lib/typescript/src/api/mutations.d.ts +22 -0
  290. package/lib/typescript/src/api/mutations.d.ts.map +1 -0
  291. package/lib/typescript/src/api/playerTypes.d.ts +53 -0
  292. package/lib/typescript/src/api/playerTypes.d.ts.map +1 -0
  293. package/lib/typescript/src/api/queries.d.ts +21 -0
  294. package/lib/typescript/src/api/queries.d.ts.map +1 -0
  295. package/lib/typescript/src/api/sdkTypes.d.ts +87 -0
  296. package/lib/typescript/src/api/sdkTypes.d.ts.map +1 -0
  297. package/lib/typescript/src/assets/assetKeys.d.ts +3 -0
  298. package/lib/typescript/src/assets/assetKeys.d.ts.map +1 -0
  299. package/lib/typescript/src/assets/assetSync.d.ts +41 -0
  300. package/lib/typescript/src/assets/assetSync.d.ts.map +1 -0
  301. package/lib/typescript/src/assets/nativeAssets.d.ts +30 -0
  302. package/lib/typescript/src/assets/nativeAssets.d.ts.map +1 -0
  303. package/lib/typescript/src/assets/remote.d.ts +8 -0
  304. package/lib/typescript/src/assets/remote.d.ts.map +1 -0
  305. package/lib/typescript/src/components/AbandonPolicyNotice.d.ts +16 -0
  306. package/lib/typescript/src/components/AbandonPolicyNotice.d.ts.map +1 -0
  307. package/lib/typescript/src/components/AnimatedAmount.d.ts +12 -0
  308. package/lib/typescript/src/components/AnimatedAmount.d.ts.map +1 -0
  309. package/lib/typescript/src/components/CoinFlyOverlay.d.ts +17 -0
  310. package/lib/typescript/src/components/CoinFlyOverlay.d.ts.map +1 -0
  311. package/lib/typescript/src/components/GameCharacter.d.ts +14 -0
  312. package/lib/typescript/src/components/GameCharacter.d.ts.map +1 -0
  313. package/lib/typescript/src/components/GameRulesModal.d.ts +10 -0
  314. package/lib/typescript/src/components/GameRulesModal.d.ts.map +1 -0
  315. package/lib/typescript/src/components/HypeCallout.d.ts +11 -0
  316. package/lib/typescript/src/components/HypeCallout.d.ts.map +1 -0
  317. package/lib/typescript/src/components/InsufficientFundsOverlay.d.ts +12 -0
  318. package/lib/typescript/src/components/InsufficientFundsOverlay.d.ts.map +1 -0
  319. package/lib/typescript/src/components/JackpotNearMiss.d.ts +8 -0
  320. package/lib/typescript/src/components/JackpotNearMiss.d.ts.map +1 -0
  321. package/lib/typescript/src/components/JackpotTeaser.d.ts +13 -0
  322. package/lib/typescript/src/components/JackpotTeaser.d.ts.map +1 -0
  323. package/lib/typescript/src/components/MonflowtsButton.d.ts +21 -0
  324. package/lib/typescript/src/components/MonflowtsButton.d.ts.map +1 -0
  325. package/lib/typescript/src/components/MonflowtsChipGroup.d.ts +18 -0
  326. package/lib/typescript/src/components/MonflowtsChipGroup.d.ts.map +1 -0
  327. package/lib/typescript/src/components/MonflowtsPressable.d.ts +39 -0
  328. package/lib/typescript/src/components/MonflowtsPressable.d.ts.map +1 -0
  329. package/lib/typescript/src/components/QuitConfirmModal.d.ts +11 -0
  330. package/lib/typescript/src/components/QuitConfirmModal.d.ts.map +1 -0
  331. package/lib/typescript/src/components/SessionTimer.d.ts +14 -0
  332. package/lib/typescript/src/components/SessionTimer.d.ts.map +1 -0
  333. package/lib/typescript/src/components/SideDemoTab.d.ts +18 -0
  334. package/lib/typescript/src/components/SideDemoTab.d.ts.map +1 -0
  335. package/lib/typescript/src/components/StakeInput.d.ts +16 -0
  336. package/lib/typescript/src/components/StakeInput.d.ts.map +1 -0
  337. package/lib/typescript/src/constants.d.ts +21 -0
  338. package/lib/typescript/src/constants.d.ts.map +1 -0
  339. package/lib/typescript/src/content.d.ts +53 -0
  340. package/lib/typescript/src/content.d.ts.map +1 -0
  341. package/lib/typescript/src/effects/EffectBurst.d.ts +20 -0
  342. package/lib/typescript/src/effects/EffectBurst.d.ts.map +1 -0
  343. package/lib/typescript/src/effects/beaverStates.d.ts +4 -0
  344. package/lib/typescript/src/effects/beaverStates.d.ts.map +1 -0
  345. package/lib/typescript/src/effects/hypePhrases.d.ts +11 -0
  346. package/lib/typescript/src/effects/hypePhrases.d.ts.map +1 -0
  347. package/lib/typescript/src/effects/particleAnims.d.ts +9 -0
  348. package/lib/typescript/src/effects/particleAnims.d.ts.map +1 -0
  349. package/lib/typescript/src/hooks/useAvailableGames.d.ts +14 -0
  350. package/lib/typescript/src/hooks/useAvailableGames.d.ts.map +1 -0
  351. package/lib/typescript/src/hooks/useCrash.d.ts +13 -0
  352. package/lib/typescript/src/hooks/useCrash.d.ts.map +1 -0
  353. package/lib/typescript/src/hooks/useCrashFeed.d.ts +22 -0
  354. package/lib/typescript/src/hooks/useCrashFeed.d.ts.map +1 -0
  355. package/lib/typescript/src/hooks/useCurrency.d.ts +6 -0
  356. package/lib/typescript/src/hooks/useCurrency.d.ts.map +1 -0
  357. package/lib/typescript/src/hooks/useFairSeed.d.ts +8 -0
  358. package/lib/typescript/src/hooks/useFairSeed.d.ts.map +1 -0
  359. package/lib/typescript/src/hooks/useGameEvents.d.ts +50 -0
  360. package/lib/typescript/src/hooks/useGameEvents.d.ts.map +1 -0
  361. package/lib/typescript/src/hooks/useGameHistory.d.ts +14 -0
  362. package/lib/typescript/src/hooks/useGameHistory.d.ts.map +1 -0
  363. package/lib/typescript/src/hooks/useLeaderboard.d.ts +71 -0
  364. package/lib/typescript/src/hooks/useLeaderboard.d.ts.map +1 -0
  365. package/lib/typescript/src/hooks/useMines.d.ts +11 -0
  366. package/lib/typescript/src/hooks/useMines.d.ts.map +1 -0
  367. package/lib/typescript/src/hooks/useNotifications.d.ts +26 -0
  368. package/lib/typescript/src/hooks/useNotifications.d.ts.map +1 -0
  369. package/lib/typescript/src/hooks/usePlayGame.d.ts +62 -0
  370. package/lib/typescript/src/hooks/usePlayGame.d.ts.map +1 -0
  371. package/lib/typescript/src/hooks/usePlinko.d.ts +8 -0
  372. package/lib/typescript/src/hooks/usePlinko.d.ts.map +1 -0
  373. package/lib/typescript/src/hooks/useRaffleDrawState.d.ts +50 -0
  374. package/lib/typescript/src/hooks/useRaffleDrawState.d.ts.map +1 -0
  375. package/lib/typescript/src/hooks/useRefreshWallet.d.ts +8 -0
  376. package/lib/typescript/src/hooks/useRefreshWallet.d.ts.map +1 -0
  377. package/lib/typescript/src/hooks/useResponsive.d.ts +8 -0
  378. package/lib/typescript/src/hooks/useResponsive.d.ts.map +1 -0
  379. package/lib/typescript/src/hooks/useRevealWin.d.ts +10 -0
  380. package/lib/typescript/src/hooks/useRevealWin.d.ts.map +1 -0
  381. package/lib/typescript/src/hooks/useScreenShake.d.ts +14 -0
  382. package/lib/typescript/src/hooks/useScreenShake.d.ts.map +1 -0
  383. package/lib/typescript/src/hooks/useWallet.d.ts +23 -0
  384. package/lib/typescript/src/hooks/useWallet.d.ts.map +1 -0
  385. package/lib/typescript/src/i18n.d.ts +29 -0
  386. package/lib/typescript/src/i18n.d.ts.map +1 -0
  387. package/lib/typescript/src/index.d.ts +12 -0
  388. package/lib/typescript/src/index.d.ts.map +1 -0
  389. package/lib/typescript/src/lottieAnimations.d.ts +2 -0
  390. package/lib/typescript/src/lottieAnimations.d.ts.map +1 -0
  391. package/lib/typescript/src/stores/assetStore.d.ts +17 -0
  392. package/lib/typescript/src/stores/assetStore.d.ts.map +1 -0
  393. package/lib/typescript/src/stores/authStore.d.ts +25 -0
  394. package/lib/typescript/src/stores/authStore.d.ts.map +1 -0
  395. package/lib/typescript/src/stores/gameStore.d.ts +14 -0
  396. package/lib/typescript/src/stores/gameStore.d.ts.map +1 -0
  397. package/lib/typescript/src/stores/sdkInitStore.d.ts +38 -0
  398. package/lib/typescript/src/stores/sdkInitStore.d.ts.map +1 -0
  399. package/lib/typescript/src/stores/settingsStore.d.ts +23 -0
  400. package/lib/typescript/src/stores/settingsStore.d.ts.map +1 -0
  401. package/lib/typescript/src/theme.d.ts +149 -0
  402. package/lib/typescript/src/theme.d.ts.map +1 -0
  403. package/lib/typescript/src/types.d.ts +49 -0
  404. package/lib/typescript/src/types.d.ts.map +1 -0
  405. package/lib/typescript/src/utils/apolloError.d.ts +12 -0
  406. package/lib/typescript/src/utils/apolloError.d.ts.map +1 -0
  407. package/lib/typescript/src/utils/crashMultiplier.d.ts +2 -0
  408. package/lib/typescript/src/utils/crashMultiplier.d.ts.map +1 -0
  409. package/lib/typescript/src/utils/crashMultiplier.test.d.ts +2 -0
  410. package/lib/typescript/src/utils/crashMultiplier.test.d.ts.map +1 -0
  411. package/lib/typescript/src/utils/deviceAnalytics.d.ts +3 -0
  412. package/lib/typescript/src/utils/deviceAnalytics.d.ts.map +1 -0
  413. package/lib/typescript/src/utils/idempotency.d.ts +14 -0
  414. package/lib/typescript/src/utils/idempotency.d.ts.map +1 -0
  415. package/lib/typescript/src/utils/layout.d.ts +10 -0
  416. package/lib/typescript/src/utils/layout.d.ts.map +1 -0
  417. package/lib/typescript/src/utils/safeInlineScript.d.ts +5 -0
  418. package/lib/typescript/src/utils/safeInlineScript.d.ts.map +1 -0
  419. package/lib/typescript/src/utils/sseClient.d.ts +5 -0
  420. package/lib/typescript/src/utils/sseClient.d.ts.map +1 -0
  421. package/lib/typescript/src/views/DepositSelect.d.ts +9 -0
  422. package/lib/typescript/src/views/DepositSelect.d.ts.map +1 -0
  423. package/lib/typescript/src/views/Dice.d.ts +10 -0
  424. package/lib/typescript/src/views/Dice.d.ts.map +1 -0
  425. package/lib/typescript/src/views/DiceBattle.d.ts +15 -0
  426. package/lib/typescript/src/views/DiceBattle.d.ts.map +1 -0
  427. package/lib/typescript/src/views/DiceLobby.d.ts +12 -0
  428. package/lib/typescript/src/views/DiceLobby.d.ts.map +1 -0
  429. package/lib/typescript/src/views/FortuneWheel.d.ts +13 -0
  430. package/lib/typescript/src/views/FortuneWheel.d.ts.map +1 -0
  431. package/lib/typescript/src/views/Freefall.d.ts +13 -0
  432. package/lib/typescript/src/views/Freefall.d.ts.map +1 -0
  433. package/lib/typescript/src/views/History.d.ts +7 -0
  434. package/lib/typescript/src/views/History.d.ts.map +1 -0
  435. package/lib/typescript/src/views/Home.d.ts +13 -0
  436. package/lib/typescript/src/views/Home.d.ts.map +1 -0
  437. package/lib/typescript/src/views/Jetstream.d.ts +14 -0
  438. package/lib/typescript/src/views/Jetstream.d.ts.map +1 -0
  439. package/lib/typescript/src/views/Leaderboard.d.ts +8 -0
  440. package/lib/typescript/src/views/Leaderboard.d.ts.map +1 -0
  441. package/lib/typescript/src/views/MillionaireHunter.d.ts +13 -0
  442. package/lib/typescript/src/views/MillionaireHunter.d.ts.map +1 -0
  443. package/lib/typescript/src/views/Minefield.d.ts +13 -0
  444. package/lib/typescript/src/views/Minefield.d.ts.map +1 -0
  445. package/lib/typescript/src/views/PaymentWebView.d.ts +29 -0
  446. package/lib/typescript/src/views/PaymentWebView.d.ts.map +1 -0
  447. package/lib/typescript/src/views/PlayerCard.d.ts +15 -0
  448. package/lib/typescript/src/views/PlayerCard.d.ts.map +1 -0
  449. package/lib/typescript/src/views/Profile.d.ts +9 -0
  450. package/lib/typescript/src/views/Profile.d.ts.map +1 -0
  451. package/lib/typescript/src/views/RaffleDraw.d.ts +12 -0
  452. package/lib/typescript/src/views/RaffleDraw.d.ts.map +1 -0
  453. package/lib/typescript/src/views/RevealWin.d.ts +13 -0
  454. package/lib/typescript/src/views/RevealWin.d.ts.map +1 -0
  455. package/lib/typescript/src/views/Splash.d.ts +10 -0
  456. package/lib/typescript/src/views/Splash.d.ts.map +1 -0
  457. package/lib/typescript/src/views/Success.d.ts +12 -0
  458. package/lib/typescript/src/views/Success.d.ts.map +1 -0
  459. package/lib/typescript/src/views/TicketShop.d.ts +15 -0
  460. package/lib/typescript/src/views/TicketShop.d.ts.map +1 -0
  461. package/lib/typescript/src/views/TriviaLobby.d.ts +12 -0
  462. package/lib/typescript/src/views/TriviaLobby.d.ts.map +1 -0
  463. package/lib/typescript/src/views/TriviaMaster.d.ts +16 -0
  464. package/lib/typescript/src/views/TriviaMaster.d.ts.map +1 -0
  465. package/lib/typescript/src/views/Wallet.d.ts +10 -0
  466. package/lib/typescript/src/views/Wallet.d.ts.map +1 -0
  467. package/lib/typescript/src/views/WithdrawFlow.d.ts +9 -0
  468. package/lib/typescript/src/views/WithdrawFlow.d.ts.map +1 -0
  469. package/lib/typescript/src/views/gridGeometry.d.ts +19 -0
  470. package/lib/typescript/src/views/gridGeometry.d.ts.map +1 -0
  471. package/lib/typescript/src/views/revealWinHelpers.d.ts +15 -0
  472. package/lib/typescript/src/views/revealWinHelpers.d.ts.map +1 -0
  473. package/lib/typescript/src/views/ticketBundlePresets.d.ts +18 -0
  474. package/lib/typescript/src/views/ticketBundlePresets.d.ts.map +1 -0
  475. package/lib/typescript/src/views/triviaHelpers.d.ts +31 -0
  476. package/lib/typescript/src/views/triviaHelpers.d.ts.map +1 -0
  477. package/lib/typescript/src/voiceClips.d.ts +4 -0
  478. package/lib/typescript/src/voiceClips.d.ts.map +1 -0
  479. package/package.json +160 -4
@@ -0,0 +1,62 @@
1
+ import type { PlayResult, InitPlayResult, GameCode, FastFingerSession, FastFingerResult, FastFingerAnswerResult, AbandonPolicy } from '../api/gameTypes';
2
+ /**
3
+ * Hook for standard games (DICE_ROLL, SPIN_WHEEL, MILLIONAIRE_HUNTER).
4
+ * Views call: play(gameCode, gameInput?)
5
+ * For two-phase: use useInitPlay instead.
6
+ */
7
+ export declare function usePlayGame(): {
8
+ play: (gameCode: GameCode, gameInput?: Record<string, unknown> | null, sessionId?: string, stakeAmountKobo?: number) => Promise<PlayResult>;
9
+ isPlaying: boolean;
10
+ playError: string | null;
11
+ };
12
+ /**
13
+ * Hook for two-phase play (abandon policy enabled games).
14
+ *
15
+ * Flow:
16
+ * 1. Call startSession() → wallet debit, timer starts
17
+ * 2. Timer counts down (secondsLeft state)
18
+ * 3. User plays the game → call completeSession(picks?) → server resolves outcome
19
+ * 4. If timer expires, session is forfeited (server-side)
20
+ *
21
+ * Returns session state + timer that views can render.
22
+ */
23
+ export declare function useInitPlay(gameCode: GameCode, abandonPolicy?: AbandonPolicy | null): {
24
+ enabled: boolean;
25
+ session: InitPlayResult | null;
26
+ secondsLeft: number;
27
+ isExpired: boolean;
28
+ isStarting: boolean;
29
+ isPlaying: boolean;
30
+ error: string | null;
31
+ startSession: (stakeAmountKobo: number) => Promise<InitPlayResult | null>;
32
+ completeSession: (gameInput?: Record<string, unknown> | null, startedSession?: InitPlayResult | null) => Promise<PlayResult>;
33
+ reset: () => void;
34
+ };
35
+ /**
36
+ * Hook for Fast Finger two-phase play.
37
+ */
38
+ export declare function useFastFinger(): {
39
+ startSession: (options?: {
40
+ categoryId?: string;
41
+ stakeAmountKobo?: number;
42
+ }) => Promise<FastFingerSession>;
43
+ answerQuestion: (gamePlayId: string, questionIndex: number, selectedOptionIndex: number | null) => Promise<FastFingerAnswerResult>;
44
+ forfeit: (gamePlayId: string) => Promise<FastFingerResult>;
45
+ endSession: () => void;
46
+ isPlaying: boolean;
47
+ playError: string | null;
48
+ };
49
+ /**
50
+ * Hook for Raffle Draw entry purchase.
51
+ * Views call: purchase(gameId, quantity, totalPriceKobo)
52
+ */
53
+ export declare function useRafflePurchase(): {
54
+ purchase: (gameId: string, quantity: number, _totalPriceKobo: number) => Promise<{
55
+ entryId: string;
56
+ ticketNumber: string;
57
+ entries: import("../api/gameTypes").RaffleEntry[];
58
+ }>;
59
+ isLoading: boolean;
60
+ playError: string | null;
61
+ };
62
+ //# sourceMappingURL=usePlayGame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePlayGame.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePlayGame.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,QAAQ,EACR,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EAEtB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B;;;;GAIG;AACH,wBAAgB,WAAW;qBAWX,QAAQ,cACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,cAC9B,MAAM,oBACA,MAAM;;;EAgD7B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI;;;;;;;;oCA8CxD,MAAM;kCAgDX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,mBAAmB,cAAc,GAAG,IAAI;;EAgF5F;AAED;;GAEG;AACH,wBAAgB,aAAa;6BAgBuB;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE;iCAgC9E,MAAM,iBAAiB,MAAM,uBAAuB,MAAM,GAAG,IAAI;0BAuBjE,MAAM;;;;EAqB5B;AAED;;;GAGG;AACH,wBAAgB,iBAAiB;uBASd,MAAM,YAAY,MAAM,mBAAmB,MAAM;;;;;;;EAmCnE"}
@@ -0,0 +1,8 @@
1
+ import type { PlinkoResult } from '../api/gameTypes';
2
+ export declare function usePlinko(): {
3
+ drop: (rows: number, risk: string, stakeAmountKobo?: number) => Promise<PlinkoResult | null>;
4
+ isBusy: boolean;
5
+ error: string | null;
6
+ errorRef: import("react").RefObject<string | null>;
7
+ };
8
+ //# sourceMappingURL=usePlinko.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePlinko.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePlinko.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,wBAAgB,SAAS;iBAWR,MAAM,QAAQ,MAAM,oBAAoB,MAAM,KAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;;;;EA+C7F"}
@@ -0,0 +1,50 @@
1
+ import type { ErrorLike } from '@apollo/client';
2
+ export interface RaffleTopHolder {
3
+ playerId: string;
4
+ displayName: string;
5
+ ticketCount: number;
6
+ isMe: boolean;
7
+ }
8
+ export interface RaffleDrawWinner {
9
+ playerId: string;
10
+ displayName: string;
11
+ amountWonKobo: number;
12
+ prizeTierCode: string | null;
13
+ isTopHolder: boolean;
14
+ }
15
+ export interface RaffleLatestDraw {
16
+ drawId: string;
17
+ drawnAt: string;
18
+ winners: RaffleDrawWinner[];
19
+ }
20
+ export interface RaffleDrawState {
21
+ gameId: string;
22
+ drawDate: string | null;
23
+ jackpotKobo: number;
24
+ myTicketCount: number;
25
+ totalActiveEntries: number;
26
+ topHolders: RaffleTopHolder[];
27
+ latestDraw: RaffleLatestDraw | null;
28
+ }
29
+ export interface UseRaffleDrawStateResult {
30
+ state: RaffleDrawState | null;
31
+ loading: boolean;
32
+ error: ErrorLike | undefined;
33
+ refetch: () => void;
34
+ }
35
+ /**
36
+ * Ticket-raffle draw state — top ticket-holders + latest draw result for the
37
+ * INTERNAL ticket-raffle game (distinct from the leaderboard raffle; winner
38
+ * selection there is server-side/weighted and unaffected by this hook).
39
+ *
40
+ * Mirrors useLeaderboard's AppState lifecycle: polls every 15s while the app
41
+ * is foregrounded, pauses polling in the background, and refetches the
42
+ * instant the app returns to the foreground so the countdown/holders/winner
43
+ * never look stale after a backgrounding.
44
+ *
45
+ * Null-safe: `gameId` may be undefined (no active raffle game found by the
46
+ * caller) — the query is skipped and `state` stays null rather than firing
47
+ * a request with a missing required variable.
48
+ */
49
+ export declare function useRaffleDrawState(gameId: string | undefined): UseRaffleDrawStateResult;
50
+ //# sourceMappingURL=useRaffleDrawState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRaffleDrawState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useRaffleDrawState.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKhD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,UAAU,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAID;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,wBAAwB,CA4BvF"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Shared hook that provides a `refreshWallet` callback.
3
+ *
4
+ * Refetches the `PLAYER_WALLET` query in Apollo cache so every active
5
+ * `useQuery(PLAYER_WALLET)` subscriber re-renders with fresh data.
6
+ */
7
+ export declare function useRefreshWallet(): () => void;
8
+ //# sourceMappingURL=useRefreshWallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRefreshWallet.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useRefreshWallet.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,gBAAgB,eAU/B"}
@@ -0,0 +1,8 @@
1
+ export declare function useResponsive(): {
2
+ isWide: boolean;
3
+ columnWidth: number;
4
+ gameColumns: number;
5
+ width: number;
6
+ height: number;
7
+ };
8
+ //# sourceMappingURL=useResponsive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResponsive.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useResponsive.ts"],"names":[],"mappings":"AAGA,wBAAgB,aAAa;;;;;;EAG5B"}
@@ -0,0 +1,10 @@
1
+ import type { RevealWinRound } from '../api/gameTypes';
2
+ export declare function useRevealWin(): {
3
+ startRound: (stakeAmountKobo?: number) => Promise<RevealWinRound | null>;
4
+ revealTile: (roundId: string, tileIndex: number) => Promise<RevealWinRound | null>;
5
+ getActiveRound: () => Promise<RevealWinRound | null>;
6
+ isBusy: boolean;
7
+ error: string | null;
8
+ errorRef: import("react").RefObject<string | null>;
9
+ };
10
+ //# sourceMappingURL=useRevealWin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRevealWin.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useRevealWin.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,wBAAgB,YAAY;mCAaC,MAAM,KAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;0BAuChD,MAAM,aAAa,MAAM,KAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;0BA2B/B,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;;;;EAa5E"}
@@ -0,0 +1,14 @@
1
+ import { Animated } from 'react-native';
2
+ export declare function useScreenShake(): {
3
+ shake: (intensity?: number) => void;
4
+ shakeStyle: {
5
+ transform: ({
6
+ translateX: Animated.Value;
7
+ translateY?: undefined;
8
+ } | {
9
+ translateY: Animated.Value;
10
+ translateX?: undefined;
11
+ })[];
12
+ };
13
+ };
14
+ //# sourceMappingURL=useScreenShake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScreenShake.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useScreenShake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,cAAc;wBAMd,MAAM;;;;;;;;;;EAwBrB"}
@@ -0,0 +1,23 @@
1
+ import type { PlayerWallet, WalletTransaction } from '../api/playerTypes';
2
+ /**
3
+ * Hook for wallet balance and transaction history.
4
+ *
5
+ * - Wallet: fully derived from `useQuery` — no Zustand.
6
+ * - Transactions: local `useState` with page accumulation.
7
+ */
8
+ export declare function useWallet(): {
9
+ wallet: PlayerWallet | null;
10
+ transactions: WalletTransaction[];
11
+ isLoadingWallet: boolean;
12
+ isLoadingTransactions: boolean;
13
+ txPage: number;
14
+ txTotalPages: number;
15
+ walletError: string | null;
16
+ txError: string | null;
17
+ refetchWallet: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloClient.QueryResult<{
18
+ playerWallet: PlayerWallet;
19
+ }>>;
20
+ fetchTransactions: (page?: number, limit?: number) => void;
21
+ loadMoreTransactions: () => void;
22
+ };
23
+ //# sourceMappingURL=useWallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWallet.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useWallet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAU1E;;;;;GAKG;AACH,wBAAgB,SAAS;;;;;;;;;;sBAQM,YAAY;;;;EAwD1C"}
@@ -0,0 +1,29 @@
1
+ export type TextDirection = 'ltr' | 'rtl';
2
+ export type TranslationParams = Record<string, string | number>;
3
+ interface I18nState {
4
+ language: string;
5
+ direction: TextDirection;
6
+ entries: Record<string, string>;
7
+ setLanguage: (language: string, direction: TextDirection) => void;
8
+ addEntries: (entries: Record<string, string>) => void;
9
+ reset: () => void;
10
+ }
11
+ export declare const useI18nStore: import("zustand").UseBoundStore<import("zustand").StoreApi<I18nState>>;
12
+ export declare function setMissingTranslationHandler(handler: ((key: string) => void) | null): void;
13
+ export declare function interpolate(template: string, params?: TranslationParams): string;
14
+ export declare function hasTranslation(key: string): boolean;
15
+ export declare function t(key: string, params?: TranslationParams): string;
16
+ export declare function useTranslation(): {
17
+ t: typeof t;
18
+ entries: Record<string, string>;
19
+ language: string;
20
+ direction: TextDirection;
21
+ isRTL: boolean;
22
+ };
23
+ export declare function formatNumber(value: number, options?: Intl.NumberFormatOptions): string;
24
+ export declare function formatDate(date: Date, options?: Intl.DateTimeFormatOptions): string;
25
+ export declare function formatTime(date: Date, options?: Intl.DateTimeFormatOptions): string;
26
+ export declare function errorExtensions(error: unknown): Record<string, unknown> | null;
27
+ export declare function errorText(error: unknown, fallbackKey: string, params?: TranslationParams): string;
28
+ export {};
29
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/i18n.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,CAAC;AAC1C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAEhE,UAAU,SAAS;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,aAAa,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;IAClE,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACtD,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,YAAY,wEAOtB,CAAC;AAKJ,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAG1F;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAKhF;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED,wBAAgB,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAUjE;AAED,wBAAgB,cAAc;;;;;;EAK7B;AAMD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAMtF;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,GAAG,MAAM,CAMnF;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,GAAG,MAAM,CAMnF;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAO9E;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAQjG"}
@@ -0,0 +1,12 @@
1
+ import type { MonflowtsButtonProps } from './components/MonflowtsButton';
2
+ import type { ChipValue, MonflowtsChipGroupProps } from './components/MonflowtsChipGroup';
3
+ export { default as MonflowtsHub } from './MonflowtsHub';
4
+ export { default as MonflowtsPressable } from './components/MonflowtsPressable';
5
+ export declare function MonflowtsButton(props: MonflowtsButtonProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function MonflowtsChipGroup<T extends ChipValue>(props: MonflowtsChipGroupProps<T>): import("react/jsx-runtime").JSX.Element;
7
+ export { sounds, SoundManager } from './SoundManager';
8
+ export { haptics, HapticsManager, type HapticIntensity } from './HapticsManager';
9
+ export type { MonflowtsConfig, MonflowtsError, MonflowtsErrorCode, MonflowtsTheme, MonflowtsThemeColors } from './api/sdkTypes';
10
+ export type { GameCode, AvailableGame } from './api/gameTypes';
11
+ export type { Player, PlayerWallet } from './api/playerTypes';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAEhF,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAG1D;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,uBAAuB,CAAC,CAAC,CAAC,2CAGxF;AACD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIjF,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAChI,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC/D,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function lottieDurationMs(json: string): number;
2
+ //# sourceMappingURL=lottieAnimations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lottieAnimations.d.ts","sourceRoot":"","sources":["../../../src/lottieAnimations.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOrD"}
@@ -0,0 +1,17 @@
1
+ import { type AssetProgress } from '../assets/nativeAssets';
2
+ import { type AssetBundle, type LocalIndex } from '../assets/assetSync';
3
+ export type AssetStatus = 'idle' | 'downloading' | 'ready' | 'error';
4
+ export interface AssetState {
5
+ status: AssetStatus;
6
+ progress: AssetProgress | null;
7
+ error: string | null;
8
+ index: LocalIndex | null;
9
+ baseUri: string;
10
+ texts: Record<string, string>;
11
+ loadLocal: (keepNames?: string[]) => Promise<number | null>;
12
+ applyBundle: (bundle: AssetBundle | null) => Promise<void>;
13
+ resetError: () => void;
14
+ }
15
+ export declare function readStoredText(name: string): Promise<string>;
16
+ export declare const useAssetStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AssetState>>;
17
+ //# sourceMappingURL=assetStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assetStore.d.ts","sourceRoot":"","sources":["../../../../src/stores/assetStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG1E,OAAO,EAUL,KAAK,WAAW,EAChB,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,aAAa,GAAG,OAAO,GAAG,OAAO,CAAC;AAErE,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5D,WAAW,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAcD,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMlE;AAoBD,eAAO,MAAM,aAAa,yEAsExB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { Player, PlayerWallet } from '../api/playerTypes';
2
+ /**
3
+ * Discrete phases of the device → gql-server init handshake.
4
+ * Drives the splash screen status text so the user can see exactly
5
+ * where the request is in its lifecycle.
6
+ */
7
+ export type AuthPhase = 'IDLE' | 'PREPARING' | 'CONNECTING' | 'CONNECTED' | 'INITIALIZING' | 'READY' | 'ERROR';
8
+ export interface AuthState {
9
+ /** Player JWT (from playerInitSession) */
10
+ token: string | null;
11
+ /** Player profile */
12
+ player: Player | null;
13
+ /** Current init phase */
14
+ phase: AuthPhase;
15
+ /** Auth error message */
16
+ authError: string | null;
17
+ setToken: (token: string) => void;
18
+ setPlayer: (player: Player | null) => void;
19
+ setPhase: (phase: AuthPhase) => void;
20
+ setAuthError: (err: string | null) => void;
21
+ updateWallet: (wallet: PlayerWallet) => void;
22
+ logout: () => void;
23
+ }
24
+ export declare const useAuthStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AuthState>>;
25
+ //# sourceMappingURL=authStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authStore.d.ts","sourceRoot":"","sources":["../../../../src/stores/authStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAG/D;;;;GAIG;AACH,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,WAAW,GACX,YAAY,GACZ,WAAW,GACX,cAAc,GACd,OAAO,GACP,OAAO,CAAC;AAEZ,MAAM,WAAW,SAAS;IACxB,0CAA0C;IAC1C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,qBAAqB;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,yBAAyB;IACzB,KAAK,EAAE,SAAS,CAAC;IACjB,yBAAyB;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3C,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,wEAkBtB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export interface GameState {
2
+ /** Whether demo mode is active (free play, no real money) */
3
+ demoMode: boolean;
4
+ /** Virtual balance for demo mode (in display currency, e.g. Naira) */
5
+ demoBalance: number;
6
+ setDemoMode: (v: boolean) => void;
7
+ toggleDemoMode: () => void;
8
+ /** Debit demo balance (e.g. stake cost) */
9
+ debitDemoBalance: (amount: number) => void;
10
+ /** Credit demo balance (e.g. winnings) */
11
+ creditDemoBalance: (amount: number) => void;
12
+ }
13
+ export declare const useGameStore: import("zustand").UseBoundStore<import("zustand").StoreApi<GameState>>;
14
+ //# sourceMappingURL=gameStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gameStore.d.ts","sourceRoot":"","sources":["../../../../src/stores/gameStore.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACxB,6DAA6D;IAC7D,QAAQ,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,2CAA2C;IAC3C,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,0CAA0C;IAC1C,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAID,eAAO,MAAM,YAAY,wEAetB,CAAC"}
@@ -0,0 +1,38 @@
1
+ import type { ApolloClient } from '@apollo/client';
2
+ export type SdkInitErrorCode = 'PROJECT_UNAVAILABLE' | 'LANGUAGE_UNAVAILABLE' | 'LANGUAGE_INCOMPLETE' | 'INIT_FAILED' | 'LOADING_ASSETS_FAILED' | 'DICTIONARY_FAILED';
3
+ export interface SdkAsset {
4
+ key: string;
5
+ type: string;
6
+ sha256: string;
7
+ size: number;
8
+ ext: string;
9
+ url: string;
10
+ }
11
+ export type LoadingLogo = {
12
+ type: 'lottie';
13
+ json: string;
14
+ durationMs: number;
15
+ } | {
16
+ type: 'image';
17
+ uri: string;
18
+ };
19
+ export interface LoadingScreen {
20
+ backgroundColor: string;
21
+ accentColor: string;
22
+ textColor: string;
23
+ minDisplayMs: number;
24
+ logo: LoadingLogo | null;
25
+ }
26
+ type QueryClient = Pick<ApolloClient, 'query'>;
27
+ interface SdkInitState {
28
+ status: 'blank' | 'ready' | 'error';
29
+ errorCode: SdkInitErrorCode | null;
30
+ projectName: string;
31
+ loadingScreen: LoadingScreen | null;
32
+ loadingAssetNames: string[];
33
+ dictionaryReady: boolean;
34
+ start: (client: QueryClient, projectId: string, language: string) => Promise<void>;
35
+ }
36
+ export declare const useSdkInitStore: import("zustand").UseBoundStore<import("zustand").StoreApi<SdkInitState>>;
37
+ export {};
38
+ //# sourceMappingURL=sdkInitStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdkInitStore.d.ts","sourceRoot":"","sources":["../../../../src/stores/sdkInitStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD,MAAM,MAAM,gBAAgB,GACxB,qBAAqB,GACrB,sBAAsB,GACtB,qBAAqB,GACrB,aAAa,GACb,uBAAuB,GACvB,mBAAmB,CAAC;AAExB,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnC,MAAM,WAAW,aAAa;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;CAC1B;AAUD,KAAK,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAE/C,UAAU,YAAY;IACpB,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IACpC,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpF;AAiCD,eAAO,MAAM,eAAe,2EAoEzB,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * User-facing SDK preferences (toggleable from the Profile screen).
3
+ *
4
+ * In-memory only — preferences reset when the host app process is killed.
5
+ * If we add `@react-native-async-storage/async-storage` later, we can wrap
6
+ * this store in zustand's persist middleware to survive restarts.
7
+ */
8
+ export interface SettingsState {
9
+ /** Whether tactile feedback fires on press. Default off. */
10
+ hapticsEnabled: boolean;
11
+ reducedMotion: boolean;
12
+ soundEnabled: boolean;
13
+ adminSoundEnabled: boolean;
14
+ setHapticsEnabled: (v: boolean) => void;
15
+ toggleHaptics: () => void;
16
+ setReducedMotion: (v: boolean) => void;
17
+ toggleReducedMotion: () => void;
18
+ setSoundEnabled: (v: boolean) => void;
19
+ toggleSound: () => void;
20
+ setAdminSoundEnabled: (v: boolean) => void;
21
+ }
22
+ export declare const useSettingsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<SettingsState>>;
23
+ //# sourceMappingURL=settingsStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settingsStore.d.ts","sourceRoot":"","sources":["../../../../src/stores/settingsStore.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,4DAA4D;IAC5D,cAAc,EAAE,OAAO,CAAC;IAExB,aAAa,EAAE,OAAO,CAAC;IAEvB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAC;IAE3B,iBAAiB,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,eAAe,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,oBAAoB,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,gBAAgB,4EAgB1B,CAAC"}
@@ -0,0 +1,149 @@
1
+ export declare const theme: Readonly<{
2
+ screenContainer: {
3
+ flex: number;
4
+ backgroundColor: string;
5
+ };
6
+ safeArea: {
7
+ flex: number;
8
+ backgroundColor: string;
9
+ };
10
+ glassCard: {
11
+ backgroundColor: string;
12
+ borderWidth: number;
13
+ borderColor: string;
14
+ borderRadius: number;
15
+ };
16
+ neonShadow: {
17
+ shadowColor: string;
18
+ shadowOffset: {
19
+ width: number;
20
+ height: number;
21
+ };
22
+ shadowOpacity: number;
23
+ shadowRadius: number;
24
+ };
25
+ goldShadow: {
26
+ shadowColor: string;
27
+ shadowOffset: {
28
+ width: number;
29
+ height: number;
30
+ };
31
+ shadowOpacity: number;
32
+ shadowRadius: number;
33
+ };
34
+ metallicText: {
35
+ color: string;
36
+ fontWeight: "800";
37
+ };
38
+ heading1: {
39
+ fontSize: number;
40
+ fontWeight: "800";
41
+ color: string;
42
+ letterSpacing: number;
43
+ };
44
+ heading2: {
45
+ fontSize: number;
46
+ fontWeight: "700";
47
+ color: string;
48
+ };
49
+ heading3: {
50
+ fontSize: number;
51
+ fontWeight: "700";
52
+ color: string;
53
+ };
54
+ bodyText: {
55
+ fontSize: number;
56
+ color: string;
57
+ };
58
+ captionText: {
59
+ fontSize: number;
60
+ fontWeight: "700";
61
+ color: string;
62
+ textTransform: "uppercase";
63
+ letterSpacing: number;
64
+ };
65
+ tabularNums: {
66
+ fontVariant: "tabular-nums"[];
67
+ };
68
+ primaryButton: {
69
+ backgroundColor: string;
70
+ borderRadius: number;
71
+ height: number;
72
+ alignItems: "center";
73
+ justifyContent: "center";
74
+ flexDirection: "row";
75
+ gap: number;
76
+ };
77
+ primaryButtonText: {
78
+ color: string;
79
+ fontSize: number;
80
+ fontWeight: "700";
81
+ textTransform: "uppercase";
82
+ letterSpacing: number;
83
+ };
84
+ outlineButton: {
85
+ backgroundColor: string;
86
+ borderWidth: number;
87
+ borderColor: string;
88
+ borderRadius: number;
89
+ height: number;
90
+ alignItems: "center";
91
+ justifyContent: "center";
92
+ flexDirection: "row";
93
+ gap: number;
94
+ };
95
+ chipSelected: {
96
+ backgroundColor: string;
97
+ borderColor: string;
98
+ borderWidth: number;
99
+ borderRadius: number;
100
+ paddingHorizontal: number;
101
+ paddingVertical: number;
102
+ };
103
+ chipDefault: {
104
+ backgroundColor: string;
105
+ borderColor: string;
106
+ borderWidth: number;
107
+ borderRadius: number;
108
+ paddingHorizontal: number;
109
+ paddingVertical: number;
110
+ };
111
+ chipTextSelected: {
112
+ color: string;
113
+ fontSize: number;
114
+ fontWeight: "700";
115
+ };
116
+ chipTextDefault: {
117
+ color: string;
118
+ fontSize: number;
119
+ fontWeight: "700";
120
+ };
121
+ backButton: {
122
+ width: number;
123
+ height: number;
124
+ borderRadius: number;
125
+ backgroundColor: string;
126
+ borderWidth: number;
127
+ borderColor: string;
128
+ alignItems: "center";
129
+ justifyContent: "center";
130
+ };
131
+ backButtonText: {
132
+ color: string;
133
+ fontSize: number;
134
+ };
135
+ row: {
136
+ flexDirection: "row";
137
+ alignItems: "center";
138
+ };
139
+ rowBetween: {
140
+ flexDirection: "row";
141
+ alignItems: "center";
142
+ justifyContent: "space-between";
143
+ };
144
+ center: {
145
+ alignItems: "center";
146
+ justifyContent: "center";
147
+ };
148
+ }>;
149
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2JhB,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { ImageSourcePropType } from 'react-native';
2
+ export type Screen = 'SPLASH' | 'HOME' | 'DICE_BATTLE' | 'TICKET_SHOP' | 'MILLIONAIRE_HUNTER' | 'WALLET' | 'HISTORY' | 'LEADERBOARD' | 'PROFILE' | 'SUCCESS' | 'FORTUNE_WHEEL' | 'TRIVIA_MASTER' | 'RAFFLE_DRAW' | 'TRIVIA_LOBBY' | 'DICE_LOBBY' | 'DEPOSIT_SELECT' | 'PAYMENT' | 'WITHDRAW' | 'REVEAL_WIN' | 'FREEFALL' | 'MINEFIELD' | 'JETSTREAM';
3
+ export interface GameResult {
4
+ id: string;
5
+ game: string;
6
+ amount: number;
7
+ type: 'WIN' | 'LOSS' | 'JACKPOT' | 'CONSOLATION';
8
+ date: string;
9
+ image: ImageSourcePropType;
10
+ }
11
+ export interface Transaction {
12
+ id: string;
13
+ game: string;
14
+ amount: number;
15
+ type: 'WIN' | 'LOSS' | 'TICKET_BUY' | 'RAFFLE' | 'DEPOSIT' | 'WITHDRAW';
16
+ date: Date;
17
+ icon: string;
18
+ }
19
+ export interface TicketBundle {
20
+ id: string;
21
+ name: string;
22
+ tickets: number;
23
+ price: number;
24
+ tag?: string;
25
+ image: ImageSourcePropType;
26
+ }
27
+ export interface DiceValues {
28
+ die1: number;
29
+ die2: number;
30
+ }
31
+ export interface Round {
32
+ id: number;
33
+ p1: DiceValues;
34
+ p2: DiceValues;
35
+ winner: 'p1' | 'p2' | 'draw';
36
+ }
37
+ export interface GameState {
38
+ currentRound: number;
39
+ history: Round[];
40
+ p1Current: DiceValues;
41
+ p2Current: DiceValues;
42
+ stake: number;
43
+ }
44
+ export interface WheelSegment {
45
+ label: string;
46
+ value: number;
47
+ color: string;
48
+ }
49
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,MAAM,MAAM,GACZ,QAAQ,GACR,MAAM,GACN,aAAa,GACb,aAAa,GACb,oBAAoB,GACpB,QAAQ,GACR,SAAS,GACT,aAAa,GACb,SAAS,GACT,SAAS,GACT,eAAe,GACf,eAAe,GACf,aAAa,GACb,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,SAAS,GACT,UAAU,GACV,YAAY,GACZ,UAAU,GACV,WAAW,GACX,WAAW,CAAC;AAElB,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,aAAa,CAAC;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,mBAAmB,CAAC;CAC9B;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;IACxE,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,mBAAmB,CAAC;CAC9B;AAED,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,KAAK;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,UAAU,CAAC;IACf,EAAE,EAAE,UAAU,CAAC;IACf,MAAM,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,SAAS;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,KAAK,EAAE,CAAC;IACjB,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB"}