@oxyhq/services 5.4.0 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/src/__tests__/ui/screens/AccountSettingsScreen.test.tsx +8 -8
- package/src/core/index.ts +103 -0
- package/src/lib/sonner.ts +9 -4
- package/src/ui/components/OxyProvider.tsx +5 -5
- package/src/ui/context/OxyContext.tsx +61 -41
- package/src/ui/screens/AccountManagementDemo.tsx +1 -1
- package/src/ui/screens/AccountOverviewScreen.tsx +44 -26
- package/src/ui/screens/AccountSettingsScreen.tsx +25 -19
- package/src/ui/screens/AppInfoScreen.tsx +5 -5
- package/src/ui/screens/FileManagementScreen.tsx +246 -211
- package/src/ui/screens/SignInScreen.tsx +382 -326
- package/src/ui/screens/SignUpScreen.tsx +443 -273
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +50 -29
- package/lib/commonjs/assets/OxyLogo.svg +0 -1
- package/lib/commonjs/assets/assets/OxyLogo.svg +0 -1
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/assets/icons/OxyServices.tsx +0 -67
- package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/icons/OxyServices.js +0 -53
- package/lib/commonjs/assets/icons/OxyServices.js.map +0 -1
- package/lib/commonjs/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/commonjs/constants/version.js +0 -28
- package/lib/commonjs/constants/version.js.map +0 -1
- package/lib/commonjs/core/index.js +0 -1543
- package/lib/commonjs/core/index.js.map +0 -1
- package/lib/commonjs/index.js +0 -160
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/lib/react-native-polyfills.js +0 -181
- package/lib/commonjs/lib/react-native-polyfills.js.map +0 -1
- package/lib/commonjs/lib/sonner-safe.js +0 -41
- package/lib/commonjs/lib/sonner-safe.js.map +0 -1
- package/lib/commonjs/lib/sonner.js +0 -18
- package/lib/commonjs/lib/sonner.js.map +0 -1
- package/lib/commonjs/lib/sonner.web.js +0 -17
- package/lib/commonjs/lib/sonner.web.js.map +0 -1
- package/lib/commonjs/models/interfaces.js +0 -2
- package/lib/commonjs/models/interfaces.js.map +0 -1
- package/lib/commonjs/models/secureSession.js +0 -2
- package/lib/commonjs/models/secureSession.js.map +0 -1
- package/lib/commonjs/node/index.js +0 -54
- package/lib/commonjs/node/index.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/ui/components/Avatar.js +0 -98
- package/lib/commonjs/ui/components/Avatar.js.map +0 -1
- package/lib/commonjs/ui/components/FollowButton.js +0 -246
- package/lib/commonjs/ui/components/FollowButton.js.map +0 -1
- package/lib/commonjs/ui/components/FontLoader.js +0 -181
- package/lib/commonjs/ui/components/FontLoader.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedItem.js +0 -109
- package/lib/commonjs/ui/components/GroupedItem.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedSection.js +0 -33
- package/lib/commonjs/ui/components/GroupedSection.js.map +0 -1
- package/lib/commonjs/ui/components/OxyLogo.js +0 -56
- package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
- package/lib/commonjs/ui/components/OxyProvider.js +0 -517
- package/lib/commonjs/ui/components/OxyProvider.js.map +0 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +0 -178
- package/lib/commonjs/ui/components/OxySignInButton.js.map +0 -1
- package/lib/commonjs/ui/components/ProfileCard.js +0 -124
- package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
- package/lib/commonjs/ui/components/QuickActions.js +0 -87
- package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
- package/lib/commonjs/ui/components/Section.js +0 -36
- package/lib/commonjs/ui/components/Section.js.map +0 -1
- package/lib/commonjs/ui/components/SectionTitle.js +0 -35
- package/lib/commonjs/ui/components/SectionTitle.js.map +0 -1
- package/lib/commonjs/ui/components/bottomSheet/index.js +0 -37
- package/lib/commonjs/ui/components/bottomSheet/index.js.map +0 -1
- package/lib/commonjs/ui/components/icon/OxyIcon.js +0 -27
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/commonjs/ui/components/icon/index.js +0 -14
- package/lib/commonjs/ui/components/icon/index.js.map +0 -1
- package/lib/commonjs/ui/components/index.js +0 -97
- package/lib/commonjs/ui/components/index.js.map +0 -1
- package/lib/commonjs/ui/context/OxyContext.js +0 -568
- package/lib/commonjs/ui/context/OxyContext.js.map +0 -1
- package/lib/commonjs/ui/index.js +0 -128
- package/lib/commonjs/ui/index.js.map +0 -1
- package/lib/commonjs/ui/navigation/OxyRouter.js +0 -264
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +0 -1
- package/lib/commonjs/ui/navigation/types.js +0 -6
- package/lib/commonjs/ui/navigation/types.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +0 -313
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountManagementDemo.js +0 -299
- package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +0 -837
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +0 -836
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +0 -788
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +0 -664
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/BillingManagementScreen.js +0 -636
- package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +0 -2497
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -1620
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +0 -450
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +0 -449
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +0 -956
- package/lib/commonjs/ui/screens/SignInScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SignUpScreen.js +0 -762
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +0 -88
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +0 -364
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +0 -202
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +0 -148
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +0 -127
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +0 -105
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
- package/lib/commonjs/ui/styles/FONTS.md +0 -126
- package/lib/commonjs/ui/styles/fonts.js +0 -84
- package/lib/commonjs/ui/styles/fonts.js.map +0 -1
- package/lib/commonjs/ui/styles/index.js +0 -28
- package/lib/commonjs/ui/styles/index.js.map +0 -1
- package/lib/commonjs/ui/styles/theme.js +0 -121
- package/lib/commonjs/ui/styles/theme.js.map +0 -1
- package/lib/commonjs/utils/deviceManager.js +0 -173
- package/lib/commonjs/utils/deviceManager.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -13
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/polyfills.js +0 -42
- package/lib/commonjs/utils/polyfills.js.map +0 -1
- package/lib/module/assets/OxyLogo.svg +0 -1
- package/lib/module/assets/assets/OxyLogo.svg +0 -1
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/assets/icons/OxyServices.tsx +0 -67
- package/lib/module/assets/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/icons/OxyServices.js +0 -46
- package/lib/module/assets/icons/OxyServices.js.map +0 -1
- package/lib/module/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/module/constants/version.js +0 -21
- package/lib/module/constants/version.js.map +0 -1
- package/lib/module/core/index.js +0 -1517
- package/lib/module/core/index.js.map +0 -1
- package/lib/module/index.js +0 -48
- package/lib/module/index.js.map +0 -1
- package/lib/module/lib/react-native-polyfills.js +0 -179
- package/lib/module/lib/react-native-polyfills.js.map +0 -1
- package/lib/module/lib/sonner-safe.js +0 -37
- package/lib/module/lib/sonner-safe.js.map +0 -1
- package/lib/module/lib/sonner.js +0 -8
- package/lib/module/lib/sonner.js.map +0 -1
- package/lib/module/lib/sonner.web.js +0 -4
- package/lib/module/lib/sonner.web.js.map +0 -1
- package/lib/module/models/interfaces.js +0 -2
- package/lib/module/models/interfaces.js.map +0 -1
- package/lib/module/models/secureSession.js +0 -2
- package/lib/module/models/secureSession.js.map +0 -1
- package/lib/module/node/index.js +0 -23
- package/lib/module/node/index.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/module/ui/components/Avatar.js +0 -93
- package/lib/module/ui/components/Avatar.js.map +0 -1
- package/lib/module/ui/components/FollowButton.js +0 -241
- package/lib/module/ui/components/FollowButton.js.map +0 -1
- package/lib/module/ui/components/FontLoader.js +0 -176
- package/lib/module/ui/components/FontLoader.js.map +0 -1
- package/lib/module/ui/components/GroupedItem.js +0 -104
- package/lib/module/ui/components/GroupedItem.js.map +0 -1
- package/lib/module/ui/components/GroupedSection.js +0 -28
- package/lib/module/ui/components/GroupedSection.js.map +0 -1
- package/lib/module/ui/components/OxyLogo.js +0 -49
- package/lib/module/ui/components/OxyLogo.js.map +0 -1
- package/lib/module/ui/components/OxyProvider.js +0 -511
- package/lib/module/ui/components/OxyProvider.js.map +0 -1
- package/lib/module/ui/components/OxySignInButton.js +0 -172
- package/lib/module/ui/components/OxySignInButton.js.map +0 -1
- package/lib/module/ui/components/ProfileCard.js +0 -119
- package/lib/module/ui/components/ProfileCard.js.map +0 -1
- package/lib/module/ui/components/QuickActions.js +0 -82
- package/lib/module/ui/components/QuickActions.js.map +0 -1
- package/lib/module/ui/components/Section.js +0 -31
- package/lib/module/ui/components/Section.js.map +0 -1
- package/lib/module/ui/components/SectionTitle.js +0 -30
- package/lib/module/ui/components/SectionTitle.js.map +0 -1
- package/lib/module/ui/components/bottomSheet/index.js +0 -5
- package/lib/module/ui/components/bottomSheet/index.js.map +0 -1
- package/lib/module/ui/components/icon/OxyIcon.js +0 -22
- package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/module/ui/components/icon/index.js +0 -4
- package/lib/module/ui/components/icon/index.js.map +0 -1
- package/lib/module/ui/components/index.js +0 -18
- package/lib/module/ui/components/index.js.map +0 -1
- package/lib/module/ui/context/OxyContext.js +0 -563
- package/lib/module/ui/context/OxyContext.js.map +0 -1
- package/lib/module/ui/index.js +0 -24
- package/lib/module/ui/index.js.map +0 -1
- package/lib/module/ui/navigation/OxyRouter.js +0 -257
- package/lib/module/ui/navigation/OxyRouter.js.map +0 -1
- package/lib/module/ui/navigation/types.js +0 -4
- package/lib/module/ui/navigation/types.js.map +0 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +0 -308
- package/lib/module/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountManagementDemo.js +0 -296
- package/lib/module/ui/screens/AccountManagementDemo.js.map +0 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +0 -831
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +0 -830
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -782
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/module/ui/screens/AppInfoScreen.js +0 -658
- package/lib/module/ui/screens/AppInfoScreen.js.map +0 -1
- package/lib/module/ui/screens/BillingManagementScreen.js +0 -631
- package/lib/module/ui/screens/BillingManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/FileManagementScreen.js +0 -2492
- package/lib/module/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -1615
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/module/ui/screens/ProfileScreen.js +0 -444
- package/lib/module/ui/screens/ProfileScreen.js.map +0 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +0 -444
- package/lib/module/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/SignInScreen.js +0 -950
- package/lib/module/ui/screens/SignInScreen.js.map +0 -1
- package/lib/module/ui/screens/SignUpScreen.js +0 -755
- package/lib/module/ui/screens/SignUpScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +0 -83
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +0 -358
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +0 -197
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +0 -142
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +0 -122
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +0 -100
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
- package/lib/module/ui/styles/FONTS.md +0 -126
- package/lib/module/ui/styles/fonts.js +0 -81
- package/lib/module/ui/styles/fonts.js.map +0 -1
- package/lib/module/ui/styles/index.js +0 -5
- package/lib/module/ui/styles/index.js.map +0 -1
- package/lib/module/ui/styles/theme.js +0 -114
- package/lib/module/ui/styles/theme.js.map +0 -1
- package/lib/module/utils/deviceManager.js +0 -167
- package/lib/module/utils/deviceManager.js.map +0 -1
- package/lib/module/utils/index.js +0 -4
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/polyfills.js +0 -36
- package/lib/module/utils/polyfills.js.map +0 -1
- package/lib/typescript/assets/icons/OxyServices.d.ts +0 -29
- package/lib/typescript/assets/icons/OxyServices.d.ts.map +0 -1
- package/lib/typescript/constants/version.d.ts +0 -14
- package/lib/typescript/constants/version.d.ts.map +0 -1
- package/lib/typescript/core/index.d.ts +0 -563
- package/lib/typescript/core/index.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -20
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/lib/react-native-polyfills.d.ts +0 -8
- package/lib/typescript/lib/react-native-polyfills.d.ts.map +0 -1
- package/lib/typescript/lib/sonner-safe.d.ts +0 -11
- package/lib/typescript/lib/sonner-safe.d.ts.map +0 -1
- package/lib/typescript/lib/sonner.d.ts +0 -3
- package/lib/typescript/lib/sonner.d.ts.map +0 -1
- package/lib/typescript/lib/sonner.web.d.ts +0 -2
- package/lib/typescript/lib/sonner.web.d.ts.map +0 -1
- package/lib/typescript/models/interfaces.d.ts +0 -179
- package/lib/typescript/models/interfaces.d.ts.map +0 -1
- package/lib/typescript/models/secureSession.d.ts +0 -27
- package/lib/typescript/models/secureSession.d.ts.map +0 -1
- package/lib/typescript/node/index.d.ts +0 -11
- package/lib/typescript/node/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/Avatar.d.ts +0 -62
- package/lib/typescript/ui/components/Avatar.d.ts.map +0 -1
- package/lib/typescript/ui/components/FollowButton.d.ts +0 -92
- package/lib/typescript/ui/components/FollowButton.d.ts.map +0 -1
- package/lib/typescript/ui/components/FontLoader.d.ts +0 -15
- package/lib/typescript/ui/components/FontLoader.d.ts.map +0 -1
- package/lib/typescript/ui/components/GroupedItem.d.ts +0 -17
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +0 -1
- package/lib/typescript/ui/components/GroupedSection.d.ts +0 -19
- package/lib/typescript/ui/components/GroupedSection.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxyLogo.d.ts +0 -29
- package/lib/typescript/ui/components/OxyLogo.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts +0 -12
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxySignInButton.d.ts +0 -70
- package/lib/typescript/ui/components/OxySignInButton.d.ts.map +0 -1
- package/lib/typescript/ui/components/ProfileCard.d.ts +0 -20
- package/lib/typescript/ui/components/ProfileCard.d.ts.map +0 -1
- package/lib/typescript/ui/components/QuickActions.d.ts +0 -15
- package/lib/typescript/ui/components/QuickActions.d.ts.map +0 -1
- package/lib/typescript/ui/components/Section.d.ts +0 -11
- package/lib/typescript/ui/components/Section.d.ts.map +0 -1
- package/lib/typescript/ui/components/SectionTitle.d.ts +0 -9
- package/lib/typescript/ui/components/SectionTitle.d.ts.map +0 -1
- package/lib/typescript/ui/components/bottomSheet/index.d.ts +0 -4
- package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts +0 -10
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +0 -1
- package/lib/typescript/ui/components/icon/index.d.ts +0 -3
- package/lib/typescript/ui/components/icon/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/index.d.ts +0 -13
- package/lib/typescript/ui/components/index.d.ts.map +0 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +0 -42
- package/lib/typescript/ui/context/OxyContext.d.ts.map +0 -1
- package/lib/typescript/ui/index.d.ts +0 -15
- package/lib/typescript/ui/index.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/OxyRouter.d.ts +0 -5
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/types.d.ts +0 -116
- package/lib/typescript/ui/navigation/types.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +0 -8
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts +0 -8
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts +0 -9
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SignInScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +0 -1
- package/lib/typescript/ui/styles/fonts.d.ts +0 -21
- package/lib/typescript/ui/styles/fonts.d.ts.map +0 -1
- package/lib/typescript/ui/styles/index.d.ts +0 -3
- package/lib/typescript/ui/styles/index.d.ts.map +0 -1
- package/lib/typescript/ui/styles/theme.d.ts +0 -68
- package/lib/typescript/ui/styles/theme.d.ts.map +0 -1
- package/lib/typescript/utils/deviceManager.d.ts +0 -66
- package/lib/typescript/utils/deviceManager.d.ts.map +0 -1
- package/lib/typescript/utils/index.d.ts +0 -3
- package/lib/typescript/utils/index.d.ts.map +0 -1
- package/lib/typescript/utils/polyfills.d.ts +0 -6
- package/lib/typescript/utils/polyfills.d.ts.map +0 -1
- package/src/lib/react-native-polyfills.ts +0 -219
- package/src/lib/sonner-safe.ts +0 -37
- package/src/lib/sonner.web.ts +0 -1
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export interface DeviceFingerprint {
|
|
2
|
-
userAgent: string;
|
|
3
|
-
platform: string;
|
|
4
|
-
language?: string;
|
|
5
|
-
timezone?: string;
|
|
6
|
-
screen?: {
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
colorDepth: number;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export interface StoredDeviceInfo {
|
|
13
|
-
deviceId: string;
|
|
14
|
-
deviceName?: string;
|
|
15
|
-
fingerprint?: string;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
lastUsed: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Client-side device management utility
|
|
21
|
-
* Handles persistent device identification across app sessions
|
|
22
|
-
*/
|
|
23
|
-
export declare class DeviceManager {
|
|
24
|
-
private static DEVICE_KEY;
|
|
25
|
-
/**
|
|
26
|
-
* Check if we're in React Native environment
|
|
27
|
-
*/
|
|
28
|
-
private static isReactNative;
|
|
29
|
-
/**
|
|
30
|
-
* Get appropriate storage for the platform
|
|
31
|
-
*/
|
|
32
|
-
private static getStorage;
|
|
33
|
-
/**
|
|
34
|
-
* Get or create device fingerprint for current device
|
|
35
|
-
*/
|
|
36
|
-
static getDeviceFingerprint(): DeviceFingerprint;
|
|
37
|
-
/**
|
|
38
|
-
* Get stored device info or create new one
|
|
39
|
-
*/
|
|
40
|
-
static getDeviceInfo(): Promise<StoredDeviceInfo>;
|
|
41
|
-
/**
|
|
42
|
-
* Create new device info and store it
|
|
43
|
-
*/
|
|
44
|
-
static createNewDeviceInfo(): Promise<StoredDeviceInfo>;
|
|
45
|
-
/**
|
|
46
|
-
* Save device info to storage
|
|
47
|
-
*/
|
|
48
|
-
static saveDeviceInfo(deviceInfo: StoredDeviceInfo): Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* Update device name
|
|
51
|
-
*/
|
|
52
|
-
static updateDeviceName(deviceName: string): Promise<void>;
|
|
53
|
-
/**
|
|
54
|
-
* Clear stored device info (useful for testing or reset)
|
|
55
|
-
*/
|
|
56
|
-
static clearDeviceInfo(): Promise<void>;
|
|
57
|
-
/**
|
|
58
|
-
* Generate a unique device ID
|
|
59
|
-
*/
|
|
60
|
-
private static generateDeviceId;
|
|
61
|
-
/**
|
|
62
|
-
* Get a user-friendly device name based on platform
|
|
63
|
-
*/
|
|
64
|
-
static getDefaultDeviceName(): string;
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=deviceManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deviceManager.d.ts","sourceRoot":"","sources":["../../../src/utils/deviceManager.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAC,UAAU,CAAqB;IAE9C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,aAAa;IAI5B;;OAEG;mBACkB,UAAU;IAoB/B;;OAEG;IACH,MAAM,CAAC,oBAAoB,IAAI,iBAAiB;IAoBhD;;OAEG;WACU,aAAa,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAuBvD;;OAEG;WACU,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAY7D;;OAEG;WACU,cAAc,CAAC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IASxE;;OAEG;WACU,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAUhE;;OAEG;WACU,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAS7C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAY/B;;OAEG;IACH,MAAM,CAAC,oBAAoB,IAAI,MAAM;CAatC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"polyfills.d.ts","sourceRoot":"","sources":["../../../src/utils/polyfills.ts"],"names":[],"mappings":"AAAA;;GAEG;AAgBH,eAAO,MAAM,uBAAuB,QAAO,OAE1C,CAAC;AAGF,eAAO,MAAM,sBAAsB,QAAO,GAUzC,CAAC"}
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React Native Polyfills
|
|
3
|
-
*
|
|
4
|
-
* This file adds necessary polyfills for React Native environments
|
|
5
|
-
* to support libraries that expect web APIs like FormData.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// Ensure we have access to the global object
|
|
9
|
-
declare const global: any;
|
|
10
|
-
|
|
11
|
-
// Check if we're in a React Native environment
|
|
12
|
-
const isReactNative = typeof navigator !== 'undefined' && navigator.product === 'ReactNative';
|
|
13
|
-
|
|
14
|
-
// FormData polyfill for React Native
|
|
15
|
-
if (isReactNative && typeof global !== 'undefined' && !global.FormData) {
|
|
16
|
-
console.log('[OxyServices] Adding FormData polyfill for React Native');
|
|
17
|
-
|
|
18
|
-
// Simple FormData polyfill for React Native
|
|
19
|
-
class FormDataPolyfill {
|
|
20
|
-
private _data: Array<[string, any, string?]> = [];
|
|
21
|
-
|
|
22
|
-
append(name: string, value: any, filename?: string) {
|
|
23
|
-
this._data.push([name, value, filename]);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
delete(name: string) {
|
|
27
|
-
this._data = this._data.filter(([key]) => key !== name);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
get(name: string) {
|
|
31
|
-
const entry = this._data.find(([key]) => key === name);
|
|
32
|
-
return entry ? entry[1] : null;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
getAll(name: string) {
|
|
36
|
-
return this._data.filter(([key]) => key === name).map(([, value]) => value);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
has(name: string) {
|
|
40
|
-
return this._data.some(([key]) => key === name);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
set(name: string, value: any, filename?: string) {
|
|
44
|
-
this.delete(name);
|
|
45
|
-
this.append(name, value, filename);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
forEach(callback: (value: any, key: string, formData: FormDataPolyfill) => void) {
|
|
49
|
-
this._data.forEach(([key, value]) => callback(value, key, this));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
entries() {
|
|
53
|
-
return this._data.map(([key, value]) => [key, value]).values();
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
keys() {
|
|
57
|
-
return this._data.map(([key]) => key).values();
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
values() {
|
|
61
|
-
return this._data.map(([, value]) => value).values();
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
[Symbol.iterator]() {
|
|
65
|
-
return this.entries();
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// For debugging
|
|
69
|
-
toString() {
|
|
70
|
-
return '[object FormData]';
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// Add to global scope
|
|
75
|
-
global.FormData = FormDataPolyfill;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// Blob polyfill if needed (simpler version)
|
|
79
|
-
if (isReactNative && typeof global !== 'undefined' && !global.Blob) {
|
|
80
|
-
console.log('[OxyServices] Adding Blob polyfill for React Native');
|
|
81
|
-
|
|
82
|
-
class BlobPolyfill {
|
|
83
|
-
public size: number;
|
|
84
|
-
public type: string;
|
|
85
|
-
private _data: any;
|
|
86
|
-
|
|
87
|
-
constructor(blobParts?: any[], options?: { type?: string }) {
|
|
88
|
-
this._data = blobParts || [];
|
|
89
|
-
this.type = options?.type || '';
|
|
90
|
-
this.size = 0; // Simplified
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
slice(start?: number, end?: number, contentType?: string) {
|
|
94
|
-
return new BlobPolyfill(this._data.slice(start, end), { type: contentType });
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
toString() {
|
|
98
|
-
return '[object Blob]';
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
global.Blob = BlobPolyfill;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// File polyfill if needed
|
|
106
|
-
if (isReactNative && typeof global !== 'undefined' && !global.File && global.Blob) {
|
|
107
|
-
console.log('[OxyServices] Adding File polyfill for React Native');
|
|
108
|
-
|
|
109
|
-
class FilePolyfill extends global.Blob {
|
|
110
|
-
public name: string;
|
|
111
|
-
public lastModified: number;
|
|
112
|
-
|
|
113
|
-
constructor(fileBits: any[], fileName: string, options?: { type?: string; lastModified?: number }) {
|
|
114
|
-
super(fileBits, options);
|
|
115
|
-
this.name = fileName;
|
|
116
|
-
this.lastModified = options?.lastModified || Date.now();
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
toString() {
|
|
120
|
-
return '[object File]';
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
global.File = FilePolyfill;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// Additional polyfills that might be needed by sonner-native
|
|
128
|
-
if (isReactNative && typeof global !== 'undefined') {
|
|
129
|
-
// URL polyfill (basic)
|
|
130
|
-
if (!global.URL) {
|
|
131
|
-
console.log('[OxyServices] Adding URL polyfill for React Native');
|
|
132
|
-
global.URL = class URLPolyfill {
|
|
133
|
-
href: string;
|
|
134
|
-
protocol: string;
|
|
135
|
-
host: string;
|
|
136
|
-
hostname: string;
|
|
137
|
-
port: string;
|
|
138
|
-
pathname: string;
|
|
139
|
-
search: string;
|
|
140
|
-
hash: string;
|
|
141
|
-
|
|
142
|
-
constructor(url: string, base?: string) {
|
|
143
|
-
this.href = url;
|
|
144
|
-
// Basic parsing - could be enhanced if needed
|
|
145
|
-
this.protocol = 'https:';
|
|
146
|
-
this.host = '';
|
|
147
|
-
this.hostname = '';
|
|
148
|
-
this.port = '';
|
|
149
|
-
this.pathname = '';
|
|
150
|
-
this.search = '';
|
|
151
|
-
this.hash = '';
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
toString() {
|
|
155
|
-
return this.href;
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// URLSearchParams polyfill (basic)
|
|
161
|
-
if (!global.URLSearchParams) {
|
|
162
|
-
console.log('[OxyServices] Adding URLSearchParams polyfill for React Native');
|
|
163
|
-
global.URLSearchParams = class URLSearchParamsPolyfill {
|
|
164
|
-
private _data: Map<string, string[]> = new Map();
|
|
165
|
-
|
|
166
|
-
constructor(init?: string | string[][] | Record<string, string>) {
|
|
167
|
-
if (typeof init === 'string') {
|
|
168
|
-
// Parse query string
|
|
169
|
-
const pairs = init.replace('?', '').split('&');
|
|
170
|
-
pairs.forEach(pair => {
|
|
171
|
-
if (pair) {
|
|
172
|
-
const [key, value] = pair.split('=');
|
|
173
|
-
if (key) this.append(decodeURIComponent(key), decodeURIComponent(value || ''));
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
append(name: string, value: string) {
|
|
180
|
-
const existing = this._data.get(name) || [];
|
|
181
|
-
existing.push(value);
|
|
182
|
-
this._data.set(name, existing);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
delete(name: string) {
|
|
186
|
-
this._data.delete(name);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
get(name: string) {
|
|
190
|
-
const values = this._data.get(name);
|
|
191
|
-
return values ? values[0] : null;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
getAll(name: string) {
|
|
195
|
-
return this._data.get(name) || [];
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
has(name: string) {
|
|
199
|
-
return this._data.has(name);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
set(name: string, value: string) {
|
|
203
|
-
this._data.set(name, [value]);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
toString() {
|
|
207
|
-
const pairs: string[] = [];
|
|
208
|
-
this._data.forEach((values, key) => {
|
|
209
|
-
values.forEach(value => {
|
|
210
|
-
pairs.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
|
|
211
|
-
});
|
|
212
|
-
});
|
|
213
|
-
return pairs.join('&');
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export {};
|
package/src/lib/sonner-safe.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React Native Safe Sonner Wrapper
|
|
3
|
-
*
|
|
4
|
-
* This wrapper provides a safe way to use sonner-native in React Native
|
|
5
|
-
* environments where certain web APIs might not be available.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// Import polyfills first
|
|
9
|
-
import './react-native-polyfills';
|
|
10
|
-
|
|
11
|
-
let toast: any;
|
|
12
|
-
let Toaster: any;
|
|
13
|
-
|
|
14
|
-
try {
|
|
15
|
-
// Try to import sonner-native
|
|
16
|
-
const sonnerNative = require('sonner-native');
|
|
17
|
-
toast = sonnerNative.toast;
|
|
18
|
-
Toaster = sonnerNative.Toaster;
|
|
19
|
-
} catch (error) {
|
|
20
|
-
console.warn('[OxyServices] Failed to import sonner-native, using fallback:', error);
|
|
21
|
-
|
|
22
|
-
// Fallback implementations
|
|
23
|
-
toast = {
|
|
24
|
-
success: (message: string) => console.log('✅ SUCCESS:', message),
|
|
25
|
-
error: (message: string) => console.log('❌ ERROR:', message),
|
|
26
|
-
info: (message: string) => console.log('ℹ️ INFO:', message),
|
|
27
|
-
warning: (message: string) => console.log('⚠️ WARNING:', message),
|
|
28
|
-
loading: (message: string) => console.log('⏳ LOADING:', message),
|
|
29
|
-
custom: (message: string) => console.log('📝 CUSTOM:', message),
|
|
30
|
-
dismiss: (id?: string) => console.log('🚫 DISMISS:', id || 'all'),
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
// Fallback Toaster component
|
|
34
|
-
Toaster = () => null;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { toast, Toaster };
|
package/src/lib/sonner.web.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'sonner';
|