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