@oxyhq/services 5.5.9 → 5.6.1

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 (396) hide show
  1. package/README.md +16 -2
  2. package/lib/commonjs/core/index.js +69 -82
  3. package/lib/commonjs/core/index.js.map +1 -1
  4. package/lib/commonjs/index.js +24 -183
  5. package/lib/commonjs/index.js.map +1 -1
  6. package/lib/commonjs/node/index.js +0 -2
  7. package/lib/commonjs/node/index.js.map +1 -1
  8. package/lib/commonjs/ui/components/FollowButton.js +100 -229
  9. package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
  10. package/lib/commonjs/ui/components/OxyPayButton.js +131 -0
  11. package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -0
  12. package/lib/commonjs/ui/components/OxyProvider.js +41 -198
  13. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  14. package/lib/commonjs/ui/components/OxySignInButton.js +15 -2
  15. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
  16. package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js +66 -0
  17. package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js.map +1 -0
  18. package/lib/commonjs/ui/components/icon/index.js +7 -0
  19. package/lib/commonjs/ui/components/icon/index.js.map +1 -1
  20. package/lib/commonjs/ui/components/index.js +7 -0
  21. package/lib/commonjs/ui/components/index.js.map +1 -1
  22. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +14 -7
  23. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -1
  24. package/lib/commonjs/ui/components/internal/PinInput.js +108 -0
  25. package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -0
  26. package/lib/commonjs/ui/components/internal/TextField.js +20 -0
  27. package/lib/commonjs/ui/components/internal/TextField.js.map +1 -1
  28. package/lib/commonjs/ui/context/OxyContext.js +116 -84
  29. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  30. package/lib/commonjs/ui/hooks/index.js +2 -15
  31. package/lib/commonjs/ui/hooks/index.js.map +1 -1
  32. package/lib/commonjs/ui/hooks/useFollow.js +52 -136
  33. package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
  34. package/lib/commonjs/ui/hooks/useSessionSocket.js +52 -0
  35. package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -0
  36. package/lib/commonjs/ui/index.js +8 -191
  37. package/lib/commonjs/ui/index.js.map +1 -1
  38. package/lib/commonjs/ui/navigation/OxyRouter.js +52 -60
  39. package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -1
  40. package/lib/commonjs/ui/screens/AccountCenterScreen.js +18 -30
  41. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
  42. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +4 -22
  43. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
  44. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +90 -39
  45. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  46. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +37 -66
  47. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
  48. package/lib/commonjs/ui/screens/AppInfoScreen.js +21 -44
  49. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  50. package/lib/commonjs/ui/screens/FeedbackScreen.js +44 -23
  51. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  52. package/lib/commonjs/ui/screens/FileManagementScreen.js +59 -78
  53. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  54. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +1588 -0
  55. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -0
  56. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +22 -36
  57. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  58. package/lib/commonjs/ui/screens/RecoverAccountScreen.js +269 -0
  59. package/lib/commonjs/ui/screens/RecoverAccountScreen.js.map +1 -0
  60. package/lib/commonjs/ui/screens/SessionManagementScreen.js +47 -69
  61. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
  62. package/lib/commonjs/ui/screens/SignInScreen.js +99 -333
  63. package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
  64. package/lib/commonjs/ui/screens/SignUpScreen.js +136 -340
  65. package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -1
  66. package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js +192 -0
  67. package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js.map +1 -0
  68. package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js +135 -0
  69. package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js.map +1 -0
  70. package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js +108 -0
  71. package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js.map +1 -0
  72. package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js +126 -0
  73. package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js.map +1 -0
  74. package/lib/commonjs/ui/screens/internal/SignUpSummaryStep.js +84 -0
  75. package/lib/commonjs/ui/screens/internal/SignUpSummaryStep.js.map +1 -0
  76. package/lib/commonjs/ui/screens/internal/SignUpWelcomeStep.js +59 -0
  77. package/lib/commonjs/ui/screens/internal/SignUpWelcomeStep.js.map +1 -0
  78. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +15 -2
  79. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  80. package/lib/commonjs/ui/stores/authStore.js +66 -0
  81. package/lib/commonjs/ui/stores/authStore.js.map +1 -0
  82. package/lib/commonjs/ui/stores/followStore.js +124 -0
  83. package/lib/commonjs/ui/stores/followStore.js.map +1 -0
  84. package/lib/commonjs/ui/styles/index.js +0 -11
  85. package/lib/commonjs/ui/styles/index.js.map +1 -1
  86. package/lib/commonjs/ui/utils/confirmAction.js +28 -0
  87. package/lib/commonjs/ui/utils/confirmAction.js.map +1 -0
  88. package/lib/module/core/index.js +69 -81
  89. package/lib/module/core/index.js.map +1 -1
  90. package/lib/module/index.js +14 -17
  91. package/lib/module/index.js.map +1 -1
  92. package/lib/module/node/index.js +0 -3
  93. package/lib/module/node/index.js.map +1 -1
  94. package/lib/module/ui/components/FollowButton.js +100 -229
  95. package/lib/module/ui/components/FollowButton.js.map +1 -1
  96. package/lib/module/ui/components/OxyPayButton.js +125 -0
  97. package/lib/module/ui/components/OxyPayButton.js.map +1 -0
  98. package/lib/module/ui/components/OxyProvider.js +42 -199
  99. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  100. package/lib/module/ui/components/OxySignInButton.js +15 -2
  101. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  102. package/lib/module/ui/components/icon/FAIRWalletIcon.js +60 -0
  103. package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +1 -0
  104. package/lib/module/ui/components/icon/index.js +1 -0
  105. package/lib/module/ui/components/icon/index.js.map +1 -1
  106. package/lib/module/ui/components/index.js +1 -0
  107. package/lib/module/ui/components/index.js.map +1 -1
  108. package/lib/module/ui/components/internal/GroupedPillButtons.js +15 -8
  109. package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -1
  110. package/lib/module/ui/components/internal/PinInput.js +103 -0
  111. package/lib/module/ui/components/internal/PinInput.js.map +1 -0
  112. package/lib/module/ui/components/internal/TextField.js +20 -0
  113. package/lib/module/ui/components/internal/TextField.js.map +1 -1
  114. package/lib/module/ui/context/OxyContext.js +117 -85
  115. package/lib/module/ui/context/OxyContext.js.map +1 -1
  116. package/lib/module/ui/hooks/index.js +1 -2
  117. package/lib/module/ui/hooks/index.js.map +1 -1
  118. package/lib/module/ui/hooks/useFollow.js +52 -137
  119. package/lib/module/ui/hooks/useFollow.js.map +1 -1
  120. package/lib/module/ui/hooks/useSessionSocket.js +47 -0
  121. package/lib/module/ui/hooks/useSessionSocket.js.map +1 -0
  122. package/lib/module/ui/index.js +2 -13
  123. package/lib/module/ui/index.js.map +1 -1
  124. package/lib/module/ui/navigation/OxyRouter.js +53 -61
  125. package/lib/module/ui/navigation/OxyRouter.js.map +1 -1
  126. package/lib/module/ui/screens/AccountCenterScreen.js +6 -18
  127. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
  128. package/lib/module/ui/screens/AccountOverviewScreen.js +5 -23
  129. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
  130. package/lib/module/ui/screens/AccountSettingsScreen.js +91 -40
  131. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  132. package/lib/module/ui/screens/AccountSwitcherScreen.js +38 -67
  133. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
  134. package/lib/module/ui/screens/AppInfoScreen.js +22 -45
  135. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  136. package/lib/module/ui/screens/FeedbackScreen.js +44 -23
  137. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  138. package/lib/module/ui/screens/FileManagementScreen.js +59 -78
  139. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  140. package/lib/module/ui/screens/PaymentGatewayScreen.js +1583 -0
  141. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -0
  142. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +23 -37
  143. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  144. package/lib/module/ui/screens/RecoverAccountScreen.js +263 -0
  145. package/lib/module/ui/screens/RecoverAccountScreen.js.map +1 -0
  146. package/lib/module/ui/screens/SessionManagementScreen.js +47 -69
  147. package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
  148. package/lib/module/ui/screens/SignInScreen.js +100 -334
  149. package/lib/module/ui/screens/SignInScreen.js.map +1 -1
  150. package/lib/module/ui/screens/SignUpScreen.js +137 -341
  151. package/lib/module/ui/screens/SignUpScreen.js.map +1 -1
  152. package/lib/module/ui/screens/internal/SignInPasswordStep.js +186 -0
  153. package/lib/module/ui/screens/internal/SignInPasswordStep.js.map +1 -0
  154. package/lib/module/ui/screens/internal/SignInUsernameStep.js +129 -0
  155. package/lib/module/ui/screens/internal/SignInUsernameStep.js.map +1 -0
  156. package/lib/module/ui/screens/internal/SignUpIdentityStep.js +102 -0
  157. package/lib/module/ui/screens/internal/SignUpIdentityStep.js.map +1 -0
  158. package/lib/module/ui/screens/internal/SignUpSecurityStep.js +120 -0
  159. package/lib/module/ui/screens/internal/SignUpSecurityStep.js.map +1 -0
  160. package/lib/module/ui/screens/internal/SignUpSummaryStep.js +79 -0
  161. package/lib/module/ui/screens/internal/SignUpSummaryStep.js.map +1 -0
  162. package/lib/module/ui/screens/internal/SignUpWelcomeStep.js +54 -0
  163. package/lib/module/ui/screens/internal/SignUpWelcomeStep.js.map +1 -0
  164. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +16 -3
  165. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  166. package/lib/module/ui/stores/authStore.js +62 -0
  167. package/lib/module/ui/stores/authStore.js.map +1 -0
  168. package/lib/module/ui/stores/followStore.js +120 -0
  169. package/lib/module/ui/stores/followStore.js.map +1 -0
  170. package/lib/module/ui/styles/index.js +0 -1
  171. package/lib/module/ui/styles/index.js.map +1 -1
  172. package/lib/module/ui/utils/confirmAction.js +25 -0
  173. package/lib/module/ui/utils/confirmAction.js.map +1 -0
  174. package/lib/typescript/core/index.d.ts +28 -10
  175. package/lib/typescript/core/index.d.ts.map +1 -1
  176. package/lib/typescript/index.d.ts +5 -4
  177. package/lib/typescript/index.d.ts.map +1 -1
  178. package/lib/typescript/models/interfaces.d.ts +6 -0
  179. package/lib/typescript/models/interfaces.d.ts.map +1 -1
  180. package/lib/typescript/models/secureSession.d.ts +0 -1
  181. package/lib/typescript/models/secureSession.d.ts.map +1 -1
  182. package/lib/typescript/node/index.d.ts +0 -1
  183. package/lib/typescript/node/index.d.ts.map +1 -1
  184. package/lib/typescript/ui/components/FollowButton.d.ts +1 -77
  185. package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -1
  186. package/lib/typescript/ui/components/OxyPayButton.d.ts +29 -0
  187. package/lib/typescript/ui/components/OxyPayButton.d.ts.map +1 -0
  188. package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
  189. package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -1
  190. package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts +8 -0
  191. package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -0
  192. package/lib/typescript/ui/components/icon/index.d.ts +1 -0
  193. package/lib/typescript/ui/components/icon/index.d.ts.map +1 -1
  194. package/lib/typescript/ui/components/index.d.ts +1 -0
  195. package/lib/typescript/ui/components/index.d.ts.map +1 -1
  196. package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -1
  197. package/lib/typescript/ui/components/internal/PinInput.d.ts +12 -0
  198. package/lib/typescript/ui/components/internal/PinInput.d.ts.map +1 -0
  199. package/lib/typescript/ui/components/internal/TextField.d.ts +1 -0
  200. package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -1
  201. package/lib/typescript/ui/context/OxyContext.d.ts +0 -2
  202. package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
  203. package/lib/typescript/ui/hooks/index.d.ts +1 -2
  204. package/lib/typescript/ui/hooks/index.d.ts.map +1 -1
  205. package/lib/typescript/ui/hooks/useFollow.d.ts +14 -15
  206. package/lib/typescript/ui/hooks/useFollow.d.ts.map +1 -1
  207. package/lib/typescript/ui/hooks/useSessionSocket.d.ts +11 -0
  208. package/lib/typescript/ui/hooks/useSessionSocket.d.ts.map +1 -0
  209. package/lib/typescript/ui/index.d.ts +2 -5
  210. package/lib/typescript/ui/index.d.ts.map +1 -1
  211. package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
  212. package/lib/typescript/ui/navigation/types.d.ts +5 -23
  213. package/lib/typescript/ui/navigation/types.d.ts.map +1 -1
  214. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  215. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  216. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  217. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
  218. package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -1
  219. package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -1
  220. package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -1
  221. package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +27 -0
  222. package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -0
  223. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  224. package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts +8 -0
  225. package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts.map +1 -0
  226. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  227. package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
  228. package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -1
  229. package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts +27 -0
  230. package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts.map +1 -0
  231. package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts +26 -0
  232. package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts.map +1 -0
  233. package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts +20 -0
  234. package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts.map +1 -0
  235. package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts +24 -0
  236. package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts.map +1 -0
  237. package/lib/typescript/ui/screens/internal/SignUpSummaryStep.d.ts +15 -0
  238. package/lib/typescript/ui/screens/internal/SignUpSummaryStep.d.ts.map +1 -0
  239. package/lib/typescript/ui/screens/internal/SignUpWelcomeStep.d.ts +13 -0
  240. package/lib/typescript/ui/screens/internal/SignUpWelcomeStep.d.ts.map +1 -0
  241. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
  242. package/lib/typescript/ui/stores/authStore.d.ts +16 -0
  243. package/lib/typescript/ui/stores/authStore.d.ts.map +1 -0
  244. package/lib/typescript/ui/stores/followStore.d.ts +15 -0
  245. package/lib/typescript/ui/stores/followStore.d.ts.map +1 -0
  246. package/lib/typescript/ui/styles/index.d.ts +0 -1
  247. package/lib/typescript/ui/styles/index.d.ts.map +1 -1
  248. package/lib/typescript/ui/utils/confirmAction.d.ts +7 -0
  249. package/lib/typescript/ui/utils/confirmAction.d.ts.map +1 -0
  250. package/package.json +12 -7
  251. package/src/core/index.ts +78 -88
  252. package/src/index.ts +8 -45
  253. package/src/models/interfaces.ts +7 -1
  254. package/src/models/secureSession.ts +1 -2
  255. package/src/node/index.ts +0 -3
  256. package/src/ui/components/FollowButton.tsx +100 -322
  257. package/src/ui/components/OxyPayButton.tsx +133 -0
  258. package/src/ui/components/OxyProvider.tsx +39 -201
  259. package/src/ui/components/OxySignInButton.tsx +13 -2
  260. package/src/ui/components/icon/FAIRWalletIcon.tsx +49 -0
  261. package/src/ui/components/icon/index.ts +1 -0
  262. package/src/ui/components/index.ts +1 -0
  263. package/src/ui/components/internal/GroupedPillButtons.tsx +12 -8
  264. package/src/ui/components/internal/PinInput.tsx +102 -0
  265. package/src/ui/components/internal/TextField.tsx +9 -0
  266. package/src/ui/context/OxyContext.tsx +74 -91
  267. package/src/ui/hooks/index.ts +1 -2
  268. package/src/ui/hooks/useFollow.ts +58 -129
  269. package/src/ui/hooks/useSessionSocket.ts +50 -0
  270. package/src/ui/index.ts +2 -37
  271. package/src/ui/navigation/OxyRouter.tsx +47 -63
  272. package/src/ui/navigation/types.ts +5 -26
  273. package/src/ui/screens/AccountCenterScreen.tsx +12 -21
  274. package/src/ui/screens/AccountOverviewScreen.tsx +6 -30
  275. package/src/ui/screens/AccountSettingsScreen.tsx +75 -46
  276. package/src/ui/screens/AccountSwitcherScreen.tsx +46 -88
  277. package/src/ui/screens/AppInfoScreen.tsx +27 -47
  278. package/src/ui/screens/FeedbackScreen.tsx +34 -19
  279. package/src/ui/screens/FileManagementScreen.tsx +293 -321
  280. package/src/ui/screens/PaymentGatewayScreen.tsx +1315 -0
  281. package/src/ui/screens/PremiumSubscriptionScreen.tsx +109 -124
  282. package/src/ui/screens/RecoverAccountScreen.tsx +260 -0
  283. package/src/ui/screens/SessionManagementScreen.tsx +65 -137
  284. package/src/ui/screens/SignInScreen.tsx +89 -283
  285. package/src/ui/screens/SignUpScreen.tsx +138 -291
  286. package/src/ui/screens/internal/SignInPasswordStep.tsx +179 -0
  287. package/src/ui/screens/internal/SignInUsernameStep.tsx +139 -0
  288. package/src/ui/screens/internal/SignUpIdentityStep.tsx +114 -0
  289. package/src/ui/screens/internal/SignUpSecurityStep.tsx +132 -0
  290. package/src/ui/screens/internal/SignUpSummaryStep.tsx +66 -0
  291. package/src/ui/screens/internal/SignUpWelcomeStep.tsx +52 -0
  292. package/src/ui/screens/karma/KarmaRewardsScreen.tsx +13 -3
  293. package/src/ui/stores/authStore.ts +45 -0
  294. package/src/ui/stores/followStore.ts +80 -0
  295. package/src/ui/styles/index.ts +0 -1
  296. package/src/ui/utils/confirmAction.ts +23 -0
  297. package/lib/commonjs/ui/components/bottomSheet/index.js +0 -37
  298. package/lib/commonjs/ui/components/bottomSheet/index.js.map +0 -1
  299. package/lib/commonjs/ui/hooks/useAuthFetch.js +0 -217
  300. package/lib/commonjs/ui/hooks/useAuthFetch.js.map +0 -1
  301. package/lib/commonjs/ui/hooks/useOxyFollow.js +0 -190
  302. package/lib/commonjs/ui/hooks/useOxyFollow.js.map +0 -1
  303. package/lib/commonjs/ui/screens/BillingManagementScreen.js +0 -636
  304. package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +0 -1
  305. package/lib/commonjs/ui/store/index.js +0 -67
  306. package/lib/commonjs/ui/store/index.js.map +0 -1
  307. package/lib/commonjs/ui/store/setupOxyStore.js +0 -63
  308. package/lib/commonjs/ui/store/setupOxyStore.js.map +0 -1
  309. package/lib/commonjs/ui/store/slices/authSlice.js +0 -56
  310. package/lib/commonjs/ui/store/slices/authSlice.js.map +0 -1
  311. package/lib/commonjs/ui/store/slices/followSlice.js +0 -238
  312. package/lib/commonjs/ui/store/slices/followSlice.js.map +0 -1
  313. package/lib/commonjs/ui/store/slices/index.js +0 -129
  314. package/lib/commonjs/ui/store/slices/index.js.map +0 -1
  315. package/lib/commonjs/ui/store/slices/types.js +0 -19
  316. package/lib/commonjs/ui/store/slices/types.js.map +0 -1
  317. package/lib/commonjs/ui/styles/shadows.js +0 -123
  318. package/lib/commonjs/ui/styles/shadows.js.map +0 -1
  319. package/lib/commonjs/utils/polyfills.js +0 -42
  320. package/lib/commonjs/utils/polyfills.js.map +0 -1
  321. package/lib/module/ui/components/bottomSheet/index.js +0 -5
  322. package/lib/module/ui/components/bottomSheet/index.js.map +0 -1
  323. package/lib/module/ui/hooks/useAuthFetch.js +0 -212
  324. package/lib/module/ui/hooks/useAuthFetch.js.map +0 -1
  325. package/lib/module/ui/hooks/useOxyFollow.js +0 -186
  326. package/lib/module/ui/hooks/useOxyFollow.js.map +0 -1
  327. package/lib/module/ui/screens/BillingManagementScreen.js +0 -631
  328. package/lib/module/ui/screens/BillingManagementScreen.js.map +0 -1
  329. package/lib/module/ui/store/index.js +0 -33
  330. package/lib/module/ui/store/index.js.map +0 -1
  331. package/lib/module/ui/store/setupOxyStore.js +0 -59
  332. package/lib/module/ui/store/setupOxyStore.js.map +0 -1
  333. package/lib/module/ui/store/slices/authSlice.js +0 -48
  334. package/lib/module/ui/store/slices/authSlice.js.map +0 -1
  335. package/lib/module/ui/store/slices/followSlice.js +0 -232
  336. package/lib/module/ui/store/slices/followSlice.js.map +0 -1
  337. package/lib/module/ui/store/slices/index.js +0 -11
  338. package/lib/module/ui/store/slices/index.js.map +0 -1
  339. package/lib/module/ui/store/slices/types.js +0 -15
  340. package/lib/module/ui/store/slices/types.js.map +0 -1
  341. package/lib/module/ui/styles/shadows.js +0 -119
  342. package/lib/module/ui/styles/shadows.js.map +0 -1
  343. package/lib/module/utils/polyfills.js +0 -36
  344. package/lib/module/utils/polyfills.js.map +0 -1
  345. package/lib/typescript/types/react-redux.d.ts +0 -5
  346. package/lib/typescript/ui/components/bottomSheet/index.d.ts +0 -4
  347. package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +0 -1
  348. package/lib/typescript/ui/hooks/useAuthFetch.d.ts +0 -34
  349. package/lib/typescript/ui/hooks/useAuthFetch.d.ts.map +0 -1
  350. package/lib/typescript/ui/hooks/useOxyFollow.d.ts +0 -81
  351. package/lib/typescript/ui/hooks/useOxyFollow.d.ts.map +0 -1
  352. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +0 -5
  353. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +0 -1
  354. package/lib/typescript/ui/store/index.d.ts +0 -27
  355. package/lib/typescript/ui/store/index.d.ts.map +0 -1
  356. package/lib/typescript/ui/store/setupOxyStore.d.ts +0 -29
  357. package/lib/typescript/ui/store/setupOxyStore.d.ts.map +0 -1
  358. package/lib/typescript/ui/store/slices/authSlice.d.ts +0 -32
  359. package/lib/typescript/ui/store/slices/authSlice.d.ts.map +0 -1
  360. package/lib/typescript/ui/store/slices/followSlice.d.ts +0 -120
  361. package/lib/typescript/ui/store/slices/followSlice.d.ts.map +0 -1
  362. package/lib/typescript/ui/store/slices/index.d.ts +0 -9
  363. package/lib/typescript/ui/store/slices/index.d.ts.map +0 -1
  364. package/lib/typescript/ui/store/slices/types.d.ts +0 -16
  365. package/lib/typescript/ui/store/slices/types.d.ts.map +0 -1
  366. package/lib/typescript/ui/styles/shadows.d.ts +0 -233
  367. package/lib/typescript/ui/styles/shadows.d.ts.map +0 -1
  368. package/lib/typescript/utils/polyfills.d.ts +0 -6
  369. package/lib/typescript/utils/polyfills.d.ts.map +0 -1
  370. package/src/__tests__/backend-middleware.test.ts +0 -209
  371. package/src/__tests__/polyfills.test.ts +0 -30
  372. package/src/__tests__/setup.ts +0 -43
  373. package/src/__tests__/ui/hooks/authfetch-integration.test.ts +0 -197
  374. package/src/__tests__/ui/hooks/backward-compatibility.test.ts +0 -159
  375. package/src/__tests__/ui/hooks/real-world-scenarios.test.ts +0 -224
  376. package/src/__tests__/ui/hooks/url-resolution.test.ts +0 -129
  377. package/src/__tests__/ui/hooks/useAuthFetch-separation.test.ts +0 -69
  378. package/src/__tests__/ui/hooks/useAuthFetch.test.ts +0 -70
  379. package/src/__tests__/ui/hooks/useOxyFollow.test.tsx +0 -92
  380. package/src/__tests__/ui/screens/AccountSettingsScreen.test.tsx +0 -112
  381. package/src/__tests__/ui/store/setupOxyStore.test.ts +0 -50
  382. package/src/__tests__/validate-structure.js +0 -91
  383. package/src/__tests__/validation.js +0 -42
  384. package/src/types/react-redux.d.ts +0 -5
  385. package/src/ui/components/bottomSheet/index.tsx +0 -14
  386. package/src/ui/hooks/useAuthFetch.ts +0 -238
  387. package/src/ui/hooks/useOxyFollow.ts +0 -188
  388. package/src/ui/screens/BillingManagementScreen.tsx +0 -589
  389. package/src/ui/store/index.ts +0 -36
  390. package/src/ui/store/setupOxyStore.ts +0 -58
  391. package/src/ui/store/slices/authSlice.ts +0 -43
  392. package/src/ui/store/slices/followSlice.ts +0 -207
  393. package/src/ui/store/slices/index.ts +0 -31
  394. package/src/ui/store/slices/types.ts +0 -33
  395. package/src/ui/styles/shadows.ts +0 -112
  396. package/src/utils/polyfills.ts +0 -34
@@ -4,162 +4,79 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useFollow = void 0;
7
- var _reactRedux = require("react-redux");
8
7
  var _react = require("react");
9
- var _store = require("../store");
8
+ var _followStore = require("../stores/followStore");
10
9
  var _OxyContext = require("../context/OxyContext");
11
- // Memoized selector to prevent unnecessary re-renders
12
- const createFollowSelector = userId => state => ({
13
- isFollowing: state.follow.followingUsers[userId] ?? false,
14
- isLoading: state.follow.loadingUsers[userId] ?? false,
15
- error: state.follow.errors[userId] ?? null
16
- });
17
-
18
- // Memoized selector for multiple users
19
- const createMultipleFollowSelector = userIds => state => {
20
- const followData = {};
21
- const followState = state.follow;
22
- for (const userId of userIds) {
23
- followData[userId] = {
24
- isFollowing: followState.followingUsers[userId] ?? false,
25
- isLoading: followState.loadingUsers[userId] ?? false,
26
- error: followState.errors[userId] ?? null
27
- };
28
- }
29
- return {
30
- followData,
31
- isAnyLoading: userIds.some(uid => followState.loadingUsers[uid]),
32
- hasAnyError: userIds.some(uid => followState.errors[uid]),
33
- allFollowing: userIds.every(uid => followState.followingUsers[uid]),
34
- allNotFollowing: userIds.every(uid => !followState.followingUsers[uid])
35
- };
36
- };
37
-
38
- /**
39
- * Custom hook for managing follow/unfollow functionality
40
- * Optimized to prevent unnecessary re-renders
41
- * Can handle both single user and multiple users
42
- */
43
10
  const useFollow = userId => {
44
- const dispatch = (0, _reactRedux.useDispatch)();
45
11
  const {
46
12
  oxyServices
47
13
  } = (0, _OxyContext.useOxy)();
48
-
49
- // Memoize user IDs to prevent recreation on every render
50
- const userIds = (0, _react.useMemo)(() => {
51
- return Array.isArray(userId) ? userId : userId ? [userId] : [];
52
- }, [userId]);
14
+ const userIds = (0, _react.useMemo)(() => Array.isArray(userId) ? userId : userId ? [userId] : [], [userId]);
53
15
  const isSingleUser = typeof userId === 'string';
54
16
 
55
- // Memoize selectors to prevent recreation
56
- const singleUserSelector = (0, _react.useMemo)(() => {
57
- return isSingleUser && userId ? createFollowSelector(userId) : null;
58
- }, [isSingleUser, userId]);
59
- const multipleUserSelector = (0, _react.useMemo)(() => {
60
- return !isSingleUser ? createMultipleFollowSelector(userIds) : null;
61
- }, [isSingleUser, userIds]);
62
-
63
- // Use appropriate selector based on mode
64
- const singleUserData = (0, _reactRedux.useSelector)(singleUserSelector || (() => ({
65
- isFollowing: false,
66
- isLoading: false,
67
- error: null
68
- })));
69
- const multipleUserData = (0, _reactRedux.useSelector)(multipleUserSelector || (() => ({
70
- followData: {},
71
- isAnyLoading: false,
72
- hasAnyError: false,
73
- allFollowing: false,
74
- allNotFollowing: true
75
- })));
17
+ // Zustand selectors
18
+ const followState = (0, _followStore.useFollowStore)();
76
19
 
77
- // Memoized callbacks to prevent recreation on every render
20
+ // Single user helpers
21
+ const isFollowing = isSingleUser && userId ? followState.followingUsers[userId] ?? false : false;
22
+ const isLoading = isSingleUser && userId ? followState.loadingUsers[userId] ?? false : false;
23
+ const error = isSingleUser && userId ? followState.errors[userId] ?? null : null;
78
24
  const toggleFollow = (0, _react.useCallback)(async () => {
79
25
  if (!isSingleUser || !userId) throw new Error('toggleFollow is only available for single user mode');
80
- try {
81
- const result = await dispatch((0, _store.toggleFollowUser)({
82
- userId,
83
- oxyServices,
84
- isCurrentlyFollowing: singleUserData.isFollowing
85
- })).unwrap();
86
- return result;
87
- } catch (error) {
88
- throw error;
89
- }
90
- }, [dispatch, userId, oxyServices, singleUserData.isFollowing, isSingleUser]);
26
+ await followState.toggleFollowUser(userId, oxyServices, isFollowing);
27
+ }, [isSingleUser, userId, followState, oxyServices, isFollowing]);
91
28
  const setFollowStatus = (0, _react.useCallback)(following => {
92
29
  if (!isSingleUser || !userId) throw new Error('setFollowStatus is only available for single user mode');
93
- dispatch((0, _store.setFollowingStatus)({
94
- userId,
95
- isFollowing: following
96
- }));
97
- }, [dispatch, userId, isSingleUser]);
30
+ followState.setFollowingStatus(userId, following);
31
+ }, [isSingleUser, userId, followState]);
98
32
  const fetchStatus = (0, _react.useCallback)(async () => {
99
33
  if (!isSingleUser || !userId) throw new Error('fetchStatus is only available for single user mode');
100
- try {
101
- await dispatch((0, _store.fetchFollowStatus)({
102
- userId,
103
- oxyServices
104
- })).unwrap();
105
- } catch (error) {
106
- console.warn(`Failed to fetch follow status for user ${userId}:`, error);
107
- }
108
- }, [dispatch, userId, oxyServices, isSingleUser]);
34
+ await followState.fetchFollowStatus(userId, oxyServices);
35
+ }, [isSingleUser, userId, followState, oxyServices]);
109
36
  const clearError = (0, _react.useCallback)(() => {
110
37
  if (!isSingleUser || !userId) throw new Error('clearError is only available for single user mode');
111
- dispatch((0, _store.clearFollowError)(userId));
112
- }, [dispatch, userId, isSingleUser]);
38
+ followState.clearFollowError(userId);
39
+ }, [isSingleUser, userId, followState]);
113
40
 
114
- // Multiple user callbacks
41
+ // Multiple user helpers
42
+ const followData = (0, _react.useMemo)(() => {
43
+ const data = {};
44
+ userIds.forEach(uid => {
45
+ data[uid] = {
46
+ isFollowing: followState.followingUsers[uid] ?? false,
47
+ isLoading: followState.loadingUsers[uid] ?? false,
48
+ error: followState.errors[uid] ?? null
49
+ };
50
+ });
51
+ return data;
52
+ }, [userIds, followState.followingUsers, followState.loadingUsers, followState.errors]);
115
53
  const toggleFollowForUser = (0, _react.useCallback)(async targetUserId => {
116
- const currentState = multipleUserData.followData[targetUserId]?.isFollowing ?? false;
117
- try {
118
- const result = await dispatch((0, _store.toggleFollowUser)({
119
- userId: targetUserId,
120
- oxyServices,
121
- isCurrentlyFollowing: currentState
122
- })).unwrap();
123
- return result;
124
- } catch (error) {
125
- throw error;
126
- }
127
- }, [dispatch, oxyServices, multipleUserData.followData]);
54
+ const currentState = followState.followingUsers[targetUserId] ?? false;
55
+ await followState.toggleFollowUser(targetUserId, oxyServices, currentState);
56
+ }, [followState, oxyServices]);
128
57
  const setFollowStatusForUser = (0, _react.useCallback)((targetUserId, following) => {
129
- dispatch((0, _store.setFollowingStatus)({
130
- userId: targetUserId,
131
- isFollowing: following
132
- }));
133
- }, [dispatch]);
58
+ followState.setFollowingStatus(targetUserId, following);
59
+ }, [followState]);
134
60
  const fetchStatusForUser = (0, _react.useCallback)(async targetUserId => {
135
- try {
136
- await dispatch((0, _store.fetchFollowStatus)({
137
- userId: targetUserId,
138
- oxyServices
139
- })).unwrap();
140
- } catch (error) {
141
- console.warn(`Failed to fetch follow status for user ${targetUserId}:`, error);
142
- }
143
- }, [dispatch, oxyServices]);
61
+ await followState.fetchFollowStatus(targetUserId, oxyServices);
62
+ }, [followState, oxyServices]);
144
63
  const fetchAllStatuses = (0, _react.useCallback)(async () => {
145
- const promises = userIds.map(uid => dispatch((0, _store.fetchFollowStatus)({
146
- userId: uid,
147
- oxyServices
148
- })).unwrap().catch(error => {
149
- console.warn(`Failed to fetch follow status for user ${uid}:`, error);
150
- }));
151
- await Promise.all(promises);
152
- }, [dispatch, userIds, oxyServices]);
64
+ await Promise.all(userIds.map(uid => followState.fetchFollowStatus(uid, oxyServices)));
65
+ }, [userIds, followState, oxyServices]);
153
66
  const clearErrorForUser = (0, _react.useCallback)(targetUserId => {
154
- dispatch((0, _store.clearFollowError)(targetUserId));
155
- }, [dispatch]);
67
+ followState.clearFollowError(targetUserId);
68
+ }, [followState]);
156
69
 
157
- // Return appropriate interface based on mode
70
+ // Aggregate helpers for multiple users
71
+ const isAnyLoading = userIds.some(uid => followState.loadingUsers[uid]);
72
+ const hasAnyError = userIds.some(uid => !!followState.errors[uid]);
73
+ const allFollowing = userIds.every(uid => followState.followingUsers[uid]);
74
+ const allNotFollowing = userIds.every(uid => !followState.followingUsers[uid]);
158
75
  if (isSingleUser && userId) {
159
76
  return {
160
- isFollowing: singleUserData.isFollowing,
161
- isLoading: singleUserData.isLoading,
162
- error: singleUserData.error,
77
+ isFollowing,
78
+ isLoading,
79
+ error,
163
80
  toggleFollow,
164
81
  setFollowStatus,
165
82
  fetchStatus,
@@ -167,17 +84,16 @@ const useFollow = userId => {
167
84
  };
168
85
  }
169
86
  return {
170
- followData: multipleUserData.followData,
87
+ followData,
171
88
  toggleFollowForUser,
172
89
  setFollowStatusForUser,
173
90
  fetchStatusForUser,
174
91
  fetchAllStatuses,
175
92
  clearErrorForUser,
176
- // Helper methods
177
- isAnyLoading: multipleUserData.isAnyLoading,
178
- hasAnyError: multipleUserData.hasAnyError,
179
- allFollowing: multipleUserData.allFollowing,
180
- allNotFollowing: multipleUserData.allNotFollowing
93
+ isAnyLoading,
94
+ hasAnyError,
95
+ allFollowing,
96
+ allNotFollowing
181
97
  };
182
98
  };
183
99
  exports.useFollow = useFollow;
@@ -1 +1 @@
1
- {"version":3,"names":["_reactRedux","require","_react","_store","_OxyContext","createFollowSelector","userId","state","isFollowing","follow","followingUsers","isLoading","loadingUsers","error","errors","createMultipleFollowSelector","userIds","followData","followState","isAnyLoading","some","uid","hasAnyError","allFollowing","every","allNotFollowing","useFollow","dispatch","useDispatch","oxyServices","useOxy","useMemo","Array","isArray","isSingleUser","singleUserSelector","multipleUserSelector","singleUserData","useSelector","multipleUserData","toggleFollow","useCallback","Error","result","toggleFollowUser","isCurrentlyFollowing","unwrap","setFollowStatus","following","setFollowingStatus","fetchStatus","fetchFollowStatus","console","warn","clearError","clearFollowError","toggleFollowForUser","targetUserId","currentState","setFollowStatusForUser","fetchStatusForUser","fetchAllStatuses","promises","map","catch","Promise","all","clearErrorForUser","exports"],"sourceRoot":"../../../../src","sources":["ui/hooks/useFollow.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AAEA;AACA,MAAMI,oBAAoB,GAAIC,MAAc,IAAMC,KAAgB,KAAM;EACtEC,WAAW,EAAED,KAAK,CAACE,MAAM,CAACC,cAAc,CAACJ,MAAM,CAAC,IAAI,KAAK;EACzDK,SAAS,EAAEJ,KAAK,CAACE,MAAM,CAACG,YAAY,CAACN,MAAM,CAAC,IAAI,KAAK;EACrDO,KAAK,EAAEN,KAAK,CAACE,MAAM,CAACK,MAAM,CAACR,MAAM,CAAC,IAAI;AACxC,CAAC,CAAC;;AAEF;AACA,MAAMS,4BAA4B,GAAIC,OAAiB,IAAMT,KAAgB,IAAK;EAChF,MAAMU,UAA8F,GAAG,CAAC,CAAC;EACzG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":3,"names":["_react","require","_followStore","_OxyContext","useFollow","userId","oxyServices","useOxy","userIds","useMemo","Array","isArray","isSingleUser","followState","useFollowStore","isFollowing","followingUsers","isLoading","loadingUsers","error","errors","toggleFollow","useCallback","Error","toggleFollowUser","setFollowStatus","following","setFollowingStatus","fetchStatus","fetchFollowStatus","clearError","clearFollowError","followData","data","forEach","uid","toggleFollowForUser","targetUserId","currentState","setFollowStatusForUser","fetchStatusForUser","fetchAllStatuses","Promise","all","map","clearErrorForUser","isAnyLoading","some","hasAnyError","allFollowing","every","allNotFollowing","exports"],"sourceRoot":"../../../../src","sources":["ui/hooks/useFollow.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEO,MAAMG,SAAS,GAAIC,MAA0B,IAAK;EACvD,MAAM;IAAEC;EAAY,CAAC,GAAG,IAAAC,kBAAM,EAAC,CAAC;EAChC,MAAMC,OAAO,GAAG,IAAAC,cAAO,EAAC,MAAOC,KAAK,CAACC,OAAO,CAACN,MAAM,CAAC,GAAGA,MAAM,GAAGA,MAAM,GAAG,CAACA,MAAM,CAAC,GAAG,EAAG,EAAE,CAACA,MAAM,CAAC,CAAC;EAClG,MAAMO,YAAY,GAAG,OAAOP,MAAM,KAAK,QAAQ;;EAE/C;EACA,MAAMQ,WAAW,GAAG,IAAAC,2BAAc,EAAC,CAAC;;EAEpC;EACA,MAAMC,WAAW,GAAGH,YAAY,IAAIP,MAAM,GAAGQ,WAAW,CAACG,cAAc,CAACX,MAAM,CAAC,IAAI,KAAK,GAAG,KAAK;EAChG,MAAMY,SAAS,GAAGL,YAAY,IAAIP,MAAM,GAAGQ,WAAW,CAACK,YAAY,CAACb,MAAM,CAAC,IAAI,KAAK,GAAG,KAAK;EAC5F,MAAMc,KAAK,GAAGP,YAAY,IAAIP,MAAM,GAAGQ,WAAW,CAACO,MAAM,CAACf,MAAM,CAAC,IAAI,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use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useSessionSocket = useSessionSocket;
7
+ var _react = require("react");
8
+ var _socket = _interopRequireDefault(require("socket.io-client"));
9
+ var _sonner = require("../../lib/sonner");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ function useSessionSocket({
12
+ userId,
13
+ activeSessionId,
14
+ refreshSessions,
15
+ logout,
16
+ baseURL,
17
+ onRemoteSignOut
18
+ }) {
19
+ const socketRef = (0, _react.useRef)(null);
20
+ (0, _react.useEffect)(() => {
21
+ if (!userId || !baseURL) return;
22
+ if (!socketRef.current) {
23
+ socketRef.current = (0, _socket.default)(baseURL, {
24
+ transports: ['websocket']
25
+ });
26
+ }
27
+ const socket = socketRef.current;
28
+ socket.on('connect', () => {
29
+ console.log('Socket connected:', socket.id);
30
+ });
31
+ socket.emit('join', {
32
+ userId: `user:${userId}`
33
+ });
34
+ console.log('Emitting join for room:', `user:${userId}`);
35
+ socket.on('session_update', data => {
36
+ console.log('Received session_update:', data);
37
+ if (data.sessionId === activeSessionId) {
38
+ if (onRemoteSignOut) onRemoteSignOut();else _sonner.toast.info('You have been signed out remotely.');
39
+ logout();
40
+ } else {
41
+ refreshSessions();
42
+ }
43
+ });
44
+ return () => {
45
+ socket.emit('leave', {
46
+ userId: `user:${userId}`
47
+ });
48
+ socket.off('session_update');
49
+ };
50
+ }, [userId, baseURL, activeSessionId, refreshSessions, logout, onRemoteSignOut]);
51
+ }
52
+ //# sourceMappingURL=useSessionSocket.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_socket","_interopRequireDefault","_sonner","e","__esModule","default","useSessionSocket","userId","activeSessionId","refreshSessions","logout","baseURL","onRemoteSignOut","socketRef","useRef","useEffect","current","io","transports","socket","on","console","log","id","emit","data","sessionId","toast","info","off"],"sourceRoot":"../../../../src","sources":["ui/hooks/useSessionSocket.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,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C,CAAC;QACrDlB,MAAM,CAAC,CAAC;MACV,CAAC,MAAM;QACLD,eAAe,CAAC,CAAC;MACnB;IACF,CAAC,CAAC;IAEF,OAAO,MAAM;MACXU,MAAM,CAACK,IAAI,CAAC,OAAO,EAAE;QAAEjB,MAAM,EAAE,QAAQA,MAAM;MAAG,CAAC,CAAC;MAClDY,MAAM,CAACU,GAAG,CAAC,gBAAgB,CAAC;IAC9B,CAAC;EACH,CAAC,EAAE,CAACtB,MAAM,EAAEI,OAAO,EAAEH,eAAe,EAAEC,eAAe,EAAEC,MAAM,EAAEE,eAAe,CAAC,CAAC;AAClF","ignoreList":[]}
@@ -9,6 +9,7 @@ var _exportNames = {
9
9
  OxyLogo: true,
10
10
  Avatar: true,
11
11
  FollowButton: true,
12
+ OxyPayButton: true,
12
13
  FontLoader: true,
13
14
  setupFonts: true,
14
15
  OxyIcon: true,
@@ -16,45 +17,12 @@ var _exportNames = {
16
17
  useOxy: true,
17
18
  OxyContextState: true,
18
19
  OxyContextProviderProps: true,
19
- setupOxyStore: true,
20
- oxyReducers: true,
21
- authSlice: true,
22
- authActions: true,
23
- authSelectors: true,
24
- authReducer: true,
25
- followSlice: true,
26
- followActions: true,
27
- followSelectors: true,
28
- followThunks: true,
29
- followReducer: true,
30
- loginStart: true,
31
- loginSuccess: true,
32
- loginFailure: true,
33
- logout: true,
34
- setFollowingStatus: true,
35
- clearFollowError: true,
36
- resetFollowState: true,
37
- fetchFollowStatus: true,
38
- toggleFollowUser: true,
39
- AuthState: true,
40
- FollowState: true,
41
- initialAuthState: true,
42
- initialFollowState: true,
43
- store: true,
44
20
  fontFamilies: true,
45
21
  fontStyles: true,
46
- useOxyFollow: true,
47
22
  useFollow: true,
48
- useAuthFetch: true,
49
23
  ProfileScreen: true,
50
24
  OxyRouter: true
51
25
  };
52
- Object.defineProperty(exports, "AuthState", {
53
- enumerable: true,
54
- get: function () {
55
- return _store.AuthState;
56
- }
57
- });
58
26
  Object.defineProperty(exports, "Avatar", {
59
27
  enumerable: true,
60
28
  get: function () {
@@ -67,12 +35,6 @@ Object.defineProperty(exports, "FollowButton", {
67
35
  return _FollowButton.default;
68
36
  }
69
37
  });
70
- Object.defineProperty(exports, "FollowState", {
71
- enumerable: true,
72
- get: function () {
73
- return _store.FollowState;
74
- }
75
- });
76
38
  Object.defineProperty(exports, "FontLoader", {
77
39
  enumerable: true,
78
40
  get: function () {
@@ -109,6 +71,12 @@ Object.defineProperty(exports, "OxyLogo", {
109
71
  return _OxyLogo.default;
110
72
  }
111
73
  });
74
+ Object.defineProperty(exports, "OxyPayButton", {
75
+ enumerable: true,
76
+ get: function () {
77
+ return _OxyPayButton.default;
78
+ }
79
+ });
112
80
  Object.defineProperty(exports, "OxyProvider", {
113
81
  enumerable: true,
114
82
  get: function () {
@@ -133,72 +101,6 @@ Object.defineProperty(exports, "ProfileScreen", {
133
101
  return _ProfileScreen.default;
134
102
  }
135
103
  });
136
- Object.defineProperty(exports, "authActions", {
137
- enumerable: true,
138
- get: function () {
139
- return _store.authActions;
140
- }
141
- });
142
- Object.defineProperty(exports, "authReducer", {
143
- enumerable: true,
144
- get: function () {
145
- return _store.authReducer;
146
- }
147
- });
148
- Object.defineProperty(exports, "authSelectors", {
149
- enumerable: true,
150
- get: function () {
151
- return _store.authSelectors;
152
- }
153
- });
154
- Object.defineProperty(exports, "authSlice", {
155
- enumerable: true,
156
- get: function () {
157
- return _store.authSlice;
158
- }
159
- });
160
- Object.defineProperty(exports, "clearFollowError", {
161
- enumerable: true,
162
- get: function () {
163
- return _store.clearFollowError;
164
- }
165
- });
166
- Object.defineProperty(exports, "fetchFollowStatus", {
167
- enumerable: true,
168
- get: function () {
169
- return _store.fetchFollowStatus;
170
- }
171
- });
172
- Object.defineProperty(exports, "followActions", {
173
- enumerable: true,
174
- get: function () {
175
- return _store.followActions;
176
- }
177
- });
178
- Object.defineProperty(exports, "followReducer", {
179
- enumerable: true,
180
- get: function () {
181
- return _store.followReducer;
182
- }
183
- });
184
- Object.defineProperty(exports, "followSelectors", {
185
- enumerable: true,
186
- get: function () {
187
- return _store.followSelectors;
188
- }
189
- });
190
- Object.defineProperty(exports, "followSlice", {
191
- enumerable: true,
192
- get: function () {
193
- return _store.followSlice;
194
- }
195
- });
196
- Object.defineProperty(exports, "followThunks", {
197
- enumerable: true,
198
- get: function () {
199
- return _store.followThunks;
200
- }
201
- });
202
104
  Object.defineProperty(exports, "fontFamilies", {
203
105
  enumerable: true,
204
106
  get: function () {
@@ -211,90 +113,12 @@ Object.defineProperty(exports, "fontStyles", {
211
113
  return _fonts.fontStyles;
212
114
  }
213
115
  });
214
- Object.defineProperty(exports, "initialAuthState", {
215
- enumerable: true,
216
- get: function () {
217
- return _store.initialAuthState;
218
- }
219
- });
220
- Object.defineProperty(exports, "initialFollowState", {
221
- enumerable: true,
222
- get: function () {
223
- return _store.initialFollowState;
224
- }
225
- });
226
- Object.defineProperty(exports, "loginFailure", {
227
- enumerable: true,
228
- get: function () {
229
- return _store.loginFailure;
230
- }
231
- });
232
- Object.defineProperty(exports, "loginStart", {
233
- enumerable: true,
234
- get: function () {
235
- return _store.loginStart;
236
- }
237
- });
238
- Object.defineProperty(exports, "loginSuccess", {
239
- enumerable: true,
240
- get: function () {
241
- return _store.loginSuccess;
242
- }
243
- });
244
- Object.defineProperty(exports, "logout", {
245
- enumerable: true,
246
- get: function () {
247
- return _store.logout;
248
- }
249
- });
250
- Object.defineProperty(exports, "oxyReducers", {
251
- enumerable: true,
252
- get: function () {
253
- return _store.oxyReducers;
254
- }
255
- });
256
- Object.defineProperty(exports, "resetFollowState", {
257
- enumerable: true,
258
- get: function () {
259
- return _store.resetFollowState;
260
- }
261
- });
262
- Object.defineProperty(exports, "setFollowingStatus", {
263
- enumerable: true,
264
- get: function () {
265
- return _store.setFollowingStatus;
266
- }
267
- });
268
116
  Object.defineProperty(exports, "setupFonts", {
269
117
  enumerable: true,
270
118
  get: function () {
271
119
  return _FontLoader.setupFonts;
272
120
  }
273
121
  });
274
- Object.defineProperty(exports, "setupOxyStore", {
275
- enumerable: true,
276
- get: function () {
277
- return _store.setupOxyStore;
278
- }
279
- });
280
- Object.defineProperty(exports, "store", {
281
- enumerable: true,
282
- get: function () {
283
- return _store.store;
284
- }
285
- });
286
- Object.defineProperty(exports, "toggleFollowUser", {
287
- enumerable: true,
288
- get: function () {
289
- return _store.toggleFollowUser;
290
- }
291
- });
292
- Object.defineProperty(exports, "useAuthFetch", {
293
- enumerable: true,
294
- get: function () {
295
- return _useAuthFetch.default;
296
- }
297
- });
298
122
  Object.defineProperty(exports, "useFollow", {
299
123
  enumerable: true,
300
124
  get: function () {
@@ -307,21 +131,15 @@ Object.defineProperty(exports, "useOxy", {
307
131
  return _OxyContext.useOxy;
308
132
  }
309
133
  });
310
- Object.defineProperty(exports, "useOxyFollow", {
311
- enumerable: true,
312
- get: function () {
313
- return _hooks.useOxyFollow;
314
- }
315
- });
316
134
  var _OxyProvider = _interopRequireDefault(require("./components/OxyProvider"));
317
135
  var _OxySignInButton = _interopRequireDefault(require("./components/OxySignInButton"));
318
136
  var _OxyLogo = _interopRequireDefault(require("./components/OxyLogo"));
319
137
  var _Avatar = _interopRequireDefault(require("./components/Avatar"));
320
138
  var _FollowButton = _interopRequireDefault(require("./components/FollowButton"));
139
+ var _OxyPayButton = _interopRequireDefault(require("./components/OxyPayButton"));
321
140
  var _FontLoader = require("./components/FontLoader");
322
141
  var _icon = require("./components/icon");
323
142
  var _OxyContext = require("./context/OxyContext");
324
- var _store = require("./store");
325
143
  var _fonts = require("./styles/fonts");
326
144
  var _types = require("./navigation/types");
327
145
  Object.keys(_types).forEach(function (key) {
@@ -336,7 +154,6 @@ Object.keys(_types).forEach(function (key) {
336
154
  });
337
155
  });
338
156
  var _hooks = require("./hooks");
339
- var _useAuthFetch = _interopRequireDefault(require("./hooks/useAuthFetch"));
340
157
  var _ProfileScreen = _interopRequireDefault(require("./screens/ProfileScreen"));
341
158
  var _OxyRouter = _interopRequireDefault(require("./navigation/OxyRouter"));
342
159
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -1 +1 @@
1
- {"version":3,"names":["_OxyProvider","_interopRequireDefault","require","_OxySignInButton","_OxyLogo","_Avatar","_FollowButton","_FontLoader","_icon","_OxyContext","_store","_fonts","_types","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_hooks","_useAuthFetch","_ProfileScreen","_OxyRouter","e","__esModule","default"],"sourceRoot":"../../../src","sources":["ui/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAGA,IAAAM,KAAA,GAAAN,OAAA;AAGA,IAAAO,WAAA,GAAAP,OAAA;AAQA,IAAAQ,MAAA,GAAAR,OAAA;AAmCA,IAAAS,MAAA,GAAAT,OAAA;AAGA,IAAAU,MAAA,GAAAV,OAAA;AAAAW,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,MAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAGA,IAAAS,MAAA,GAAAvB,OAAA;AACA,IAAAwB,aAAA,GAAAzB,sBAAA,CAAAC,OAAA;AAGA,IAAAyB,cAAA,GAAA1B,sBAAA,CAAAC,OAAA;AAGA,IAAA0B,UAAA,GAAA3B,sBAAA,CAAAC,OAAA;AAA8D,SAAAD,uBAAA4B,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
1
+ {"version":3,"names":["_OxyProvider","_interopRequireDefault","require","_OxySignInButton","_OxyLogo","_Avatar","_FollowButton","_OxyPayButton","_FontLoader","_icon","_OxyContext","_fonts","_types","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_hooks","_ProfileScreen","_OxyRouter","e","__esModule","default"],"sourceRoot":"../../../src","sources":["ui/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,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