@oxyhq/services 5.25.0 → 5.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -8
- package/lib/commonjs/core/AuthManager.js +405 -0
- package/lib/commonjs/core/AuthManager.js.map +1 -0
- package/lib/commonjs/core/HttpService.js +39 -1
- package/lib/commonjs/core/HttpService.js.map +1 -1
- package/lib/commonjs/core/index.js +16 -0
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.fedcm.js +38 -44
- package/lib/commonjs/core/mixins/OxyServices.fedcm.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.popup.js +9 -7
- package/lib/commonjs/core/mixins/OxyServices.popup.js.map +1 -1
- package/lib/commonjs/crypto/keyManager.js +16 -21
- package/lib/commonjs/crypto/keyManager.js.map +1 -1
- package/lib/commonjs/index.js +386 -18
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/lib/sonner.js +13 -17
- package/lib/commonjs/lib/sonner.js.map +1 -1
- package/lib/commonjs/lib/sonner.native.js +24 -0
- package/lib/commonjs/lib/sonner.native.js.map +1 -0
- package/lib/commonjs/lib/sonner.web.js +24 -0
- package/lib/commonjs/lib/sonner.web.js.map +1 -0
- package/lib/commonjs/shared/index.js +227 -0
- package/lib/commonjs/shared/index.js.map +1 -0
- package/lib/commonjs/shared/utils/colorUtils.js +161 -0
- package/lib/commonjs/shared/utils/colorUtils.js.map +1 -0
- package/lib/commonjs/shared/utils/debugUtils.js +84 -0
- package/lib/commonjs/shared/utils/debugUtils.js.map +1 -0
- package/lib/commonjs/shared/utils/errorUtils.js +190 -0
- package/lib/commonjs/shared/utils/errorUtils.js.map +1 -0
- package/lib/commonjs/shared/utils/index.js +196 -0
- package/lib/commonjs/shared/utils/index.js.map +1 -0
- package/lib/commonjs/shared/utils/networkUtils.js +213 -0
- package/lib/commonjs/shared/utils/networkUtils.js.map +1 -0
- package/lib/commonjs/shared/utils/themeUtils.js +118 -0
- package/lib/commonjs/shared/utils/themeUtils.js.map +1 -0
- package/lib/commonjs/ui/client.js +1 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +1 -1
- package/lib/commonjs/ui/components/FontLoader.js +1 -1
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedItem.js +1 -1
- package/lib/commonjs/ui/components/Header.js +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +10 -2
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +19 -20
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
- package/lib/commonjs/ui/components/QuickActions.js +1 -1
- package/lib/commonjs/ui/components/QuickActions.js.map +1 -1
- package/lib/commonjs/ui/components/Section.js +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js +1 -1
- package/lib/commonjs/ui/components/SignInModal.js +546 -0
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +3 -2
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +1 -1
- package/lib/commonjs/ui/hooks/useAsyncAction.js +1 -1
- package/lib/commonjs/ui/hooks/{use-color-scheme.js → useColorScheme.js} +1 -1
- package/lib/commonjs/ui/hooks/useColorScheme.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSessionSocket.js +7 -13
- package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSettingToggle.js +1 -1
- package/lib/commonjs/ui/hooks/useThemeColors.js +1 -1
- package/lib/commonjs/ui/hooks/useThemeStyles.js +1 -1
- package/lib/commonjs/ui/navigation/bottomSheetManager.js +5 -2
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +7 -8
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +8 -8
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +7 -7
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +3 -3
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +5 -5
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +2 -2
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +2 -2
- package/lib/commonjs/ui/screens/FAQScreen.js +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +2 -2
- package/lib/commonjs/ui/screens/FollowersListScreen.js +18 -0
- package/lib/commonjs/ui/screens/FollowersListScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FollowingListScreen.js +18 -0
- package/lib/commonjs/ui/screens/FollowingListScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +2 -2
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +2 -2
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +2 -2
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +229 -0
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +2 -2
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +9 -21
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +2 -2
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +2 -2
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +411 -0
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +1 -1
- package/lib/commonjs/ui/stores/authStore.js +4 -6
- package/lib/commonjs/ui/stores/authStore.js.map +1 -1
- package/lib/commonjs/ui/utils/colorUtils.js +43 -46
- package/lib/commonjs/ui/utils/colorUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +1 -1
- package/lib/commonjs/ui/utils/themeUtils.js +29 -39
- package/lib/commonjs/ui/utils/themeUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/{user-utils.js → userUtils.js} +1 -1
- package/lib/commonjs/ui/utils/userUtils.js.map +1 -0
- package/lib/commonjs/utils/errorUtils.js +0 -13
- package/lib/commonjs/utils/errorUtils.js.map +1 -1
- package/lib/commonjs/utils/hookUtils.js +8 -8
- package/lib/commonjs/utils/hookUtils.js.map +1 -1
- package/lib/commonjs/utils/platform.js +129 -0
- package/lib/commonjs/utils/platform.js.map +1 -0
- package/lib/commonjs/web/WebOxyContext.js +273 -41
- package/lib/commonjs/web/WebOxyContext.js.map +1 -1
- package/lib/commonjs/web/index.js +177 -4
- package/lib/commonjs/web/index.js.map +1 -1
- package/lib/commonjs/web.js +12 -12
- package/lib/commonjs/web.js.map +1 -1
- package/lib/module/core/AuthManager.js +399 -0
- package/lib/module/core/AuthManager.js.map +1 -0
- package/lib/module/core/HttpService.js +39 -1
- package/lib/module/core/HttpService.js.map +1 -1
- package/lib/module/core/index.js +2 -0
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.fedcm.js +38 -44
- package/lib/module/core/mixins/OxyServices.fedcm.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.popup.js +9 -7
- package/lib/module/core/mixins/OxyServices.popup.js.map +1 -1
- package/lib/module/crypto/keyManager.js +16 -21
- package/lib/module/crypto/keyManager.js.map +1 -1
- package/lib/module/index.js +34 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/lib/sonner.js +11 -16
- package/lib/module/lib/sonner.js.map +1 -1
- package/lib/module/lib/sonner.native.js +19 -0
- package/lib/module/lib/sonner.native.js.map +1 -0
- package/lib/module/lib/sonner.web.js +19 -0
- package/lib/module/lib/sonner.web.js.map +1 -0
- package/lib/module/shared/index.js +37 -0
- package/lib/module/shared/index.js.map +1 -0
- package/lib/module/shared/utils/colorUtils.js +150 -0
- package/lib/module/shared/utils/colorUtils.js.map +1 -0
- package/lib/module/shared/utils/debugUtils.js +75 -0
- package/lib/module/shared/utils/debugUtils.js.map +1 -0
- package/lib/module/shared/utils/errorUtils.js +176 -0
- package/lib/module/shared/utils/errorUtils.js.map +1 -0
- package/lib/module/shared/utils/index.js +21 -0
- package/lib/module/shared/utils/index.js.map +1 -0
- package/lib/module/shared/utils/networkUtils.js +202 -0
- package/lib/module/shared/utils/networkUtils.js.map +1 -0
- package/lib/module/shared/utils/themeUtils.js +109 -0
- package/lib/module/shared/utils/themeUtils.js.map +1 -0
- package/lib/module/ui/client.js +1 -1
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/BottomSheetRouter.js +1 -1
- package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +1 -1
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/FontLoader.js +1 -1
- package/lib/module/ui/components/FontLoader.js.map +1 -1
- package/lib/module/ui/components/GroupedItem.js +1 -1
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/Header.js +1 -1
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +10 -2
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +20 -21
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +1 -1
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/QuickActions.js +1 -1
- package/lib/module/ui/components/QuickActions.js.map +1 -1
- package/lib/module/ui/components/Section.js +1 -1
- package/lib/module/ui/components/Section.js.map +1 -1
- package/lib/module/ui/components/SectionTitle.js +1 -1
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +536 -0
- package/lib/module/ui/components/SignInModal.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +2 -2
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/module/ui/hooks/useAsyncAction.js +1 -1
- package/lib/module/ui/hooks/useAsyncAction.js.map +1 -1
- package/lib/module/ui/hooks/{use-color-scheme.js → useColorScheme.js} +1 -1
- package/lib/module/ui/hooks/useColorScheme.js.map +1 -0
- package/lib/module/ui/hooks/useSessionSocket.js +7 -13
- package/lib/module/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/module/ui/hooks/useSettingToggle.js +1 -1
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/module/ui/hooks/useThemeColors.js +1 -1
- package/lib/module/ui/hooks/useThemeColors.js.map +1 -1
- package/lib/module/ui/hooks/useThemeStyles.js +1 -1
- package/lib/module/ui/hooks/useThemeStyles.js.map +1 -1
- package/lib/module/ui/navigation/bottomSheetManager.js +5 -2
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +7 -8
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +8 -8
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +7 -7
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +3 -3
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +5 -5
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +2 -2
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +2 -2
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +1 -1
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +2 -2
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/FollowersListScreen.js +13 -0
- package/lib/module/ui/screens/FollowersListScreen.js.map +1 -0
- package/lib/module/ui/screens/FollowingListScreen.js +13 -0
- package/lib/module/ui/screens/FollowingListScreen.js.map +1 -0
- package/lib/module/ui/screens/HelpSupportScreen.js +2 -2
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +2 -2
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +2 -2
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +224 -0
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -0
- package/lib/module/ui/screens/LegalDocumentsScreen.js +2 -2
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +9 -21
- package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +2 -2
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +1 -1
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +2 -2
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +405 -0
- package/lib/module/ui/screens/UserListScreen.js.map +1 -0
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/module/ui/stores/authStore.js +4 -6
- package/lib/module/ui/stores/authStore.js.map +1 -1
- package/lib/module/ui/utils/colorUtils.js +7 -40
- package/lib/module/ui/utils/colorUtils.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +1 -1
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/ui/utils/themeUtils.js +7 -35
- package/lib/module/ui/utils/themeUtils.js.map +1 -1
- package/lib/module/ui/utils/{user-utils.js → userUtils.js} +1 -1
- package/lib/module/ui/utils/userUtils.js.map +1 -0
- package/lib/module/utils/errorUtils.js +0 -7
- package/lib/module/utils/errorUtils.js.map +1 -1
- package/lib/module/utils/hookUtils.js +8 -8
- package/lib/module/utils/hookUtils.js.map +1 -1
- package/lib/module/utils/platform.js +118 -0
- package/lib/module/utils/platform.js.map +1 -0
- package/lib/module/web/WebOxyContext.js +272 -41
- package/lib/module/web/WebOxyContext.js.map +1 -1
- package/lib/module/web/index.js +26 -5
- package/lib/module/web/index.js.map +1 -1
- package/lib/module/web.js +2 -1
- package/lib/module/web.js.map +1 -1
- package/lib/typescript/commonjs/core/AuthManager.d.ts +144 -0
- package/lib/typescript/commonjs/core/AuthManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/core/HttpService.d.ts.map +1 -1
- package/lib/typescript/commonjs/core/index.d.ts +2 -0
- package/lib/typescript/commonjs/core/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.fedcm.d.ts.map +1 -1
- package/lib/typescript/commonjs/core/mixins/OxyServices.popup.d.ts.map +1 -1
- package/lib/typescript/commonjs/crypto/keyManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +16 -2
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/lib/sonner.d.ts +11 -14
- package/lib/typescript/commonjs/lib/sonner.d.ts.map +1 -1
- package/lib/typescript/commonjs/lib/sonner.native.d.ts +15 -0
- package/lib/typescript/commonjs/lib/sonner.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/sonner.web.d.ts +15 -0
- package/lib/typescript/commonjs/lib/sonner.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/models/session.d.ts +4 -0
- package/lib/typescript/commonjs/models/session.d.ts.map +1 -1
- package/lib/typescript/commonjs/shared/index.d.ts +29 -0
- package/lib/typescript/commonjs/shared/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/shared/utils/colorUtils.d.ts +105 -0
- package/lib/typescript/commonjs/shared/utils/colorUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/shared/utils/debugUtils.d.ts +49 -0
- package/lib/typescript/commonjs/shared/utils/debugUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/shared/utils/errorUtils.d.ts +98 -0
- package/lib/typescript/commonjs/shared/utils/errorUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/shared/utils/index.d.ts +14 -0
- package/lib/typescript/commonjs/shared/utils/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/shared/utils/networkUtils.d.ts +140 -0
- package/lib/typescript/commonjs/shared/utils/networkUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/shared/utils/themeUtils.d.ts +91 -0
- package/lib/typescript/commonjs/shared/utils/themeUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/FontLoader.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/FontLoader.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts +18 -0
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +1 -2
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/{use-color-scheme.d.ts → useColorScheme.d.ts} +1 -1
- package/lib/typescript/commonjs/ui/hooks/useColorScheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSessionSocket.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts +2 -0
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FollowersListScreen.d.ts +9 -0
- package/lib/typescript/commonjs/ui/screens/FollowersListScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FollowingListScreen.d.ts +9 -0
- package/lib/typescript/commonjs/ui/screens/FollowingListScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts +11 -0
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/authStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/colorUtils.d.ts +7 -11
- package/lib/typescript/commonjs/ui/utils/colorUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/themeUtils.d.ts +6 -19
- package/lib/typescript/commonjs/ui/utils/themeUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/{user-utils.d.ts → userUtils.d.ts} +1 -1
- package/lib/typescript/commonjs/ui/utils/userUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/errorUtils.d.ts +0 -6
- package/lib/typescript/commonjs/utils/errorUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/platform.d.ts +41 -0
- package/lib/typescript/commonjs/utils/platform.d.ts.map +1 -0
- package/lib/typescript/commonjs/web/WebOxyContext.d.ts +117 -9
- package/lib/typescript/commonjs/web/WebOxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/web/index.d.ts +19 -8
- package/lib/typescript/commonjs/web/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/web.d.ts +2 -1
- package/lib/typescript/commonjs/web.d.ts.map +1 -1
- package/lib/typescript/module/core/AuthManager.d.ts +144 -0
- package/lib/typescript/module/core/AuthManager.d.ts.map +1 -0
- package/lib/typescript/module/core/HttpService.d.ts.map +1 -1
- package/lib/typescript/module/core/index.d.ts +2 -0
- package/lib/typescript/module/core/index.d.ts.map +1 -1
- package/lib/typescript/module/core/mixins/OxyServices.fedcm.d.ts.map +1 -1
- package/lib/typescript/module/core/mixins/OxyServices.popup.d.ts.map +1 -1
- package/lib/typescript/module/crypto/keyManager.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +16 -2
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/lib/sonner.d.ts +11 -14
- package/lib/typescript/module/lib/sonner.d.ts.map +1 -1
- package/lib/typescript/module/lib/sonner.native.d.ts +15 -0
- package/lib/typescript/module/lib/sonner.native.d.ts.map +1 -0
- package/lib/typescript/module/lib/sonner.web.d.ts +15 -0
- package/lib/typescript/module/lib/sonner.web.d.ts.map +1 -0
- package/lib/typescript/module/models/session.d.ts +4 -0
- package/lib/typescript/module/models/session.d.ts.map +1 -1
- package/lib/typescript/module/shared/index.d.ts +29 -0
- package/lib/typescript/module/shared/index.d.ts.map +1 -0
- package/lib/typescript/module/shared/utils/colorUtils.d.ts +105 -0
- package/lib/typescript/module/shared/utils/colorUtils.d.ts.map +1 -0
- package/lib/typescript/module/shared/utils/debugUtils.d.ts +49 -0
- package/lib/typescript/module/shared/utils/debugUtils.d.ts.map +1 -0
- package/lib/typescript/module/shared/utils/errorUtils.d.ts +98 -0
- package/lib/typescript/module/shared/utils/errorUtils.d.ts.map +1 -0
- package/lib/typescript/module/shared/utils/index.d.ts +14 -0
- package/lib/typescript/module/shared/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/shared/utils/networkUtils.d.ts +140 -0
- package/lib/typescript/module/shared/utils/networkUtils.d.ts.map +1 -0
- package/lib/typescript/module/shared/utils/themeUtils.d.ts +91 -0
- package/lib/typescript/module/shared/utils/themeUtils.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/FontLoader.d.ts +1 -1
- package/lib/typescript/module/ui/components/FontLoader.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SignInModal.d.ts +18 -0
- package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts +1 -2
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/{use-color-scheme.d.ts → useColorScheme.d.ts} +1 -1
- package/lib/typescript/module/ui/hooks/useColorScheme.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSessionSocket.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts +2 -0
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FollowersListScreen.d.ts +9 -0
- package/lib/typescript/module/ui/screens/FollowersListScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FollowingListScreen.d.ts +9 -0
- package/lib/typescript/module/ui/screens/FollowingListScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts +11 -0
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/authStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/colorUtils.d.ts +7 -11
- package/lib/typescript/module/ui/utils/colorUtils.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/themeUtils.d.ts +6 -19
- package/lib/typescript/module/ui/utils/themeUtils.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/{user-utils.d.ts → userUtils.d.ts} +1 -1
- package/lib/typescript/module/ui/utils/userUtils.d.ts.map +1 -0
- package/lib/typescript/module/utils/errorUtils.d.ts +0 -6
- package/lib/typescript/module/utils/errorUtils.d.ts.map +1 -1
- package/lib/typescript/module/utils/platform.d.ts +41 -0
- package/lib/typescript/module/utils/platform.d.ts.map +1 -0
- package/lib/typescript/module/web/WebOxyContext.d.ts +117 -9
- package/lib/typescript/module/web/WebOxyContext.d.ts.map +1 -1
- package/lib/typescript/module/web/index.d.ts +19 -8
- package/lib/typescript/module/web/index.d.ts.map +1 -1
- package/lib/typescript/module/web.d.ts +2 -1
- package/lib/typescript/module/web.d.ts.map +1 -1
- package/package.json +8 -2
- package/src/core/AuthManager.ts +436 -0
- package/src/core/HttpService.ts +43 -1
- package/src/core/index.ts +4 -0
- package/src/core/mixins/OxyServices.fedcm.ts +37 -42
- package/src/core/mixins/OxyServices.popup.ts +10 -7
- package/src/crypto/keyManager.ts +16 -21
- package/src/index.ts +83 -12
- package/src/lib/sonner.native.ts +28 -0
- package/src/lib/sonner.ts +11 -28
- package/src/lib/sonner.web.ts +28 -0
- package/src/models/session.ts +4 -0
- package/src/shared/index.ts +82 -0
- package/src/shared/utils/colorUtils.ts +155 -0
- package/src/shared/utils/debugUtils.ts +73 -0
- package/src/shared/utils/errorUtils.ts +181 -0
- package/src/shared/utils/index.ts +59 -0
- package/src/shared/utils/networkUtils.ts +248 -0
- package/src/shared/utils/themeUtils.ts +115 -0
- package/src/ui/components/BottomSheetRouter.tsx +1 -1
- package/src/ui/components/FontLoader.tsx +1 -2
- package/src/ui/components/GroupedItem.tsx +1 -1
- package/src/ui/components/Header.tsx +1 -1
- package/src/ui/components/OxyProvider.tsx +10 -0
- package/src/ui/components/OxySignInButton.tsx +20 -22
- package/src/ui/components/ProfileCard.tsx +1 -1
- package/src/ui/components/QuickActions.tsx +1 -1
- package/src/ui/components/Section.tsx +1 -1
- package/src/ui/components/SectionTitle.tsx +1 -1
- package/src/ui/components/SignInModal.tsx +534 -0
- package/src/ui/context/OxyContext.tsx +1 -2
- package/src/ui/hooks/queries/queryKeys.ts +2 -2
- package/src/ui/hooks/useSessionSocket.ts +12 -17
- package/src/ui/hooks/useThemeColors.ts +1 -1
- package/src/ui/hooks/useThemeStyles.ts +1 -1
- package/src/ui/navigation/bottomSheetManager.ts +5 -1
- package/src/ui/navigation/routes.ts +8 -9
- package/src/ui/screens/AccountCenterScreen.tsx +7 -7
- package/src/ui/screens/AccountOverviewScreen.tsx +6 -6
- package/src/ui/screens/AccountSettingsScreen.tsx +2 -2
- package/src/ui/screens/AccountSwitcherScreen.tsx +4 -4
- package/src/ui/screens/AppInfoScreen.tsx +1 -1
- package/src/ui/screens/EditProfileFieldScreen.tsx +1 -1
- package/src/ui/screens/FileManagementScreen.tsx +1 -1
- package/src/ui/screens/FollowersListScreen.tsx +14 -0
- package/src/ui/screens/FollowingListScreen.tsx +14 -0
- package/src/ui/screens/HelpSupportScreen.tsx +1 -1
- package/src/ui/screens/HistoryViewScreen.tsx +1 -1
- package/src/ui/screens/LanguageSelectorScreen.tsx +1 -1
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +231 -0
- package/src/ui/screens/LegalDocumentsScreen.tsx +1 -1
- package/src/ui/screens/OxyAuthScreen.tsx +10 -21
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +1 -1
- package/src/ui/screens/ProfileScreen.tsx +1 -1
- package/src/ui/screens/SavesCollectionsScreen.tsx +1 -1
- package/src/ui/screens/UserListScreen.tsx +416 -0
- package/src/ui/screens/karma/KarmaAboutScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaRewardsScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaRulesScreen.tsx +1 -1
- package/src/ui/stores/authStore.ts +5 -6
- package/src/ui/utils/colorUtils.ts +15 -43
- package/src/ui/utils/themeUtils.ts +14 -39
- package/src/utils/errorUtils.ts +1 -6
- package/src/utils/hookUtils.ts +8 -8
- package/src/utils/platform.ts +117 -0
- package/src/web/WebOxyContext.tsx +331 -41
- package/src/web/index.ts +76 -6
- package/src/web.ts +1 -1
- package/lib/commonjs/ui/hooks/use-color-scheme.js.map +0 -1
- package/lib/commonjs/ui/utils/user-utils.js.map +0 -1
- package/lib/module/ui/hooks/use-color-scheme.js.map +0 -1
- package/lib/module/ui/utils/user-utils.js.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/use-color-scheme.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/utils/user-utils.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/use-color-scheme.d.ts.map +0 -1
- package/lib/typescript/module/ui/utils/user-utils.d.ts.map +0 -1
- /package/src/ui/hooks/{use-color-scheme.ts → useColorScheme.ts} +0 -0
- /package/src/ui/utils/{user-utils.ts → userUtils.ts} +0 -0
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.subscribeToSignInModal = exports.showSignInModal = exports.isSignInModalVisible = exports.hideSignInModal = exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
11
|
+
var _socket = _interopRequireDefault(require("socket.io-client"));
|
|
12
|
+
var _reactNativeQrcodeSvg = _interopRequireDefault(require("react-native-qrcode-svg"));
|
|
13
|
+
var _useThemeColors = require("../hooks/useThemeColors.js");
|
|
14
|
+
var _OxyContext = require("../context/OxyContext.js");
|
|
15
|
+
var _OxyLogo = _interopRequireDefault(require("./OxyLogo.js"));
|
|
16
|
+
var _debugUtils = require("../../shared/utils/debugUtils.js");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
+
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); }
|
|
20
|
+
/**
|
|
21
|
+
* SignInModal - Full screen sign-in modal with QR code
|
|
22
|
+
*
|
|
23
|
+
* A semi-transparent full-screen modal that displays:
|
|
24
|
+
* - QR code for scanning with Oxy Accounts app
|
|
25
|
+
* - Button to open Oxy Auth popup
|
|
26
|
+
*
|
|
27
|
+
* Animates with fade-in effect.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
const debug = (0, _debugUtils.createDebugLogger)('SignInModal');
|
|
31
|
+
const {
|
|
32
|
+
width: SCREEN_WIDTH,
|
|
33
|
+
height: SCREEN_HEIGHT
|
|
34
|
+
} = _reactNative.Dimensions.get('window');
|
|
35
|
+
|
|
36
|
+
// Auth session expiration (5 minutes)
|
|
37
|
+
const AUTH_SESSION_EXPIRY_MS = 5 * 60 * 1000;
|
|
38
|
+
|
|
39
|
+
// Polling interval (fallback if socket fails)
|
|
40
|
+
const POLLING_INTERVAL_MS = 3000;
|
|
41
|
+
// Store for modal visibility with subscription support
|
|
42
|
+
let modalVisible = false;
|
|
43
|
+
let setModalVisibleCallback = null;
|
|
44
|
+
const visibilityListeners = new Set();
|
|
45
|
+
const showSignInModal = () => {
|
|
46
|
+
modalVisible = true;
|
|
47
|
+
setModalVisibleCallback?.(true);
|
|
48
|
+
visibilityListeners.forEach(listener => listener(true));
|
|
49
|
+
};
|
|
50
|
+
exports.showSignInModal = showSignInModal;
|
|
51
|
+
const hideSignInModal = () => {
|
|
52
|
+
modalVisible = false;
|
|
53
|
+
setModalVisibleCallback?.(false);
|
|
54
|
+
visibilityListeners.forEach(listener => listener(false));
|
|
55
|
+
};
|
|
56
|
+
exports.hideSignInModal = hideSignInModal;
|
|
57
|
+
const isSignInModalVisible = () => modalVisible;
|
|
58
|
+
|
|
59
|
+
/** Subscribe to modal visibility changes */
|
|
60
|
+
exports.isSignInModalVisible = isSignInModalVisible;
|
|
61
|
+
const subscribeToSignInModal = listener => {
|
|
62
|
+
visibilityListeners.add(listener);
|
|
63
|
+
return () => visibilityListeners.delete(listener);
|
|
64
|
+
};
|
|
65
|
+
exports.subscribeToSignInModal = subscribeToSignInModal;
|
|
66
|
+
const SignInModal = () => {
|
|
67
|
+
const [visible, setVisible] = (0, _react.useState)(false);
|
|
68
|
+
const [authSession, setAuthSession] = (0, _react.useState)(null);
|
|
69
|
+
const [isLoading, setIsLoading] = (0, _react.useState)(false);
|
|
70
|
+
const [error, setError] = (0, _react.useState)(null);
|
|
71
|
+
const [isWaiting, setIsWaiting] = (0, _react.useState)(false);
|
|
72
|
+
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
73
|
+
const colors = (0, _useThemeColors.useThemeColors)();
|
|
74
|
+
const {
|
|
75
|
+
oxyServices,
|
|
76
|
+
switchSession
|
|
77
|
+
} = (0, _OxyContext.useOxy)();
|
|
78
|
+
const socketRef = (0, _react.useRef)(null);
|
|
79
|
+
const pollingIntervalRef = (0, _react.useRef)(null);
|
|
80
|
+
const isProcessingRef = (0, _react.useRef)(false);
|
|
81
|
+
|
|
82
|
+
// Animation values
|
|
83
|
+
const opacity = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
84
|
+
const scale = (0, _reactNativeReanimated.useSharedValue)(0.9);
|
|
85
|
+
|
|
86
|
+
// Register callback
|
|
87
|
+
(0, _react.useEffect)(() => {
|
|
88
|
+
setModalVisibleCallback = setVisible;
|
|
89
|
+
return () => {
|
|
90
|
+
setModalVisibleCallback = null;
|
|
91
|
+
};
|
|
92
|
+
}, []);
|
|
93
|
+
|
|
94
|
+
// Animate in/out
|
|
95
|
+
(0, _react.useEffect)(() => {
|
|
96
|
+
if (visible) {
|
|
97
|
+
opacity.value = (0, _reactNativeReanimated.withTiming)(1, {
|
|
98
|
+
duration: 250
|
|
99
|
+
});
|
|
100
|
+
scale.value = (0, _reactNativeReanimated.withTiming)(1, {
|
|
101
|
+
duration: 250
|
|
102
|
+
});
|
|
103
|
+
generateAuthSession();
|
|
104
|
+
} else {
|
|
105
|
+
opacity.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
106
|
+
duration: 200
|
|
107
|
+
});
|
|
108
|
+
scale.value = (0, _reactNativeReanimated.withTiming)(0.9, {
|
|
109
|
+
duration: 200
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}, [visible]);
|
|
113
|
+
const backdropStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
114
|
+
opacity: opacity.value
|
|
115
|
+
}));
|
|
116
|
+
const contentStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
117
|
+
opacity: opacity.value,
|
|
118
|
+
transform: [{
|
|
119
|
+
scale: scale.value
|
|
120
|
+
}]
|
|
121
|
+
}));
|
|
122
|
+
|
|
123
|
+
// Handle successful authorization
|
|
124
|
+
const handleAuthSuccess = (0, _react.useCallback)(async sessionId => {
|
|
125
|
+
if (isProcessingRef.current) return;
|
|
126
|
+
isProcessingRef.current = true;
|
|
127
|
+
try {
|
|
128
|
+
if (switchSession) {
|
|
129
|
+
await switchSession(sessionId);
|
|
130
|
+
} else {
|
|
131
|
+
await oxyServices.getTokenBySession(sessionId);
|
|
132
|
+
}
|
|
133
|
+
hideSignInModal();
|
|
134
|
+
} catch (err) {
|
|
135
|
+
debug.error('Error completing auth:', err);
|
|
136
|
+
setError('Authorization successful but failed to complete sign in. Please try again.');
|
|
137
|
+
isProcessingRef.current = false;
|
|
138
|
+
}
|
|
139
|
+
}, [oxyServices, switchSession]);
|
|
140
|
+
|
|
141
|
+
// Cleanup socket and polling
|
|
142
|
+
const cleanup = (0, _react.useCallback)(() => {
|
|
143
|
+
setIsWaiting(false);
|
|
144
|
+
if (socketRef.current) {
|
|
145
|
+
socketRef.current.disconnect();
|
|
146
|
+
socketRef.current = null;
|
|
147
|
+
}
|
|
148
|
+
if (pollingIntervalRef.current) {
|
|
149
|
+
clearInterval(pollingIntervalRef.current);
|
|
150
|
+
pollingIntervalRef.current = null;
|
|
151
|
+
}
|
|
152
|
+
}, []);
|
|
153
|
+
|
|
154
|
+
// Connect to socket for real-time updates
|
|
155
|
+
const connectSocket = (0, _react.useCallback)(sessionToken => {
|
|
156
|
+
const baseURL = oxyServices.getBaseURL();
|
|
157
|
+
const socket = (0, _socket.default)(`${baseURL}/auth-session`, {
|
|
158
|
+
transports: ['websocket', 'polling'],
|
|
159
|
+
reconnection: true,
|
|
160
|
+
reconnectionAttempts: 3,
|
|
161
|
+
reconnectionDelay: 1000
|
|
162
|
+
});
|
|
163
|
+
socketRef.current = socket;
|
|
164
|
+
socket.on('connect', () => {
|
|
165
|
+
debug.log('Auth socket connected');
|
|
166
|
+
socket.emit('join', sessionToken);
|
|
167
|
+
});
|
|
168
|
+
socket.on('auth_update', payload => {
|
|
169
|
+
debug.log('Auth update received:', payload);
|
|
170
|
+
if (payload.status === 'authorized' && payload.sessionId) {
|
|
171
|
+
cleanup();
|
|
172
|
+
handleAuthSuccess(payload.sessionId);
|
|
173
|
+
} else if (payload.status === 'cancelled') {
|
|
174
|
+
cleanup();
|
|
175
|
+
setError('Authorization was denied.');
|
|
176
|
+
} else if (payload.status === 'expired') {
|
|
177
|
+
cleanup();
|
|
178
|
+
setError('Session expired. Please try again.');
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
socket.on('connect_error', err => {
|
|
182
|
+
debug.log('Socket connection error, falling back to polling:', err.message);
|
|
183
|
+
socket.disconnect();
|
|
184
|
+
startPolling(sessionToken);
|
|
185
|
+
});
|
|
186
|
+
}, [oxyServices, handleAuthSuccess, cleanup]);
|
|
187
|
+
|
|
188
|
+
// Start polling for authorization (fallback)
|
|
189
|
+
const startPolling = (0, _react.useCallback)(sessionToken => {
|
|
190
|
+
pollingIntervalRef.current = setInterval(async () => {
|
|
191
|
+
if (isProcessingRef.current) return;
|
|
192
|
+
try {
|
|
193
|
+
const response = await oxyServices.makeRequest('GET', `/api/auth/session/status/${sessionToken}`, undefined, {
|
|
194
|
+
cache: false
|
|
195
|
+
});
|
|
196
|
+
if (response.authorized && response.sessionId) {
|
|
197
|
+
cleanup();
|
|
198
|
+
handleAuthSuccess(response.sessionId);
|
|
199
|
+
} else if (response.status === 'cancelled') {
|
|
200
|
+
cleanup();
|
|
201
|
+
setError('Authorization was denied.');
|
|
202
|
+
} else if (response.status === 'expired') {
|
|
203
|
+
cleanup();
|
|
204
|
+
setError('Session expired. Please try again.');
|
|
205
|
+
}
|
|
206
|
+
} catch (err) {
|
|
207
|
+
debug.log('Auth polling error:', err);
|
|
208
|
+
}
|
|
209
|
+
}, POLLING_INTERVAL_MS);
|
|
210
|
+
}, [oxyServices, handleAuthSuccess, cleanup]);
|
|
211
|
+
|
|
212
|
+
// Generate a new auth session
|
|
213
|
+
const generateAuthSession = (0, _react.useCallback)(async () => {
|
|
214
|
+
setIsLoading(true);
|
|
215
|
+
setError(null);
|
|
216
|
+
isProcessingRef.current = false;
|
|
217
|
+
try {
|
|
218
|
+
const sessionToken = generateSessionToken();
|
|
219
|
+
const expiresAt = Date.now() + AUTH_SESSION_EXPIRY_MS;
|
|
220
|
+
await oxyServices.makeRequest('POST', '/api/auth/session/create', {
|
|
221
|
+
sessionToken,
|
|
222
|
+
expiresAt,
|
|
223
|
+
appId: _reactNative.Platform.OS
|
|
224
|
+
}, {
|
|
225
|
+
cache: false
|
|
226
|
+
});
|
|
227
|
+
setAuthSession({
|
|
228
|
+
sessionToken,
|
|
229
|
+
expiresAt
|
|
230
|
+
});
|
|
231
|
+
setIsWaiting(true);
|
|
232
|
+
connectSocket(sessionToken);
|
|
233
|
+
} catch (err) {
|
|
234
|
+
setError(err.message || 'Failed to create auth session');
|
|
235
|
+
} finally {
|
|
236
|
+
setIsLoading(false);
|
|
237
|
+
}
|
|
238
|
+
}, [oxyServices, connectSocket]);
|
|
239
|
+
|
|
240
|
+
// Generate a random session token
|
|
241
|
+
const generateSessionToken = () => {
|
|
242
|
+
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
243
|
+
let result = '';
|
|
244
|
+
for (let i = 0; i < 32; i++) {
|
|
245
|
+
result += chars.charAt(Math.floor(Math.random() * chars.length));
|
|
246
|
+
}
|
|
247
|
+
return result;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
// Build the QR code data
|
|
251
|
+
const getQRData = () => {
|
|
252
|
+
if (!authSession) return '';
|
|
253
|
+
return `oxyauth://${authSession.sessionToken}`;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
// Open Oxy Auth popup
|
|
257
|
+
const handleOpenAuthPopup = (0, _react.useCallback)(async () => {
|
|
258
|
+
if (!authSession) return;
|
|
259
|
+
const baseURL = oxyServices.getBaseURL();
|
|
260
|
+
// Resolve auth web URL
|
|
261
|
+
let authWebUrl = oxyServices.config?.authWebUrl;
|
|
262
|
+
if (!authWebUrl) {
|
|
263
|
+
try {
|
|
264
|
+
const url = new URL(baseURL);
|
|
265
|
+
if (url.port === '3001') {
|
|
266
|
+
url.port = '3000';
|
|
267
|
+
authWebUrl = url.origin;
|
|
268
|
+
} else if (url.hostname.startsWith('api.')) {
|
|
269
|
+
url.hostname = `auth.${url.hostname.slice(4)}`;
|
|
270
|
+
authWebUrl = url.origin;
|
|
271
|
+
}
|
|
272
|
+
} catch {
|
|
273
|
+
authWebUrl = 'https://auth.oxy.so';
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
authWebUrl = authWebUrl || 'https://auth.oxy.so';
|
|
277
|
+
const webUrl = new URL('/authorize', authWebUrl);
|
|
278
|
+
webUrl.searchParams.set('token', authSession.sessionToken);
|
|
279
|
+
|
|
280
|
+
// Open popup window
|
|
281
|
+
const width = 500;
|
|
282
|
+
const height = 650;
|
|
283
|
+
const left = (window.screen.width - width) / 2;
|
|
284
|
+
const top = (window.screen.height - height) / 2;
|
|
285
|
+
window.open(webUrl.toString(), 'oxy-auth-popup', `width=${width},height=${height},left=${left},top=${top},popup=1`);
|
|
286
|
+
}, [authSession, oxyServices]);
|
|
287
|
+
|
|
288
|
+
// Refresh session
|
|
289
|
+
const handleRefresh = (0, _react.useCallback)(() => {
|
|
290
|
+
cleanup();
|
|
291
|
+
generateAuthSession();
|
|
292
|
+
}, [generateAuthSession, cleanup]);
|
|
293
|
+
|
|
294
|
+
// Handle close
|
|
295
|
+
const handleClose = (0, _react.useCallback)(() => {
|
|
296
|
+
cleanup();
|
|
297
|
+
hideSignInModal();
|
|
298
|
+
}, [cleanup]);
|
|
299
|
+
|
|
300
|
+
// Clean up on unmount
|
|
301
|
+
(0, _react.useEffect)(() => {
|
|
302
|
+
return () => {
|
|
303
|
+
cleanup();
|
|
304
|
+
};
|
|
305
|
+
}, [cleanup]);
|
|
306
|
+
if (!visible) return null;
|
|
307
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
308
|
+
visible: visible,
|
|
309
|
+
transparent: true,
|
|
310
|
+
animationType: "none",
|
|
311
|
+
statusBarTranslucent: true,
|
|
312
|
+
onRequestClose: handleClose,
|
|
313
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
314
|
+
style: [styles.backdrop, backdropStyle],
|
|
315
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
316
|
+
style: _reactNative.StyleSheet.absoluteFill,
|
|
317
|
+
onPress: handleClose,
|
|
318
|
+
activeOpacity: 1
|
|
319
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
320
|
+
style: [styles.content, contentStyle, {
|
|
321
|
+
paddingTop: insets.top + 20,
|
|
322
|
+
paddingBottom: insets.bottom + 20
|
|
323
|
+
}],
|
|
324
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
325
|
+
style: styles.closeButton,
|
|
326
|
+
onPress: handleClose,
|
|
327
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
328
|
+
style: styles.closeButtonText,
|
|
329
|
+
children: "\xD7"
|
|
330
|
+
})
|
|
331
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
332
|
+
style: styles.header,
|
|
333
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyLogo.default, {
|
|
334
|
+
width: 56,
|
|
335
|
+
height: 56
|
|
336
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
337
|
+
style: [styles.title, {
|
|
338
|
+
color: colors.text
|
|
339
|
+
}],
|
|
340
|
+
children: "Sign in with Oxy"
|
|
341
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
342
|
+
style: [styles.subtitle, {
|
|
343
|
+
color: colors.secondaryText
|
|
344
|
+
}],
|
|
345
|
+
children: "Scan with Oxy Accounts app or use the button below"
|
|
346
|
+
})]
|
|
347
|
+
}), isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
348
|
+
style: styles.loadingContainer,
|
|
349
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
350
|
+
size: "large",
|
|
351
|
+
color: colors.tint
|
|
352
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
353
|
+
style: [styles.loadingText, {
|
|
354
|
+
color: colors.secondaryText
|
|
355
|
+
}],
|
|
356
|
+
children: "Preparing sign in..."
|
|
357
|
+
})]
|
|
358
|
+
}) : error ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
359
|
+
style: styles.errorContainer,
|
|
360
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
361
|
+
style: [styles.errorText, {
|
|
362
|
+
color: '#EA4335'
|
|
363
|
+
}],
|
|
364
|
+
children: error
|
|
365
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
366
|
+
style: [styles.button, {
|
|
367
|
+
backgroundColor: colors.tint
|
|
368
|
+
}],
|
|
369
|
+
onPress: handleRefresh,
|
|
370
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
371
|
+
style: styles.buttonText,
|
|
372
|
+
children: "Try Again"
|
|
373
|
+
})
|
|
374
|
+
})]
|
|
375
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
376
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
377
|
+
style: [styles.qrContainer, {
|
|
378
|
+
backgroundColor: 'white'
|
|
379
|
+
}],
|
|
380
|
+
children: authSession ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeQrcodeSvg.default, {
|
|
381
|
+
value: getQRData(),
|
|
382
|
+
size: 200,
|
|
383
|
+
backgroundColor: "white",
|
|
384
|
+
color: "black"
|
|
385
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
386
|
+
size: "large",
|
|
387
|
+
color: "#d169e5"
|
|
388
|
+
})
|
|
389
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
390
|
+
style: styles.dividerContainer,
|
|
391
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
392
|
+
style: [styles.divider, {
|
|
393
|
+
backgroundColor: 'rgba(255,255,255,0.3)'
|
|
394
|
+
}]
|
|
395
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
396
|
+
style: [styles.dividerText, {
|
|
397
|
+
color: 'rgba(255,255,255,0.7)'
|
|
398
|
+
}],
|
|
399
|
+
children: "or"
|
|
400
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
401
|
+
style: [styles.divider, {
|
|
402
|
+
backgroundColor: 'rgba(255,255,255,0.3)'
|
|
403
|
+
}]
|
|
404
|
+
})]
|
|
405
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
406
|
+
style: [styles.button, {
|
|
407
|
+
backgroundColor: '#d169e5'
|
|
408
|
+
}],
|
|
409
|
+
onPress: handleOpenAuthPopup,
|
|
410
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyLogo.default, {
|
|
411
|
+
width: 20,
|
|
412
|
+
height: 20,
|
|
413
|
+
fillColor: "white",
|
|
414
|
+
style: styles.buttonIcon
|
|
415
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
416
|
+
style: styles.buttonText,
|
|
417
|
+
children: "Open Oxy Auth"
|
|
418
|
+
})]
|
|
419
|
+
}), isWaiting && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
420
|
+
style: styles.statusContainer,
|
|
421
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
422
|
+
size: "small",
|
|
423
|
+
color: "white"
|
|
424
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
425
|
+
style: styles.statusText,
|
|
426
|
+
children: "Waiting for authorization..."
|
|
427
|
+
})]
|
|
428
|
+
})]
|
|
429
|
+
})]
|
|
430
|
+
})]
|
|
431
|
+
})
|
|
432
|
+
});
|
|
433
|
+
};
|
|
434
|
+
const styles = _reactNative.StyleSheet.create({
|
|
435
|
+
backdrop: {
|
|
436
|
+
flex: 1,
|
|
437
|
+
backgroundColor: 'rgba(0, 0, 0, 0.85)',
|
|
438
|
+
justifyContent: 'center',
|
|
439
|
+
alignItems: 'center'
|
|
440
|
+
},
|
|
441
|
+
content: {
|
|
442
|
+
width: '100%',
|
|
443
|
+
maxWidth: 400,
|
|
444
|
+
alignItems: 'center',
|
|
445
|
+
paddingHorizontal: 24
|
|
446
|
+
},
|
|
447
|
+
closeButton: {
|
|
448
|
+
position: 'absolute',
|
|
449
|
+
top: 16,
|
|
450
|
+
right: 16,
|
|
451
|
+
width: 40,
|
|
452
|
+
height: 40,
|
|
453
|
+
borderRadius: 20,
|
|
454
|
+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
455
|
+
justifyContent: 'center',
|
|
456
|
+
alignItems: 'center',
|
|
457
|
+
zIndex: 10
|
|
458
|
+
},
|
|
459
|
+
closeButtonText: {
|
|
460
|
+
color: 'white',
|
|
461
|
+
fontSize: 28,
|
|
462
|
+
fontWeight: '300',
|
|
463
|
+
lineHeight: 32
|
|
464
|
+
},
|
|
465
|
+
header: {
|
|
466
|
+
alignItems: 'center',
|
|
467
|
+
marginBottom: 32
|
|
468
|
+
},
|
|
469
|
+
title: {
|
|
470
|
+
fontSize: 28,
|
|
471
|
+
fontWeight: 'bold',
|
|
472
|
+
marginTop: 16,
|
|
473
|
+
color: 'white'
|
|
474
|
+
},
|
|
475
|
+
subtitle: {
|
|
476
|
+
fontSize: 15,
|
|
477
|
+
marginTop: 8,
|
|
478
|
+
textAlign: 'center',
|
|
479
|
+
color: 'rgba(255, 255, 255, 0.7)'
|
|
480
|
+
},
|
|
481
|
+
qrContainer: {
|
|
482
|
+
padding: 20,
|
|
483
|
+
borderRadius: 16
|
|
484
|
+
},
|
|
485
|
+
dividerContainer: {
|
|
486
|
+
flexDirection: 'row',
|
|
487
|
+
alignItems: 'center',
|
|
488
|
+
marginVertical: 24,
|
|
489
|
+
width: '100%'
|
|
490
|
+
},
|
|
491
|
+
divider: {
|
|
492
|
+
flex: 1,
|
|
493
|
+
height: 1
|
|
494
|
+
},
|
|
495
|
+
dividerText: {
|
|
496
|
+
marginHorizontal: 16,
|
|
497
|
+
fontSize: 14
|
|
498
|
+
},
|
|
499
|
+
button: {
|
|
500
|
+
flexDirection: 'row',
|
|
501
|
+
alignItems: 'center',
|
|
502
|
+
justifyContent: 'center',
|
|
503
|
+
paddingVertical: 16,
|
|
504
|
+
paddingHorizontal: 24,
|
|
505
|
+
borderRadius: 12,
|
|
506
|
+
width: '100%'
|
|
507
|
+
},
|
|
508
|
+
buttonIcon: {
|
|
509
|
+
marginRight: 10
|
|
510
|
+
},
|
|
511
|
+
buttonText: {
|
|
512
|
+
color: 'white',
|
|
513
|
+
fontSize: 16,
|
|
514
|
+
fontWeight: '600'
|
|
515
|
+
},
|
|
516
|
+
statusContainer: {
|
|
517
|
+
flexDirection: 'row',
|
|
518
|
+
alignItems: 'center',
|
|
519
|
+
marginTop: 24
|
|
520
|
+
},
|
|
521
|
+
statusText: {
|
|
522
|
+
marginLeft: 8,
|
|
523
|
+
fontSize: 14,
|
|
524
|
+
color: 'rgba(255, 255, 255, 0.7)'
|
|
525
|
+
},
|
|
526
|
+
loadingContainer: {
|
|
527
|
+
alignItems: 'center',
|
|
528
|
+
paddingVertical: 40
|
|
529
|
+
},
|
|
530
|
+
loadingText: {
|
|
531
|
+
marginTop: 16,
|
|
532
|
+
fontSize: 14
|
|
533
|
+
},
|
|
534
|
+
errorContainer: {
|
|
535
|
+
alignItems: 'center',
|
|
536
|
+
paddingVertical: 20,
|
|
537
|
+
width: '100%'
|
|
538
|
+
},
|
|
539
|
+
errorText: {
|
|
540
|
+
fontSize: 14,
|
|
541
|
+
textAlign: 'center',
|
|
542
|
+
marginBottom: 16
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
var _default = exports.default = SignInModal;
|
|
546
|
+
//# sourceMappingURL=SignInModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_reactNativeSafeAreaContext","_socket","_interopRequireDefault","_reactNativeQrcodeSvg","_useThemeColors","_OxyContext","_OxyLogo","_debugUtils","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","debug","createDebugLogger","width","SCREEN_WIDTH","height","SCREEN_HEIGHT","Dimensions","AUTH_SESSION_EXPIRY_MS","POLLING_INTERVAL_MS","modalVisible","setModalVisibleCallback","visibilityListeners","Set","showSignInModal","forEach","listener","exports","hideSignInModal","isSignInModalVisible","subscribeToSignInModal","add","delete","SignInModal","visible","setVisible","useState","authSession","setAuthSession","isLoading","setIsLoading","error","setError","isWaiting","setIsWaiting","insets","useSafeAreaInsets","colors","useThemeColors","oxyServices","switchSession","useOxy","socketRef","useRef","pollingIntervalRef","isProcessingRef","opacity","useSharedValue","scale","useEffect","value","withTiming","duration","generateAuthSession","backdropStyle","useAnimatedStyle","contentStyle","transform","handleAuthSuccess","useCallback","sessionId","current","getTokenBySession","err","cleanup","disconnect","clearInterval","connectSocket","sessionToken","baseURL","getBaseURL","socket","io","transports","reconnection","reconnectionAttempts","reconnectionDelay","on","log","emit","payload","status","message","startPolling","setInterval","response","makeRequest","undefined","cache","authorized","generateSessionToken","expiresAt","Date","now","appId","Platform","OS","chars","result","charAt","Math","floor","random","length","getQRData","handleOpenAuthPopup","authWebUrl","config","url","URL","port","origin","hostname","startsWith","slice","webUrl","searchParams","left","window","screen","top","open","toString","handleRefresh","handleClose","jsx","Modal","transparent","animationType","statusBarTranslucent","onRequestClose","children","jsxs","View","style","styles","backdrop","TouchableOpacity","StyleSheet","absoluteFill","onPress","activeOpacity","content","paddingTop","paddingBottom","bottom","closeButton","Text","closeButtonText","header","title","color","text","subtitle","secondaryText","loadingContainer","ActivityIndicator","size","tint","loadingText","errorContainer","errorText","button","backgroundColor","buttonText","Fragment","qrContainer","dividerContainer","divider","dividerText","fillColor","buttonIcon","statusContainer","statusText","create","flex","justifyContent","alignItems","maxWidth","paddingHorizontal","position","right","borderRadius","zIndex","fontSize","fontWeight","lineHeight","marginBottom","marginTop","textAlign","padding","flexDirection","marginVertical","marginHorizontal","paddingVertical","marginRight","marginLeft","_default"],"sourceRoot":"../../../../src","sources":["ui/components/SignInModal.tsx"],"mappings":";;;;;;AAUA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAMA,IAAAG,2BAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAD,sBAAA,CAAAL,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAJ,sBAAA,CAAAL,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AAAkE,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAK,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAb,wBAAAa,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAjB,uBAAA,YAAAA,CAAAa,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAA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K,EAAE,OAAO;IACdiC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACDb,eAAe,EAAE;IACbmB,aAAa,EAAE,KAAK;IACpBd,UAAU,EAAE,QAAQ;IACpBW,SAAS,EAAE;EACf,CAAC;EACDf,UAAU,EAAE;IACRuB,UAAU,EAAE,CAAC;IACbZ,QAAQ,EAAE,EAAE;IACZjC,KAAK,EAAE;EACX,CAAC;EACDI,gBAAgB,EAAE;IACdsB,UAAU,EAAE,QAAQ;IACpBiB,eAAe,EAAE;EACrB,CAAC;EACDnC,WAAW,EAAE;IACT6B,SAAS,EAAE,EAAE;IACbJ,QAAQ,EAAE;EACd,CAAC;EACDxB,cAAc,EAAE;IACZiB,UAAU,EAAE,QAAQ;IACpBiB,eAAe,EAAE,EAAE;IACnB/L,KAAK,EAAE;EACX,CAAC;EACD8J,SAAS,EAAE;IACPuB,QAAQ,EAAE,EAAE;IACZK,SAAS,EAAE,QAAQ;IACnBF,YAAY,EAAE;EAClB;AACJ,CAAC,CAAC;AAAC,IAAAU,QAAA,GAAApL,OAAA,CAAAjC,OAAA,GAEYuC,WAAW","ignoreList":[]}
|
|
@@ -11,7 +11,7 @@ var _GroupedPillButtons = _interopRequireDefault(require("../internal/GroupedPil
|
|
|
11
11
|
var _TextField = _interopRequireDefault(require("../TextField.js"));
|
|
12
12
|
var _index = require("../icon/index.js");
|
|
13
13
|
var _paymentStyles = require("./paymentStyles.js");
|
|
14
|
-
var _sonner = require("../../../lib/sonner
|
|
14
|
+
var _sonner = require("../../../lib/sonner");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
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); }
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useOxy = exports.default = exports.OxyProvider = exports.OxyContextProvider = void 0;
|
|
7
|
-
var _react = require("react");
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _index = require("../../core/index.js");
|
|
9
9
|
var _keyManager = require("../../crypto/keyManager.js");
|
|
10
|
-
var _sonner = require("../../lib/sonner
|
|
10
|
+
var _sonner = require("../../lib/sonner");
|
|
11
11
|
var _authStore = require("../stores/authStore.js");
|
|
12
12
|
var _shallow = require("zustand/react/shallow");
|
|
13
13
|
var _useSessionSocket = require("../hooks/useSessionSocket.js");
|
|
@@ -26,6 +26,7 @@ var _accountStore = require("../stores/accountStore.js");
|
|
|
26
26
|
var _loggerUtils = require("../../utils/loggerUtils.js");
|
|
27
27
|
var _useWebSSO = require("../hooks/useWebSSO.js");
|
|
28
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
|
+
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); }
|
|
29
30
|
const OxyContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
30
31
|
let cachedUseFollowHook = null;
|
|
31
32
|
const loadUseFollowHook = () => {
|