@oxyhq/services 5.4.2 → 5.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/lib/commonjs/assets/OxyLogo.svg +1 -0
- package/lib/commonjs/assets/assets/OxyLogo.svg +1 -0
- 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 +67 -0
- package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +41 -0
- 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 +53 -0
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -0
- package/lib/commonjs/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/commonjs/assets/illustrations/HighFive.js +61 -0
- package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -0
- package/lib/commonjs/constants/version.js +28 -0
- package/lib/commonjs/constants/version.js.map +1 -0
- package/lib/commonjs/core/index.js +1660 -0
- package/lib/commonjs/core/index.js.map +1 -0
- package/lib/commonjs/index.js +160 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/lib/sonner.js +21 -0
- package/lib/commonjs/lib/sonner.js.map +1 -0
- package/lib/commonjs/models/interfaces.js +2 -0
- package/lib/commonjs/models/interfaces.js.map +1 -0
- package/lib/commonjs/models/secureSession.js +2 -0
- package/lib/commonjs/models/secureSession.js.map +1 -0
- package/lib/commonjs/node/createAuth.js +95 -0
- package/lib/commonjs/node/createAuth.js.map +1 -0
- package/lib/commonjs/node/index.js +63 -0
- package/lib/commonjs/node/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/ui/components/Avatar.js +98 -0
- package/lib/commonjs/ui/components/Avatar.js.map +1 -0
- package/lib/commonjs/ui/components/FollowButton.js +246 -0
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -0
- package/lib/commonjs/ui/components/FontLoader.js +181 -0
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -0
- package/lib/commonjs/ui/components/GroupedItem.js +109 -0
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -0
- package/lib/commonjs/ui/components/GroupedSection.js +33 -0
- package/lib/commonjs/ui/components/GroupedSection.js.map +1 -0
- package/lib/commonjs/ui/components/OxyLogo.js +56 -0
- package/lib/commonjs/ui/components/OxyLogo.js.map +1 -0
- package/lib/commonjs/ui/components/OxyProvider.js +522 -0
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -0
- package/lib/commonjs/ui/components/OxySignInButton.js +178 -0
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -0
- package/lib/commonjs/ui/components/ProfileCard.js +124 -0
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -0
- package/lib/commonjs/ui/components/QuickActions.js +87 -0
- package/lib/commonjs/ui/components/QuickActions.js.map +1 -0
- package/lib/commonjs/ui/components/Section.js +36 -0
- package/lib/commonjs/ui/components/Section.js.map +1 -0
- package/lib/commonjs/ui/components/SectionTitle.js +35 -0
- package/lib/commonjs/ui/components/SectionTitle.js.map +1 -0
- package/lib/commonjs/ui/components/bottomSheet/index.js +37 -0
- package/lib/commonjs/ui/components/bottomSheet/index.js.map +1 -0
- package/lib/commonjs/ui/components/icon/OxyIcon.js +27 -0
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -0
- package/lib/commonjs/ui/components/icon/index.js +14 -0
- package/lib/commonjs/ui/components/icon/index.js.map +1 -0
- package/lib/commonjs/ui/components/index.js +97 -0
- package/lib/commonjs/ui/components/index.js.map +1 -0
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +213 -0
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -0
- package/lib/commonjs/ui/components/internal/TextField.js +576 -0
- package/lib/commonjs/ui/components/internal/TextField.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +584 -0
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -0
- package/lib/commonjs/ui/index.js +136 -0
- package/lib/commonjs/ui/index.js.map +1 -0
- package/lib/commonjs/ui/navigation/OxyRouter.js +269 -0
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -0
- package/lib/commonjs/ui/navigation/types.js +6 -0
- package/lib/commonjs/ui/navigation/types.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +313 -0
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountManagementDemo.js +299 -0
- package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +855 -0
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +843 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +788 -0
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AppInfoScreen.js +664 -0
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/BillingManagementScreen.js +636 -0
- package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js +1169 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js +2515 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +1620 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js +450 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +449 -0
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SignInScreen.js +882 -0
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SignUpScreen.js +1036 -0
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +88 -0
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +364 -0
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +227 -0
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +148 -0
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +127 -0
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +105 -0
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
- package/lib/commonjs/ui/store/index.js +52 -0
- package/lib/commonjs/ui/store/index.js.map +1 -0
- package/lib/commonjs/ui/styles/FONTS.md +126 -0
- package/lib/commonjs/ui/styles/fonts.js +84 -0
- package/lib/commonjs/ui/styles/fonts.js.map +1 -0
- package/lib/commonjs/ui/styles/index.js +28 -0
- package/lib/commonjs/ui/styles/index.js.map +1 -0
- package/lib/commonjs/ui/styles/theme.js +121 -0
- package/lib/commonjs/ui/styles/theme.js.map +1 -0
- package/lib/commonjs/utils/deviceManager.js +173 -0
- package/lib/commonjs/utils/deviceManager.js.map +1 -0
- package/lib/commonjs/utils/index.js +13 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/commonjs/utils/polyfills.js +42 -0
- package/lib/commonjs/utils/polyfills.js.map +1 -0
- package/lib/module/assets/OxyLogo.svg +1 -0
- package/lib/module/assets/assets/OxyLogo.svg +1 -0
- 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 +67 -0
- package/lib/module/assets/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/module/assets/assets/illustrations/HighFive.tsx +41 -0
- 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 +46 -0
- package/lib/module/assets/icons/OxyServices.js.map +1 -0
- package/lib/module/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/module/assets/illustrations/HighFive.js +55 -0
- package/lib/module/assets/illustrations/HighFive.js.map +1 -0
- package/lib/module/constants/version.js +21 -0
- package/lib/module/constants/version.js.map +1 -0
- package/lib/module/core/index.js +1634 -0
- package/lib/module/core/index.js.map +1 -0
- package/lib/module/index.js +48 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/lib/sonner.js +16 -0
- package/lib/module/lib/sonner.js.map +1 -0
- package/lib/module/models/interfaces.js +2 -0
- package/lib/module/models/interfaces.js.map +1 -0
- package/lib/module/models/secureSession.js +2 -0
- package/lib/module/models/secureSession.js.map +1 -0
- package/lib/module/node/createAuth.js +90 -0
- package/lib/module/node/createAuth.js.map +1 -0
- package/lib/module/node/index.js +27 -0
- package/lib/module/node/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/ui/components/Avatar.js +93 -0
- package/lib/module/ui/components/Avatar.js.map +1 -0
- package/lib/module/ui/components/FollowButton.js +241 -0
- package/lib/module/ui/components/FollowButton.js.map +1 -0
- package/lib/module/ui/components/FontLoader.js +176 -0
- package/lib/module/ui/components/FontLoader.js.map +1 -0
- package/lib/module/ui/components/GroupedItem.js +104 -0
- package/lib/module/ui/components/GroupedItem.js.map +1 -0
- package/lib/module/ui/components/GroupedSection.js +28 -0
- package/lib/module/ui/components/GroupedSection.js.map +1 -0
- package/lib/module/ui/components/OxyLogo.js +49 -0
- package/lib/module/ui/components/OxyLogo.js.map +1 -0
- package/lib/module/ui/components/OxyProvider.js +516 -0
- package/lib/module/ui/components/OxyProvider.js.map +1 -0
- package/lib/module/ui/components/OxySignInButton.js +172 -0
- package/lib/module/ui/components/OxySignInButton.js.map +1 -0
- package/lib/module/ui/components/ProfileCard.js +119 -0
- package/lib/module/ui/components/ProfileCard.js.map +1 -0
- package/lib/module/ui/components/QuickActions.js +82 -0
- package/lib/module/ui/components/QuickActions.js.map +1 -0
- package/lib/module/ui/components/Section.js +31 -0
- package/lib/module/ui/components/Section.js.map +1 -0
- package/lib/module/ui/components/SectionTitle.js +30 -0
- package/lib/module/ui/components/SectionTitle.js.map +1 -0
- package/lib/module/ui/components/bottomSheet/index.js +5 -0
- package/lib/module/ui/components/bottomSheet/index.js.map +1 -0
- package/lib/module/ui/components/icon/OxyIcon.js +22 -0
- package/lib/module/ui/components/icon/OxyIcon.js.map +1 -0
- package/lib/module/ui/components/icon/index.js +4 -0
- package/lib/module/ui/components/icon/index.js.map +1 -0
- package/lib/module/ui/components/index.js +18 -0
- package/lib/module/ui/components/index.js.map +1 -0
- package/lib/module/ui/components/internal/GroupedPillButtons.js +208 -0
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -0
- package/lib/module/ui/components/internal/TextField.js +571 -0
- package/lib/module/ui/components/internal/TextField.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +579 -0
- package/lib/module/ui/context/OxyContext.js.map +1 -0
- package/lib/module/ui/index.js +26 -0
- package/lib/module/ui/index.js.map +1 -0
- package/lib/module/ui/navigation/OxyRouter.js +262 -0
- package/lib/module/ui/navigation/OxyRouter.js.map +1 -0
- package/lib/module/ui/navigation/types.js +4 -0
- package/lib/module/ui/navigation/types.js.map +1 -0
- package/lib/module/ui/screens/AccountCenterScreen.js +308 -0
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountManagementDemo.js +296 -0
- package/lib/module/ui/screens/AccountManagementDemo.js.map +1 -0
- package/lib/module/ui/screens/AccountOverviewScreen.js +849 -0
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js +837 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountSwitcherScreen.js +782 -0
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -0
- package/lib/module/ui/screens/AppInfoScreen.js +658 -0
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -0
- package/lib/module/ui/screens/BillingManagementScreen.js +631 -0
- package/lib/module/ui/screens/BillingManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/FeedbackScreen.js +1164 -0
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +2510 -0
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +1615 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
- package/lib/module/ui/screens/ProfileScreen.js +444 -0
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -0
- package/lib/module/ui/screens/SessionManagementScreen.js +444 -0
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/SignInScreen.js +876 -0
- package/lib/module/ui/screens/SignInScreen.js.map +1 -0
- package/lib/module/ui/screens/SignUpScreen.js +1030 -0
- package/lib/module/ui/screens/SignUpScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +83 -0
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +358 -0
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +222 -0
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +142 -0
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +122 -0
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +100 -0
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
- package/lib/module/ui/store/index.js +44 -0
- package/lib/module/ui/store/index.js.map +1 -0
- package/lib/module/ui/styles/FONTS.md +126 -0
- package/lib/module/ui/styles/fonts.js +81 -0
- package/lib/module/ui/styles/fonts.js.map +1 -0
- package/lib/module/ui/styles/index.js +5 -0
- package/lib/module/ui/styles/index.js.map +1 -0
- package/lib/module/ui/styles/theme.js +114 -0
- package/lib/module/ui/styles/theme.js.map +1 -0
- package/lib/module/utils/deviceManager.js +167 -0
- package/lib/module/utils/deviceManager.js.map +1 -0
- package/lib/module/utils/index.js +4 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/polyfills.js +36 -0
- package/lib/module/utils/polyfills.js.map +1 -0
- package/lib/typescript/assets/icons/OxyServices.d.ts +29 -0
- package/lib/typescript/assets/icons/OxyServices.d.ts.map +1 -0
- package/lib/typescript/assets/illustrations/HighFive.d.ts +9 -0
- package/lib/typescript/assets/illustrations/HighFive.d.ts.map +1 -0
- package/lib/typescript/constants/version.d.ts +14 -0
- package/lib/typescript/constants/version.d.ts.map +1 -0
- package/lib/typescript/core/index.d.ts +603 -0
- package/lib/typescript/core/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +20 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/lib/sonner.d.ts +6 -0
- package/lib/typescript/lib/sonner.d.ts.map +1 -0
- package/lib/typescript/models/interfaces.d.ts +179 -0
- package/lib/typescript/models/interfaces.d.ts.map +1 -0
- package/lib/typescript/models/secureSession.d.ts +27 -0
- package/lib/typescript/models/secureSession.d.ts.map +1 -0
- package/lib/typescript/node/createAuth.d.ts +7 -0
- package/lib/typescript/node/createAuth.d.ts.map +1 -0
- package/lib/typescript/node/index.d.ts +13 -0
- package/lib/typescript/node/index.d.ts.map +1 -0
- package/lib/typescript/types/expo-vector-icons.d.ts +3 -0
- package/lib/typescript/types/express.d.ts +5 -0
- package/lib/typescript/types/react-redux.d.ts +5 -0
- package/lib/typescript/ui/components/Avatar.d.ts +62 -0
- package/lib/typescript/ui/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/ui/components/FollowButton.d.ts +92 -0
- package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/ui/components/FontLoader.d.ts +15 -0
- package/lib/typescript/ui/components/FontLoader.d.ts.map +1 -0
- package/lib/typescript/ui/components/GroupedItem.d.ts +17 -0
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -0
- package/lib/typescript/ui/components/GroupedSection.d.ts +19 -0
- package/lib/typescript/ui/components/GroupedSection.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxyLogo.d.ts +29 -0
- package/lib/typescript/ui/components/OxyLogo.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxyProvider.d.ts +12 -0
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxySignInButton.d.ts +70 -0
- package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -0
- package/lib/typescript/ui/components/ProfileCard.d.ts +20 -0
- package/lib/typescript/ui/components/ProfileCard.d.ts.map +1 -0
- package/lib/typescript/ui/components/QuickActions.d.ts +15 -0
- package/lib/typescript/ui/components/QuickActions.d.ts.map +1 -0
- package/lib/typescript/ui/components/Section.d.ts +11 -0
- package/lib/typescript/ui/components/Section.d.ts.map +1 -0
- package/lib/typescript/ui/components/SectionTitle.d.ts +9 -0
- package/lib/typescript/ui/components/SectionTitle.d.ts.map +1 -0
- package/lib/typescript/ui/components/bottomSheet/index.d.ts +4 -0
- package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts +10 -0
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +1 -0
- package/lib/typescript/ui/components/icon/index.d.ts +3 -0
- package/lib/typescript/ui/components/icon/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/index.d.ts +13 -0
- package/lib/typescript/ui/components/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts +18 -0
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts +25 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -0
- package/lib/typescript/ui/context/OxyContext.d.ts +42 -0
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -0
- package/lib/typescript/ui/index.d.ts +17 -0
- package/lib/typescript/ui/index.d.ts.map +1 -0
- package/lib/typescript/ui/navigation/OxyRouter.d.ts +5 -0
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -0
- package/lib/typescript/ui/navigation/types.d.ts +116 -0
- package/lib/typescript/ui/navigation/types.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +8 -0
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts +8 -0
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/ProfileScreen.d.ts +9 -0
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SignInScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SignUpScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -0
- package/lib/typescript/ui/store/index.d.ts +19 -0
- package/lib/typescript/ui/store/index.d.ts.map +1 -0
- package/lib/typescript/ui/styles/fonts.d.ts +21 -0
- package/lib/typescript/ui/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/ui/styles/index.d.ts +3 -0
- package/lib/typescript/ui/styles/index.d.ts.map +1 -0
- package/lib/typescript/ui/styles/theme.d.ts +68 -0
- package/lib/typescript/ui/styles/theme.d.ts.map +1 -0
- package/lib/typescript/utils/deviceManager.d.ts +66 -0
- package/lib/typescript/utils/deviceManager.d.ts.map +1 -0
- package/lib/typescript/utils/index.d.ts +3 -0
- package/lib/typescript/utils/index.d.ts.map +1 -0
- package/lib/typescript/utils/polyfills.d.ts +6 -0
- package/lib/typescript/utils/polyfills.d.ts.map +1 -0
- package/package.json +7 -6
- package/src/assets/illustrations/HighFive.tsx +41 -0
- package/src/node/createAuth.ts +116 -0
- package/src/node/index.ts +4 -0
- package/src/types/expo-vector-icons.d.ts +3 -0
- package/src/types/express.d.ts +5 -0
- package/src/types/react-redux.d.ts +5 -0
- package/src/ui/components/OxyProvider.tsx +136 -135
- package/src/ui/components/internal/GroupedPillButtons.tsx +253 -0
- package/src/ui/components/internal/TextField.tsx +694 -0
- package/src/ui/index.ts +6 -2
- package/src/ui/navigation/OxyRouter.tsx +8 -3
- package/src/ui/screens/FeedbackScreen.tsx +1042 -0
- package/src/ui/screens/SignInScreen.tsx +179 -222
- package/src/ui/screens/SignUpScreen.tsx +772 -608
- package/src/ui/store/index.ts +51 -0
|
@@ -0,0 +1,262 @@
|
|
|
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 FeedbackScreen from '../screens/FeedbackScreen';
|
|
17
|
+
import KarmaCenterScreen from '../screens/karma/KarmaCenterScreen';
|
|
18
|
+
import KarmaLeaderboardScreen from '../screens/karma/KarmaLeaderboardScreen';
|
|
19
|
+
import KarmaRulesScreen from '../screens/karma/KarmaRulesScreen';
|
|
20
|
+
import KarmaAboutScreen from '../screens/karma/KarmaAboutScreen';
|
|
21
|
+
import KarmaRewardsScreen from '../screens/karma/KarmaRewardsScreen';
|
|
22
|
+
import KarmaFAQScreen from '../screens/karma/KarmaFAQScreen';
|
|
23
|
+
import ProfileScreen from '../screens/ProfileScreen';
|
|
24
|
+
import FileManagementScreen from '../screens/FileManagementScreen';
|
|
25
|
+
|
|
26
|
+
// Import types
|
|
27
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
+
// Define route configuration with screen components and default snap points
|
|
29
|
+
const routes = {
|
|
30
|
+
SignIn: {
|
|
31
|
+
component: SignInScreen,
|
|
32
|
+
snapPoints: ['10%', '80%']
|
|
33
|
+
},
|
|
34
|
+
SignUp: {
|
|
35
|
+
component: SignUpScreen,
|
|
36
|
+
snapPoints: ['10%', '90%']
|
|
37
|
+
},
|
|
38
|
+
AccountCenter: {
|
|
39
|
+
component: AccountCenterScreen,
|
|
40
|
+
snapPoints: ['60%', '100%']
|
|
41
|
+
},
|
|
42
|
+
AccountSwitcher: {
|
|
43
|
+
component: AccountSwitcherScreen,
|
|
44
|
+
snapPoints: ['70%', '100%']
|
|
45
|
+
},
|
|
46
|
+
SessionManagement: {
|
|
47
|
+
component: SessionManagementScreen,
|
|
48
|
+
snapPoints: ['70%', '100%']
|
|
49
|
+
},
|
|
50
|
+
AccountOverview: {
|
|
51
|
+
component: AccountOverviewScreen,
|
|
52
|
+
snapPoints: ['60%', '85%']
|
|
53
|
+
},
|
|
54
|
+
AccountSettings: {
|
|
55
|
+
component: AccountSettingsScreen,
|
|
56
|
+
snapPoints: ['60%', '100%']
|
|
57
|
+
},
|
|
58
|
+
PremiumSubscription: {
|
|
59
|
+
component: PremiumSubscriptionScreen,
|
|
60
|
+
snapPoints: ['70%', '100%']
|
|
61
|
+
},
|
|
62
|
+
BillingManagement: {
|
|
63
|
+
component: BillingManagementScreen,
|
|
64
|
+
snapPoints: ['70%', '100%']
|
|
65
|
+
},
|
|
66
|
+
AppInfo: {
|
|
67
|
+
component: AppInfoScreen,
|
|
68
|
+
snapPoints: ['60%', '90%']
|
|
69
|
+
},
|
|
70
|
+
Feedback: {
|
|
71
|
+
component: FeedbackScreen,
|
|
72
|
+
snapPoints: ['70%', '100%']
|
|
73
|
+
},
|
|
74
|
+
KarmaCenter: {
|
|
75
|
+
component: KarmaCenterScreen,
|
|
76
|
+
snapPoints: ['60%', '100%']
|
|
77
|
+
},
|
|
78
|
+
KarmaLeaderboard: {
|
|
79
|
+
component: KarmaLeaderboardScreen,
|
|
80
|
+
snapPoints: ['60%', '100%']
|
|
81
|
+
},
|
|
82
|
+
KarmaRules: {
|
|
83
|
+
component: KarmaRulesScreen,
|
|
84
|
+
snapPoints: ['60%', '90%']
|
|
85
|
+
},
|
|
86
|
+
AboutKarma: {
|
|
87
|
+
component: KarmaAboutScreen,
|
|
88
|
+
snapPoints: ['60%', '90%']
|
|
89
|
+
},
|
|
90
|
+
KarmaRewards: {
|
|
91
|
+
component: KarmaRewardsScreen,
|
|
92
|
+
snapPoints: ['60%', '90%']
|
|
93
|
+
},
|
|
94
|
+
KarmaFAQ: {
|
|
95
|
+
component: KarmaFAQScreen,
|
|
96
|
+
snapPoints: ['60%', '90%']
|
|
97
|
+
},
|
|
98
|
+
Profile: {
|
|
99
|
+
component: ProfileScreen,
|
|
100
|
+
snapPoints: ['60%', '90%']
|
|
101
|
+
},
|
|
102
|
+
FileManagement: {
|
|
103
|
+
component: FileManagementScreen,
|
|
104
|
+
snapPoints: ['70%', '100%']
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const OxyRouter = ({
|
|
108
|
+
oxyServices,
|
|
109
|
+
initialScreen,
|
|
110
|
+
onClose,
|
|
111
|
+
onAuthenticated,
|
|
112
|
+
theme,
|
|
113
|
+
adjustSnapPoints,
|
|
114
|
+
navigationRef,
|
|
115
|
+
containerWidth
|
|
116
|
+
}) => {
|
|
117
|
+
const [currentScreen, setCurrentScreen] = useState(initialScreen);
|
|
118
|
+
const [screenHistory, setScreenHistory] = useState([initialScreen]);
|
|
119
|
+
const [screenProps, setScreenProps] = useState({});
|
|
120
|
+
|
|
121
|
+
// Update snap points when the screen changes
|
|
122
|
+
useEffect(() => {
|
|
123
|
+
if (routes[currentScreen]) {
|
|
124
|
+
adjustSnapPoints(routes[currentScreen].snapPoints);
|
|
125
|
+
}
|
|
126
|
+
}, [currentScreen, adjustSnapPoints]);
|
|
127
|
+
|
|
128
|
+
// Navigation methods
|
|
129
|
+
const navigate = (screen, props = {}) => {
|
|
130
|
+
if (routes[screen]) {
|
|
131
|
+
setCurrentScreen(screen);
|
|
132
|
+
setScreenHistory(prev => [...prev, screen]);
|
|
133
|
+
setScreenProps(props);
|
|
134
|
+
} else {
|
|
135
|
+
console.error(`Screen "${screen}" not found`);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
// Expose the navigate function to the parent component
|
|
140
|
+
useEffect(() => {
|
|
141
|
+
if (navigationRef) {
|
|
142
|
+
navigationRef.current = navigate;
|
|
143
|
+
}
|
|
144
|
+
return () => {
|
|
145
|
+
if (navigationRef) {
|
|
146
|
+
navigationRef.current = null;
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}, [navigate, navigationRef]);
|
|
150
|
+
|
|
151
|
+
// Expose the navigate method to the parent component (OxyProvider)
|
|
152
|
+
useEffect(() => {
|
|
153
|
+
// Set up event listener for navigation events
|
|
154
|
+
const handleNavigationEvent = event => {
|
|
155
|
+
if (event && event.detail) {
|
|
156
|
+
// Support both string and object detail
|
|
157
|
+
if (typeof event.detail === 'string') {
|
|
158
|
+
const screenName = event.detail;
|
|
159
|
+
console.log(`Navigation event received for screen: ${screenName}`);
|
|
160
|
+
navigate(screenName);
|
|
161
|
+
} else if (typeof event.detail === 'object' && event.detail.screen) {
|
|
162
|
+
const {
|
|
163
|
+
screen,
|
|
164
|
+
props
|
|
165
|
+
} = event.detail;
|
|
166
|
+
console.log(`Navigation event received for screen: ${screen} with props`, props);
|
|
167
|
+
navigate(screen, props || {});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
// For React Native - check for global navigation events
|
|
173
|
+
let intervalId = null;
|
|
174
|
+
if (typeof document !== 'undefined') {
|
|
175
|
+
// Web - use custom event listener
|
|
176
|
+
document.addEventListener('oxy:navigate', handleNavigationEvent);
|
|
177
|
+
} else {
|
|
178
|
+
// React Native - poll for global navigation events
|
|
179
|
+
intervalId = setInterval(() => {
|
|
180
|
+
const globalNav = globalThis.oxyNavigateEvent;
|
|
181
|
+
if (globalNav) {
|
|
182
|
+
console.log(`RN Navigation event received:`, globalNav);
|
|
183
|
+
if (globalNav.screen) {
|
|
184
|
+
navigate(globalNav.screen, globalNav.props || {});
|
|
185
|
+
}
|
|
186
|
+
// Clear the event after processing
|
|
187
|
+
globalThis.oxyNavigateEvent = null;
|
|
188
|
+
}
|
|
189
|
+
}, 100); // Check every 100ms
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// Cleanup
|
|
193
|
+
return () => {
|
|
194
|
+
if (typeof document !== 'undefined') {
|
|
195
|
+
document.removeEventListener('oxy:navigate', handleNavigationEvent);
|
|
196
|
+
}
|
|
197
|
+
if (intervalId) {
|
|
198
|
+
clearInterval(intervalId);
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
}, []);
|
|
202
|
+
const goBack = () => {
|
|
203
|
+
if (screenHistory.length > 1) {
|
|
204
|
+
const newHistory = [...screenHistory];
|
|
205
|
+
newHistory.pop();
|
|
206
|
+
const previousScreen = newHistory[newHistory.length - 1];
|
|
207
|
+
setCurrentScreen(previousScreen);
|
|
208
|
+
setScreenHistory(newHistory);
|
|
209
|
+
} else {
|
|
210
|
+
// If no history, close the UI
|
|
211
|
+
if (onClose) {
|
|
212
|
+
onClose();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
// Render the current screen component
|
|
218
|
+
const renderScreen = () => {
|
|
219
|
+
const CurrentScreen = routes[currentScreen]?.component;
|
|
220
|
+
console.log('[OxyRouter] Rendering screen:', currentScreen);
|
|
221
|
+
console.log('[OxyRouter] Available routes:', Object.keys(routes));
|
|
222
|
+
console.log('[OxyRouter] Current screen component found:', !!CurrentScreen);
|
|
223
|
+
if (!CurrentScreen) {
|
|
224
|
+
console.error(`Screen "${currentScreen}" not found`);
|
|
225
|
+
return /*#__PURE__*/_jsx(View, {
|
|
226
|
+
style: styles.errorContainer
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
console.log('[OxyRouter] Rendering screen component for:', currentScreen);
|
|
230
|
+
return /*#__PURE__*/_jsx(CurrentScreen, {
|
|
231
|
+
oxyServices: oxyServices,
|
|
232
|
+
navigate: navigate,
|
|
233
|
+
goBack: goBack,
|
|
234
|
+
onClose: onClose,
|
|
235
|
+
onAuthenticated: onAuthenticated,
|
|
236
|
+
theme: theme,
|
|
237
|
+
containerWidth: containerWidth,
|
|
238
|
+
...screenProps
|
|
239
|
+
});
|
|
240
|
+
};
|
|
241
|
+
return /*#__PURE__*/_jsx(View, {
|
|
242
|
+
style: styles.container,
|
|
243
|
+
children: renderScreen()
|
|
244
|
+
});
|
|
245
|
+
};
|
|
246
|
+
const styles = StyleSheet.create({
|
|
247
|
+
container: {
|
|
248
|
+
flex: 1,
|
|
249
|
+
minHeight: 200,
|
|
250
|
+
// Ensure minimum height
|
|
251
|
+
backgroundColor: 'transparent' // Make sure it's visible
|
|
252
|
+
},
|
|
253
|
+
errorContainer: {
|
|
254
|
+
flex: 1,
|
|
255
|
+
justifyContent: 'center',
|
|
256
|
+
alignItems: 'center',
|
|
257
|
+
minHeight: 100,
|
|
258
|
+
backgroundColor: 'red' // Make errors visible
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
export default OxyRouter;
|
|
262
|
+
//# sourceMappingURL=OxyRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","View","StyleSheet","SignInScreen","SignUpScreen","AccountCenterScreen","AccountSwitcherScreen","SessionManagementScreen","AccountOverviewScreen","AccountSettingsScreen","PremiumSubscriptionScreen","BillingManagementScreen","AppInfoScreen","FeedbackScreen","KarmaCenterScreen","KarmaLeaderboardScreen","KarmaRulesScreen","KarmaAboutScreen","KarmaRewardsScreen","KarmaFAQScreen","ProfileScreen","FileManagementScreen","jsx","_jsx","routes","SignIn","component","snapPoints","SignUp","AccountCenter","AccountSwitcher","SessionManagement","AccountOverview","AccountSettings","PremiumSubscription","BillingManagement","AppInfo","Feedback","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,cAAc,MAAM,2BAA2B;AACtD,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,GAAA,IAAAC,IAAA;AAGA;AACA,MAAMC,MAAmC,GAAG;EACxCC,MAAM,EAAE;IACJC,SAAS,EAAEvB,YAAY;IACvBwB,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK;EAC7B,CAAC;EACDC,MAAM,EAAE;IACJF,SAAS,EAAEtB,YAAY;IACvBuB,UAAU,EAAE,CAAC,KAAK,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EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBH,SAAS,EAAE,GAAG;IACdC,eAAe,EAAE,KAAK,CAAE;EAC5B;AACJ,CAAC,CAAC;AAEF,eAAerD,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["ui/navigation/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,308 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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;EAC9B,MAAMC,WAAW,GAAG,SAAS;EAE7B,MAAMC,YAAY,GAAG,MAAAA,CAAA,KAAY;IAC7B,IAAI;MACA,MAAMV,MAAM,CAAC,CAAC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