@oxyhq/services 5.4.1 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/core/index.ts +68 -0
- package/src/ui/components/OxyProvider.tsx +5 -5
- package/src/ui/context/OxyContext.tsx +61 -41
- package/src/ui/screens/AccountOverviewScreen.tsx +44 -26
- package/src/ui/screens/AccountSettingsScreen.tsx +24 -18
- package/src/ui/screens/FileManagementScreen.tsx +246 -211
- package/src/ui/screens/SignInScreen.tsx +382 -326
- package/src/ui/screens/SignUpScreen.tsx +443 -273
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +50 -29
- package/lib/commonjs/assets/OxyLogo.svg +0 -1
- package/lib/commonjs/assets/assets/OxyLogo.svg +0 -1
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/assets/icons/OxyServices.tsx +0 -67
- package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/icons/OxyServices.js +0 -53
- package/lib/commonjs/assets/icons/OxyServices.js.map +0 -1
- package/lib/commonjs/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/commonjs/constants/version.js +0 -28
- package/lib/commonjs/constants/version.js.map +0 -1
- package/lib/commonjs/core/index.js +0 -1578
- package/lib/commonjs/core/index.js.map +0 -1
- package/lib/commonjs/index.js +0 -160
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/lib/sonner.js +0 -21
- package/lib/commonjs/lib/sonner.js.map +0 -1
- package/lib/commonjs/models/interfaces.js +0 -2
- package/lib/commonjs/models/interfaces.js.map +0 -1
- package/lib/commonjs/models/secureSession.js +0 -2
- package/lib/commonjs/models/secureSession.js.map +0 -1
- package/lib/commonjs/node/index.js +0 -54
- package/lib/commonjs/node/index.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/ui/components/Avatar.js +0 -98
- package/lib/commonjs/ui/components/Avatar.js.map +0 -1
- package/lib/commonjs/ui/components/FollowButton.js +0 -246
- package/lib/commonjs/ui/components/FollowButton.js.map +0 -1
- package/lib/commonjs/ui/components/FontLoader.js +0 -181
- package/lib/commonjs/ui/components/FontLoader.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedItem.js +0 -109
- package/lib/commonjs/ui/components/GroupedItem.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedSection.js +0 -33
- package/lib/commonjs/ui/components/GroupedSection.js.map +0 -1
- package/lib/commonjs/ui/components/OxyLogo.js +0 -56
- package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
- package/lib/commonjs/ui/components/OxyProvider.js +0 -517
- package/lib/commonjs/ui/components/OxyProvider.js.map +0 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +0 -178
- package/lib/commonjs/ui/components/OxySignInButton.js.map +0 -1
- package/lib/commonjs/ui/components/ProfileCard.js +0 -124
- package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
- package/lib/commonjs/ui/components/QuickActions.js +0 -87
- package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
- package/lib/commonjs/ui/components/Section.js +0 -36
- package/lib/commonjs/ui/components/Section.js.map +0 -1
- package/lib/commonjs/ui/components/SectionTitle.js +0 -35
- package/lib/commonjs/ui/components/SectionTitle.js.map +0 -1
- package/lib/commonjs/ui/components/bottomSheet/index.js +0 -37
- package/lib/commonjs/ui/components/bottomSheet/index.js.map +0 -1
- package/lib/commonjs/ui/components/icon/OxyIcon.js +0 -27
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/commonjs/ui/components/icon/index.js +0 -14
- package/lib/commonjs/ui/components/icon/index.js.map +0 -1
- package/lib/commonjs/ui/components/index.js +0 -97
- package/lib/commonjs/ui/components/index.js.map +0 -1
- package/lib/commonjs/ui/context/OxyContext.js +0 -568
- package/lib/commonjs/ui/context/OxyContext.js.map +0 -1
- package/lib/commonjs/ui/index.js +0 -128
- package/lib/commonjs/ui/index.js.map +0 -1
- package/lib/commonjs/ui/navigation/OxyRouter.js +0 -264
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +0 -1
- package/lib/commonjs/ui/navigation/types.js +0 -6
- package/lib/commonjs/ui/navigation/types.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +0 -313
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountManagementDemo.js +0 -299
- package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +0 -837
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +0 -836
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +0 -788
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +0 -664
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/BillingManagementScreen.js +0 -636
- package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +0 -2497
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -1620
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +0 -450
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +0 -449
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +0 -956
- package/lib/commonjs/ui/screens/SignInScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SignUpScreen.js +0 -762
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +0 -88
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +0 -364
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +0 -202
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +0 -148
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +0 -127
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +0 -105
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
- package/lib/commonjs/ui/styles/FONTS.md +0 -126
- package/lib/commonjs/ui/styles/fonts.js +0 -84
- package/lib/commonjs/ui/styles/fonts.js.map +0 -1
- package/lib/commonjs/ui/styles/index.js +0 -28
- package/lib/commonjs/ui/styles/index.js.map +0 -1
- package/lib/commonjs/ui/styles/theme.js +0 -121
- package/lib/commonjs/ui/styles/theme.js.map +0 -1
- package/lib/commonjs/utils/deviceManager.js +0 -173
- package/lib/commonjs/utils/deviceManager.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -13
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/polyfills.js +0 -42
- package/lib/commonjs/utils/polyfills.js.map +0 -1
- package/lib/module/assets/OxyLogo.svg +0 -1
- package/lib/module/assets/assets/OxyLogo.svg +0 -1
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/assets/icons/OxyServices.tsx +0 -67
- package/lib/module/assets/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/icons/OxyServices.js +0 -46
- package/lib/module/assets/icons/OxyServices.js.map +0 -1
- package/lib/module/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/module/constants/version.js +0 -21
- package/lib/module/constants/version.js.map +0 -1
- package/lib/module/core/index.js +0 -1552
- package/lib/module/core/index.js.map +0 -1
- package/lib/module/index.js +0 -48
- package/lib/module/index.js.map +0 -1
- package/lib/module/lib/sonner.js +0 -16
- package/lib/module/lib/sonner.js.map +0 -1
- package/lib/module/models/interfaces.js +0 -2
- package/lib/module/models/interfaces.js.map +0 -1
- package/lib/module/models/secureSession.js +0 -2
- package/lib/module/models/secureSession.js.map +0 -1
- package/lib/module/node/index.js +0 -23
- package/lib/module/node/index.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/module/ui/components/Avatar.js +0 -93
- package/lib/module/ui/components/Avatar.js.map +0 -1
- package/lib/module/ui/components/FollowButton.js +0 -241
- package/lib/module/ui/components/FollowButton.js.map +0 -1
- package/lib/module/ui/components/FontLoader.js +0 -176
- package/lib/module/ui/components/FontLoader.js.map +0 -1
- package/lib/module/ui/components/GroupedItem.js +0 -104
- package/lib/module/ui/components/GroupedItem.js.map +0 -1
- package/lib/module/ui/components/GroupedSection.js +0 -28
- package/lib/module/ui/components/GroupedSection.js.map +0 -1
- package/lib/module/ui/components/OxyLogo.js +0 -49
- package/lib/module/ui/components/OxyLogo.js.map +0 -1
- package/lib/module/ui/components/OxyProvider.js +0 -511
- package/lib/module/ui/components/OxyProvider.js.map +0 -1
- package/lib/module/ui/components/OxySignInButton.js +0 -172
- package/lib/module/ui/components/OxySignInButton.js.map +0 -1
- package/lib/module/ui/components/ProfileCard.js +0 -119
- package/lib/module/ui/components/ProfileCard.js.map +0 -1
- package/lib/module/ui/components/QuickActions.js +0 -82
- package/lib/module/ui/components/QuickActions.js.map +0 -1
- package/lib/module/ui/components/Section.js +0 -31
- package/lib/module/ui/components/Section.js.map +0 -1
- package/lib/module/ui/components/SectionTitle.js +0 -30
- package/lib/module/ui/components/SectionTitle.js.map +0 -1
- package/lib/module/ui/components/bottomSheet/index.js +0 -5
- package/lib/module/ui/components/bottomSheet/index.js.map +0 -1
- package/lib/module/ui/components/icon/OxyIcon.js +0 -22
- package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/module/ui/components/icon/index.js +0 -4
- package/lib/module/ui/components/icon/index.js.map +0 -1
- package/lib/module/ui/components/index.js +0 -18
- package/lib/module/ui/components/index.js.map +0 -1
- package/lib/module/ui/context/OxyContext.js +0 -563
- package/lib/module/ui/context/OxyContext.js.map +0 -1
- package/lib/module/ui/index.js +0 -24
- package/lib/module/ui/index.js.map +0 -1
- package/lib/module/ui/navigation/OxyRouter.js +0 -257
- package/lib/module/ui/navigation/OxyRouter.js.map +0 -1
- package/lib/module/ui/navigation/types.js +0 -4
- package/lib/module/ui/navigation/types.js.map +0 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +0 -308
- package/lib/module/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountManagementDemo.js +0 -296
- package/lib/module/ui/screens/AccountManagementDemo.js.map +0 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +0 -831
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +0 -830
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -782
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/module/ui/screens/AppInfoScreen.js +0 -658
- package/lib/module/ui/screens/AppInfoScreen.js.map +0 -1
- package/lib/module/ui/screens/BillingManagementScreen.js +0 -631
- package/lib/module/ui/screens/BillingManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/FileManagementScreen.js +0 -2492
- package/lib/module/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -1615
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/module/ui/screens/ProfileScreen.js +0 -444
- package/lib/module/ui/screens/ProfileScreen.js.map +0 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +0 -444
- package/lib/module/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/SignInScreen.js +0 -950
- package/lib/module/ui/screens/SignInScreen.js.map +0 -1
- package/lib/module/ui/screens/SignUpScreen.js +0 -755
- package/lib/module/ui/screens/SignUpScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +0 -83
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +0 -358
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +0 -197
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +0 -142
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +0 -122
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +0 -100
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
- package/lib/module/ui/styles/FONTS.md +0 -126
- package/lib/module/ui/styles/fonts.js +0 -81
- package/lib/module/ui/styles/fonts.js.map +0 -1
- package/lib/module/ui/styles/index.js +0 -5
- package/lib/module/ui/styles/index.js.map +0 -1
- package/lib/module/ui/styles/theme.js +0 -114
- package/lib/module/ui/styles/theme.js.map +0 -1
- package/lib/module/utils/deviceManager.js +0 -167
- package/lib/module/utils/deviceManager.js.map +0 -1
- package/lib/module/utils/index.js +0 -4
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/polyfills.js +0 -36
- package/lib/module/utils/polyfills.js.map +0 -1
- package/lib/typescript/assets/icons/OxyServices.d.ts +0 -29
- package/lib/typescript/assets/icons/OxyServices.d.ts.map +0 -1
- package/lib/typescript/constants/version.d.ts +0 -14
- package/lib/typescript/constants/version.d.ts.map +0 -1
- package/lib/typescript/core/index.d.ts +0 -579
- package/lib/typescript/core/index.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -20
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/lib/sonner.d.ts +0 -6
- package/lib/typescript/lib/sonner.d.ts.map +0 -1
- package/lib/typescript/models/interfaces.d.ts +0 -179
- package/lib/typescript/models/interfaces.d.ts.map +0 -1
- package/lib/typescript/models/secureSession.d.ts +0 -27
- package/lib/typescript/models/secureSession.d.ts.map +0 -1
- package/lib/typescript/node/index.d.ts +0 -11
- package/lib/typescript/node/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/Avatar.d.ts +0 -62
- package/lib/typescript/ui/components/Avatar.d.ts.map +0 -1
- package/lib/typescript/ui/components/FollowButton.d.ts +0 -92
- package/lib/typescript/ui/components/FollowButton.d.ts.map +0 -1
- package/lib/typescript/ui/components/FontLoader.d.ts +0 -15
- package/lib/typescript/ui/components/FontLoader.d.ts.map +0 -1
- package/lib/typescript/ui/components/GroupedItem.d.ts +0 -17
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +0 -1
- package/lib/typescript/ui/components/GroupedSection.d.ts +0 -19
- package/lib/typescript/ui/components/GroupedSection.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxyLogo.d.ts +0 -29
- package/lib/typescript/ui/components/OxyLogo.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts +0 -12
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxySignInButton.d.ts +0 -70
- package/lib/typescript/ui/components/OxySignInButton.d.ts.map +0 -1
- package/lib/typescript/ui/components/ProfileCard.d.ts +0 -20
- package/lib/typescript/ui/components/ProfileCard.d.ts.map +0 -1
- package/lib/typescript/ui/components/QuickActions.d.ts +0 -15
- package/lib/typescript/ui/components/QuickActions.d.ts.map +0 -1
- package/lib/typescript/ui/components/Section.d.ts +0 -11
- package/lib/typescript/ui/components/Section.d.ts.map +0 -1
- package/lib/typescript/ui/components/SectionTitle.d.ts +0 -9
- package/lib/typescript/ui/components/SectionTitle.d.ts.map +0 -1
- package/lib/typescript/ui/components/bottomSheet/index.d.ts +0 -4
- package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts +0 -10
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +0 -1
- package/lib/typescript/ui/components/icon/index.d.ts +0 -3
- package/lib/typescript/ui/components/icon/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/index.d.ts +0 -13
- package/lib/typescript/ui/components/index.d.ts.map +0 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +0 -42
- package/lib/typescript/ui/context/OxyContext.d.ts.map +0 -1
- package/lib/typescript/ui/index.d.ts +0 -15
- package/lib/typescript/ui/index.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/OxyRouter.d.ts +0 -5
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/types.d.ts +0 -116
- package/lib/typescript/ui/navigation/types.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +0 -8
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts +0 -8
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts +0 -9
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SignInScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +0 -1
- package/lib/typescript/ui/styles/fonts.d.ts +0 -21
- package/lib/typescript/ui/styles/fonts.d.ts.map +0 -1
- package/lib/typescript/ui/styles/index.d.ts +0 -3
- package/lib/typescript/ui/styles/index.d.ts.map +0 -1
- package/lib/typescript/ui/styles/theme.d.ts +0 -68
- package/lib/typescript/ui/styles/theme.d.ts.map +0 -1
- package/lib/typescript/utils/deviceManager.d.ts +0 -66
- package/lib/typescript/utils/deviceManager.d.ts.map +0 -1
- package/lib/typescript/utils/index.d.ts +0 -3
- package/lib/typescript/utils/index.d.ts.map +0 -1
- package/lib/typescript/utils/polyfills.d.ts +0 -6
- package/lib/typescript/utils/polyfills.d.ts.map +0 -1
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.OxyLogo = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
9
|
-
var _theme = require("../styles/theme");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
/**
|
|
14
|
-
* SVG logo component for Oxy
|
|
15
|
-
* This component renders the Oxy logo as an SVG and uses theme colors by default
|
|
16
|
-
*/
|
|
17
|
-
const OxyLogo = ({
|
|
18
|
-
width = 24,
|
|
19
|
-
height = 24,
|
|
20
|
-
style,
|
|
21
|
-
fillColor,
|
|
22
|
-
secondaryFillColor,
|
|
23
|
-
theme = 'light'
|
|
24
|
-
}) => {
|
|
25
|
-
// Get colors from theme
|
|
26
|
-
const themeColors = (0, _theme.useThemeColors)(theme);
|
|
27
|
-
|
|
28
|
-
// Use theme primary color if no fillColor is provided
|
|
29
|
-
const primaryColor = fillColor || themeColors.primary;
|
|
30
|
-
const innerFillColor = secondaryFillColor || themeColors.background;
|
|
31
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
32
|
-
width: width,
|
|
33
|
-
height: height,
|
|
34
|
-
viewBox: "0 0 294.84 174.42",
|
|
35
|
-
style: style,
|
|
36
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
37
|
-
d: "M241.03 24.83c-3.42-9.32-9.47-19.01-19.05-22.86-6.33-2.55-13.1-2.6-19.49-.26-.52.19-2.22 1.12-2.54 1.12-.22 0-3.3-1.39-4.05-1.61-15.97-4.57-30.37 9.5-39.44 20.8-1.15 1.43-2.29 2.92-3.27 4.48-.35.28-.56-.8-.69-1.06C146.04 12.12 135.23-.4 118.95 1 106.2 2.09 97.86 12.26 96.36 24.5 89.8 16.6 81.31 9.75 71.2 7.08c-15.67-4.13-33.09-.39-45.34 10.17C-3.79 42.81-5.21 97.16 7.9 131.37c9.4 24.5 28.9 43.2 56.85 40.1 11.33-1.25 21.77-5.76 29.87-13.81.13-.03 1.58 1.62 1.9 1.91 2.63 2.38 5.97 4.23 9.43 5.07 17.29 4.17 30.59-11.83 39.99-23.82.21-.05.29.13.41.26 1.22 1.26 2.48 3.38 3.67 4.83 4.4 5.34 10.34 11.44 16.49 14.67 6.58 3.46 14.76 4.48 21.74 1.59 6.43 11.54 20.66 15.21 32.49 9.8 15.49-7.08 28.86-30.53 36.97-45.03 9.26-16.56 18.94-34.11 26.22-51.62 7.51-18.09 19.12-51.35 2.09-67.08-13.19-12.18-31.47-2.47-40.24 9.94l-4.77 6.65z",
|
|
38
|
-
fill: primaryColor
|
|
39
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
40
|
-
d: "M241.03 24.83l4.77-6.65c8.77-12.41 27.04-22.12 40.24-9.94 17.03 15.73 5.42 48.99-2.09 67.08-7.27 17.51-16.96 35.06-26.22 51.62-8.11 14.5-21.48 37.95-36.97 45.03-11.83 5.41-26.07 1.74-32.49-9.8-6.98 2.89-15.16 1.87-21.74-1.59-6.15-3.23-12.09-9.34-16.49-14.67-1.19-1.45-2.46-3.56-3.67-4.83-.12-.13-.2-.3-.41-.26-9.4 11.99-22.7 28-39.99 23.82-3.46-.84-6.8-2.69-9.43-5.07-.32-.29-1.77-1.94-1.9-1.91-8.1 8.04-18.53 12.55-29.87 13.81-27.95 3.09-47.46-15.6-56.85-40.1C-5.21 97.16-3.79 42.81 25.86 17.24 38.11 6.68 55.52 2.94 71.2 7.07c10.11 2.67 18.6 9.52 25.16 17.42 1.5-12.24 9.84-22.4 22.59-23.5 16.29-1.4 27.1 11.12 33.56 24.44.13.26.34 1.34.69 1.06.98-1.56 2.12-3.05 3.27-4.48 9.07-11.31 23.46-25.37 39.44-20.8.75.22 3.83 1.61 4.05 1.61.32 0 2.02-.93 2.54-1.12 6.4-2.33 13.16-2.28 19.49.26 9.58 3.85 15.64 13.54 19.05 22.86zm-6.67 48c-.88-9.38-1.79-18.77-3.55-28.03s-6.28-28.62-17.53-29.63-15.8 12.97-16.25 22.08c-.74 15.27 4.07 34.76 8.66 49.33 1.38 4.37 3 10.74 6.08 14.08 2.11 2.28 5.31 4.24 8.25 5.17-7.02 9.48-14.5 19.44-18.34 30.74-2.02 5.96-3.84 17.45 2.68 21.32 9.11 5.41 18.68-5.84 23.72-12.25 5.64-7.18 10.62-15.76 15.13-23.7 7.64-13.46 15.57-27.88 22.11-41.89 6.55-14.02 15.36-34.93 14.36-50.48-.25-3.85-2.02-10.44-6.3-11.53-8.54-2.18-17.65 11.65-21.44 17.8-7.07 11.49-12.42 24.19-17.22 36.77l-.37.21zm-83.67-14.84c-.11.08-.3-.27-.36-.38-.89-1.66-1.61-4.13-2.39-5.94-3.05-7.11-6.55-15.22-10.16-22.01s-11.12-16.46-20.3-12.96-6.07 17.71-4.28 24.7c3.59 13.98 9.21 27.75 14.81 41.02-5.93 11.33-11.94 22.65-17.47 34.19-3.8 7.92-10.58 22.31-4.93 30.54 6.13 8.92 18.44-3.44 22.73-8.57l19.09-23.41.39.27c6.19 10.08 12.58 21.57 21.85 29.14 6.31 5.16 15.72 6.95 17.45-3.38 1.09-6.53-3.31-16.75-5.87-22.86-4.2-10-9.25-19.64-14.62-29.05l-.13-.52c1.51-2.98 3.38-5.75 5.03-8.65 4-7.06 7.7-14.28 11.61-21.39 4.97-9.05 14.77-23.79 13.86-34.3-.31-3.61-2.31-8.51-6.42-8.92-8.41-.84-18.76 11.28-23.48 17.35-6.12 7.86-11.53 16.49-16.43 25.15zM55 20.71c-28.18 1.93-38.49 35.65-39.8 59.2-1.68 30.16 10.02 82.97 50.53 76.2 32.13-5.37 37.37-46.47 34.97-72.86S88.19 18.44 55 20.71zm140.7 93.28c.31.07.32-.1.47-.28 1-1.16 1.69-3.21 2.78-4.4l.06-.37c-3.26-4.14-4.87-9.22-6.52-14.16-1.44-4.32-2.5-8.78-3.91-13.09-.07-.2-.12-.7-.38-.7-1.27 2.82-3.17 5.34-4.31 8.21 4.29 8.08 8.46 16.26 11.81 24.79z",
|
|
41
|
-
fill: primaryColor
|
|
42
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
43
|
-
d: "M55 20.71c33.19-2.27 43.33 36.41 45.7 62.54s-2.84 67.49-34.97 72.86c-40.5 6.77-52.21-46.03-50.53-76.2 1.31-23.56 11.62-57.27 39.8-59.2zm.99 38.66c-4.57.62-7.12 6.56-8.21 10.46-3.47 12.39-1.15 36.95 5.85 47.99 4 6.3 10.59 7.71 14.1.13 5.48-11.82 4.06-35.72-.36-47.87-1.84-5.06-5-11.57-11.38-10.7zM150.69 57.99c4.9-8.66 10.31-17.29 16.43-25.15 4.73-6.07 15.07-18.19 23.48-17.35 4.11.41 6.1 5.31 6.42 8.92.91 10.52-8.89 25.26-13.86 34.3-3.9 7.11-7.61 14.33-11.61 21.39-1.64 2.9-3.52 5.67-5.03 8.65l.13.52c5.37 9.41 10.42 19.05 14.62 29.05 2.57 6.11 6.97 16.33 5.87 22.86-1.73 10.33-11.14 8.54-17.45 3.38-9.27-7.57-15.67-19.07-21.85-29.14l-.39-.27-19.09 23.41c-4.29 5.13-16.6 17.49-22.73 8.57-5.66-8.23 1.13-22.63 4.93-30.54 5.53-11.54 11.54-22.86 17.47-34.19-5.61-13.27-11.22-27.03-14.81-41.02-1.8-6.99-4.69-21.27 4.28-24.7s16.55 5.88 20.3 12.96 7.11 14.9 10.16 22.01c.78 1.81 1.5 4.29 2.39 5.94.06.11.25.46.36.38zM234.36 72.83l.37-.21c4.8-12.59 10.15-25.29 17.22-36.77 3.79-6.16 12.9-19.98 21.44-17.8 4.28 1.09 6.06 7.68 6.3 11.53.99 15.56-7.82 36.47-14.36 50.48-6.54 14.01-14.47 28.42-22.11 41.89-4.51 7.95-9.49 16.53-15.13 23.7-5.03 6.41-14.61 17.66-23.72 12.25-6.52-3.87-4.71-15.36-2.68-21.32 3.84-11.31 11.32-21.27 18.34-30.74-2.94-.93-6.15-2.89-8.25-5.17-3.09-3.34-4.71-9.71-6.08-14.08-4.59-14.57-9.4-34.06-8.66-49.33.44-9.11 4.77-23.11 16.25-22.08s15.83 20.68 17.53 29.63 2.67 18.65 3.55 28.03z",
|
|
44
|
-
fill: innerFillColor
|
|
45
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
46
|
-
d: "M195.7 113.99c-3.35-8.52-7.52-16.71-11.81-24.79 1.14-2.87 3.04-5.39 4.31-8.21.25 0 .31.5.38.7 1.41 4.31 2.47 8.77 3.91 13.09 1.65 4.94 3.26 10.02 6.52 14.16l-.06.37c-1.09 1.19-1.78 3.24-2.78 4.4-.15.17-.16.35-.47.28z",
|
|
47
|
-
fill: primaryColor
|
|
48
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
49
|
-
d: "M55.99 59.37c6.38-.87 9.53 5.65 11.38 10.7 4.42 12.14 5.84 36.05.36 47.87-3.51 7.58-10.1 6.17-14.1-.13-7-11.03-9.32-35.6-5.85-47.99 1.09-3.9 3.64-9.84 8.21-10.46z",
|
|
50
|
-
fill: primaryColor
|
|
51
|
-
})]
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
exports.OxyLogo = OxyLogo;
|
|
55
|
-
var _default = exports.default = OxyLogo;
|
|
56
|
-
//# sourceMappingURL=OxyLogo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeSvg","_interopRequireWildcard","_theme","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OxyLogo","width","height","style","fillColor","secondaryFillColor","theme","themeColors","useThemeColors","primaryColor","primary","innerFillColor","background","jsxs","viewBox","children","jsx","Path","d","fill","exports","_default"],"sourceRoot":"../../../../src","sources":["ui/components/OxyLogo.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAC,uB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OAAO","ignoreList":[]}
|
|
@@ -1,517 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
10
|
-
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
11
|
-
var _OxyContext = require("../context/OxyContext");
|
|
12
|
-
var _OxyRouter = _interopRequireDefault(require("../navigation/OxyRouter"));
|
|
13
|
-
var _FontLoader = require("./FontLoader");
|
|
14
|
-
var _sonner = require("../../lib/sonner");
|
|
15
|
-
var _bottomSheet = require("./bottomSheet");
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
19
|
-
// Import bottom sheet components directly - no longer a peer dependency
|
|
20
|
-
|
|
21
|
-
// Initialize fonts automatically
|
|
22
|
-
(0, _FontLoader.setupFonts)();
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Enhanced OxyProvider component
|
|
26
|
-
*
|
|
27
|
-
* This component serves two purposes:
|
|
28
|
-
* 1. As a context provider for authentication and session management across the app
|
|
29
|
-
* 2. As a UI component for authentication and account management using a bottom sheet
|
|
30
|
-
*/
|
|
31
|
-
const OxyProvider = props => {
|
|
32
|
-
const {
|
|
33
|
-
oxyServices,
|
|
34
|
-
children,
|
|
35
|
-
contextOnly = false,
|
|
36
|
-
onAuthStateChange,
|
|
37
|
-
storageKeyPrefix,
|
|
38
|
-
showInternalToaster = true,
|
|
39
|
-
...bottomSheetProps
|
|
40
|
-
} = props;
|
|
41
|
-
|
|
42
|
-
// Create internal bottom sheet ref
|
|
43
|
-
const internalBottomSheetRef = (0, _react.useRef)(null);
|
|
44
|
-
|
|
45
|
-
// If contextOnly is true, we just provide the context without the bottom sheet UI
|
|
46
|
-
if (contextOnly) {
|
|
47
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyContext.OxyContextProvider, {
|
|
48
|
-
oxyServices: oxyServices,
|
|
49
|
-
storageKeyPrefix: storageKeyPrefix,
|
|
50
|
-
onAuthStateChange: onAuthStateChange,
|
|
51
|
-
children: children
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Otherwise, provide both the context and the bottom sheet UI
|
|
56
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyContext.OxyContextProvider, {
|
|
57
|
-
oxyServices: oxyServices,
|
|
58
|
-
storageKeyPrefix: storageKeyPrefix,
|
|
59
|
-
onAuthStateChange: onAuthStateChange,
|
|
60
|
-
bottomSheetRef: internalBottomSheetRef,
|
|
61
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FontLoader.FontLoader, {
|
|
62
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeGestureHandler.GestureHandlerRootView, {
|
|
63
|
-
style: styles.gestureHandlerRoot,
|
|
64
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_bottomSheet.BottomSheetModalProvider, {
|
|
65
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.StatusBar, {
|
|
66
|
-
translucent: true,
|
|
67
|
-
backgroundColor: "transparent"
|
|
68
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSafeAreaContext.SafeAreaProvider, {
|
|
69
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(OxyBottomSheet, {
|
|
70
|
-
...bottomSheetProps,
|
|
71
|
-
bottomSheetRef: internalBottomSheetRef,
|
|
72
|
-
oxyServices: oxyServices
|
|
73
|
-
}), children]
|
|
74
|
-
})]
|
|
75
|
-
}), !showInternalToaster && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
76
|
-
style: styles.toasterContainer,
|
|
77
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sonner.Toaster, {
|
|
78
|
-
position: "top-center",
|
|
79
|
-
swipeToDismissDirection: "left",
|
|
80
|
-
offset: 15
|
|
81
|
-
})
|
|
82
|
-
})]
|
|
83
|
-
})
|
|
84
|
-
})
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* OxyBottomSheet component - A bottom sheet-based authentication and account management UI
|
|
90
|
-
*
|
|
91
|
-
* This is the original OxyProvider UI functionality, now extracted into its own component
|
|
92
|
-
* and reimplemented using BottomSheetModal for better Android compatibility
|
|
93
|
-
*/
|
|
94
|
-
const OxyBottomSheet = ({
|
|
95
|
-
oxyServices,
|
|
96
|
-
initialScreen = 'SignIn',
|
|
97
|
-
onClose,
|
|
98
|
-
onAuthenticated,
|
|
99
|
-
theme = 'light',
|
|
100
|
-
customStyles = {},
|
|
101
|
-
bottomSheetRef,
|
|
102
|
-
autoPresent = false,
|
|
103
|
-
showInternalToaster = true
|
|
104
|
-
}) => {
|
|
105
|
-
// Use the internal ref (which is passed as a prop from OxyProvider)
|
|
106
|
-
const modalRef = (0, _react.useRef)(null);
|
|
107
|
-
|
|
108
|
-
// Create a ref to store the navigation function from OxyRouter
|
|
109
|
-
const navigationRef = (0, _react.useRef)(null);
|
|
110
|
-
|
|
111
|
-
// Track content height for dynamic sizing
|
|
112
|
-
const [contentHeight, setContentHeight] = (0, _react.useState)(0);
|
|
113
|
-
const [containerWidth, setContainerWidth] = (0, _react.useState)(800); // Track actual container width
|
|
114
|
-
const screenHeight = _reactNative.Dimensions.get('window').height;
|
|
115
|
-
|
|
116
|
-
// Set up effect to sync the internal ref with our modal ref
|
|
117
|
-
(0, _react.useEffect)(() => {
|
|
118
|
-
if (bottomSheetRef && modalRef.current) {
|
|
119
|
-
// We need to expose certain methods to the internal ref
|
|
120
|
-
const methodsToExpose = ['snapToIndex', 'snapToPosition', 'close', 'expand', 'collapse', 'present', 'dismiss'];
|
|
121
|
-
methodsToExpose.forEach(method => {
|
|
122
|
-
if (modalRef.current && typeof modalRef.current[method] === 'function') {
|
|
123
|
-
// Properly forward methods from modalRef to bottomSheetRef
|
|
124
|
-
// @ts-ignore - We're doing a runtime compatibility layer
|
|
125
|
-
bottomSheetRef.current = bottomSheetRef.current || {};
|
|
126
|
-
// @ts-ignore - Dynamic method assignment
|
|
127
|
-
bottomSheetRef.current[method] = (...args) => {
|
|
128
|
-
// @ts-ignore - Dynamic method call
|
|
129
|
-
return modalRef.current?.[method]?.(...args);
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
// Add a method to navigate between screens
|
|
135
|
-
// @ts-ignore - Adding custom method
|
|
136
|
-
bottomSheetRef.current._navigateToScreen = (screenName, props) => {
|
|
137
|
-
console.log(`Navigation requested: ${screenName}`, props);
|
|
138
|
-
|
|
139
|
-
// Try direct navigation function first (most reliable)
|
|
140
|
-
if (navigationRef.current) {
|
|
141
|
-
console.log('Using direct navigation function');
|
|
142
|
-
navigationRef.current(screenName, props);
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// Fallback to event-based navigation
|
|
147
|
-
if (typeof document !== 'undefined') {
|
|
148
|
-
// For web - use a custom event
|
|
149
|
-
console.log('Using web event navigation');
|
|
150
|
-
const event = new CustomEvent('oxy:navigate', {
|
|
151
|
-
detail: {
|
|
152
|
-
screen: screenName,
|
|
153
|
-
props
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
document.dispatchEvent(event);
|
|
157
|
-
} else {
|
|
158
|
-
// For React Native - use the global variable approach
|
|
159
|
-
console.log('Using React Native global navigation');
|
|
160
|
-
globalThis.oxyNavigateEvent = {
|
|
161
|
-
screen: screenName,
|
|
162
|
-
props
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
}, [bottomSheetRef, modalRef]);
|
|
168
|
-
|
|
169
|
-
// Use percentage-based snap points for better cross-platform compatibility
|
|
170
|
-
const [snapPoints, setSnapPoints] = (0, _react.useState)(['60%', '90%']);
|
|
171
|
-
|
|
172
|
-
// Animation values - we'll use these for content animations
|
|
173
|
-
// Start with opacity 1 on Android to avoid visibility issues
|
|
174
|
-
const fadeAnim = (0, _react.useRef)(new _reactNative.Animated.Value(_reactNative.Platform.OS === 'android' ? 1 : 0)).current;
|
|
175
|
-
const slideAnim = (0, _react.useRef)(new _reactNative.Animated.Value(_reactNative.Platform.OS === 'android' ? 0 : 50)).current;
|
|
176
|
-
const handleScaleAnim = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
|
|
177
|
-
|
|
178
|
-
// Track keyboard status
|
|
179
|
-
const [keyboardVisible, setKeyboardVisible] = (0, _react.useState)(false);
|
|
180
|
-
const [keyboardHeight, setKeyboardHeight] = (0, _react.useState)(0);
|
|
181
|
-
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
182
|
-
|
|
183
|
-
// Get the authentication context
|
|
184
|
-
const oxyContext = (0, _OxyContext.useOxy)();
|
|
185
|
-
|
|
186
|
-
// Handle keyboard events
|
|
187
|
-
(0, _react.useEffect)(() => {
|
|
188
|
-
const keyboardWillShowListener = _reactNative.Keyboard.addListener(_reactNative.Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow', event => {
|
|
189
|
-
// Debounce rapid keyboard events
|
|
190
|
-
if (!keyboardVisible) {
|
|
191
|
-
setKeyboardVisible(true);
|
|
192
|
-
// Get keyboard height from event
|
|
193
|
-
const keyboardHeightValue = event.endCoordinates.height;
|
|
194
|
-
setKeyboardHeight(keyboardHeightValue);
|
|
195
|
-
|
|
196
|
-
// Ensure the bottom sheet remains visible when keyboard opens
|
|
197
|
-
// by adjusting to the highest snap point
|
|
198
|
-
if (modalRef.current) {
|
|
199
|
-
// Use requestAnimationFrame to avoid conflicts
|
|
200
|
-
requestAnimationFrame(() => {
|
|
201
|
-
modalRef.current?.snapToIndex(1);
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
const keyboardWillHideListener = _reactNative.Keyboard.addListener(_reactNative.Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide', () => {
|
|
207
|
-
if (keyboardVisible) {
|
|
208
|
-
setKeyboardVisible(false);
|
|
209
|
-
setKeyboardHeight(0);
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
// Cleanup listeners
|
|
214
|
-
return () => {
|
|
215
|
-
keyboardWillShowListener.remove();
|
|
216
|
-
keyboardWillHideListener.remove();
|
|
217
|
-
};
|
|
218
|
-
}, [keyboardVisible]);
|
|
219
|
-
|
|
220
|
-
// Present the modal when component mounts, but only if autoPresent is true
|
|
221
|
-
(0, _react.useEffect)(() => {
|
|
222
|
-
// Add expand method that handles presentation and animations
|
|
223
|
-
if (bottomSheetRef && modalRef.current) {
|
|
224
|
-
// Override expand to handle initial presentation
|
|
225
|
-
// @ts-ignore - Dynamic method assignment
|
|
226
|
-
bottomSheetRef.current.expand = () => {
|
|
227
|
-
// Only present if not already presented
|
|
228
|
-
modalRef.current?.present();
|
|
229
|
-
|
|
230
|
-
// Start content animations after presenting
|
|
231
|
-
_reactNative.Animated.parallel([_reactNative.Animated.timing(fadeAnim, {
|
|
232
|
-
toValue: 1,
|
|
233
|
-
duration: 300,
|
|
234
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
235
|
-
}), _reactNative.Animated.spring(slideAnim, {
|
|
236
|
-
toValue: 0,
|
|
237
|
-
friction: 8,
|
|
238
|
-
tension: 40,
|
|
239
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
240
|
-
})]).start();
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// Auto-present if the autoPresent prop is true
|
|
245
|
-
if (autoPresent && modalRef.current) {
|
|
246
|
-
// Small delay to allow everything to initialize
|
|
247
|
-
const timer = setTimeout(() => {
|
|
248
|
-
modalRef.current?.present();
|
|
249
|
-
|
|
250
|
-
// Start content animations after presenting
|
|
251
|
-
_reactNative.Animated.parallel([_reactNative.Animated.timing(fadeAnim, {
|
|
252
|
-
toValue: 1,
|
|
253
|
-
duration: 300,
|
|
254
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
255
|
-
}), _reactNative.Animated.spring(slideAnim, {
|
|
256
|
-
toValue: 0,
|
|
257
|
-
friction: 8,
|
|
258
|
-
tension: 40,
|
|
259
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
260
|
-
})]).start();
|
|
261
|
-
}, 100);
|
|
262
|
-
return () => clearTimeout(timer);
|
|
263
|
-
}
|
|
264
|
-
}, [bottomSheetRef, modalRef, fadeAnim, slideAnim, autoPresent]);
|
|
265
|
-
|
|
266
|
-
// Handle authentication success from the bottom sheet screens
|
|
267
|
-
const handleAuthenticated = (0, _react.useCallback)(user => {
|
|
268
|
-
// Call the prop callback if provided
|
|
269
|
-
if (onAuthenticated) {
|
|
270
|
-
onAuthenticated(user);
|
|
271
|
-
}
|
|
272
|
-
}, [onAuthenticated]);
|
|
273
|
-
|
|
274
|
-
// Handle indicator animation - subtle pulse effect
|
|
275
|
-
(0, _react.useEffect)(() => {
|
|
276
|
-
const pulseAnimation = _reactNative.Animated.sequence([_reactNative.Animated.timing(handleScaleAnim, {
|
|
277
|
-
toValue: 1.1,
|
|
278
|
-
duration: 300,
|
|
279
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
280
|
-
}), _reactNative.Animated.timing(handleScaleAnim, {
|
|
281
|
-
toValue: 1,
|
|
282
|
-
duration: 300,
|
|
283
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
284
|
-
})]);
|
|
285
|
-
|
|
286
|
-
// Run the animation once when component mounts
|
|
287
|
-
pulseAnimation.start();
|
|
288
|
-
}, []);
|
|
289
|
-
|
|
290
|
-
// Handle backdrop rendering
|
|
291
|
-
const renderBackdrop = (0, _react.useCallback)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_bottomSheet.BottomSheetBackdrop, {
|
|
292
|
-
...props,
|
|
293
|
-
disappearsOnIndex: -1,
|
|
294
|
-
appearsOnIndex: 0,
|
|
295
|
-
opacity: 0.5
|
|
296
|
-
}), []);
|
|
297
|
-
|
|
298
|
-
// Background style based on theme
|
|
299
|
-
const getBackgroundStyle = () => {
|
|
300
|
-
const baseColor = customStyles.backgroundColor || (theme === 'light' ? '#FFFFFF' : '#121212');
|
|
301
|
-
return {
|
|
302
|
-
backgroundColor: baseColor,
|
|
303
|
-
// Make sure there's no transparency
|
|
304
|
-
opacity: 1,
|
|
305
|
-
// Additional Android-specific styles
|
|
306
|
-
..._reactNative.Platform.select({
|
|
307
|
-
android: {
|
|
308
|
-
elevation: 24
|
|
309
|
-
}
|
|
310
|
-
})
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
// Method to adjust snap points from Router
|
|
315
|
-
const adjustSnapPoints = (0, _react.useCallback)(points => {
|
|
316
|
-
// Ensure snap points are high enough when keyboard is visible
|
|
317
|
-
if (keyboardVisible) {
|
|
318
|
-
// If keyboard is visible, make sure we use higher snap points
|
|
319
|
-
// to ensure the sheet content remains visible
|
|
320
|
-
const highestPoint = points[points.length - 1];
|
|
321
|
-
setSnapPoints([highestPoint, highestPoint]);
|
|
322
|
-
} else {
|
|
323
|
-
// If we have content height, use it as a constraint
|
|
324
|
-
if (contentHeight > 0) {
|
|
325
|
-
// Calculate content height as percentage of screen (plus some padding)
|
|
326
|
-
// Clamp to ensure we don't exceed 90% to leave space for UI elements
|
|
327
|
-
const contentHeightPercent = Math.min(Math.ceil(contentHeight / screenHeight * 100), 90);
|
|
328
|
-
const contentHeightPercentStr = `${contentHeightPercent}%`;
|
|
329
|
-
// Use content height for first snap point if it's taller than the default
|
|
330
|
-
const firstPoint = contentHeight / screenHeight > 0.6 ? contentHeightPercentStr : points[0];
|
|
331
|
-
setSnapPoints([firstPoint, points[1] || '90%']);
|
|
332
|
-
} else {
|
|
333
|
-
setSnapPoints(points);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}, [keyboardVisible, contentHeight, screenHeight]);
|
|
337
|
-
|
|
338
|
-
// Handle content layout changes to measure height and width
|
|
339
|
-
const handleContentLayout = (0, _react.useCallback)(event => {
|
|
340
|
-
const {
|
|
341
|
-
height: layoutHeight,
|
|
342
|
-
width: layoutWidth
|
|
343
|
-
} = event.nativeEvent.layout;
|
|
344
|
-
setContentHeight(layoutHeight);
|
|
345
|
-
setContainerWidth(layoutWidth);
|
|
346
|
-
|
|
347
|
-
// Debug: log container dimensions
|
|
348
|
-
console.log('[OxyProvider] Container dimensions (full):', {
|
|
349
|
-
width: layoutWidth,
|
|
350
|
-
height: layoutHeight
|
|
351
|
-
});
|
|
352
|
-
|
|
353
|
-
// Update snap points based on new content height
|
|
354
|
-
if (keyboardVisible) {
|
|
355
|
-
// If keyboard is visible, use the highest snap point
|
|
356
|
-
const highestPoint = snapPoints[snapPoints.length - 1];
|
|
357
|
-
setSnapPoints([highestPoint, highestPoint]);
|
|
358
|
-
} else {
|
|
359
|
-
if (layoutHeight > 0) {
|
|
360
|
-
// Add padding and clamp to reasonable limits
|
|
361
|
-
const contentHeightPercent = Math.min(Math.ceil((layoutHeight + 40) / screenHeight * 100), 90);
|
|
362
|
-
const contentHeightPercentStr = `${contentHeightPercent}%`;
|
|
363
|
-
const firstPoint = layoutHeight / screenHeight > 0.6 ? contentHeightPercentStr : snapPoints[0];
|
|
364
|
-
setSnapPoints([firstPoint, snapPoints[1]]);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}, [keyboardVisible, screenHeight, snapPoints]);
|
|
368
|
-
|
|
369
|
-
// Close the bottom sheet with animation
|
|
370
|
-
const handleClose = (0, _react.useCallback)(() => {
|
|
371
|
-
// Animate content out
|
|
372
|
-
_reactNative.Animated.timing(fadeAnim, {
|
|
373
|
-
toValue: 0,
|
|
374
|
-
duration: _reactNative.Platform.OS === 'android' ? 100 : 200,
|
|
375
|
-
// Faster on Android
|
|
376
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
377
|
-
}).start(() => {
|
|
378
|
-
// Dismiss the sheet
|
|
379
|
-
modalRef.current?.dismiss();
|
|
380
|
-
if (onClose) {
|
|
381
|
-
setTimeout(() => {
|
|
382
|
-
onClose();
|
|
383
|
-
}, _reactNative.Platform.OS === 'android' ? 150 : 100);
|
|
384
|
-
}
|
|
385
|
-
});
|
|
386
|
-
}, [onClose, fadeAnim]);
|
|
387
|
-
|
|
388
|
-
// Handle sheet index changes
|
|
389
|
-
const handleSheetChanges = (0, _react.useCallback)(index => {}, [onClose, handleScaleAnim, keyboardVisible]);
|
|
390
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_bottomSheet.BottomSheetModal, {
|
|
391
|
-
ref: modalRef,
|
|
392
|
-
index: 0,
|
|
393
|
-
snapPoints: snapPoints,
|
|
394
|
-
enablePanDownToClose: true,
|
|
395
|
-
backdropComponent: renderBackdrop,
|
|
396
|
-
backgroundStyle: [getBackgroundStyle(), {
|
|
397
|
-
borderTopLeftRadius: 35,
|
|
398
|
-
borderTopRightRadius: 35
|
|
399
|
-
}],
|
|
400
|
-
handleIndicatorStyle: {
|
|
401
|
-
backgroundColor: customStyles.handleColor || (theme === 'light' ? '#CCCCCC' : '#444444'),
|
|
402
|
-
width: 40,
|
|
403
|
-
height: 4
|
|
404
|
-
},
|
|
405
|
-
onChange: handleSheetChanges,
|
|
406
|
-
style: styles.bottomSheetContainer
|
|
407
|
-
// Adding additional props to improve layout behavior
|
|
408
|
-
,
|
|
409
|
-
keyboardBehavior: "interactive",
|
|
410
|
-
keyboardBlurBehavior: "restore",
|
|
411
|
-
android_keyboardInputMode: "adjustResize",
|
|
412
|
-
enableOverDrag: true,
|
|
413
|
-
enableContentPanningGesture: true,
|
|
414
|
-
enableHandlePanningGesture: true,
|
|
415
|
-
overDragResistanceFactor: 2.5,
|
|
416
|
-
enableBlurKeyboardOnGesture: true
|
|
417
|
-
// Log sheet animations for debugging
|
|
418
|
-
,
|
|
419
|
-
onAnimate: (fromIndex, toIndex) => {
|
|
420
|
-
console.log(`Animating from index ${fromIndex} to ${toIndex}`);
|
|
421
|
-
},
|
|
422
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_bottomSheet.BottomSheetScrollView, {
|
|
423
|
-
style: [styles.contentContainer,
|
|
424
|
-
// Override padding if provided in customStyles
|
|
425
|
-
customStyles.contentPadding !== undefined && {
|
|
426
|
-
padding: customStyles.contentPadding
|
|
427
|
-
}],
|
|
428
|
-
onLayout: handleContentLayout,
|
|
429
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
430
|
-
style: styles.centeredContentWrapper,
|
|
431
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
432
|
-
style: [styles.animatedContent,
|
|
433
|
-
// Apply animations - conditionally for Android
|
|
434
|
-
_reactNative.Platform.OS === 'android' ? {
|
|
435
|
-
opacity: 1 // No fade animation on Android
|
|
436
|
-
} : {
|
|
437
|
-
opacity: fadeAnim,
|
|
438
|
-
transform: [{
|
|
439
|
-
translateY: slideAnim
|
|
440
|
-
}]
|
|
441
|
-
}],
|
|
442
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyRouter.default, {
|
|
443
|
-
oxyServices: oxyServices,
|
|
444
|
-
initialScreen: initialScreen,
|
|
445
|
-
onClose: handleClose,
|
|
446
|
-
onAuthenticated: handleAuthenticated,
|
|
447
|
-
theme: theme,
|
|
448
|
-
adjustSnapPoints: adjustSnapPoints,
|
|
449
|
-
navigationRef: navigationRef,
|
|
450
|
-
containerWidth: containerWidth
|
|
451
|
-
})
|
|
452
|
-
})
|
|
453
|
-
})
|
|
454
|
-
}), showInternalToaster && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
455
|
-
style: styles.toasterContainer,
|
|
456
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sonner.Toaster, {
|
|
457
|
-
position: "top-center",
|
|
458
|
-
swipeToDismissDirection: "left"
|
|
459
|
-
})
|
|
460
|
-
})]
|
|
461
|
-
});
|
|
462
|
-
};
|
|
463
|
-
const styles = _reactNative.StyleSheet.create({
|
|
464
|
-
bottomSheetContainer: {
|
|
465
|
-
maxWidth: 800,
|
|
466
|
-
width: '100%',
|
|
467
|
-
marginHorizontal: 'auto'
|
|
468
|
-
},
|
|
469
|
-
contentContainer: {
|
|
470
|
-
width: '100%',
|
|
471
|
-
borderTopLeftRadius: 35,
|
|
472
|
-
borderTopRightRadius: 35
|
|
473
|
-
},
|
|
474
|
-
centeredContentWrapper: {
|
|
475
|
-
width: '100%',
|
|
476
|
-
marginHorizontal: 'auto'
|
|
477
|
-
},
|
|
478
|
-
animatedContent: {
|
|
479
|
-
width: '100%'
|
|
480
|
-
},
|
|
481
|
-
indicator: {
|
|
482
|
-
width: 40,
|
|
483
|
-
height: 4,
|
|
484
|
-
marginTop: 8,
|
|
485
|
-
marginBottom: 8,
|
|
486
|
-
borderRadius: 35
|
|
487
|
-
},
|
|
488
|
-
errorContainer: {
|
|
489
|
-
flex: 1,
|
|
490
|
-
justifyContent: 'center',
|
|
491
|
-
alignItems: 'center'
|
|
492
|
-
},
|
|
493
|
-
gestureHandlerRoot: {
|
|
494
|
-
flex: 1,
|
|
495
|
-
position: 'relative',
|
|
496
|
-
backgroundColor: 'transparent',
|
|
497
|
-
..._reactNative.Platform.select({
|
|
498
|
-
android: {
|
|
499
|
-
height: '100%',
|
|
500
|
-
width: '100%'
|
|
501
|
-
}
|
|
502
|
-
})
|
|
503
|
-
},
|
|
504
|
-
toasterContainer: {
|
|
505
|
-
position: 'absolute',
|
|
506
|
-
top: 0,
|
|
507
|
-
left: 0,
|
|
508
|
-
right: 0,
|
|
509
|
-
bottom: 0,
|
|
510
|
-
zIndex: 9999,
|
|
511
|
-
elevation: 9999,
|
|
512
|
-
// For Android
|
|
513
|
-
pointerEvents: 'box-none' // Allow touches to pass through to underlying components
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
var _default = exports.default = OxyProvider;
|
|
517
|
-
//# sourceMappingURL=OxyProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeSafeAreaContext","_reactNativeGestureHandler","_OxyContext","_OxyRouter","_interopRequireDefault","_FontLoader","_sonner","_bottomSheet","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","setupFonts","OxyProvider","props","oxyServices","children","contextOnly","onAuthStateChange","storageKeyPrefix","showInternalToaster","bottomSheetProps","internalBottomSheetRef","useRef","jsx","OxyContextProvider","bottomSheetRef","FontLoader","jsxs","GestureHandlerRootView","style","styles","gestureHandlerRoot","BottomSheetModalProvider","StatusBar","translucent","backgroundColor","SafeAreaProvider","OxyBottomSheet","View","toasterContainer","Toaster","position","swipeToDismissDirection","offset","initialScreen","onClose","onAuthenticated","theme","customStyles","autoPresent","modalRef","navigationRef","contentHeight","setContentHeight","useState","containerWidth","setContainerWidth","screenHeight","Dimensions","height","useEffect","current","methodsToExpose","forEach","method","args","_navigateToScreen","screenName","console","log","document","event","CustomEvent","detail","screen","dispatchEvent","globalThis","oxyNavigateEvent","snapPoints","setSnapPoints","fadeAnim","Animated","Value","Platform","OS","slideAnim","handleScaleAnim","keyboardVisible","setKeyboardVisible","keyboardHeight","setKeyboardHeight","insets","useSafeAreaInsets","oxyContext","useOxy","keyboardWillShowListener","Keyboard","addListener","keyboardHeightValue","endCoordinates","requestAnimationFrame","snapToIndex","keyboardWillHideListener","remove","expand","present","parallel","timing","toValue","duration","useNativeDriver","spring","friction","tension","start","timer","setTimeout","clearTimeout","handleAuthenticated","useCallback","user","pulseAnimation","sequence","renderBackdrop","BottomSheetBackdrop","disappearsOnIndex","appearsOnIndex","opacity","getBackgroundStyle","baseColor","select","android","elevation","adjustSnapPoints","points","highestPoint","length","contentHeightPercent","Math","min","ceil","contentHeightPercentStr","firstPoint","handleContentLayout","layoutHeight","width","layoutWidth","nativeEvent","layout","handleClose","dismiss","handleSheetChanges","index","BottomSheetModal","ref","enablePanDownToClose","backdropComponent","backgroundStyle","borderTopLeftRadius","borderTopRightRadius","handleIndicatorStyle","handleColor","onChange","bottomSheetContainer","keyboardBehavior","keyboardBlurBehavior","android_keyboardInputMode","enableOverDrag","enableContentPanningGesture","enableHandlePanningGesture","overDragResistanceFactor","enableBlurKeyboardOnGesture","onAnimate","fromIndex","toIndex","BottomSheetScrollView","contentContainer","contentPadding","undefined","padding","onLayout","centeredContentWrapper","animatedContent","transform","translateY","StyleSheet","create","maxWidth","marginHorizontal","indicator","marginTop","marginBottom","borderRadius","errorContainer","flex","justifyContent","alignItems","top","left","right","bottom","zIndex","pointerEvents","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/components/OxyProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,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