@oxyhq/services 5.5.9 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -2
- package/lib/commonjs/core/index.js +69 -82
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/commonjs/index.js +24 -183
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/node/index.js +0 -2
- package/lib/commonjs/node/index.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +100 -229
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyPayButton.js +131 -0
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -0
- package/lib/commonjs/ui/components/OxyProvider.js +41 -198
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +15 -2
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js +66 -0
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js.map +1 -0
- package/lib/commonjs/ui/components/icon/index.js +7 -0
- package/lib/commonjs/ui/components/icon/index.js.map +1 -1
- package/lib/commonjs/ui/components/index.js +7 -0
- package/lib/commonjs/ui/components/index.js.map +1 -1
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +14 -7
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/commonjs/ui/components/internal/PinInput.js +108 -0
- package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -0
- package/lib/commonjs/ui/components/internal/TextField.js +20 -0
- package/lib/commonjs/ui/components/internal/TextField.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +26 -36
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/index.js +2 -15
- package/lib/commonjs/ui/hooks/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js +52 -136
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionSocket.js +52 -0
- package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -0
- package/lib/commonjs/ui/index.js +8 -191
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/OxyRouter.js +52 -60
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +18 -30
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +4 -22
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +6 -14
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +37 -66
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +21 -44
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +44 -23
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +59 -78
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +1588 -0
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +22 -36
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js +269 -0
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +47 -69
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +99 -333
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignUpScreen.js +136 -340
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js +192 -0
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js.map +1 -0
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js +135 -0
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js.map +1 -0
- package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js +108 -0
- package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js.map +1 -0
- package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js +126 -0
- package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js.map +1 -0
- package/lib/commonjs/ui/screens/internal/SignUpSummaryStep.js +84 -0
- package/lib/commonjs/ui/screens/internal/SignUpSummaryStep.js.map +1 -0
- package/lib/commonjs/ui/screens/internal/SignUpWelcomeStep.js +59 -0
- package/lib/commonjs/ui/screens/internal/SignUpWelcomeStep.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +15 -2
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/stores/authStore.js +31 -0
- package/lib/commonjs/ui/stores/authStore.js.map +1 -0
- package/lib/commonjs/ui/stores/followStore.js +124 -0
- package/lib/commonjs/ui/stores/followStore.js.map +1 -0
- package/lib/commonjs/ui/styles/index.js +0 -11
- package/lib/commonjs/ui/styles/index.js.map +1 -1
- package/lib/commonjs/ui/utils/confirmAction.js +28 -0
- package/lib/commonjs/ui/utils/confirmAction.js.map +1 -0
- package/lib/module/core/index.js +69 -81
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/index.js +14 -17
- package/lib/module/index.js.map +1 -1
- package/lib/module/node/index.js +0 -3
- package/lib/module/node/index.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +100 -229
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/OxyPayButton.js +125 -0
- package/lib/module/ui/components/OxyPayButton.js.map +1 -0
- package/lib/module/ui/components/OxyProvider.js +42 -199
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +15 -2
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/icon/FAIRWalletIcon.js +60 -0
- package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +1 -0
- package/lib/module/ui/components/icon/index.js +1 -0
- package/lib/module/ui/components/icon/index.js.map +1 -1
- package/lib/module/ui/components/index.js +1 -0
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +15 -8
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/module/ui/components/internal/PinInput.js +103 -0
- package/lib/module/ui/components/internal/PinInput.js.map +1 -0
- package/lib/module/ui/components/internal/TextField.js +20 -0
- package/lib/module/ui/components/internal/TextField.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +26 -36
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/index.js +1 -2
- package/lib/module/ui/hooks/index.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.js +52 -137
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useSessionSocket.js +47 -0
- package/lib/module/ui/hooks/useSessionSocket.js.map +1 -0
- package/lib/module/ui/index.js +2 -13
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/OxyRouter.js +53 -61
- package/lib/module/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +6 -18
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +5 -23
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +7 -15
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +38 -67
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +22 -45
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +44 -23
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +59 -78
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +1583 -0
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +23 -37
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/RecoverAccountScreen.js +263 -0
- package/lib/module/ui/screens/RecoverAccountScreen.js.map +1 -0
- package/lib/module/ui/screens/SessionManagementScreen.js +47 -69
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInScreen.js +100 -334
- package/lib/module/ui/screens/SignInScreen.js.map +1 -1
- package/lib/module/ui/screens/SignUpScreen.js +137 -341
- package/lib/module/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/module/ui/screens/internal/SignInPasswordStep.js +186 -0
- package/lib/module/ui/screens/internal/SignInPasswordStep.js.map +1 -0
- package/lib/module/ui/screens/internal/SignInUsernameStep.js +129 -0
- package/lib/module/ui/screens/internal/SignInUsernameStep.js.map +1 -0
- package/lib/module/ui/screens/internal/SignUpIdentityStep.js +102 -0
- package/lib/module/ui/screens/internal/SignUpIdentityStep.js.map +1 -0
- package/lib/module/ui/screens/internal/SignUpSecurityStep.js +120 -0
- package/lib/module/ui/screens/internal/SignUpSecurityStep.js.map +1 -0
- package/lib/module/ui/screens/internal/SignUpSummaryStep.js +79 -0
- package/lib/module/ui/screens/internal/SignUpSummaryStep.js.map +1 -0
- package/lib/module/ui/screens/internal/SignUpWelcomeStep.js +54 -0
- package/lib/module/ui/screens/internal/SignUpWelcomeStep.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +16 -3
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/stores/authStore.js +27 -0
- package/lib/module/ui/stores/authStore.js.map +1 -0
- package/lib/module/ui/stores/followStore.js +120 -0
- package/lib/module/ui/stores/followStore.js.map +1 -0
- package/lib/module/ui/styles/index.js +0 -1
- package/lib/module/ui/styles/index.js.map +1 -1
- package/lib/module/ui/utils/confirmAction.js +25 -0
- package/lib/module/ui/utils/confirmAction.js.map +1 -0
- package/lib/typescript/core/index.d.ts +28 -10
- package/lib/typescript/core/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +5 -4
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/models/secureSession.d.ts +0 -1
- package/lib/typescript/models/secureSession.d.ts.map +1 -1
- package/lib/typescript/node/index.d.ts +0 -1
- package/lib/typescript/node/index.d.ts.map +1 -1
- package/lib/typescript/ui/components/FollowButton.d.ts +1 -77
- package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/ui/components/OxyPayButton.d.ts +29 -0
- package/lib/typescript/ui/components/OxyPayButton.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts +8 -0
- package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -0
- package/lib/typescript/ui/components/icon/index.d.ts +1 -0
- package/lib/typescript/ui/components/icon/index.d.ts.map +1 -1
- package/lib/typescript/ui/components/index.d.ts +1 -0
- package/lib/typescript/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -1
- package/lib/typescript/ui/components/internal/PinInput.d.ts +12 -0
- package/lib/typescript/ui/components/internal/PinInput.d.ts.map +1 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts +1 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +0 -2
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/index.d.ts +1 -2
- package/lib/typescript/ui/hooks/index.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useFollow.d.ts +14 -15
- package/lib/typescript/ui/hooks/useFollow.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useSessionSocket.d.ts +11 -0
- package/lib/typescript/ui/hooks/useSessionSocket.d.ts.map +1 -0
- package/lib/typescript/ui/index.d.ts +2 -5
- package/lib/typescript/ui/index.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/types.d.ts +5 -23
- package/lib/typescript/ui/navigation/types.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +27 -0
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts +8 -0
- package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts +27 -0
- package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts +26 -0
- package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts +20 -0
- package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts +24 -0
- package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/internal/SignUpSummaryStep.d.ts +15 -0
- package/lib/typescript/ui/screens/internal/SignUpSummaryStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/internal/SignUpWelcomeStep.d.ts +13 -0
- package/lib/typescript/ui/screens/internal/SignUpWelcomeStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/stores/authStore.d.ts +14 -0
- package/lib/typescript/ui/stores/authStore.d.ts.map +1 -0
- package/lib/typescript/ui/stores/followStore.d.ts +15 -0
- package/lib/typescript/ui/stores/followStore.d.ts.map +1 -0
- package/lib/typescript/ui/styles/index.d.ts +0 -1
- package/lib/typescript/ui/styles/index.d.ts.map +1 -1
- package/lib/typescript/ui/utils/confirmAction.d.ts +7 -0
- package/lib/typescript/ui/utils/confirmAction.d.ts.map +1 -0
- package/package.json +12 -7
- package/src/core/index.ts +78 -88
- package/src/index.ts +8 -45
- package/src/models/secureSession.ts +1 -2
- package/src/node/index.ts +0 -3
- package/src/ui/components/FollowButton.tsx +100 -322
- package/src/ui/components/OxyPayButton.tsx +133 -0
- package/src/ui/components/OxyProvider.tsx +39 -201
- package/src/ui/components/OxySignInButton.tsx +13 -2
- package/src/ui/components/icon/FAIRWalletIcon.tsx +49 -0
- package/src/ui/components/icon/index.ts +1 -0
- package/src/ui/components/index.ts +1 -0
- package/src/ui/components/internal/GroupedPillButtons.tsx +12 -8
- package/src/ui/components/internal/PinInput.tsx +102 -0
- package/src/ui/components/internal/TextField.tsx +9 -0
- package/src/ui/context/OxyContext.tsx +26 -40
- package/src/ui/hooks/index.ts +1 -2
- package/src/ui/hooks/useFollow.ts +58 -129
- package/src/ui/hooks/useSessionSocket.ts +50 -0
- package/src/ui/index.ts +2 -37
- package/src/ui/navigation/OxyRouter.tsx +47 -63
- package/src/ui/navigation/types.ts +5 -26
- package/src/ui/screens/AccountCenterScreen.tsx +12 -21
- package/src/ui/screens/AccountOverviewScreen.tsx +6 -30
- package/src/ui/screens/AccountSettingsScreen.tsx +7 -22
- package/src/ui/screens/AccountSwitcherScreen.tsx +46 -88
- package/src/ui/screens/AppInfoScreen.tsx +27 -47
- package/src/ui/screens/FeedbackScreen.tsx +34 -19
- package/src/ui/screens/FileManagementScreen.tsx +293 -321
- package/src/ui/screens/PaymentGatewayScreen.tsx +1315 -0
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +109 -124
- package/src/ui/screens/RecoverAccountScreen.tsx +260 -0
- package/src/ui/screens/SessionManagementScreen.tsx +65 -137
- package/src/ui/screens/SignInScreen.tsx +89 -283
- package/src/ui/screens/SignUpScreen.tsx +138 -291
- package/src/ui/screens/internal/SignInPasswordStep.tsx +179 -0
- package/src/ui/screens/internal/SignInUsernameStep.tsx +139 -0
- package/src/ui/screens/internal/SignUpIdentityStep.tsx +114 -0
- package/src/ui/screens/internal/SignUpSecurityStep.tsx +132 -0
- package/src/ui/screens/internal/SignUpSummaryStep.tsx +66 -0
- package/src/ui/screens/internal/SignUpWelcomeStep.tsx +52 -0
- package/src/ui/screens/karma/KarmaRewardsScreen.tsx +13 -3
- package/src/ui/stores/authStore.ts +24 -0
- package/src/ui/stores/followStore.ts +80 -0
- package/src/ui/styles/index.ts +0 -1
- package/src/ui/utils/confirmAction.ts +23 -0
- package/lib/commonjs/ui/components/bottomSheet/index.js +0 -37
- package/lib/commonjs/ui/components/bottomSheet/index.js.map +0 -1
- package/lib/commonjs/ui/hooks/useAuthFetch.js +0 -217
- package/lib/commonjs/ui/hooks/useAuthFetch.js.map +0 -1
- package/lib/commonjs/ui/hooks/useOxyFollow.js +0 -190
- package/lib/commonjs/ui/hooks/useOxyFollow.js.map +0 -1
- package/lib/commonjs/ui/screens/BillingManagementScreen.js +0 -636
- package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/store/index.js +0 -67
- package/lib/commonjs/ui/store/index.js.map +0 -1
- package/lib/commonjs/ui/store/setupOxyStore.js +0 -63
- package/lib/commonjs/ui/store/setupOxyStore.js.map +0 -1
- package/lib/commonjs/ui/store/slices/authSlice.js +0 -56
- package/lib/commonjs/ui/store/slices/authSlice.js.map +0 -1
- package/lib/commonjs/ui/store/slices/followSlice.js +0 -238
- package/lib/commonjs/ui/store/slices/followSlice.js.map +0 -1
- package/lib/commonjs/ui/store/slices/index.js +0 -129
- package/lib/commonjs/ui/store/slices/index.js.map +0 -1
- package/lib/commonjs/ui/store/slices/types.js +0 -19
- package/lib/commonjs/ui/store/slices/types.js.map +0 -1
- package/lib/commonjs/ui/styles/shadows.js +0 -123
- package/lib/commonjs/ui/styles/shadows.js.map +0 -1
- package/lib/commonjs/utils/polyfills.js +0 -42
- package/lib/commonjs/utils/polyfills.js.map +0 -1
- package/lib/module/ui/components/bottomSheet/index.js +0 -5
- package/lib/module/ui/components/bottomSheet/index.js.map +0 -1
- package/lib/module/ui/hooks/useAuthFetch.js +0 -212
- package/lib/module/ui/hooks/useAuthFetch.js.map +0 -1
- package/lib/module/ui/hooks/useOxyFollow.js +0 -186
- package/lib/module/ui/hooks/useOxyFollow.js.map +0 -1
- package/lib/module/ui/screens/BillingManagementScreen.js +0 -631
- package/lib/module/ui/screens/BillingManagementScreen.js.map +0 -1
- package/lib/module/ui/store/index.js +0 -33
- package/lib/module/ui/store/index.js.map +0 -1
- package/lib/module/ui/store/setupOxyStore.js +0 -59
- package/lib/module/ui/store/setupOxyStore.js.map +0 -1
- package/lib/module/ui/store/slices/authSlice.js +0 -48
- package/lib/module/ui/store/slices/authSlice.js.map +0 -1
- package/lib/module/ui/store/slices/followSlice.js +0 -232
- package/lib/module/ui/store/slices/followSlice.js.map +0 -1
- package/lib/module/ui/store/slices/index.js +0 -11
- package/lib/module/ui/store/slices/index.js.map +0 -1
- package/lib/module/ui/store/slices/types.js +0 -15
- package/lib/module/ui/store/slices/types.js.map +0 -1
- package/lib/module/ui/styles/shadows.js +0 -119
- package/lib/module/ui/styles/shadows.js.map +0 -1
- package/lib/module/utils/polyfills.js +0 -36
- package/lib/module/utils/polyfills.js.map +0 -1
- package/lib/typescript/types/react-redux.d.ts +0 -5
- package/lib/typescript/ui/components/bottomSheet/index.d.ts +0 -4
- package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useAuthFetch.d.ts +0 -34
- package/lib/typescript/ui/hooks/useAuthFetch.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useOxyFollow.d.ts +0 -81
- package/lib/typescript/ui/hooks/useOxyFollow.d.ts.map +0 -1
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/store/index.d.ts +0 -27
- package/lib/typescript/ui/store/index.d.ts.map +0 -1
- package/lib/typescript/ui/store/setupOxyStore.d.ts +0 -29
- package/lib/typescript/ui/store/setupOxyStore.d.ts.map +0 -1
- package/lib/typescript/ui/store/slices/authSlice.d.ts +0 -32
- package/lib/typescript/ui/store/slices/authSlice.d.ts.map +0 -1
- package/lib/typescript/ui/store/slices/followSlice.d.ts +0 -120
- package/lib/typescript/ui/store/slices/followSlice.d.ts.map +0 -1
- package/lib/typescript/ui/store/slices/index.d.ts +0 -9
- package/lib/typescript/ui/store/slices/index.d.ts.map +0 -1
- package/lib/typescript/ui/store/slices/types.d.ts +0 -16
- package/lib/typescript/ui/store/slices/types.d.ts.map +0 -1
- package/lib/typescript/ui/styles/shadows.d.ts +0 -233
- package/lib/typescript/ui/styles/shadows.d.ts.map +0 -1
- package/lib/typescript/utils/polyfills.d.ts +0 -6
- package/lib/typescript/utils/polyfills.d.ts.map +0 -1
- package/src/__tests__/backend-middleware.test.ts +0 -209
- package/src/__tests__/polyfills.test.ts +0 -30
- package/src/__tests__/setup.ts +0 -43
- package/src/__tests__/ui/hooks/authfetch-integration.test.ts +0 -197
- package/src/__tests__/ui/hooks/backward-compatibility.test.ts +0 -159
- package/src/__tests__/ui/hooks/real-world-scenarios.test.ts +0 -224
- package/src/__tests__/ui/hooks/url-resolution.test.ts +0 -129
- package/src/__tests__/ui/hooks/useAuthFetch-separation.test.ts +0 -69
- package/src/__tests__/ui/hooks/useAuthFetch.test.ts +0 -70
- package/src/__tests__/ui/hooks/useOxyFollow.test.tsx +0 -92
- package/src/__tests__/ui/screens/AccountSettingsScreen.test.tsx +0 -112
- package/src/__tests__/ui/store/setupOxyStore.test.ts +0 -50
- package/src/__tests__/validate-structure.js +0 -91
- package/src/__tests__/validation.js +0 -42
- package/src/types/react-redux.d.ts +0 -5
- package/src/ui/components/bottomSheet/index.tsx +0 -14
- package/src/ui/hooks/useAuthFetch.ts +0 -238
- package/src/ui/hooks/useOxyFollow.ts +0 -188
- package/src/ui/screens/BillingManagementScreen.tsx +0 -589
- package/src/ui/store/index.ts +0 -36
- package/src/ui/store/setupOxyStore.ts +0 -58
- package/src/ui/store/slices/authSlice.ts +0 -43
- package/src/ui/store/slices/followSlice.ts +0 -207
- package/src/ui/store/slices/index.ts +0 -31
- package/src/ui/store/slices/types.ts +0 -33
- package/src/ui/styles/shadows.ts +0 -112
- package/src/utils/polyfills.ts +0 -34
package/lib/commonjs/ui/index.js
CHANGED
|
@@ -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","
|
|
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,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAGA,IAAAO,KAAA,GAAAP,OAAA;AAGA,IAAAQ,WAAA,GAAAR,OAAA;AAQA,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;AAGA,IAAAwB,cAAA,GAAAzB,sBAAA,CAAAC,OAAA;AAGA,IAAAyB,UAAA,GAAA1B,sBAAA,CAAAC,OAAA;AAA8D,SAAAD,uBAAA2B,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -14,7 +14,6 @@ var _SessionManagementScreen = _interopRequireDefault(require("../screens/Sessio
|
|
|
14
14
|
var _AccountOverviewScreen = _interopRequireDefault(require("../screens/AccountOverviewScreen"));
|
|
15
15
|
var _AccountSettingsScreen = _interopRequireDefault(require("../screens/AccountSettingsScreen"));
|
|
16
16
|
var _PremiumSubscriptionScreen = _interopRequireDefault(require("../screens/PremiumSubscriptionScreen"));
|
|
17
|
-
var _BillingManagementScreen = _interopRequireDefault(require("../screens/BillingManagementScreen"));
|
|
18
17
|
var _AppInfoScreen = _interopRequireDefault(require("../screens/AppInfoScreen"));
|
|
19
18
|
var _FeedbackScreen = _interopRequireDefault(require("../screens/FeedbackScreen"));
|
|
20
19
|
var _KarmaCenterScreen = _interopRequireDefault(require("../screens/karma/KarmaCenterScreen"));
|
|
@@ -25,6 +24,8 @@ var _KarmaRewardsScreen = _interopRequireDefault(require("../screens/karma/Karma
|
|
|
25
24
|
var _KarmaFAQScreen = _interopRequireDefault(require("../screens/karma/KarmaFAQScreen"));
|
|
26
25
|
var _ProfileScreen = _interopRequireDefault(require("../screens/ProfileScreen"));
|
|
27
26
|
var _FileManagementScreen = _interopRequireDefault(require("../screens/FileManagementScreen"));
|
|
27
|
+
var _RecoverAccountScreen = _interopRequireDefault(require("../screens/RecoverAccountScreen"));
|
|
28
|
+
var _PaymentGatewayScreen = _interopRequireDefault(require("../screens/PaymentGatewayScreen"));
|
|
28
29
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
30
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
31
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -42,6 +43,10 @@ const routes = {
|
|
|
42
43
|
component: _SignUpScreen.default,
|
|
43
44
|
snapPoints: ['10%', '90%']
|
|
44
45
|
},
|
|
46
|
+
RecoverAccount: {
|
|
47
|
+
component: _RecoverAccountScreen.default,
|
|
48
|
+
snapPoints: ['10%', '80%']
|
|
49
|
+
},
|
|
45
50
|
AccountCenter: {
|
|
46
51
|
component: _AccountCenterScreen.default,
|
|
47
52
|
snapPoints: ['60%', '100%']
|
|
@@ -66,10 +71,6 @@ const routes = {
|
|
|
66
71
|
component: _PremiumSubscriptionScreen.default,
|
|
67
72
|
snapPoints: ['70%', '100%']
|
|
68
73
|
},
|
|
69
|
-
BillingManagement: {
|
|
70
|
-
component: _BillingManagementScreen.default,
|
|
71
|
-
snapPoints: ['70%', '100%']
|
|
72
|
-
},
|
|
73
74
|
AppInfo: {
|
|
74
75
|
component: _AppInfoScreen.default,
|
|
75
76
|
snapPoints: ['60%', '90%']
|
|
@@ -109,6 +110,10 @@ const routes = {
|
|
|
109
110
|
FileManagement: {
|
|
110
111
|
component: _FileManagementScreen.default,
|
|
111
112
|
snapPoints: ['70%', '100%']
|
|
113
|
+
},
|
|
114
|
+
PaymentGateway: {
|
|
115
|
+
component: _PaymentGatewayScreen.default,
|
|
116
|
+
snapPoints: ['60%', '90%']
|
|
112
117
|
}
|
|
113
118
|
};
|
|
114
119
|
const OxyRouter = ({
|
|
@@ -123,25 +128,47 @@ const OxyRouter = ({
|
|
|
123
128
|
}) => {
|
|
124
129
|
const [currentScreen, setCurrentScreen] = (0, _react.useState)(initialScreen);
|
|
125
130
|
const [screenHistory, setScreenHistory] = (0, _react.useState)([initialScreen]);
|
|
126
|
-
|
|
131
|
+
// Store props per screen for correct restoration on back
|
|
132
|
+
const [screenPropsMap, setScreenPropsMap] = (0, _react.useState)({
|
|
133
|
+
[initialScreen]: {}
|
|
134
|
+
});
|
|
127
135
|
|
|
128
136
|
// Update snap points when the screen changes
|
|
129
137
|
(0, _react.useEffect)(() => {
|
|
130
|
-
if (routes[currentScreen]) {
|
|
138
|
+
if (routes[currentScreen] && typeof adjustSnapPoints === 'function') {
|
|
131
139
|
adjustSnapPoints(routes[currentScreen].snapPoints);
|
|
132
140
|
}
|
|
133
141
|
}, [currentScreen, adjustSnapPoints]);
|
|
134
142
|
|
|
135
|
-
//
|
|
136
|
-
const navigate = (screen, props = {}) => {
|
|
143
|
+
// Memoized navigation methods
|
|
144
|
+
const navigate = (0, _react.useCallback)((screen, props = {}) => {
|
|
137
145
|
if (routes[screen]) {
|
|
138
146
|
setCurrentScreen(screen);
|
|
139
147
|
setScreenHistory(prev => [...prev, screen]);
|
|
140
|
-
|
|
148
|
+
setScreenPropsMap(prev => ({
|
|
149
|
+
...prev,
|
|
150
|
+
[screen]: props
|
|
151
|
+
}));
|
|
141
152
|
} else {
|
|
142
|
-
|
|
153
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
154
|
+
console.error(`Screen "${screen}" not found`);
|
|
155
|
+
}
|
|
143
156
|
}
|
|
144
|
-
};
|
|
157
|
+
}, []);
|
|
158
|
+
const goBack = (0, _react.useCallback)(() => {
|
|
159
|
+
setScreenHistory(prev => {
|
|
160
|
+
if (prev.length > 1) {
|
|
161
|
+
const newHistory = [...prev];
|
|
162
|
+
newHistory.pop();
|
|
163
|
+
const previousScreen = newHistory[newHistory.length - 1];
|
|
164
|
+
setCurrentScreen(previousScreen);
|
|
165
|
+
return newHistory;
|
|
166
|
+
} else {
|
|
167
|
+
if (onClose) onClose();
|
|
168
|
+
return prev;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
}, [onClose]);
|
|
145
172
|
|
|
146
173
|
// Expose the navigate function to the parent component
|
|
147
174
|
(0, _react.useEffect)(() => {
|
|
@@ -157,83 +184,52 @@ const OxyRouter = ({
|
|
|
157
184
|
|
|
158
185
|
// Expose the navigate method to the parent component (OxyProvider)
|
|
159
186
|
(0, _react.useEffect)(() => {
|
|
160
|
-
// Set up event listener for navigation events
|
|
161
187
|
const handleNavigationEvent = event => {
|
|
162
188
|
if (event && event.detail) {
|
|
163
|
-
// Support both string and object detail
|
|
164
189
|
if (typeof event.detail === 'string') {
|
|
165
|
-
|
|
166
|
-
console.log(`Navigation event received for screen: ${screenName}`);
|
|
167
|
-
navigate(screenName);
|
|
190
|
+
navigate(event.detail);
|
|
168
191
|
} else if (typeof event.detail === 'object' && event.detail.screen) {
|
|
169
192
|
const {
|
|
170
193
|
screen,
|
|
171
194
|
props
|
|
172
195
|
} = event.detail;
|
|
173
|
-
console.log(`Navigation event received for screen: ${screen} with props`, props);
|
|
174
196
|
navigate(screen, props || {});
|
|
175
197
|
}
|
|
176
198
|
}
|
|
177
199
|
};
|
|
178
|
-
|
|
179
|
-
// For React Native - check for global navigation events
|
|
180
200
|
let intervalId = null;
|
|
181
|
-
if (typeof document !== 'undefined') {
|
|
182
|
-
// Web - use custom event listener
|
|
201
|
+
if (typeof document !== 'undefined' && document.addEventListener) {
|
|
183
202
|
document.addEventListener('oxy:navigate', handleNavigationEvent);
|
|
184
203
|
} else {
|
|
185
|
-
// React Native - poll for global navigation events
|
|
186
204
|
intervalId = setInterval(() => {
|
|
187
205
|
const globalNav = globalThis.oxyNavigateEvent;
|
|
188
|
-
if (globalNav) {
|
|
189
|
-
|
|
190
|
-
if (globalNav.screen) {
|
|
191
|
-
navigate(globalNav.screen, globalNav.props || {});
|
|
192
|
-
}
|
|
193
|
-
// Clear the event after processing
|
|
206
|
+
if (globalNav && globalNav.screen) {
|
|
207
|
+
navigate(globalNav.screen, globalNav.props || {});
|
|
194
208
|
globalThis.oxyNavigateEvent = null;
|
|
195
209
|
}
|
|
196
|
-
}, 100);
|
|
210
|
+
}, 100);
|
|
197
211
|
}
|
|
198
|
-
|
|
199
|
-
// Cleanup
|
|
200
212
|
return () => {
|
|
201
|
-
if (typeof document !== 'undefined') {
|
|
213
|
+
if (typeof document !== 'undefined' && document.removeEventListener) {
|
|
202
214
|
document.removeEventListener('oxy:navigate', handleNavigationEvent);
|
|
203
215
|
}
|
|
204
216
|
if (intervalId) {
|
|
205
217
|
clearInterval(intervalId);
|
|
206
218
|
}
|
|
207
219
|
};
|
|
208
|
-
}, []);
|
|
209
|
-
const goBack = () => {
|
|
210
|
-
if (screenHistory.length > 1) {
|
|
211
|
-
const newHistory = [...screenHistory];
|
|
212
|
-
newHistory.pop();
|
|
213
|
-
const previousScreen = newHistory[newHistory.length - 1];
|
|
214
|
-
setCurrentScreen(previousScreen);
|
|
215
|
-
setScreenHistory(newHistory);
|
|
216
|
-
} else {
|
|
217
|
-
// If no history, close the UI
|
|
218
|
-
if (onClose) {
|
|
219
|
-
onClose();
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
};
|
|
220
|
+
}, [navigate]);
|
|
223
221
|
|
|
224
222
|
// Render the current screen component
|
|
225
223
|
const renderScreen = () => {
|
|
226
224
|
const CurrentScreen = routes[currentScreen]?.component;
|
|
227
|
-
console.log('[OxyRouter] Rendering screen:', currentScreen);
|
|
228
|
-
console.log('[OxyRouter] Available routes:', Object.keys(routes));
|
|
229
|
-
console.log('[OxyRouter] Current screen component found:', !!CurrentScreen);
|
|
230
225
|
if (!CurrentScreen) {
|
|
231
|
-
|
|
226
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
227
|
+
console.error(`Screen "${currentScreen}" not found`);
|
|
228
|
+
}
|
|
232
229
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
233
230
|
style: styles.errorContainer
|
|
234
231
|
});
|
|
235
232
|
}
|
|
236
|
-
console.log('[OxyRouter] Rendering screen component for:', currentScreen);
|
|
237
233
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CurrentScreen, {
|
|
238
234
|
oxyServices: oxyServices,
|
|
239
235
|
navigate: navigate,
|
|
@@ -242,7 +238,7 @@ const OxyRouter = ({
|
|
|
242
238
|
onAuthenticated: onAuthenticated,
|
|
243
239
|
theme: theme,
|
|
244
240
|
containerWidth: containerWidth,
|
|
245
|
-
...
|
|
241
|
+
...(screenPropsMap[currentScreen] || {})
|
|
246
242
|
});
|
|
247
243
|
};
|
|
248
244
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
@@ -252,17 +248,13 @@ const OxyRouter = ({
|
|
|
252
248
|
};
|
|
253
249
|
const styles = _reactNative.StyleSheet.create({
|
|
254
250
|
container: {
|
|
255
|
-
flex: 1
|
|
256
|
-
minHeight: 200,
|
|
257
|
-
// Ensure minimum height
|
|
258
|
-
backgroundColor: 'transparent' // Make sure it's visible
|
|
251
|
+
flex: 1
|
|
259
252
|
},
|
|
260
253
|
errorContainer: {
|
|
261
254
|
flex: 1,
|
|
262
255
|
justifyContent: 'center',
|
|
263
256
|
alignItems: 'center',
|
|
264
|
-
minHeight: 100
|
|
265
|
-
backgroundColor: 'red' // Make errors visible
|
|
257
|
+
minHeight: 100
|
|
266
258
|
}
|
|
267
259
|
});
|
|
268
260
|
var _default = exports.default = OxyRouter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_SignInScreen","_interopRequireDefault","_SignUpScreen","_AccountCenterScreen","_AccountSwitcherScreen","_SessionManagementScreen","_AccountOverviewScreen","_AccountSettingsScreen","_PremiumSubscriptionScreen","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_SignInScreen","_interopRequireDefault","_SignUpScreen","_AccountCenterScreen","_AccountSwitcherScreen","_SessionManagementScreen","_AccountOverviewScreen","_AccountSettingsScreen","_PremiumSubscriptionScreen","_AppInfoScreen","_FeedbackScreen","_KarmaCenterScreen","_KarmaLeaderboardScreen","_KarmaRulesScreen","_KarmaAboutScreen","_KarmaRewardsScreen","_KarmaFAQScreen","_ProfileScreen","_FileManagementScreen","_RecoverAccountScreen","_PaymentGatewayScreen","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","routes","SignIn","component","SignInScreen","snapPoints","SignUp","SignUpScreen","RecoverAccount","RecoverAccountScreen","AccountCenter","AccountCenterScreen","AccountSwitcher","AccountSwitcherScreen","SessionManagement","SessionManagementScreen","AccountOverview","AccountOverviewScreen","AccountSettings","AccountSettingsScreen","PremiumSubscription","PremiumSubscriptionScreen","AppInfo","AppInfoScreen","Feedback","FeedbackScreen","KarmaCenter","KarmaCenterScreen","KarmaLeaderboard","KarmaLeaderboardScreen","KarmaRules","KarmaRulesScreen","AboutKarma","KarmaAboutScreen","KarmaRewards","KarmaRewardsScreen","KarmaFAQ","KarmaFAQScreen","Profile","ProfileScreen","FileManagement","FileManagementScreen","PaymentGateway","PaymentGatewayScreen","OxyRouter","oxyServices","initialScreen","onClose","onAuthenticated","theme","adjustSnapPoints","navigationRef","containerWidth","currentScreen","setCurrentScreen","useState","screenHistory","setScreenHistory","screenPropsMap","setScreenPropsMap","useEffect","navigate","useCallback","screen","props","prev","process","env","NODE_ENV","console","error","goBack","length","newHistory","pop","previousScreen","current","handleNavigationEvent","event","detail","intervalId","document","addEventListener","setInterval","globalNav","globalThis","oxyNavigateEvent","removeEventListener","clearInterval","renderScreen","CurrentScreen","jsx","View","style","styles","errorContainer","container","children","StyleSheet","create","flex","justifyContent","alignItems","minHeight","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/navigation/OxyRouter.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,aAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,aAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,oBAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,sBAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,wBAAA,GAAAJ,sBAAA,CAAAH,OAAA;AACA,IAAAQ,sBAAA,GAAAL,sBAAA,CAAAH,OAAA;AACA,IAAAS,sBAAA,GAAAN,sBAAA,CAAAH,OAAA;AACA,IAAAU,0BAAA,GAAAP,sBAAA,CAAAH,OAAA;AACA,IAAAW,cAAA,GAAAR,sBAAA,CAAAH,OAAA;AACA,IAA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