@oxyhq/services 5.4.2 → 5.4.4

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 (418) hide show
  1. package/README.md +14 -0
  2. package/lib/commonjs/assets/OxyLogo.svg +1 -0
  3. package/lib/commonjs/assets/assets/OxyLogo.svg +1 -0
  4. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  5. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  6. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  7. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  8. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  9. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  10. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  11. package/lib/commonjs/assets/assets/icons/OxyServices.tsx +67 -0
  12. package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +1 -0
  13. package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +41 -0
  14. package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  15. package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  16. package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  17. package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  18. package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  19. package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  20. package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  21. package/lib/commonjs/assets/icons/OxyServices.js +53 -0
  22. package/lib/commonjs/assets/icons/OxyServices.js.map +1 -0
  23. package/lib/commonjs/assets/icons/logo_OxyServices.svg +1 -0
  24. package/lib/commonjs/assets/illustrations/HighFive.js +61 -0
  25. package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -0
  26. package/lib/commonjs/constants/version.js +28 -0
  27. package/lib/commonjs/constants/version.js.map +1 -0
  28. package/lib/commonjs/core/index.js +1660 -0
  29. package/lib/commonjs/core/index.js.map +1 -0
  30. package/lib/commonjs/index.js +160 -0
  31. package/lib/commonjs/index.js.map +1 -0
  32. package/lib/commonjs/lib/sonner.js +21 -0
  33. package/lib/commonjs/lib/sonner.js.map +1 -0
  34. package/lib/commonjs/models/interfaces.js +2 -0
  35. package/lib/commonjs/models/interfaces.js.map +1 -0
  36. package/lib/commonjs/models/secureSession.js +2 -0
  37. package/lib/commonjs/models/secureSession.js.map +1 -0
  38. package/lib/commonjs/node/createAuth.js +95 -0
  39. package/lib/commonjs/node/createAuth.js.map +1 -0
  40. package/lib/commonjs/node/index.js +63 -0
  41. package/lib/commonjs/node/index.js.map +1 -0
  42. package/lib/commonjs/package.json +1 -0
  43. package/lib/commonjs/ui/components/Avatar.js +98 -0
  44. package/lib/commonjs/ui/components/Avatar.js.map +1 -0
  45. package/lib/commonjs/ui/components/FollowButton.js +246 -0
  46. package/lib/commonjs/ui/components/FollowButton.js.map +1 -0
  47. package/lib/commonjs/ui/components/FontLoader.js +181 -0
  48. package/lib/commonjs/ui/components/FontLoader.js.map +1 -0
  49. package/lib/commonjs/ui/components/GroupedItem.js +109 -0
  50. package/lib/commonjs/ui/components/GroupedItem.js.map +1 -0
  51. package/lib/commonjs/ui/components/GroupedSection.js +33 -0
  52. package/lib/commonjs/ui/components/GroupedSection.js.map +1 -0
  53. package/lib/commonjs/ui/components/OxyLogo.js +56 -0
  54. package/lib/commonjs/ui/components/OxyLogo.js.map +1 -0
  55. package/lib/commonjs/ui/components/OxyProvider.js +522 -0
  56. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -0
  57. package/lib/commonjs/ui/components/OxySignInButton.js +178 -0
  58. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -0
  59. package/lib/commonjs/ui/components/ProfileCard.js +124 -0
  60. package/lib/commonjs/ui/components/ProfileCard.js.map +1 -0
  61. package/lib/commonjs/ui/components/QuickActions.js +87 -0
  62. package/lib/commonjs/ui/components/QuickActions.js.map +1 -0
  63. package/lib/commonjs/ui/components/Section.js +36 -0
  64. package/lib/commonjs/ui/components/Section.js.map +1 -0
  65. package/lib/commonjs/ui/components/SectionTitle.js +35 -0
  66. package/lib/commonjs/ui/components/SectionTitle.js.map +1 -0
  67. package/lib/commonjs/ui/components/bottomSheet/index.js +37 -0
  68. package/lib/commonjs/ui/components/bottomSheet/index.js.map +1 -0
  69. package/lib/commonjs/ui/components/icon/OxyIcon.js +27 -0
  70. package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -0
  71. package/lib/commonjs/ui/components/icon/index.js +14 -0
  72. package/lib/commonjs/ui/components/icon/index.js.map +1 -0
  73. package/lib/commonjs/ui/components/index.js +97 -0
  74. package/lib/commonjs/ui/components/index.js.map +1 -0
  75. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +213 -0
  76. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -0
  77. package/lib/commonjs/ui/components/internal/TextField.js +576 -0
  78. package/lib/commonjs/ui/components/internal/TextField.js.map +1 -0
  79. package/lib/commonjs/ui/context/OxyContext.js +584 -0
  80. package/lib/commonjs/ui/context/OxyContext.js.map +1 -0
  81. package/lib/commonjs/ui/index.js +136 -0
  82. package/lib/commonjs/ui/index.js.map +1 -0
  83. package/lib/commonjs/ui/navigation/OxyRouter.js +269 -0
  84. package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -0
  85. package/lib/commonjs/ui/navigation/types.js +6 -0
  86. package/lib/commonjs/ui/navigation/types.js.map +1 -0
  87. package/lib/commonjs/ui/screens/AccountCenterScreen.js +313 -0
  88. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -0
  89. package/lib/commonjs/ui/screens/AccountManagementDemo.js +299 -0
  90. package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +1 -0
  91. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +855 -0
  92. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -0
  93. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +843 -0
  94. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -0
  95. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +788 -0
  96. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -0
  97. package/lib/commonjs/ui/screens/AppInfoScreen.js +664 -0
  98. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -0
  99. package/lib/commonjs/ui/screens/BillingManagementScreen.js +636 -0
  100. package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +1 -0
  101. package/lib/commonjs/ui/screens/FeedbackScreen.js +1169 -0
  102. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -0
  103. package/lib/commonjs/ui/screens/FileManagementScreen.js +2515 -0
  104. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -0
  105. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +1620 -0
  106. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
  107. package/lib/commonjs/ui/screens/ProfileScreen.js +450 -0
  108. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -0
  109. package/lib/commonjs/ui/screens/SessionManagementScreen.js +449 -0
  110. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -0
  111. package/lib/commonjs/ui/screens/SignInScreen.js +882 -0
  112. package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -0
  113. package/lib/commonjs/ui/screens/SignUpScreen.js +1036 -0
  114. package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -0
  115. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +88 -0
  116. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
  117. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +364 -0
  118. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
  119. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +227 -0
  120. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
  121. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +148 -0
  122. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
  123. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +127 -0
  124. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
  125. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +105 -0
  126. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
  127. package/lib/commonjs/ui/store/index.js +52 -0
  128. package/lib/commonjs/ui/store/index.js.map +1 -0
  129. package/lib/commonjs/ui/styles/FONTS.md +126 -0
  130. package/lib/commonjs/ui/styles/fonts.js +84 -0
  131. package/lib/commonjs/ui/styles/fonts.js.map +1 -0
  132. package/lib/commonjs/ui/styles/index.js +28 -0
  133. package/lib/commonjs/ui/styles/index.js.map +1 -0
  134. package/lib/commonjs/ui/styles/theme.js +121 -0
  135. package/lib/commonjs/ui/styles/theme.js.map +1 -0
  136. package/lib/commonjs/utils/deviceManager.js +173 -0
  137. package/lib/commonjs/utils/deviceManager.js.map +1 -0
  138. package/lib/commonjs/utils/index.js +13 -0
  139. package/lib/commonjs/utils/index.js.map +1 -0
  140. package/lib/commonjs/utils/polyfills.js +42 -0
  141. package/lib/commonjs/utils/polyfills.js.map +1 -0
  142. package/lib/module/assets/OxyLogo.svg +1 -0
  143. package/lib/module/assets/assets/OxyLogo.svg +1 -0
  144. package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  145. package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  146. package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  147. package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  148. package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  149. package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  150. package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  151. package/lib/module/assets/assets/icons/OxyServices.tsx +67 -0
  152. package/lib/module/assets/assets/icons/logo_OxyServices.svg +1 -0
  153. package/lib/module/assets/assets/illustrations/HighFive.tsx +41 -0
  154. package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  155. package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  156. package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  157. package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  158. package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  159. package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  160. package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  161. package/lib/module/assets/icons/OxyServices.js +46 -0
  162. package/lib/module/assets/icons/OxyServices.js.map +1 -0
  163. package/lib/module/assets/icons/logo_OxyServices.svg +1 -0
  164. package/lib/module/assets/illustrations/HighFive.js +55 -0
  165. package/lib/module/assets/illustrations/HighFive.js.map +1 -0
  166. package/lib/module/constants/version.js +21 -0
  167. package/lib/module/constants/version.js.map +1 -0
  168. package/lib/module/core/index.js +1634 -0
  169. package/lib/module/core/index.js.map +1 -0
  170. package/lib/module/index.js +48 -0
  171. package/lib/module/index.js.map +1 -0
  172. package/lib/module/lib/sonner.js +16 -0
  173. package/lib/module/lib/sonner.js.map +1 -0
  174. package/lib/module/models/interfaces.js +2 -0
  175. package/lib/module/models/interfaces.js.map +1 -0
  176. package/lib/module/models/secureSession.js +2 -0
  177. package/lib/module/models/secureSession.js.map +1 -0
  178. package/lib/module/node/createAuth.js +90 -0
  179. package/lib/module/node/createAuth.js.map +1 -0
  180. package/lib/module/node/index.js +27 -0
  181. package/lib/module/node/index.js.map +1 -0
  182. package/lib/module/package.json +1 -0
  183. package/lib/module/ui/components/Avatar.js +93 -0
  184. package/lib/module/ui/components/Avatar.js.map +1 -0
  185. package/lib/module/ui/components/FollowButton.js +241 -0
  186. package/lib/module/ui/components/FollowButton.js.map +1 -0
  187. package/lib/module/ui/components/FontLoader.js +176 -0
  188. package/lib/module/ui/components/FontLoader.js.map +1 -0
  189. package/lib/module/ui/components/GroupedItem.js +104 -0
  190. package/lib/module/ui/components/GroupedItem.js.map +1 -0
  191. package/lib/module/ui/components/GroupedSection.js +28 -0
  192. package/lib/module/ui/components/GroupedSection.js.map +1 -0
  193. package/lib/module/ui/components/OxyLogo.js +49 -0
  194. package/lib/module/ui/components/OxyLogo.js.map +1 -0
  195. package/lib/module/ui/components/OxyProvider.js +516 -0
  196. package/lib/module/ui/components/OxyProvider.js.map +1 -0
  197. package/lib/module/ui/components/OxySignInButton.js +172 -0
  198. package/lib/module/ui/components/OxySignInButton.js.map +1 -0
  199. package/lib/module/ui/components/ProfileCard.js +119 -0
  200. package/lib/module/ui/components/ProfileCard.js.map +1 -0
  201. package/lib/module/ui/components/QuickActions.js +82 -0
  202. package/lib/module/ui/components/QuickActions.js.map +1 -0
  203. package/lib/module/ui/components/Section.js +31 -0
  204. package/lib/module/ui/components/Section.js.map +1 -0
  205. package/lib/module/ui/components/SectionTitle.js +30 -0
  206. package/lib/module/ui/components/SectionTitle.js.map +1 -0
  207. package/lib/module/ui/components/bottomSheet/index.js +5 -0
  208. package/lib/module/ui/components/bottomSheet/index.js.map +1 -0
  209. package/lib/module/ui/components/icon/OxyIcon.js +22 -0
  210. package/lib/module/ui/components/icon/OxyIcon.js.map +1 -0
  211. package/lib/module/ui/components/icon/index.js +4 -0
  212. package/lib/module/ui/components/icon/index.js.map +1 -0
  213. package/lib/module/ui/components/index.js +18 -0
  214. package/lib/module/ui/components/index.js.map +1 -0
  215. package/lib/module/ui/components/internal/GroupedPillButtons.js +208 -0
  216. package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -0
  217. package/lib/module/ui/components/internal/TextField.js +571 -0
  218. package/lib/module/ui/components/internal/TextField.js.map +1 -0
  219. package/lib/module/ui/context/OxyContext.js +579 -0
  220. package/lib/module/ui/context/OxyContext.js.map +1 -0
  221. package/lib/module/ui/index.js +26 -0
  222. package/lib/module/ui/index.js.map +1 -0
  223. package/lib/module/ui/navigation/OxyRouter.js +262 -0
  224. package/lib/module/ui/navigation/OxyRouter.js.map +1 -0
  225. package/lib/module/ui/navigation/types.js +4 -0
  226. package/lib/module/ui/navigation/types.js.map +1 -0
  227. package/lib/module/ui/screens/AccountCenterScreen.js +308 -0
  228. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -0
  229. package/lib/module/ui/screens/AccountManagementDemo.js +296 -0
  230. package/lib/module/ui/screens/AccountManagementDemo.js.map +1 -0
  231. package/lib/module/ui/screens/AccountOverviewScreen.js +849 -0
  232. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -0
  233. package/lib/module/ui/screens/AccountSettingsScreen.js +837 -0
  234. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -0
  235. package/lib/module/ui/screens/AccountSwitcherScreen.js +782 -0
  236. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -0
  237. package/lib/module/ui/screens/AppInfoScreen.js +658 -0
  238. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -0
  239. package/lib/module/ui/screens/BillingManagementScreen.js +631 -0
  240. package/lib/module/ui/screens/BillingManagementScreen.js.map +1 -0
  241. package/lib/module/ui/screens/FeedbackScreen.js +1164 -0
  242. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -0
  243. package/lib/module/ui/screens/FileManagementScreen.js +2510 -0
  244. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -0
  245. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +1615 -0
  246. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
  247. package/lib/module/ui/screens/ProfileScreen.js +444 -0
  248. package/lib/module/ui/screens/ProfileScreen.js.map +1 -0
  249. package/lib/module/ui/screens/SessionManagementScreen.js +444 -0
  250. package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -0
  251. package/lib/module/ui/screens/SignInScreen.js +876 -0
  252. package/lib/module/ui/screens/SignInScreen.js.map +1 -0
  253. package/lib/module/ui/screens/SignUpScreen.js +1030 -0
  254. package/lib/module/ui/screens/SignUpScreen.js.map +1 -0
  255. package/lib/module/ui/screens/karma/KarmaAboutScreen.js +83 -0
  256. package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
  257. package/lib/module/ui/screens/karma/KarmaCenterScreen.js +358 -0
  258. package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
  259. package/lib/module/ui/screens/karma/KarmaFAQScreen.js +222 -0
  260. package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
  261. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +142 -0
  262. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
  263. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +122 -0
  264. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
  265. package/lib/module/ui/screens/karma/KarmaRulesScreen.js +100 -0
  266. package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
  267. package/lib/module/ui/store/index.js +44 -0
  268. package/lib/module/ui/store/index.js.map +1 -0
  269. package/lib/module/ui/styles/FONTS.md +126 -0
  270. package/lib/module/ui/styles/fonts.js +81 -0
  271. package/lib/module/ui/styles/fonts.js.map +1 -0
  272. package/lib/module/ui/styles/index.js +5 -0
  273. package/lib/module/ui/styles/index.js.map +1 -0
  274. package/lib/module/ui/styles/theme.js +114 -0
  275. package/lib/module/ui/styles/theme.js.map +1 -0
  276. package/lib/module/utils/deviceManager.js +167 -0
  277. package/lib/module/utils/deviceManager.js.map +1 -0
  278. package/lib/module/utils/index.js +4 -0
  279. package/lib/module/utils/index.js.map +1 -0
  280. package/lib/module/utils/polyfills.js +36 -0
  281. package/lib/module/utils/polyfills.js.map +1 -0
  282. package/lib/typescript/assets/icons/OxyServices.d.ts +29 -0
  283. package/lib/typescript/assets/icons/OxyServices.d.ts.map +1 -0
  284. package/lib/typescript/assets/illustrations/HighFive.d.ts +9 -0
  285. package/lib/typescript/assets/illustrations/HighFive.d.ts.map +1 -0
  286. package/lib/typescript/constants/version.d.ts +14 -0
  287. package/lib/typescript/constants/version.d.ts.map +1 -0
  288. package/lib/typescript/core/index.d.ts +603 -0
  289. package/lib/typescript/core/index.d.ts.map +1 -0
  290. package/lib/typescript/index.d.ts +20 -0
  291. package/lib/typescript/index.d.ts.map +1 -0
  292. package/lib/typescript/lib/sonner.d.ts +6 -0
  293. package/lib/typescript/lib/sonner.d.ts.map +1 -0
  294. package/lib/typescript/models/interfaces.d.ts +179 -0
  295. package/lib/typescript/models/interfaces.d.ts.map +1 -0
  296. package/lib/typescript/models/secureSession.d.ts +27 -0
  297. package/lib/typescript/models/secureSession.d.ts.map +1 -0
  298. package/lib/typescript/node/createAuth.d.ts +7 -0
  299. package/lib/typescript/node/createAuth.d.ts.map +1 -0
  300. package/lib/typescript/node/index.d.ts +13 -0
  301. package/lib/typescript/node/index.d.ts.map +1 -0
  302. package/lib/typescript/types/expo-vector-icons.d.ts +3 -0
  303. package/lib/typescript/types/express.d.ts +5 -0
  304. package/lib/typescript/types/react-redux.d.ts +5 -0
  305. package/lib/typescript/ui/components/Avatar.d.ts +62 -0
  306. package/lib/typescript/ui/components/Avatar.d.ts.map +1 -0
  307. package/lib/typescript/ui/components/FollowButton.d.ts +92 -0
  308. package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -0
  309. package/lib/typescript/ui/components/FontLoader.d.ts +15 -0
  310. package/lib/typescript/ui/components/FontLoader.d.ts.map +1 -0
  311. package/lib/typescript/ui/components/GroupedItem.d.ts +17 -0
  312. package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -0
  313. package/lib/typescript/ui/components/GroupedSection.d.ts +19 -0
  314. package/lib/typescript/ui/components/GroupedSection.d.ts.map +1 -0
  315. package/lib/typescript/ui/components/OxyLogo.d.ts +29 -0
  316. package/lib/typescript/ui/components/OxyLogo.d.ts.map +1 -0
  317. package/lib/typescript/ui/components/OxyProvider.d.ts +12 -0
  318. package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -0
  319. package/lib/typescript/ui/components/OxySignInButton.d.ts +70 -0
  320. package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -0
  321. package/lib/typescript/ui/components/ProfileCard.d.ts +20 -0
  322. package/lib/typescript/ui/components/ProfileCard.d.ts.map +1 -0
  323. package/lib/typescript/ui/components/QuickActions.d.ts +15 -0
  324. package/lib/typescript/ui/components/QuickActions.d.ts.map +1 -0
  325. package/lib/typescript/ui/components/Section.d.ts +11 -0
  326. package/lib/typescript/ui/components/Section.d.ts.map +1 -0
  327. package/lib/typescript/ui/components/SectionTitle.d.ts +9 -0
  328. package/lib/typescript/ui/components/SectionTitle.d.ts.map +1 -0
  329. package/lib/typescript/ui/components/bottomSheet/index.d.ts +4 -0
  330. package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +1 -0
  331. package/lib/typescript/ui/components/icon/OxyIcon.d.ts +10 -0
  332. package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +1 -0
  333. package/lib/typescript/ui/components/icon/index.d.ts +3 -0
  334. package/lib/typescript/ui/components/icon/index.d.ts.map +1 -0
  335. package/lib/typescript/ui/components/index.d.ts +13 -0
  336. package/lib/typescript/ui/components/index.d.ts.map +1 -0
  337. package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts +18 -0
  338. package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -0
  339. package/lib/typescript/ui/components/internal/TextField.d.ts +25 -0
  340. package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -0
  341. package/lib/typescript/ui/context/OxyContext.d.ts +42 -0
  342. package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -0
  343. package/lib/typescript/ui/index.d.ts +17 -0
  344. package/lib/typescript/ui/index.d.ts.map +1 -0
  345. package/lib/typescript/ui/navigation/OxyRouter.d.ts +5 -0
  346. package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -0
  347. package/lib/typescript/ui/navigation/types.d.ts +116 -0
  348. package/lib/typescript/ui/navigation/types.d.ts.map +1 -0
  349. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +5 -0
  350. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -0
  351. package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +8 -0
  352. package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +1 -0
  353. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +5 -0
  354. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -0
  355. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +5 -0
  356. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -0
  357. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +5 -0
  358. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -0
  359. package/lib/typescript/ui/screens/AppInfoScreen.d.ts +5 -0
  360. package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -0
  361. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +5 -0
  362. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +1 -0
  363. package/lib/typescript/ui/screens/FeedbackScreen.d.ts +5 -0
  364. package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -0
  365. package/lib/typescript/ui/screens/FileManagementScreen.d.ts +8 -0
  366. package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -0
  367. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +5 -0
  368. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -0
  369. package/lib/typescript/ui/screens/ProfileScreen.d.ts +9 -0
  370. package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -0
  371. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +5 -0
  372. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -0
  373. package/lib/typescript/ui/screens/SignInScreen.d.ts +5 -0
  374. package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -0
  375. package/lib/typescript/ui/screens/SignUpScreen.d.ts +5 -0
  376. package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -0
  377. package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +5 -0
  378. package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -0
  379. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +5 -0
  380. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -0
  381. package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +5 -0
  382. package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -0
  383. package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +5 -0
  384. package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -0
  385. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +5 -0
  386. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -0
  387. package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +5 -0
  388. package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -0
  389. package/lib/typescript/ui/store/index.d.ts +19 -0
  390. package/lib/typescript/ui/store/index.d.ts.map +1 -0
  391. package/lib/typescript/ui/styles/fonts.d.ts +21 -0
  392. package/lib/typescript/ui/styles/fonts.d.ts.map +1 -0
  393. package/lib/typescript/ui/styles/index.d.ts +3 -0
  394. package/lib/typescript/ui/styles/index.d.ts.map +1 -0
  395. package/lib/typescript/ui/styles/theme.d.ts +68 -0
  396. package/lib/typescript/ui/styles/theme.d.ts.map +1 -0
  397. package/lib/typescript/utils/deviceManager.d.ts +66 -0
  398. package/lib/typescript/utils/deviceManager.d.ts.map +1 -0
  399. package/lib/typescript/utils/index.d.ts +3 -0
  400. package/lib/typescript/utils/index.d.ts.map +1 -0
  401. package/lib/typescript/utils/polyfills.d.ts +6 -0
  402. package/lib/typescript/utils/polyfills.d.ts.map +1 -0
  403. package/package.json +7 -6
  404. package/src/assets/illustrations/HighFive.tsx +41 -0
  405. package/src/node/createAuth.ts +116 -0
  406. package/src/node/index.ts +4 -0
  407. package/src/types/expo-vector-icons.d.ts +3 -0
  408. package/src/types/express.d.ts +5 -0
  409. package/src/types/react-redux.d.ts +5 -0
  410. package/src/ui/components/OxyProvider.tsx +136 -135
  411. package/src/ui/components/internal/GroupedPillButtons.tsx +253 -0
  412. package/src/ui/components/internal/TextField.tsx +694 -0
  413. package/src/ui/index.ts +6 -2
  414. package/src/ui/navigation/OxyRouter.tsx +8 -3
  415. package/src/ui/screens/FeedbackScreen.tsx +1042 -0
  416. package/src/ui/screens/SignInScreen.tsx +179 -222
  417. package/src/ui/screens/SignUpScreen.tsx +772 -608
  418. package/src/ui/store/index.ts +51 -0
@@ -0,0 +1,516 @@
1
+ "use strict";
2
+
3
+ import React, { useCallback, useRef, useState, useEffect, useMemo } from 'react';
4
+ import { View, StyleSheet, Dimensions, Platform, Animated, StatusBar, Keyboard } from 'react-native';
5
+ import { SafeAreaProvider, useSafeAreaInsets } from 'react-native-safe-area-context';
6
+ import { GestureHandlerRootView } from 'react-native-gesture-handler';
7
+ import { OxyContextProvider } from '../context/OxyContext';
8
+ import { Provider } from 'react-redux';
9
+ import { store } from '../store';
10
+ import OxyRouter from '../navigation/OxyRouter';
11
+ import { FontLoader, setupFonts } from './FontLoader';
12
+ import { Toaster } from '../../lib/sonner';
13
+
14
+ // Import bottom sheet components directly - no longer a peer dependency
15
+ import { BottomSheetModal, BottomSheetBackdrop, BottomSheetModalProvider, BottomSheetScrollView } from './bottomSheet';
16
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
+ // Initialize fonts automatically
18
+ setupFonts();
19
+
20
+ /**
21
+ * Enhanced OxyProvider component
22
+ *
23
+ * This component serves two purposes:
24
+ * 1. As a context provider for authentication and session management across the app
25
+ * 2. As a UI component for authentication and account management using a bottom sheet
26
+ */
27
+ const OxyProvider = props => {
28
+ const {
29
+ oxyServices,
30
+ children,
31
+ contextOnly = false,
32
+ onAuthStateChange,
33
+ storageKeyPrefix,
34
+ showInternalToaster = true,
35
+ ...bottomSheetProps
36
+ } = props;
37
+
38
+ // Create internal bottom sheet ref
39
+ const internalBottomSheetRef = useRef(null);
40
+
41
+ // If contextOnly is true, we just provide the context without the bottom sheet UI
42
+ if (contextOnly) {
43
+ return /*#__PURE__*/_jsx(Provider, {
44
+ store: store,
45
+ children: /*#__PURE__*/_jsx(OxyContextProvider, {
46
+ oxyServices: oxyServices,
47
+ storageKeyPrefix: storageKeyPrefix,
48
+ onAuthStateChange: onAuthStateChange,
49
+ children: children
50
+ })
51
+ });
52
+ }
53
+
54
+ // Otherwise, provide both the context and the bottom sheet UI
55
+ return /*#__PURE__*/_jsx(Provider, {
56
+ store: store,
57
+ children: /*#__PURE__*/_jsx(OxyContextProvider, {
58
+ oxyServices: oxyServices,
59
+ storageKeyPrefix: storageKeyPrefix,
60
+ onAuthStateChange: onAuthStateChange,
61
+ bottomSheetRef: internalBottomSheetRef,
62
+ children: /*#__PURE__*/_jsx(FontLoader, {
63
+ children: /*#__PURE__*/_jsxs(GestureHandlerRootView, {
64
+ style: styles.gestureHandlerRoot,
65
+ children: [/*#__PURE__*/_jsxs(BottomSheetModalProvider, {
66
+ children: [/*#__PURE__*/_jsx(StatusBar, {
67
+ translucent: true,
68
+ backgroundColor: "transparent"
69
+ }), /*#__PURE__*/_jsxs(SafeAreaProvider, {
70
+ children: [/*#__PURE__*/_jsx(OxyBottomSheet, {
71
+ ...bottomSheetProps,
72
+ bottomSheetRef: internalBottomSheetRef,
73
+ oxyServices: oxyServices
74
+ }), children]
75
+ })]
76
+ }), !showInternalToaster && /*#__PURE__*/_jsx(View, {
77
+ style: styles.toasterContainer,
78
+ children: /*#__PURE__*/_jsx(Toaster, {
79
+ position: "top-center",
80
+ swipeToDismissDirection: "left",
81
+ offset: 15
82
+ })
83
+ })]
84
+ })
85
+ })
86
+ })
87
+ });
88
+ };
89
+
90
+ /**
91
+ * OxyBottomSheet component - A bottom sheet-based authentication and account management UI
92
+ *
93
+ * This is the original OxyProvider UI functionality, now extracted into its own component
94
+ * and reimplemented using BottomSheetModal for better Android compatibility
95
+ */
96
+ const OxyBottomSheet = ({
97
+ oxyServices,
98
+ initialScreen = 'SignIn',
99
+ onClose,
100
+ onAuthenticated,
101
+ theme = 'light',
102
+ customStyles = {},
103
+ bottomSheetRef,
104
+ autoPresent = false,
105
+ showInternalToaster = true
106
+ }) => {
107
+ // Use the internal ref (which is passed as a prop from OxyProvider)
108
+ const modalRef = useRef(null);
109
+
110
+ // Create a ref to store the navigation function from OxyRouter
111
+ const navigationRef = useRef(null);
112
+
113
+ // Track content height for dynamic sizing
114
+ const [contentHeight, setContentHeight] = useState(0);
115
+ const [containerWidth, setContainerWidth] = useState(800); // Track actual container width
116
+ const screenHeight = Dimensions.get('window').height;
117
+
118
+ // Set up effect to sync the internal ref with our modal ref
119
+ useEffect(() => {
120
+ if (bottomSheetRef && modalRef.current) {
121
+ // We need to expose certain methods to the internal ref
122
+ const methodsToExpose = ['snapToIndex', 'snapToPosition', 'close', 'expand', 'collapse', 'present', 'dismiss'];
123
+ methodsToExpose.forEach(method => {
124
+ if (modalRef.current && typeof modalRef.current[method] === 'function') {
125
+ // Properly forward methods from modalRef to bottomSheetRef
126
+ // @ts-ignore - We're doing a runtime compatibility layer
127
+ bottomSheetRef.current = bottomSheetRef.current || {};
128
+ // @ts-ignore - Dynamic method assignment
129
+ bottomSheetRef.current[method] = (...args) => {
130
+ // @ts-ignore - Dynamic method call
131
+ return modalRef.current?.[method]?.(...args);
132
+ };
133
+ }
134
+ });
135
+
136
+ // Add a method to navigate between screens
137
+ // @ts-ignore - Adding custom method
138
+ bottomSheetRef.current._navigateToScreen = (screenName, props) => {
139
+ console.log(`Navigation requested: ${screenName}`, props);
140
+
141
+ // Try direct navigation function first (most reliable)
142
+ if (navigationRef.current) {
143
+ console.log('Using direct navigation function');
144
+ navigationRef.current(screenName, props);
145
+ return;
146
+ }
147
+
148
+ // Fallback to event-based navigation
149
+ if (typeof document !== 'undefined') {
150
+ // For web - use a custom event
151
+ console.log('Using web event navigation');
152
+ const event = new CustomEvent('oxy:navigate', {
153
+ detail: {
154
+ screen: screenName,
155
+ props
156
+ }
157
+ });
158
+ document.dispatchEvent(event);
159
+ } else {
160
+ // For React Native - use the global variable approach
161
+ console.log('Using React Native global navigation');
162
+ globalThis.oxyNavigateEvent = {
163
+ screen: screenName,
164
+ props
165
+ };
166
+ }
167
+ };
168
+ }
169
+ }, [bottomSheetRef, modalRef]);
170
+
171
+ // Use percentage-based snap points for better cross-platform compatibility
172
+ const [snapPoints, setSnapPoints] = useState(['60%', '90%']);
173
+
174
+ // Animation values - we'll use these for content animations
175
+ // Start with opacity 1 on Android to avoid visibility issues
176
+ const fadeAnim = useRef(new Animated.Value(Platform.OS === 'android' ? 1 : 0)).current;
177
+ const slideAnim = useRef(new Animated.Value(Platform.OS === 'android' ? 0 : 50)).current;
178
+
179
+ // Track keyboard status
180
+ const [keyboardVisible, setKeyboardVisible] = useState(false);
181
+ const insets = useSafeAreaInsets();
182
+
183
+ // Handle keyboard events - memoized to prevent re-registration
184
+ useEffect(() => {
185
+ const keyboardWillShowListener = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow', event => {
186
+ setKeyboardVisible(true);
187
+ // Ensure the bottom sheet remains visible when keyboard opens
188
+ // by adjusting to the highest snap point
189
+ if (modalRef.current) {
190
+ // Use requestAnimationFrame to avoid conflicts
191
+ requestAnimationFrame(() => {
192
+ modalRef.current?.snapToIndex(1);
193
+ });
194
+ }
195
+ });
196
+ const keyboardWillHideListener = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide', () => {
197
+ setKeyboardVisible(false);
198
+ });
199
+
200
+ // Cleanup listeners
201
+ return () => {
202
+ keyboardWillShowListener.remove();
203
+ keyboardWillHideListener.remove();
204
+ };
205
+ }, []); // Remove keyboardVisible dependency to prevent re-registration
206
+
207
+ // Present the modal when component mounts, but only if autoPresent is true
208
+ useEffect(() => {
209
+ // Add expand method that handles presentation and animations
210
+ if (bottomSheetRef && modalRef.current) {
211
+ // Override expand to handle initial presentation
212
+ // @ts-ignore - Dynamic method assignment
213
+ bottomSheetRef.current.expand = () => {
214
+ // Only present if not already presented
215
+ modalRef.current?.present();
216
+
217
+ // Start content animations after presenting
218
+ Animated.parallel([Animated.timing(fadeAnim, {
219
+ toValue: 1,
220
+ duration: 300,
221
+ useNativeDriver: Platform.OS === 'ios' // Only use native driver on iOS
222
+ }), Animated.spring(slideAnim, {
223
+ toValue: 0,
224
+ friction: 8,
225
+ tension: 40,
226
+ useNativeDriver: Platform.OS === 'ios' // Only use native driver on iOS
227
+ })]).start();
228
+ };
229
+ }
230
+
231
+ // Auto-present if the autoPresent prop is true
232
+ if (autoPresent && modalRef.current) {
233
+ // Small delay to allow everything to initialize
234
+ const timer = setTimeout(() => {
235
+ modalRef.current?.present();
236
+
237
+ // Start content animations after presenting
238
+ Animated.parallel([Animated.timing(fadeAnim, {
239
+ toValue: 1,
240
+ duration: 300,
241
+ useNativeDriver: Platform.OS === 'ios' // Only use native driver on iOS
242
+ }), Animated.spring(slideAnim, {
243
+ toValue: 0,
244
+ friction: 8,
245
+ tension: 40,
246
+ useNativeDriver: Platform.OS === 'ios' // Only use native driver on iOS
247
+ })]).start();
248
+ }, 100);
249
+ return () => clearTimeout(timer);
250
+ }
251
+ }, [bottomSheetRef, modalRef, fadeAnim, slideAnim, autoPresent]);
252
+
253
+ // Close the bottom sheet with animation
254
+ const handleClose = useCallback(() => {
255
+ // Animate content out
256
+ Animated.timing(fadeAnim, {
257
+ toValue: 0,
258
+ duration: Platform.OS === 'android' ? 100 : 200,
259
+ // Faster on Android
260
+ useNativeDriver: Platform.OS === 'ios' // Only use native driver on iOS
261
+ }).start(() => {
262
+ // Dismiss the sheet
263
+ modalRef.current?.dismiss();
264
+ if (onClose) {
265
+ setTimeout(() => {
266
+ onClose();
267
+ }, Platform.OS === 'android' ? 150 : 100);
268
+ }
269
+ });
270
+ }, [onClose, fadeAnim]);
271
+
272
+ // Handle authentication success from the bottom sheet screens
273
+ const handleAuthenticated = useCallback(user => {
274
+ // Stop any ongoing animations that might interfere with dismissal
275
+ fadeAnim.stopAnimation();
276
+ slideAnim.stopAnimation();
277
+
278
+ // Call the prop callback if provided
279
+ if (onAuthenticated) {
280
+ onAuthenticated(user);
281
+ }
282
+
283
+ // Automatically dismiss the bottom sheet after successful authentication
284
+ // Use direct dismissal for immediate closure
285
+ modalRef.current?.dismiss();
286
+
287
+ // Call onClose callback if provided
288
+ if (onClose) {
289
+ setTimeout(() => {
290
+ onClose();
291
+ }, 100);
292
+ }
293
+ }, [onAuthenticated, onClose, fadeAnim, slideAnim]);
294
+
295
+ // Remove handle animation to prevent conflicts with bottom sheet animations
296
+
297
+ // Handle backdrop rendering
298
+ const renderBackdrop = useCallback(props => /*#__PURE__*/_jsx(BottomSheetBackdrop, {
299
+ ...props,
300
+ disappearsOnIndex: -1,
301
+ appearsOnIndex: 0,
302
+ opacity: 0.5
303
+ }), []);
304
+
305
+ // Memoize background style based on theme to prevent recalculation on every render
306
+ const backgroundStyle = useMemo(() => {
307
+ const baseColor = customStyles.backgroundColor || (theme === 'light' ? '#FFFFFF' : '#121212');
308
+ return {
309
+ backgroundColor: baseColor,
310
+ // Make sure there's no transparency
311
+ opacity: 1,
312
+ // Additional Android-specific styles
313
+ ...Platform.select({
314
+ android: {
315
+ elevation: 24
316
+ }
317
+ })
318
+ };
319
+ }, [customStyles.backgroundColor, theme]);
320
+
321
+ // Method to adjust snap points from Router - memoized with stable dependencies
322
+ const adjustSnapPoints = useCallback(points => {
323
+ setSnapPoints(prevSnapPoints => {
324
+ // Ensure snap points are high enough when keyboard is visible
325
+ if (keyboardVisible) {
326
+ // If keyboard is visible, make sure we use higher snap points
327
+ // to ensure the sheet content remains visible
328
+ const highestPoint = points[points.length - 1];
329
+ const newSnapPoints = [highestPoint, highestPoint];
330
+ // Only update if actually different
331
+ if (JSON.stringify(prevSnapPoints) !== JSON.stringify(newSnapPoints)) {
332
+ return newSnapPoints;
333
+ }
334
+ return prevSnapPoints;
335
+ } else {
336
+ // If we have content height, use it as a constraint
337
+ if (contentHeight > 0) {
338
+ // Calculate content height as percentage of screen (plus some padding)
339
+ // Clamp to ensure we don't exceed 90% to leave space for UI elements
340
+ const contentHeightPercent = Math.min(Math.ceil(contentHeight / screenHeight * 100), 90);
341
+ const contentHeightPercentStr = `${contentHeightPercent}%`;
342
+ // Use content height for first snap point if it's taller than the default
343
+ const firstPoint = contentHeight / screenHeight > 0.6 ? contentHeightPercentStr : points[0];
344
+ const newSnapPoints = [firstPoint, points[1] || '90%'];
345
+ // Only update if actually different
346
+ if (JSON.stringify(prevSnapPoints) !== JSON.stringify(newSnapPoints)) {
347
+ return newSnapPoints;
348
+ }
349
+ return prevSnapPoints;
350
+ } else {
351
+ // Only update if actually different
352
+ if (JSON.stringify(prevSnapPoints) !== JSON.stringify(points)) {
353
+ return points;
354
+ }
355
+ return prevSnapPoints;
356
+ }
357
+ }
358
+ });
359
+ }, [keyboardVisible, contentHeight, screenHeight]);
360
+
361
+ // Handle content layout changes to measure height and width - prevent rerender loops
362
+ const handleContentLayout = useCallback(event => {
363
+ const {
364
+ height: layoutHeight,
365
+ width: layoutWidth
366
+ } = event.nativeEvent.layout;
367
+
368
+ // Only update if values actually changed to prevent unnecessary rerenders
369
+ setContentHeight(prevHeight => {
370
+ if (Math.abs(prevHeight - layoutHeight) > 5) {
371
+ // 5px threshold to prevent minor fluctuations
372
+ return layoutHeight;
373
+ }
374
+ return prevHeight;
375
+ });
376
+ setContainerWidth(prevWidth => {
377
+ if (Math.abs(prevWidth - layoutWidth) > 5) {
378
+ // 5px threshold to prevent minor fluctuations
379
+ return layoutWidth;
380
+ }
381
+ return prevWidth;
382
+ });
383
+ }, []); // Remove dependencies that cause rerender loops
384
+
385
+ // Handle sheet index changes - simplified to prevent unnecessary rerenders
386
+ const handleSheetChanges = useCallback(index => {
387
+ // Sheet change handling can be added here if needed
388
+ }, []);
389
+ return /*#__PURE__*/_jsxs(BottomSheetModal, {
390
+ ref: modalRef,
391
+ index: 0,
392
+ snapPoints: snapPoints,
393
+ enablePanDownToClose: true,
394
+ backdropComponent: renderBackdrop,
395
+ backgroundStyle: [backgroundStyle, {
396
+ borderTopLeftRadius: 35,
397
+ borderTopRightRadius: 35
398
+ }],
399
+ handleIndicatorStyle: {
400
+ backgroundColor: customStyles.handleColor || (theme === 'light' ? '#CCCCCC' : '#444444'),
401
+ width: 40,
402
+ height: 4
403
+ },
404
+ onChange: handleSheetChanges,
405
+ style: styles.bottomSheetContainer
406
+ // Adding additional props to improve layout behavior
407
+ ,
408
+ keyboardBehavior: "interactive",
409
+ keyboardBlurBehavior: "restore",
410
+ android_keyboardInputMode: "adjustResize",
411
+ enableOverDrag: true,
412
+ enableContentPanningGesture: true,
413
+ enableHandlePanningGesture: true,
414
+ overDragResistanceFactor: 2.5,
415
+ enableBlurKeyboardOnGesture: true
416
+ // Log sheet animations for debugging
417
+ ,
418
+ onAnimate: (fromIndex, toIndex) => {
419
+ console.log(`Animating from index ${fromIndex} to ${toIndex}`);
420
+ },
421
+ children: [/*#__PURE__*/_jsx(BottomSheetScrollView, {
422
+ style: [styles.contentContainer,
423
+ // Override padding if provided in customStyles
424
+ customStyles.contentPadding !== undefined && {
425
+ padding: customStyles.contentPadding
426
+ }],
427
+ onLayout: handleContentLayout,
428
+ children: /*#__PURE__*/_jsx(View, {
429
+ style: styles.centeredContentWrapper,
430
+ children: /*#__PURE__*/_jsx(Animated.View, {
431
+ style: [styles.animatedContent,
432
+ // Apply animations - conditionally for Android
433
+ Platform.OS === 'android' ? {
434
+ opacity: 1 // No fade animation on Android
435
+ } : {
436
+ opacity: fadeAnim,
437
+ transform: [{
438
+ translateY: slideAnim
439
+ }]
440
+ }],
441
+ children: /*#__PURE__*/_jsx(OxyRouter, {
442
+ oxyServices: oxyServices,
443
+ initialScreen: initialScreen,
444
+ onClose: handleClose,
445
+ onAuthenticated: handleAuthenticated,
446
+ theme: theme,
447
+ adjustSnapPoints: adjustSnapPoints,
448
+ navigationRef: navigationRef,
449
+ containerWidth: containerWidth
450
+ })
451
+ })
452
+ })
453
+ }), showInternalToaster && /*#__PURE__*/_jsx(View, {
454
+ style: styles.toasterContainer,
455
+ children: /*#__PURE__*/_jsx(Toaster, {
456
+ position: "top-center",
457
+ swipeToDismissDirection: "left"
458
+ })
459
+ })]
460
+ });
461
+ };
462
+ const styles = StyleSheet.create({
463
+ bottomSheetContainer: {
464
+ maxWidth: 800,
465
+ width: '100%',
466
+ marginHorizontal: 'auto'
467
+ },
468
+ contentContainer: {
469
+ width: '100%',
470
+ borderTopLeftRadius: 35,
471
+ borderTopRightRadius: 35
472
+ },
473
+ centeredContentWrapper: {
474
+ width: '100%',
475
+ marginHorizontal: 'auto'
476
+ },
477
+ animatedContent: {
478
+ width: '100%'
479
+ },
480
+ indicator: {
481
+ width: 40,
482
+ height: 4,
483
+ marginTop: 8,
484
+ marginBottom: 8,
485
+ borderRadius: 35
486
+ },
487
+ errorContainer: {
488
+ flex: 1,
489
+ justifyContent: 'center',
490
+ alignItems: 'center'
491
+ },
492
+ gestureHandlerRoot: {
493
+ flex: 1,
494
+ position: 'relative',
495
+ backgroundColor: 'transparent',
496
+ ...Platform.select({
497
+ android: {
498
+ height: '100%',
499
+ width: '100%'
500
+ }
501
+ })
502
+ },
503
+ toasterContainer: {
504
+ position: 'absolute',
505
+ top: 0,
506
+ left: 0,
507
+ right: 0,
508
+ bottom: 0,
509
+ zIndex: 9999,
510
+ elevation: 9999,
511
+ // For Android
512
+ pointerEvents: 'box-none' // Allow touches to pass through to underlying components
513
+ }
514
+ });
515
+ export default OxyProvider;
516
+ //# sourceMappingURL=OxyProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useCallback","useRef","useState","useEffect","useMemo","View","StyleSheet","Dimensions","Platform","Animated","StatusBar","Keyboard","SafeAreaProvider","useSafeAreaInsets","GestureHandlerRootView","OxyContextProvider","Provider","store","OxyRouter","FontLoader","setupFonts","Toaster","BottomSheetModal","BottomSheetBackdrop","BottomSheetModalProvider","BottomSheetScrollView","jsx","_jsx","jsxs","_jsxs","OxyProvider","props","oxyServices","children","contextOnly","onAuthStateChange","storageKeyPrefix","showInternalToaster","bottomSheetProps","internalBottomSheetRef","bottomSheetRef","style","styles","gestureHandlerRoot","translucent","backgroundColor","OxyBottomSheet","toasterContainer","position","swipeToDismissDirection","offset","initialScreen","onClose","onAuthenticated","theme","customStyles","autoPresent","modalRef","navigationRef","contentHeight","setContentHeight","containerWidth","setContainerWidth","screenHeight","get","height","current","methodsToExpose","forEach","method","args","_navigateToScreen","screenName","console","log","document","event","CustomEvent","detail","screen","dispatchEvent","globalThis","oxyNavigateEvent","snapPoints","setSnapPoints","fadeAnim","Value","OS","slideAnim","keyboardVisible","setKeyboardVisible","insets","keyboardWillShowListener","addListener","requestAnimationFrame","snapToIndex","keyboardWillHideListener","remove","expand","present","parallel","timing","toValue","duration","useNativeDriver","spring","friction","tension","start","timer","setTimeout","clearTimeout","handleClose","dismiss","handleAuthenticated","user","stopAnimation","renderBackdrop","disappearsOnIndex","appearsOnIndex","opacity","backgroundStyle","baseColor","select","android","elevation","adjustSnapPoints","points","prevSnapPoints","highestPoint","length","newSnapPoints","JSON","stringify","contentHeightPercent","Math","min","ceil","contentHeightPercentStr","firstPoint","handleContentLayout","layoutHeight","width","layoutWidth","nativeEvent","layout","prevHeight","abs","prevWidth","handleSheetChanges","index","ref","enablePanDownToClose","backdropComponent","borderTopLeftRadius","borderTopRightRadius","handleIndicatorStyle","handleColor","onChange","bottomSheetContainer","keyboardBehavior","keyboardBlurBehavior","android_keyboardInputMode","enableOverDrag","enableContentPanningGesture","enableHandlePanningGesture","overDragResistanceFactor","enableBlurKeyboardOnGesture","onAnimate","fromIndex","toIndex","contentContainer","contentPadding","undefined","padding","onLayout","centeredContentWrapper","animatedContent","transform","translateY","create","maxWidth","marginHorizontal","indicator","marginTop","marginBottom","borderRadius","errorContainer","flex","justifyContent","alignItems","top","left","right","bottom","zIndex","pointerEvents"],"sourceRoot":"../../../../src","sources":["ui/components/OxyProvider.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AAChF,SAASC,IAAI,EAAQC,UAAU,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,QAAQ,QAAuB,cAAc;AACzH,SAASC,gBAAgB,EAAEC,iBAAiB,QAAQ,gCAAgC;AACpF,SAASC,sBAAsB,QAAQ,8BAA8B;AAErE,SAASC,kBAAkB,QAAgB,uBAAuB;AAClE,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,KAAK,QAAQ,UAAU;AAChC,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,SAASC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,OAAO,QAAQ,kBAAkB;;AAE1C;AACA,SAASC,gBAAgB,EAAEC,mBAAmB,EAA4BC,wBAAwB,EAAmBC,qBAAqB,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGlK;AACAT,UAAU,CAAC,CAAC;;AAEZ;AACA;AACA;AACA;AACA;A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