@oxyhq/services 5.4.0 → 5.4.2
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/package.json +3 -2
- package/src/__tests__/ui/screens/AccountSettingsScreen.test.tsx +8 -8
- package/src/core/index.ts +103 -0
- package/src/lib/sonner.ts +9 -4
- package/src/ui/components/OxyProvider.tsx +5 -5
- package/src/ui/context/OxyContext.tsx +61 -41
- package/src/ui/screens/AccountManagementDemo.tsx +1 -1
- package/src/ui/screens/AccountOverviewScreen.tsx +44 -26
- package/src/ui/screens/AccountSettingsScreen.tsx +25 -19
- package/src/ui/screens/AppInfoScreen.tsx +5 -5
- package/src/ui/screens/FileManagementScreen.tsx +246 -211
- package/src/ui/screens/SignInScreen.tsx +382 -326
- package/src/ui/screens/SignUpScreen.tsx +443 -273
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +50 -29
- package/lib/commonjs/assets/OxyLogo.svg +0 -1
- package/lib/commonjs/assets/assets/OxyLogo.svg +0 -1
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/assets/icons/OxyServices.tsx +0 -67
- package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/icons/OxyServices.js +0 -53
- package/lib/commonjs/assets/icons/OxyServices.js.map +0 -1
- package/lib/commonjs/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/commonjs/constants/version.js +0 -28
- package/lib/commonjs/constants/version.js.map +0 -1
- package/lib/commonjs/core/index.js +0 -1543
- package/lib/commonjs/core/index.js.map +0 -1
- package/lib/commonjs/index.js +0 -160
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/lib/react-native-polyfills.js +0 -181
- package/lib/commonjs/lib/react-native-polyfills.js.map +0 -1
- package/lib/commonjs/lib/sonner-safe.js +0 -41
- package/lib/commonjs/lib/sonner-safe.js.map +0 -1
- package/lib/commonjs/lib/sonner.js +0 -18
- package/lib/commonjs/lib/sonner.js.map +0 -1
- package/lib/commonjs/lib/sonner.web.js +0 -17
- package/lib/commonjs/lib/sonner.web.js.map +0 -1
- package/lib/commonjs/models/interfaces.js +0 -2
- package/lib/commonjs/models/interfaces.js.map +0 -1
- package/lib/commonjs/models/secureSession.js +0 -2
- package/lib/commonjs/models/secureSession.js.map +0 -1
- package/lib/commonjs/node/index.js +0 -54
- package/lib/commonjs/node/index.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/ui/components/Avatar.js +0 -98
- package/lib/commonjs/ui/components/Avatar.js.map +0 -1
- package/lib/commonjs/ui/components/FollowButton.js +0 -246
- package/lib/commonjs/ui/components/FollowButton.js.map +0 -1
- package/lib/commonjs/ui/components/FontLoader.js +0 -181
- package/lib/commonjs/ui/components/FontLoader.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedItem.js +0 -109
- package/lib/commonjs/ui/components/GroupedItem.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedSection.js +0 -33
- package/lib/commonjs/ui/components/GroupedSection.js.map +0 -1
- package/lib/commonjs/ui/components/OxyLogo.js +0 -56
- package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
- package/lib/commonjs/ui/components/OxyProvider.js +0 -517
- package/lib/commonjs/ui/components/OxyProvider.js.map +0 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +0 -178
- package/lib/commonjs/ui/components/OxySignInButton.js.map +0 -1
- package/lib/commonjs/ui/components/ProfileCard.js +0 -124
- package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
- package/lib/commonjs/ui/components/QuickActions.js +0 -87
- package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
- package/lib/commonjs/ui/components/Section.js +0 -36
- package/lib/commonjs/ui/components/Section.js.map +0 -1
- package/lib/commonjs/ui/components/SectionTitle.js +0 -35
- package/lib/commonjs/ui/components/SectionTitle.js.map +0 -1
- 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/components/icon/OxyIcon.js +0 -27
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/commonjs/ui/components/icon/index.js +0 -14
- package/lib/commonjs/ui/components/icon/index.js.map +0 -1
- package/lib/commonjs/ui/components/index.js +0 -97
- package/lib/commonjs/ui/components/index.js.map +0 -1
- package/lib/commonjs/ui/context/OxyContext.js +0 -568
- package/lib/commonjs/ui/context/OxyContext.js.map +0 -1
- package/lib/commonjs/ui/index.js +0 -128
- package/lib/commonjs/ui/index.js.map +0 -1
- package/lib/commonjs/ui/navigation/OxyRouter.js +0 -264
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +0 -1
- package/lib/commonjs/ui/navigation/types.js +0 -6
- package/lib/commonjs/ui/navigation/types.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +0 -313
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountManagementDemo.js +0 -299
- package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +0 -837
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +0 -836
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +0 -788
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +0 -664
- package/lib/commonjs/ui/screens/AppInfoScreen.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/screens/FileManagementScreen.js +0 -2497
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -1620
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +0 -450
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +0 -449
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +0 -956
- package/lib/commonjs/ui/screens/SignInScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SignUpScreen.js +0 -762
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +0 -88
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +0 -364
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +0 -202
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +0 -148
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +0 -127
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +0 -105
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
- package/lib/commonjs/ui/styles/FONTS.md +0 -126
- package/lib/commonjs/ui/styles/fonts.js +0 -84
- package/lib/commonjs/ui/styles/fonts.js.map +0 -1
- package/lib/commonjs/ui/styles/index.js +0 -28
- package/lib/commonjs/ui/styles/index.js.map +0 -1
- package/lib/commonjs/ui/styles/theme.js +0 -121
- package/lib/commonjs/ui/styles/theme.js.map +0 -1
- package/lib/commonjs/utils/deviceManager.js +0 -173
- package/lib/commonjs/utils/deviceManager.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -13
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/polyfills.js +0 -42
- package/lib/commonjs/utils/polyfills.js.map +0 -1
- package/lib/module/assets/OxyLogo.svg +0 -1
- package/lib/module/assets/assets/OxyLogo.svg +0 -1
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/assets/icons/OxyServices.tsx +0 -67
- package/lib/module/assets/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/icons/OxyServices.js +0 -46
- package/lib/module/assets/icons/OxyServices.js.map +0 -1
- package/lib/module/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/module/constants/version.js +0 -21
- package/lib/module/constants/version.js.map +0 -1
- package/lib/module/core/index.js +0 -1517
- package/lib/module/core/index.js.map +0 -1
- package/lib/module/index.js +0 -48
- package/lib/module/index.js.map +0 -1
- package/lib/module/lib/react-native-polyfills.js +0 -179
- package/lib/module/lib/react-native-polyfills.js.map +0 -1
- package/lib/module/lib/sonner-safe.js +0 -37
- package/lib/module/lib/sonner-safe.js.map +0 -1
- package/lib/module/lib/sonner.js +0 -8
- package/lib/module/lib/sonner.js.map +0 -1
- package/lib/module/lib/sonner.web.js +0 -4
- package/lib/module/lib/sonner.web.js.map +0 -1
- package/lib/module/models/interfaces.js +0 -2
- package/lib/module/models/interfaces.js.map +0 -1
- package/lib/module/models/secureSession.js +0 -2
- package/lib/module/models/secureSession.js.map +0 -1
- package/lib/module/node/index.js +0 -23
- package/lib/module/node/index.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/module/ui/components/Avatar.js +0 -93
- package/lib/module/ui/components/Avatar.js.map +0 -1
- package/lib/module/ui/components/FollowButton.js +0 -241
- package/lib/module/ui/components/FollowButton.js.map +0 -1
- package/lib/module/ui/components/FontLoader.js +0 -176
- package/lib/module/ui/components/FontLoader.js.map +0 -1
- package/lib/module/ui/components/GroupedItem.js +0 -104
- package/lib/module/ui/components/GroupedItem.js.map +0 -1
- package/lib/module/ui/components/GroupedSection.js +0 -28
- package/lib/module/ui/components/GroupedSection.js.map +0 -1
- package/lib/module/ui/components/OxyLogo.js +0 -49
- package/lib/module/ui/components/OxyLogo.js.map +0 -1
- package/lib/module/ui/components/OxyProvider.js +0 -511
- package/lib/module/ui/components/OxyProvider.js.map +0 -1
- package/lib/module/ui/components/OxySignInButton.js +0 -172
- package/lib/module/ui/components/OxySignInButton.js.map +0 -1
- package/lib/module/ui/components/ProfileCard.js +0 -119
- package/lib/module/ui/components/ProfileCard.js.map +0 -1
- package/lib/module/ui/components/QuickActions.js +0 -82
- package/lib/module/ui/components/QuickActions.js.map +0 -1
- package/lib/module/ui/components/Section.js +0 -31
- package/lib/module/ui/components/Section.js.map +0 -1
- package/lib/module/ui/components/SectionTitle.js +0 -30
- package/lib/module/ui/components/SectionTitle.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/components/icon/OxyIcon.js +0 -22
- package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/module/ui/components/icon/index.js +0 -4
- package/lib/module/ui/components/icon/index.js.map +0 -1
- package/lib/module/ui/components/index.js +0 -18
- package/lib/module/ui/components/index.js.map +0 -1
- package/lib/module/ui/context/OxyContext.js +0 -563
- package/lib/module/ui/context/OxyContext.js.map +0 -1
- package/lib/module/ui/index.js +0 -24
- package/lib/module/ui/index.js.map +0 -1
- package/lib/module/ui/navigation/OxyRouter.js +0 -257
- package/lib/module/ui/navigation/OxyRouter.js.map +0 -1
- package/lib/module/ui/navigation/types.js +0 -4
- package/lib/module/ui/navigation/types.js.map +0 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +0 -308
- package/lib/module/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountManagementDemo.js +0 -296
- package/lib/module/ui/screens/AccountManagementDemo.js.map +0 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +0 -831
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +0 -830
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -782
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/module/ui/screens/AppInfoScreen.js +0 -658
- package/lib/module/ui/screens/AppInfoScreen.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/screens/FileManagementScreen.js +0 -2492
- package/lib/module/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -1615
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/module/ui/screens/ProfileScreen.js +0 -444
- package/lib/module/ui/screens/ProfileScreen.js.map +0 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +0 -444
- package/lib/module/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/SignInScreen.js +0 -950
- package/lib/module/ui/screens/SignInScreen.js.map +0 -1
- package/lib/module/ui/screens/SignUpScreen.js +0 -755
- package/lib/module/ui/screens/SignUpScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +0 -83
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +0 -358
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +0 -197
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +0 -142
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +0 -122
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +0 -100
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
- package/lib/module/ui/styles/FONTS.md +0 -126
- package/lib/module/ui/styles/fonts.js +0 -81
- package/lib/module/ui/styles/fonts.js.map +0 -1
- package/lib/module/ui/styles/index.js +0 -5
- package/lib/module/ui/styles/index.js.map +0 -1
- package/lib/module/ui/styles/theme.js +0 -114
- package/lib/module/ui/styles/theme.js.map +0 -1
- package/lib/module/utils/deviceManager.js +0 -167
- package/lib/module/utils/deviceManager.js.map +0 -1
- package/lib/module/utils/index.js +0 -4
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/polyfills.js +0 -36
- package/lib/module/utils/polyfills.js.map +0 -1
- package/lib/typescript/assets/icons/OxyServices.d.ts +0 -29
- package/lib/typescript/assets/icons/OxyServices.d.ts.map +0 -1
- package/lib/typescript/constants/version.d.ts +0 -14
- package/lib/typescript/constants/version.d.ts.map +0 -1
- package/lib/typescript/core/index.d.ts +0 -563
- package/lib/typescript/core/index.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -20
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/lib/react-native-polyfills.d.ts +0 -8
- package/lib/typescript/lib/react-native-polyfills.d.ts.map +0 -1
- package/lib/typescript/lib/sonner-safe.d.ts +0 -11
- package/lib/typescript/lib/sonner-safe.d.ts.map +0 -1
- package/lib/typescript/lib/sonner.d.ts +0 -3
- package/lib/typescript/lib/sonner.d.ts.map +0 -1
- package/lib/typescript/lib/sonner.web.d.ts +0 -2
- package/lib/typescript/lib/sonner.web.d.ts.map +0 -1
- package/lib/typescript/models/interfaces.d.ts +0 -179
- package/lib/typescript/models/interfaces.d.ts.map +0 -1
- package/lib/typescript/models/secureSession.d.ts +0 -27
- package/lib/typescript/models/secureSession.d.ts.map +0 -1
- package/lib/typescript/node/index.d.ts +0 -11
- package/lib/typescript/node/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/Avatar.d.ts +0 -62
- package/lib/typescript/ui/components/Avatar.d.ts.map +0 -1
- package/lib/typescript/ui/components/FollowButton.d.ts +0 -92
- package/lib/typescript/ui/components/FollowButton.d.ts.map +0 -1
- package/lib/typescript/ui/components/FontLoader.d.ts +0 -15
- package/lib/typescript/ui/components/FontLoader.d.ts.map +0 -1
- package/lib/typescript/ui/components/GroupedItem.d.ts +0 -17
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +0 -1
- package/lib/typescript/ui/components/GroupedSection.d.ts +0 -19
- package/lib/typescript/ui/components/GroupedSection.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxyLogo.d.ts +0 -29
- package/lib/typescript/ui/components/OxyLogo.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts +0 -12
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxySignInButton.d.ts +0 -70
- package/lib/typescript/ui/components/OxySignInButton.d.ts.map +0 -1
- package/lib/typescript/ui/components/ProfileCard.d.ts +0 -20
- package/lib/typescript/ui/components/ProfileCard.d.ts.map +0 -1
- package/lib/typescript/ui/components/QuickActions.d.ts +0 -15
- package/lib/typescript/ui/components/QuickActions.d.ts.map +0 -1
- package/lib/typescript/ui/components/Section.d.ts +0 -11
- package/lib/typescript/ui/components/Section.d.ts.map +0 -1
- package/lib/typescript/ui/components/SectionTitle.d.ts +0 -9
- package/lib/typescript/ui/components/SectionTitle.d.ts.map +0 -1
- 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/components/icon/OxyIcon.d.ts +0 -10
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +0 -1
- package/lib/typescript/ui/components/icon/index.d.ts +0 -3
- package/lib/typescript/ui/components/icon/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/index.d.ts +0 -13
- package/lib/typescript/ui/components/index.d.ts.map +0 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +0 -42
- package/lib/typescript/ui/context/OxyContext.d.ts.map +0 -1
- package/lib/typescript/ui/index.d.ts +0 -15
- package/lib/typescript/ui/index.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/OxyRouter.d.ts +0 -5
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/types.d.ts +0 -116
- package/lib/typescript/ui/navigation/types.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +0 -8
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AppInfoScreen.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/screens/FileManagementScreen.d.ts +0 -8
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts +0 -9
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SignInScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +0 -1
- package/lib/typescript/ui/styles/fonts.d.ts +0 -21
- package/lib/typescript/ui/styles/fonts.d.ts.map +0 -1
- package/lib/typescript/ui/styles/index.d.ts +0 -3
- package/lib/typescript/ui/styles/index.d.ts.map +0 -1
- package/lib/typescript/ui/styles/theme.d.ts +0 -68
- package/lib/typescript/ui/styles/theme.d.ts.map +0 -1
- package/lib/typescript/utils/deviceManager.d.ts +0 -66
- package/lib/typescript/utils/deviceManager.d.ts.map +0 -1
- package/lib/typescript/utils/index.d.ts +0 -3
- package/lib/typescript/utils/index.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/lib/react-native-polyfills.ts +0 -219
- package/src/lib/sonner-safe.ts +0 -37
- package/src/lib/sonner.web.ts +0 -1
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { useState, useEffect } from 'react';
|
|
4
|
-
import { View, StyleSheet } from 'react-native';
|
|
5
|
-
// Import screens
|
|
6
|
-
import SignInScreen from '../screens/SignInScreen';
|
|
7
|
-
import SignUpScreen from '../screens/SignUpScreen';
|
|
8
|
-
import AccountCenterScreen from '../screens/AccountCenterScreen';
|
|
9
|
-
import AccountSwitcherScreen from '../screens/AccountSwitcherScreen';
|
|
10
|
-
import SessionManagementScreen from '../screens/SessionManagementScreen';
|
|
11
|
-
import AccountOverviewScreen from '../screens/AccountOverviewScreen';
|
|
12
|
-
import AccountSettingsScreen from '../screens/AccountSettingsScreen';
|
|
13
|
-
import PremiumSubscriptionScreen from '../screens/PremiumSubscriptionScreen';
|
|
14
|
-
import BillingManagementScreen from '../screens/BillingManagementScreen';
|
|
15
|
-
import AppInfoScreen from '../screens/AppInfoScreen';
|
|
16
|
-
import KarmaCenterScreen from '../screens/karma/KarmaCenterScreen';
|
|
17
|
-
import KarmaLeaderboardScreen from '../screens/karma/KarmaLeaderboardScreen';
|
|
18
|
-
import KarmaRulesScreen from '../screens/karma/KarmaRulesScreen';
|
|
19
|
-
import KarmaAboutScreen from '../screens/karma/KarmaAboutScreen';
|
|
20
|
-
import KarmaRewardsScreen from '../screens/karma/KarmaRewardsScreen';
|
|
21
|
-
import KarmaFAQScreen from '../screens/karma/KarmaFAQScreen';
|
|
22
|
-
import ProfileScreen from '../screens/ProfileScreen';
|
|
23
|
-
import FileManagementScreen from '../screens/FileManagementScreen';
|
|
24
|
-
|
|
25
|
-
// Import types
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
// Define route configuration with screen components and default snap points
|
|
28
|
-
const routes = {
|
|
29
|
-
SignIn: {
|
|
30
|
-
component: SignInScreen,
|
|
31
|
-
snapPoints: ['10%', '80%']
|
|
32
|
-
},
|
|
33
|
-
SignUp: {
|
|
34
|
-
component: SignUpScreen,
|
|
35
|
-
snapPoints: ['10%', '90%']
|
|
36
|
-
},
|
|
37
|
-
AccountCenter: {
|
|
38
|
-
component: AccountCenterScreen,
|
|
39
|
-
snapPoints: ['60%', '100%']
|
|
40
|
-
},
|
|
41
|
-
AccountSwitcher: {
|
|
42
|
-
component: AccountSwitcherScreen,
|
|
43
|
-
snapPoints: ['70%', '100%']
|
|
44
|
-
},
|
|
45
|
-
SessionManagement: {
|
|
46
|
-
component: SessionManagementScreen,
|
|
47
|
-
snapPoints: ['70%', '100%']
|
|
48
|
-
},
|
|
49
|
-
AccountOverview: {
|
|
50
|
-
component: AccountOverviewScreen,
|
|
51
|
-
snapPoints: ['60%', '85%']
|
|
52
|
-
},
|
|
53
|
-
AccountSettings: {
|
|
54
|
-
component: AccountSettingsScreen,
|
|
55
|
-
snapPoints: ['60%', '100%']
|
|
56
|
-
},
|
|
57
|
-
PremiumSubscription: {
|
|
58
|
-
component: PremiumSubscriptionScreen,
|
|
59
|
-
snapPoints: ['70%', '100%']
|
|
60
|
-
},
|
|
61
|
-
BillingManagement: {
|
|
62
|
-
component: BillingManagementScreen,
|
|
63
|
-
snapPoints: ['70%', '100%']
|
|
64
|
-
},
|
|
65
|
-
AppInfo: {
|
|
66
|
-
component: AppInfoScreen,
|
|
67
|
-
snapPoints: ['60%', '90%']
|
|
68
|
-
},
|
|
69
|
-
KarmaCenter: {
|
|
70
|
-
component: KarmaCenterScreen,
|
|
71
|
-
snapPoints: ['60%', '100%']
|
|
72
|
-
},
|
|
73
|
-
KarmaLeaderboard: {
|
|
74
|
-
component: KarmaLeaderboardScreen,
|
|
75
|
-
snapPoints: ['60%', '100%']
|
|
76
|
-
},
|
|
77
|
-
KarmaRules: {
|
|
78
|
-
component: KarmaRulesScreen,
|
|
79
|
-
snapPoints: ['60%', '90%']
|
|
80
|
-
},
|
|
81
|
-
AboutKarma: {
|
|
82
|
-
component: KarmaAboutScreen,
|
|
83
|
-
snapPoints: ['60%', '90%']
|
|
84
|
-
},
|
|
85
|
-
KarmaRewards: {
|
|
86
|
-
component: KarmaRewardsScreen,
|
|
87
|
-
snapPoints: ['60%', '90%']
|
|
88
|
-
},
|
|
89
|
-
KarmaFAQ: {
|
|
90
|
-
component: KarmaFAQScreen,
|
|
91
|
-
snapPoints: ['60%', '90%']
|
|
92
|
-
},
|
|
93
|
-
Profile: {
|
|
94
|
-
component: ProfileScreen,
|
|
95
|
-
snapPoints: ['60%', '90%']
|
|
96
|
-
},
|
|
97
|
-
FileManagement: {
|
|
98
|
-
component: FileManagementScreen,
|
|
99
|
-
snapPoints: ['70%', '100%']
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
const OxyRouter = ({
|
|
103
|
-
oxyServices,
|
|
104
|
-
initialScreen,
|
|
105
|
-
onClose,
|
|
106
|
-
onAuthenticated,
|
|
107
|
-
theme,
|
|
108
|
-
adjustSnapPoints,
|
|
109
|
-
navigationRef,
|
|
110
|
-
containerWidth
|
|
111
|
-
}) => {
|
|
112
|
-
const [currentScreen, setCurrentScreen] = useState(initialScreen);
|
|
113
|
-
const [screenHistory, setScreenHistory] = useState([initialScreen]);
|
|
114
|
-
const [screenProps, setScreenProps] = useState({});
|
|
115
|
-
|
|
116
|
-
// Update snap points when the screen changes
|
|
117
|
-
useEffect(() => {
|
|
118
|
-
if (routes[currentScreen]) {
|
|
119
|
-
adjustSnapPoints(routes[currentScreen].snapPoints);
|
|
120
|
-
}
|
|
121
|
-
}, [currentScreen, adjustSnapPoints]);
|
|
122
|
-
|
|
123
|
-
// Navigation methods
|
|
124
|
-
const navigate = (screen, props = {}) => {
|
|
125
|
-
if (routes[screen]) {
|
|
126
|
-
setCurrentScreen(screen);
|
|
127
|
-
setScreenHistory(prev => [...prev, screen]);
|
|
128
|
-
setScreenProps(props);
|
|
129
|
-
} else {
|
|
130
|
-
console.error(`Screen "${screen}" not found`);
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
// Expose the navigate function to the parent component
|
|
135
|
-
useEffect(() => {
|
|
136
|
-
if (navigationRef) {
|
|
137
|
-
navigationRef.current = navigate;
|
|
138
|
-
}
|
|
139
|
-
return () => {
|
|
140
|
-
if (navigationRef) {
|
|
141
|
-
navigationRef.current = null;
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
}, [navigate, navigationRef]);
|
|
145
|
-
|
|
146
|
-
// Expose the navigate method to the parent component (OxyProvider)
|
|
147
|
-
useEffect(() => {
|
|
148
|
-
// Set up event listener for navigation events
|
|
149
|
-
const handleNavigationEvent = event => {
|
|
150
|
-
if (event && event.detail) {
|
|
151
|
-
// Support both string and object detail
|
|
152
|
-
if (typeof event.detail === 'string') {
|
|
153
|
-
const screenName = event.detail;
|
|
154
|
-
console.log(`Navigation event received for screen: ${screenName}`);
|
|
155
|
-
navigate(screenName);
|
|
156
|
-
} else if (typeof event.detail === 'object' && event.detail.screen) {
|
|
157
|
-
const {
|
|
158
|
-
screen,
|
|
159
|
-
props
|
|
160
|
-
} = event.detail;
|
|
161
|
-
console.log(`Navigation event received for screen: ${screen} with props`, props);
|
|
162
|
-
navigate(screen, props || {});
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
// For React Native - check for global navigation events
|
|
168
|
-
let intervalId = null;
|
|
169
|
-
if (typeof document !== 'undefined') {
|
|
170
|
-
// Web - use custom event listener
|
|
171
|
-
document.addEventListener('oxy:navigate', handleNavigationEvent);
|
|
172
|
-
} else {
|
|
173
|
-
// React Native - poll for global navigation events
|
|
174
|
-
intervalId = setInterval(() => {
|
|
175
|
-
const globalNav = globalThis.oxyNavigateEvent;
|
|
176
|
-
if (globalNav) {
|
|
177
|
-
console.log(`RN Navigation event received:`, globalNav);
|
|
178
|
-
if (globalNav.screen) {
|
|
179
|
-
navigate(globalNav.screen, globalNav.props || {});
|
|
180
|
-
}
|
|
181
|
-
// Clear the event after processing
|
|
182
|
-
globalThis.oxyNavigateEvent = null;
|
|
183
|
-
}
|
|
184
|
-
}, 100); // Check every 100ms
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// Cleanup
|
|
188
|
-
return () => {
|
|
189
|
-
if (typeof document !== 'undefined') {
|
|
190
|
-
document.removeEventListener('oxy:navigate', handleNavigationEvent);
|
|
191
|
-
}
|
|
192
|
-
if (intervalId) {
|
|
193
|
-
clearInterval(intervalId);
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
}, []);
|
|
197
|
-
const goBack = () => {
|
|
198
|
-
if (screenHistory.length > 1) {
|
|
199
|
-
const newHistory = [...screenHistory];
|
|
200
|
-
newHistory.pop();
|
|
201
|
-
const previousScreen = newHistory[newHistory.length - 1];
|
|
202
|
-
setCurrentScreen(previousScreen);
|
|
203
|
-
setScreenHistory(newHistory);
|
|
204
|
-
} else {
|
|
205
|
-
// If no history, close the UI
|
|
206
|
-
if (onClose) {
|
|
207
|
-
onClose();
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
// Render the current screen component
|
|
213
|
-
const renderScreen = () => {
|
|
214
|
-
const CurrentScreen = routes[currentScreen]?.component;
|
|
215
|
-
console.log('[OxyRouter] Rendering screen:', currentScreen);
|
|
216
|
-
console.log('[OxyRouter] Available routes:', Object.keys(routes));
|
|
217
|
-
console.log('[OxyRouter] Current screen component found:', !!CurrentScreen);
|
|
218
|
-
if (!CurrentScreen) {
|
|
219
|
-
console.error(`Screen "${currentScreen}" not found`);
|
|
220
|
-
return /*#__PURE__*/_jsx(View, {
|
|
221
|
-
style: styles.errorContainer
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
console.log('[OxyRouter] Rendering screen component for:', currentScreen);
|
|
225
|
-
return /*#__PURE__*/_jsx(CurrentScreen, {
|
|
226
|
-
oxyServices: oxyServices,
|
|
227
|
-
navigate: navigate,
|
|
228
|
-
goBack: goBack,
|
|
229
|
-
onClose: onClose,
|
|
230
|
-
onAuthenticated: onAuthenticated,
|
|
231
|
-
theme: theme,
|
|
232
|
-
containerWidth: containerWidth,
|
|
233
|
-
...screenProps
|
|
234
|
-
});
|
|
235
|
-
};
|
|
236
|
-
return /*#__PURE__*/_jsx(View, {
|
|
237
|
-
style: styles.container,
|
|
238
|
-
children: renderScreen()
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
const styles = StyleSheet.create({
|
|
242
|
-
container: {
|
|
243
|
-
flex: 1,
|
|
244
|
-
minHeight: 200,
|
|
245
|
-
// Ensure minimum height
|
|
246
|
-
backgroundColor: 'transparent' // Make sure it's visible
|
|
247
|
-
},
|
|
248
|
-
errorContainer: {
|
|
249
|
-
flex: 1,
|
|
250
|
-
justifyContent: 'center',
|
|
251
|
-
alignItems: 'center',
|
|
252
|
-
minHeight: 100,
|
|
253
|
-
backgroundColor: 'red' // Make errors visible
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
export default OxyRouter;
|
|
257
|
-
//# sourceMappingURL=OxyRouter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","View","StyleSheet","SignInScreen","SignUpScreen","AccountCenterScreen","AccountSwitcherScreen","SessionManagementScreen","AccountOverviewScreen","AccountSettingsScreen","PremiumSubscriptionScreen","BillingManagementScreen","AppInfoScreen","KarmaCenterScreen","KarmaLeaderboardScreen","KarmaRulesScreen","KarmaAboutScreen","KarmaRewardsScreen","KarmaFAQScreen","ProfileScreen","FileManagementScreen","jsx","_jsx","routes","SignIn","component","snapPoints","SignUp","AccountCenter","AccountSwitcher","SessionManagement","AccountOverview","AccountSettings","PremiumSubscription","BillingManagement","AppInfo","KarmaCenter","KarmaLeaderboard","KarmaRules","AboutKarma","KarmaRewards","KarmaFAQ","Profile","FileManagement","OxyRouter","oxyServices","initialScreen","onClose","onAuthenticated","theme","adjustSnapPoints","navigationRef","containerWidth","currentScreen","setCurrentScreen","screenHistory","setScreenHistory","screenProps","setScreenProps","navigate","screen","props","prev","console","error","current","handleNavigationEvent","event","detail","screenName","log","intervalId","document","addEventListener","setInterval","globalNav","globalThis","oxyNavigateEvent","removeEventListener","clearInterval","goBack","length","newHistory","pop","previousScreen","renderScreen","CurrentScreen","Object","keys","style","styles","errorContainer","container","children","create","flex","minHeight","backgroundColor","justifyContent","alignItems"],"sourceRoot":"../../../../src","sources":["ui/navigation/OxyRouter.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAG/C;AACA,OAAOC,YAAY,MAAM,yBAAyB;AAClD,OAAOC,YAAY,MAAM,yBAAyB;AAClD,OAAOC,mBAAmB,MAAM,gCAAgC;AAChE,OAAOC,qBAAqB,MAAM,kCAAkC;AACpE,OAAOC,uBAAuB,MAAM,oCAAoC;AACxE,OAAOC,qBAAqB,MAAM,kCAAkC;AACpE,OAAOC,qBAAqB,MAAM,kCAAkC;AACpE,OAAOC,yBAAyB,MAAM,sCAAsC;AAC5E,OAAOC,uBAAuB,MAAM,oCAAoC;AACxE,OAAOC,aAAa,MAAM,0BAA0B;AACpD,OAAOC,iBAAiB,MAAM,oCAAoC;AAClE,OAAOC,sBAAsB,MAAM,yCAAyC;AAC5E,OAAOC,gBAAgB,MAAM,mCAAmC;AAChE,OAAOC,gBAAgB,MAAM,mCAAmC;AAChE,OAAOC,kBAAkB,MAAM,qCAAqC;AACpE,OAAOC,cAAc,MAAM,iCAAiC;AAC5D,OAAOC,aAAa,MAAM,0BAA0B;AACpD,OAAOC,oBAAoB,MAAM,iCAAiC;;AAElE;AAAA,SAAAC,GA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AAS,EAAE,GAAG;IAAE;IAChBC,eAAe,EAAE,aAAa,CAAE;EACpC,CAAC;EACDN,cAAc,EAAE;IACZI,IAAI,EAAE,CAAC;IACPG,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBH,SAAS,EAAE,GAAG;IACdC,eAAe,EAAE,KAAK,CAAE;EAC5B;AACJ,CAAC,CAAC;AAEF,eAAerD,SAAS","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["ui/navigation/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View, Text, StyleSheet, ActivityIndicator, ScrollView, Alert, Platform } from 'react-native';
|
|
5
|
-
import { useOxy } from '../context/OxyContext';
|
|
6
|
-
import { packageInfo } from '../../constants/version';
|
|
7
|
-
import { toast } from '../../lib/sonner';
|
|
8
|
-
import { fontFamilies } from '../styles/fonts';
|
|
9
|
-
import { ProfileCard, Section, QuickActions, GroupedSection, GroupedItem } from '../components';
|
|
10
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
const AccountCenterScreen = ({
|
|
12
|
-
onClose,
|
|
13
|
-
theme,
|
|
14
|
-
navigate
|
|
15
|
-
}) => {
|
|
16
|
-
const {
|
|
17
|
-
user,
|
|
18
|
-
logout,
|
|
19
|
-
isLoading,
|
|
20
|
-
sessions
|
|
21
|
-
} = useOxy();
|
|
22
|
-
const isDarkTheme = theme === 'dark';
|
|
23
|
-
const textColor = isDarkTheme ? '#FFFFFF' : '#000000';
|
|
24
|
-
const backgroundColor = isDarkTheme ? '#121212' : '#f2f2f2';
|
|
25
|
-
const secondaryBackgroundColor = isDarkTheme ? '#222222' : '#FFFFFF';
|
|
26
|
-
const borderColor = isDarkTheme ? '#444444' : '#E0E0E0';
|
|
27
|
-
const primaryColor = '#0066CC';
|
|
28
|
-
const dangerColor = '#D32F2F';
|
|
29
|
-
const handleLogout = async () => {
|
|
30
|
-
try {
|
|
31
|
-
await logout();
|
|
32
|
-
if (onClose) {
|
|
33
|
-
onClose();
|
|
34
|
-
}
|
|
35
|
-
} catch (error) {
|
|
36
|
-
console.error('Logout failed:', error);
|
|
37
|
-
toast.error('There was a problem signing you out. Please try again.');
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const confirmLogout = () => {
|
|
41
|
-
Alert.alert('Sign Out', 'Are you sure you want to sign out?', [{
|
|
42
|
-
text: 'Cancel',
|
|
43
|
-
style: 'cancel'
|
|
44
|
-
}, {
|
|
45
|
-
text: 'Sign Out',
|
|
46
|
-
onPress: handleLogout,
|
|
47
|
-
style: 'destructive'
|
|
48
|
-
}], {
|
|
49
|
-
cancelable: true
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
if (!user) {
|
|
53
|
-
return /*#__PURE__*/_jsx(View, {
|
|
54
|
-
style: [styles.container, {
|
|
55
|
-
backgroundColor
|
|
56
|
-
}],
|
|
57
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
58
|
-
style: [styles.message, {
|
|
59
|
-
color: textColor
|
|
60
|
-
}],
|
|
61
|
-
children: "Not signed in"
|
|
62
|
-
})
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
if (isLoading) {
|
|
66
|
-
return /*#__PURE__*/_jsx(View, {
|
|
67
|
-
style: [styles.container, {
|
|
68
|
-
backgroundColor,
|
|
69
|
-
justifyContent: 'center'
|
|
70
|
-
}],
|
|
71
|
-
children: /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
72
|
-
size: "large",
|
|
73
|
-
color: primaryColor
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
78
|
-
style: [styles.container, {
|
|
79
|
-
backgroundColor
|
|
80
|
-
}],
|
|
81
|
-
children: [/*#__PURE__*/_jsx(ProfileCard, {
|
|
82
|
-
user: user,
|
|
83
|
-
theme: theme,
|
|
84
|
-
onEditPress: () => navigate('AccountSettings', {
|
|
85
|
-
activeTab: 'profile'
|
|
86
|
-
}),
|
|
87
|
-
onClosePress: onClose,
|
|
88
|
-
showCloseButton: !!onClose
|
|
89
|
-
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
90
|
-
style: styles.scrollView,
|
|
91
|
-
contentContainerStyle: styles.scrollContainer,
|
|
92
|
-
showsVerticalScrollIndicator: false,
|
|
93
|
-
children: [/*#__PURE__*/_jsx(Section, {
|
|
94
|
-
title: "Quick Actions",
|
|
95
|
-
theme: theme,
|
|
96
|
-
isFirst: true,
|
|
97
|
-
children: /*#__PURE__*/_jsx(QuickActions, {
|
|
98
|
-
actions: [{
|
|
99
|
-
id: 'overview',
|
|
100
|
-
icon: 'person-circle',
|
|
101
|
-
iconColor: '#007AFF',
|
|
102
|
-
title: 'Overview',
|
|
103
|
-
onPress: () => navigate('AccountOverview')
|
|
104
|
-
}, {
|
|
105
|
-
id: 'settings',
|
|
106
|
-
icon: 'settings',
|
|
107
|
-
iconColor: '#5856D6',
|
|
108
|
-
title: 'Settings',
|
|
109
|
-
onPress: () => navigate('AccountSettings')
|
|
110
|
-
}, {
|
|
111
|
-
id: 'sessions',
|
|
112
|
-
icon: 'shield-checkmark',
|
|
113
|
-
iconColor: '#30D158',
|
|
114
|
-
title: 'Sessions',
|
|
115
|
-
onPress: () => navigate('SessionManagement')
|
|
116
|
-
}, {
|
|
117
|
-
id: 'premium',
|
|
118
|
-
icon: 'star',
|
|
119
|
-
iconColor: '#FFD700',
|
|
120
|
-
title: 'Premium',
|
|
121
|
-
onPress: () => navigate('PremiumSubscription')
|
|
122
|
-
}, ...(user?.isPremium ? [{
|
|
123
|
-
id: 'billing',
|
|
124
|
-
icon: 'card',
|
|
125
|
-
iconColor: '#34C759',
|
|
126
|
-
title: 'Billing',
|
|
127
|
-
onPress: () => navigate('BillingManagement')
|
|
128
|
-
}] : []), ...(sessions && sessions.length > 1 ? [{
|
|
129
|
-
id: 'switch',
|
|
130
|
-
icon: 'swap-horizontal',
|
|
131
|
-
iconColor: '#FF9500',
|
|
132
|
-
title: 'Switch',
|
|
133
|
-
onPress: () => navigate('AccountSwitcher')
|
|
134
|
-
}] : [])],
|
|
135
|
-
theme: theme
|
|
136
|
-
})
|
|
137
|
-
}), /*#__PURE__*/_jsx(Section, {
|
|
138
|
-
title: "Account Management",
|
|
139
|
-
theme: theme,
|
|
140
|
-
children: /*#__PURE__*/_jsx(GroupedSection, {
|
|
141
|
-
items: [{
|
|
142
|
-
id: 'overview',
|
|
143
|
-
icon: 'person-circle',
|
|
144
|
-
iconColor: '#007AFF',
|
|
145
|
-
title: 'Account Overview',
|
|
146
|
-
subtitle: 'Complete account information',
|
|
147
|
-
onPress: () => navigate('AccountOverview')
|
|
148
|
-
}, {
|
|
149
|
-
id: 'settings',
|
|
150
|
-
icon: 'settings',
|
|
151
|
-
iconColor: '#5856D6',
|
|
152
|
-
title: 'Account Settings',
|
|
153
|
-
subtitle: 'Manage your preferences',
|
|
154
|
-
onPress: () => navigate('AccountSettings')
|
|
155
|
-
}, {
|
|
156
|
-
id: 'sessions',
|
|
157
|
-
icon: 'shield-checkmark',
|
|
158
|
-
iconColor: '#30D158',
|
|
159
|
-
title: 'Manage Sessions',
|
|
160
|
-
subtitle: 'Security and active devices',
|
|
161
|
-
onPress: () => navigate('SessionManagement')
|
|
162
|
-
}, {
|
|
163
|
-
id: 'files',
|
|
164
|
-
icon: 'folder',
|
|
165
|
-
iconColor: '#FF9500',
|
|
166
|
-
title: 'File Management',
|
|
167
|
-
subtitle: 'Upload, download, and manage your files',
|
|
168
|
-
onPress: () => navigate('FileManagement')
|
|
169
|
-
}, {
|
|
170
|
-
id: 'premium',
|
|
171
|
-
icon: 'star',
|
|
172
|
-
iconColor: '#FFD700',
|
|
173
|
-
title: 'Oxy+ Subscriptions',
|
|
174
|
-
subtitle: user?.isPremium ? 'Manage your premium plan' : 'Upgrade to premium features',
|
|
175
|
-
onPress: () => navigate('PremiumSubscription')
|
|
176
|
-
}, ...(user?.isPremium ? [{
|
|
177
|
-
id: 'billing',
|
|
178
|
-
icon: 'card',
|
|
179
|
-
iconColor: '#34C759',
|
|
180
|
-
title: 'Billing Management',
|
|
181
|
-
subtitle: 'Payment methods and invoices',
|
|
182
|
-
onPress: () => navigate('BillingManagement')
|
|
183
|
-
}] : [])],
|
|
184
|
-
theme: theme
|
|
185
|
-
})
|
|
186
|
-
}), sessions && sessions.length > 1 && /*#__PURE__*/_jsx(Section, {
|
|
187
|
-
title: "Multi-Account",
|
|
188
|
-
theme: theme,
|
|
189
|
-
children: /*#__PURE__*/_jsx(GroupedSection, {
|
|
190
|
-
items: [{
|
|
191
|
-
id: 'switch',
|
|
192
|
-
icon: 'people',
|
|
193
|
-
iconColor: '#FF9500',
|
|
194
|
-
title: 'Switch Account',
|
|
195
|
-
subtitle: `${sessions.length} accounts available`,
|
|
196
|
-
onPress: () => navigate('AccountSwitcher')
|
|
197
|
-
}, {
|
|
198
|
-
id: 'add',
|
|
199
|
-
icon: 'person-add',
|
|
200
|
-
iconColor: '#30D158',
|
|
201
|
-
title: 'Add Another Account',
|
|
202
|
-
subtitle: 'Sign in with a different account',
|
|
203
|
-
onPress: () => navigate('SignIn')
|
|
204
|
-
}],
|
|
205
|
-
theme: theme
|
|
206
|
-
})
|
|
207
|
-
}), (!sessions || sessions.length <= 1) && /*#__PURE__*/_jsx(Section, {
|
|
208
|
-
title: "Add Account",
|
|
209
|
-
theme: theme,
|
|
210
|
-
children: /*#__PURE__*/_jsx(GroupedSection, {
|
|
211
|
-
items: [{
|
|
212
|
-
id: 'add',
|
|
213
|
-
icon: 'person-add',
|
|
214
|
-
iconColor: '#30D158',
|
|
215
|
-
title: 'Add Another Account',
|
|
216
|
-
subtitle: 'Sign in with a different account',
|
|
217
|
-
onPress: () => navigate('SignIn')
|
|
218
|
-
}],
|
|
219
|
-
theme: theme
|
|
220
|
-
})
|
|
221
|
-
}), /*#__PURE__*/_jsx(Section, {
|
|
222
|
-
title: "More Options",
|
|
223
|
-
theme: theme,
|
|
224
|
-
children: /*#__PURE__*/_jsx(GroupedSection, {
|
|
225
|
-
items: [...(Platform.OS !== 'web' ? [{
|
|
226
|
-
id: 'notifications',
|
|
227
|
-
icon: 'notifications',
|
|
228
|
-
iconColor: '#FF9500',
|
|
229
|
-
title: 'Notifications',
|
|
230
|
-
subtitle: 'Manage notification settings',
|
|
231
|
-
onPress: () => toast.info('Notifications feature coming soon!')
|
|
232
|
-
}] : []), {
|
|
233
|
-
id: 'help',
|
|
234
|
-
icon: 'help-circle',
|
|
235
|
-
iconColor: '#007AFF',
|
|
236
|
-
title: 'Help & Support',
|
|
237
|
-
subtitle: 'Get help and contact support',
|
|
238
|
-
onPress: () => toast.info('Help & Support feature coming soon!')
|
|
239
|
-
}, {
|
|
240
|
-
id: 'appinfo',
|
|
241
|
-
icon: 'information-circle',
|
|
242
|
-
iconColor: '#8E8E93',
|
|
243
|
-
title: 'App Information',
|
|
244
|
-
subtitle: 'Version and system details',
|
|
245
|
-
onPress: () => navigate('AppInfo')
|
|
246
|
-
}],
|
|
247
|
-
theme: theme
|
|
248
|
-
})
|
|
249
|
-
}), /*#__PURE__*/_jsx(Section, {
|
|
250
|
-
theme: theme,
|
|
251
|
-
children: /*#__PURE__*/_jsx(GroupedItem, {
|
|
252
|
-
icon: "log-out",
|
|
253
|
-
iconColor: dangerColor,
|
|
254
|
-
title: isLoading ? "Signing out..." : "Sign Out",
|
|
255
|
-
theme: theme,
|
|
256
|
-
onPress: confirmLogout,
|
|
257
|
-
isFirst: true,
|
|
258
|
-
isLast: true,
|
|
259
|
-
showChevron: false,
|
|
260
|
-
disabled: isLoading,
|
|
261
|
-
customContent: isLoading ? /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
262
|
-
color: dangerColor,
|
|
263
|
-
size: "small",
|
|
264
|
-
style: {
|
|
265
|
-
marginRight: 16
|
|
266
|
-
}
|
|
267
|
-
}) : null
|
|
268
|
-
})
|
|
269
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
270
|
-
style: styles.versionContainer,
|
|
271
|
-
children: /*#__PURE__*/_jsxs(Text, {
|
|
272
|
-
style: [styles.versionText, {
|
|
273
|
-
color: isDarkTheme ? '#666666' : '#999999'
|
|
274
|
-
}],
|
|
275
|
-
children: ["Version ", packageInfo.version]
|
|
276
|
-
})
|
|
277
|
-
})]
|
|
278
|
-
})]
|
|
279
|
-
});
|
|
280
|
-
};
|
|
281
|
-
const styles = StyleSheet.create({
|
|
282
|
-
container: {
|
|
283
|
-
flex: 1
|
|
284
|
-
},
|
|
285
|
-
scrollView: {
|
|
286
|
-
flex: 1
|
|
287
|
-
},
|
|
288
|
-
scrollContainer: {
|
|
289
|
-
padding: 16,
|
|
290
|
-
paddingBottom: 20
|
|
291
|
-
},
|
|
292
|
-
versionContainer: {
|
|
293
|
-
alignItems: 'center',
|
|
294
|
-
marginTop: 20,
|
|
295
|
-
marginBottom: 20
|
|
296
|
-
},
|
|
297
|
-
versionText: {
|
|
298
|
-
fontSize: 12,
|
|
299
|
-
fontFamily: fontFamilies.phudu
|
|
300
|
-
},
|
|
301
|
-
message: {
|
|
302
|
-
fontSize: 16,
|
|
303
|
-
textAlign: 'center',
|
|
304
|
-
marginTop: 24
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
export default AccountCenterScreen;
|
|
308
|
-
//# sourceMappingURL=AccountCenterScreen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","StyleSheet","ActivityIndicator","ScrollView","Alert","Platform","useOxy","packageInfo","toast","fontFamilies","ProfileCard","Section","QuickActions","GroupedSection","GroupedItem","jsx","_jsx","jsxs","_jsxs","AccountCenterScreen","onClose","theme","navigate","user","logout","isLoading","sessions","isDarkTheme","textColor","backgroundColor","secondaryBackgroundColor","borderColor","primaryColor","dangerColor","handleLogout","error","console","confirmLogout","alert","text","style","onPress","cancelable","styles","container","children","message","color","justifyContent","size","onEditPress","activeTab","onClosePress","showCloseButton","scrollView","contentContainerStyle","scrollContainer","showsVerticalScrollIndicator","title","isFirst","actions","id","icon","iconColor","isPremium","length","items","subtitle","OS","info","isLast","showChevron","disabled","customContent","marginRight","versionContainer","versionText","version","create","flex","padding","paddingBottom","alignItems","marginTop","marginBottom","fontSize","fontFamily","phudu","textAlign"],"sourceRoot":"../../../../src","sources":["ui/screens/AccountCenterScreen.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,IAAI,EACJC,IAAI,EAEJC,UAAU,EACVC,iBAAiB,EACjBC,UAAU,EACVC,KAAK,EACLC,QAAQ,QACL,cAAc;AAErB,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,KAAK,QAAQ,kBAAkB;AAExC,SAASC,YAAY,QAAQ,iBAAiB;AAC9C,SACIC,WAAW,EACXC,OAAO,EACPC,YAAY,EACZC,cAAc,EACdC,WAAW,QACR,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEvB,MAAMC,mBAA8C,GAAGA,CAAC;EACpDC,OAAO;EACPC,KAAK;EACLC;AACJ,CAAC,KAAK;EACF,MAAM;IAAEC,IAAI;IAAEC,MAAM;IAAEC,SAAS;IAAEC;EAAS,CAAC,GAAGpB,MAAM,CAAC,CAAC;EAEtD,MAAMqB,WAAW,GAAGN,KAAK,KAAK,MAAM;EACpC,MAAMO,SAAS,GAAGD,WAAW,GAAG,SAAS,GAAG,SAAS;EACrD,MAAME,eAAe,GAAGF,WAAW,GAAG,SAAS,GAAG,SAAS;EAC3D,MAAMG,wBAAwB,GAAGH,WAAW,GAAG,SAAS,GAAG,SAAS;EACpE,MAAMI,WAAW,GAAGJ,WAAW,GAAG,SAAS,GAAG,SAAS;EACvD,MAAMK,YAAY,GAAG,SAAS;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