@oxyhq/services 5.16.21 → 5.16.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/ui/components/internal/PinInput.js.map +0 -1
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditUsernameModal.js.map +0 -1
- package/lib/commonjs/ui/components/styles/shadow.js.map +0 -1
- package/lib/commonjs/ui/components/types.js.map +0 -1
- package/lib/commonjs/ui/components/utils/splitStyles.js.map +0 -1
- package/lib/commonjs/ui/constants/theme.js.map +0 -1
- package/lib/commonjs/ui/context/ThemeContext.js.map +0 -1
- package/lib/commonjs/ui/context/hooks/useStorage.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +0 -1
- package/lib/commonjs/ui/hooks/useThemeStyles.js.map +0 -1
- package/lib/commonjs/ui/isFrontend.js.map +0 -1
- package/lib/commonjs/ui/navigation/routes.js.map +0 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
- package/lib/commonjs/ui/stores/followStore.js.map +0 -1
- package/lib/commonjs/ui/styles/theme.js.map +0 -1
- package/lib/commonjs/ui/types/navigation.js.map +0 -1
- package/lib/commonjs/ui/utils/avatarUtils.js.map +0 -1
- package/lib/commonjs/utils/validationUtils.js.map +0 -1
- package/lib/module/ui/components/TextField/Label/LabelBackground.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/utils.js.map +0 -1
- package/lib/module/ui/components/Typography/types.js.map +0 -1
- package/lib/module/ui/components/fileManagement/styles.js.map +0 -1
- package/lib/module/ui/components/icon/index.js.map +0 -1
- package/lib/module/ui/components/internal/PinInput.js.map +0 -1
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +0 -1
- package/lib/module/ui/components/profile/EditLocationModal.js.map +0 -1
- package/lib/module/ui/components/styles/shadow.js.map +0 -1
- package/lib/module/ui/components/types.js.map +0 -1
- package/lib/module/ui/components/utils/splitStyles.js.map +0 -1
- package/lib/module/ui/constants/theme.js.map +0 -1
- package/lib/module/ui/context/ThemeContext.js.map +0 -1
- package/lib/module/ui/context/hooks/useStorage.js.map +0 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +0 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +0 -1
- package/lib/module/ui/hooks/useThemeStyles.js.map +0 -1
- package/lib/module/ui/isFrontend.js.map +0 -1
- package/lib/module/ui/navigation/routes.js.map +0 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
- package/lib/module/ui/stores/followStore.js.map +0 -1
- package/lib/module/ui/styles/theme.js.map +0 -1
- package/lib/module/ui/types/navigation.js.map +0 -1
- package/lib/module/ui/utils/user-utils.js.map +0 -1
- package/lib/module/utils/sessionUtils.js.map +0 -1
- package/package.json +1 -1
- package/src/core/HttpService.ts +15 -95
- package/src/core/OxyServices.base.ts +3 -20
- package/src/core/services/SessionService.ts +173 -0
- package/src/core/services/TokenService.ts +226 -0
- package/src/models/interfaces.ts +16 -2
- package/src/models/session.ts +8 -1
- package/src/ui/context/OxyContext.tsx +225 -35
- package/src/ui/context/hooks/useAuthOperations.ts +11 -3
- package/src/ui/hooks/useSessionSocket.ts +226 -55
- 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/assets/illustrations/HighFive.tsx +0 -41
- package/lib/commonjs/assets/assets/lottie/welcomeheader_background_op1.json +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 -51
- package/lib/commonjs/assets/icons/OxyServices.js.map +0 -1
- package/lib/commonjs/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/commonjs/assets/illustrations/HighFive.js +0 -59
- package/lib/commonjs/assets/illustrations/HighFive.js.map +0 -1
- package/lib/commonjs/assets/lottie/welcomeheader_background_op1.json +0 -1
- package/lib/commonjs/constants/version.js +0 -28
- package/lib/commonjs/constants/version.js.map +0 -1
- package/lib/commonjs/core/HttpService.js +0 -571
- package/lib/commonjs/core/HttpService.js.map +0 -1
- package/lib/commonjs/core/OxyServices.base.js +0 -291
- package/lib/commonjs/core/OxyServices.base.js.map +0 -1
- package/lib/commonjs/core/OxyServices.errors.js +0 -26
- package/lib/commonjs/core/OxyServices.errors.js.map +0 -1
- package/lib/commonjs/core/OxyServices.js +0 -146
- package/lib/commonjs/core/OxyServices.js.map +0 -1
- package/lib/commonjs/core/index.js +0 -126
- package/lib/commonjs/core/index.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.analytics.js +0 -60
- package/lib/commonjs/core/mixins/OxyServices.analytics.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.assets.js +0 -375
- package/lib/commonjs/core/mixins/OxyServices.assets.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.auth.js +0 -271
- package/lib/commonjs/core/mixins/OxyServices.auth.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.developer.js +0 -115
- package/lib/commonjs/core/mixins/OxyServices.developer.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.devices.js +0 -133
- package/lib/commonjs/core/mixins/OxyServices.devices.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.karma.js +0 -117
- package/lib/commonjs/core/mixins/OxyServices.karma.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.language.js +0 -124
- package/lib/commonjs/core/mixins/OxyServices.language.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.location.js +0 -55
- package/lib/commonjs/core/mixins/OxyServices.location.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.payment.js +0 -168
- package/lib/commonjs/core/mixins/OxyServices.payment.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.privacy.js +0 -174
- package/lib/commonjs/core/mixins/OxyServices.privacy.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.security.js +0 -96
- package/lib/commonjs/core/mixins/OxyServices.security.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.user.js +0 -393
- package/lib/commonjs/core/mixins/OxyServices.user.js.map +0 -1
- package/lib/commonjs/core/mixins/OxyServices.utility.js +0 -165
- package/lib/commonjs/core/mixins/OxyServices.utility.js.map +0 -1
- package/lib/commonjs/core/mixins/index.js +0 -39
- package/lib/commonjs/core/mixins/index.js.map +0 -1
- package/lib/commonjs/core/mixins/mixinHelpers.js +0 -62
- package/lib/commonjs/core/mixins/mixinHelpers.js.map +0 -1
- package/lib/commonjs/crypto/index.js +0 -27
- package/lib/commonjs/crypto/index.js.map +0 -1
- package/lib/commonjs/crypto/keyManager.js +0 -511
- package/lib/commonjs/crypto/keyManager.js.map +0 -1
- package/lib/commonjs/crypto/polyfill.js +0 -86
- package/lib/commonjs/crypto/polyfill.js.map +0 -1
- package/lib/commonjs/crypto/signatureService.js +0 -289
- package/lib/commonjs/crypto/signatureService.js.map +0 -1
- package/lib/commonjs/crypto/types.js +0 -2
- package/lib/commonjs/crypto/types.js.map +0 -1
- package/lib/commonjs/i18n/index.js +0 -76
- package/lib/commonjs/i18n/index.js.map +0 -1
- package/lib/commonjs/i18n/locales/ar-SA.json +0 -120
- package/lib/commonjs/i18n/locales/ca-ES.json +0 -120
- package/lib/commonjs/i18n/locales/de-DE.json +0 -120
- package/lib/commonjs/i18n/locales/en-US.json +0 -956
- package/lib/commonjs/i18n/locales/es-ES.json +0 -723
- package/lib/commonjs/i18n/locales/fr-FR.json +0 -120
- package/lib/commonjs/i18n/locales/it-IT.json +0 -120
- package/lib/commonjs/i18n/locales/ja-JP.json +0 -119
- package/lib/commonjs/i18n/locales/ko-KR.json +0 -120
- package/lib/commonjs/i18n/locales/pt-PT.json +0 -120
- package/lib/commonjs/i18n/locales/zh-CN.json +0 -120
- package/lib/commonjs/index.js +0 -601
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/lib/sonner-safe.js +0 -32
- package/lib/commonjs/lib/sonner-safe.js.map +0 -1
- package/lib/commonjs/lib/sonner.js +0 -23
- package/lib/commonjs/lib/sonner.js.map +0 -1
- package/lib/commonjs/models/interfaces.js +0 -61
- package/lib/commonjs/models/interfaces.js.map +0 -1
- package/lib/commonjs/models/session.js +0 -2
- package/lib/commonjs/models/session.js.map +0 -1
- package/lib/commonjs/node/index.js +0 -59
- package/lib/commonjs/node/index.js.map +0 -1
- package/lib/commonjs/ui/components/ActivityIndicator.js +0 -203
- package/lib/commonjs/ui/components/ActivityIndicator.js.map +0 -1
- package/lib/commonjs/ui/components/AnimationExample.js +0 -213
- package/lib/commonjs/ui/components/AnimationExample.js.map +0 -1
- package/lib/commonjs/ui/components/AutoHeightScrollView.js +0 -46
- package/lib/commonjs/ui/components/AutoHeightScrollView.js.map +0 -1
- package/lib/commonjs/ui/components/Avatar.js +0 -172
- package/lib/commonjs/ui/components/Avatar.js.map +0 -1
- package/lib/commonjs/ui/components/BottomSheet.js +0 -407
- package/lib/commonjs/ui/components/BottomSheet.js.map +0 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js +0 -366
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +0 -1
- package/lib/commonjs/ui/components/CrossFadeIcon.js +0 -106
- package/lib/commonjs/ui/components/CrossFadeIcon.js.map +0 -1
- package/lib/commonjs/ui/components/EmptyState.js +0 -41
- package/lib/commonjs/ui/components/EmptyState.js.map +0 -1
- package/lib/commonjs/ui/components/ErrorBoundary.js +0 -145
- package/lib/commonjs/ui/components/ErrorBoundary.js.map +0 -1
- package/lib/commonjs/ui/components/FollowButton.js +0 -230
- package/lib/commonjs/ui/components/FollowButton.js.map +0 -1
- package/lib/commonjs/ui/components/FontLoader.js +0 -162
- package/lib/commonjs/ui/components/FontLoader.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedItem.js +0 -140
- package/lib/commonjs/ui/components/GroupedItem.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedSection.js +0 -42
- package/lib/commonjs/ui/components/GroupedSection.js.map +0 -1
- package/lib/commonjs/ui/components/Header.js +0 -434
- package/lib/commonjs/ui/components/Header.js.map +0 -1
- package/lib/commonjs/ui/components/HelperText.js +0 -103
- package/lib/commonjs/ui/components/HelperText.js.map +0 -1
- package/lib/commonjs/ui/components/Icon.js +0 -109
- package/lib/commonjs/ui/components/Icon.js.map +0 -1
- package/lib/commonjs/ui/components/IconButton/IconButton.js +0 -159
- package/lib/commonjs/ui/components/IconButton/IconButton.js.map +0 -1
- package/lib/commonjs/ui/components/IconButton/utils.js +0 -155
- package/lib/commonjs/ui/components/IconButton/utils.js.map +0 -1
- package/lib/commonjs/ui/components/LoadingState.js +0 -47
- package/lib/commonjs/ui/components/LoadingState.js.map +0 -1
- package/lib/commonjs/ui/components/OxyLogo.js +0 -54
- package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
- package/lib/commonjs/ui/components/OxyPayButton.js +0 -117
- package/lib/commonjs/ui/components/OxyPayButton.js.map +0 -1
- package/lib/commonjs/ui/components/OxyProvider.js +0 -144
- package/lib/commonjs/ui/components/OxyProvider.js.map +0 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +0 -180
- package/lib/commonjs/ui/components/OxySignInButton.js.map +0 -1
- package/lib/commonjs/ui/components/ProfileCard.js +0 -138
- package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
- package/lib/commonjs/ui/components/QuickActions.js +0 -88
- package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
- package/lib/commonjs/ui/components/Section.js +0 -39
- 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/SettingRow.js +0 -77
- package/lib/commonjs/ui/components/SettingRow.js.map +0 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +0 -397
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +0 -1
- package/lib/commonjs/ui/components/Surface.js +0 -258
- package/lib/commonjs/ui/components/Surface.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Addons/Outline.js +0 -46
- package/lib/commonjs/ui/components/TextField/Addons/Outline.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js +0 -53
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -155
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js +0 -144
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js +0 -137
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js +0 -22
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/types.js +0 -6
- package/lib/commonjs/ui/components/TextField/Adornment/types.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js +0 -62
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js +0 -176
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js +0 -84
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js +0 -379
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js +0 -363
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/constants.js +0 -50
- package/lib/commonjs/ui/components/TextField/constants.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/helpers.js +0 -490
- package/lib/commonjs/ui/components/TextField/helpers.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/types.js +0 -6
- package/lib/commonjs/ui/components/TextField/types.js.map +0 -1
- package/lib/commonjs/ui/components/TextField.js +0 -339
- package/lib/commonjs/ui/components/TextField.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js +0 -12
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js +0 -258
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js +0 -107
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/utils.js +0 -56
- package/lib/commonjs/ui/components/TouchableRipple/utils.js.map +0 -1
- package/lib/commonjs/ui/components/Typography/AnimatedText.js +0 -62
- package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +0 -1
- package/lib/commonjs/ui/components/Typography/types.js +0 -26
- package/lib/commonjs/ui/components/Typography/types.js.map +0 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +0 -171
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +0 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +0 -409
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +0 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +0 -181
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +0 -1
- package/lib/commonjs/ui/components/fileManagement/styles.js +0 -868
- package/lib/commonjs/ui/components/fileManagement/styles.js.map +0 -1
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js +0 -64
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js.map +0 -1
- package/lib/commonjs/ui/components/icon/OxyIcon.js +0 -25
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/commonjs/ui/components/icon/index.js +0 -21
- package/lib/commonjs/ui/components/icon/index.js.map +0 -1
- package/lib/commonjs/ui/components/index.js +0 -132
- package/lib/commonjs/ui/components/index.js.map +0 -1
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +0 -209
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +0 -1
- package/lib/commonjs/ui/components/internal/PinInput.js +0 -115
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js +0 -161
- package/lib/commonjs/ui/components/profile/EditBioModal.js +0 -181
- package/lib/commonjs/ui/components/profile/EditBioModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js +0 -204
- package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditEmailModal.js +0 -184
- package/lib/commonjs/ui/components/profile/EditEmailModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditLinksModal.js +0 -315
- package/lib/commonjs/ui/components/profile/EditLinksModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditLocationModal.js +0 -273
- package/lib/commonjs/ui/components/profile/EditLocationModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditUsernameModal.js +0 -180
- package/lib/commonjs/ui/components/styles/overlay.js +0 -85
- package/lib/commonjs/ui/components/styles/overlay.js.map +0 -1
- package/lib/commonjs/ui/components/styles/shadow.js +0 -132
- package/lib/commonjs/ui/components/theming.js +0 -116
- package/lib/commonjs/ui/components/theming.js.map +0 -1
- package/lib/commonjs/ui/components/types.js +0 -2
- package/lib/commonjs/ui/components/utils/forwardRef.js +0 -18
- package/lib/commonjs/ui/components/utils/forwardRef.js.map +0 -1
- package/lib/commonjs/ui/components/utils/hasTouchHandler.js +0 -13
- package/lib/commonjs/ui/components/utils/hasTouchHandler.js.map +0 -1
- package/lib/commonjs/ui/components/utils/roundLayoutSize.js +0 -9
- package/lib/commonjs/ui/components/utils/roundLayoutSize.js.map +0 -1
- package/lib/commonjs/ui/components/utils/splitStyles.js +0 -50
- package/lib/commonjs/ui/constants/iconColors.js +0 -84
- package/lib/commonjs/ui/constants/iconColors.js.map +0 -1
- package/lib/commonjs/ui/constants/spacing.js +0 -50
- package/lib/commonjs/ui/constants/spacing.js.map +0 -1
- package/lib/commonjs/ui/constants/theme.js +0 -123
- package/lib/commonjs/ui/context/OxyContext.js +0 -661
- package/lib/commonjs/ui/context/OxyContext.js.map +0 -1
- package/lib/commonjs/ui/context/ThemeContext.js +0 -36
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +0 -613
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +0 -1
- package/lib/commonjs/ui/context/hooks/useDeviceManagement.js +0 -73
- package/lib/commonjs/ui/context/hooks/useDeviceManagement.js.map +0 -1
- package/lib/commonjs/ui/context/hooks/useLanguageManagement.js +0 -112
- package/lib/commonjs/ui/context/hooks/useLanguageManagement.js.map +0 -1
- package/lib/commonjs/ui/context/hooks/useSessionManagement.js +0 -281
- package/lib/commonjs/ui/context/hooks/useSessionManagement.js.map +0 -1
- package/lib/commonjs/ui/context/hooks/useStorage.js +0 -79
- package/lib/commonjs/ui/hooks/index.js +0 -46
- package/lib/commonjs/ui/hooks/index.js.map +0 -1
- package/lib/commonjs/ui/hooks/mutations/index.js +0 -68
- package/lib/commonjs/ui/hooks/mutations/index.js.map +0 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +0 -551
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +0 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +0 -193
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/index.js +0 -118
- package/lib/commonjs/ui/hooks/queries/index.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +0 -96
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +0 -219
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +0 -58
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +0 -186
- package/lib/commonjs/ui/hooks/queryClient.js +0 -117
- package/lib/commonjs/ui/hooks/queryClient.js.map +0 -1
- package/lib/commonjs/ui/hooks/use-color-scheme.js +0 -29
- package/lib/commonjs/ui/hooks/use-color-scheme.js.map +0 -1
- package/lib/commonjs/ui/hooks/use-haptic-press.js +0 -21
- package/lib/commonjs/ui/hooks/use-haptic-press.js.map +0 -1
- package/lib/commonjs/ui/hooks/useAssets.js +0 -245
- package/lib/commonjs/ui/hooks/useAssets.js.map +0 -1
- package/lib/commonjs/ui/hooks/useDeviceManagement.js +0 -73
- package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +0 -1
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +0 -103
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +0 -1
- package/lib/commonjs/ui/hooks/useFollow.js +0 -167
- package/lib/commonjs/ui/hooks/useFollow.js.map +0 -1
- package/lib/commonjs/ui/hooks/useFollow.types.js +0 -2
- package/lib/commonjs/ui/hooks/useFollow.types.js.map +0 -1
- package/lib/commonjs/ui/hooks/useI18n.js +0 -22
- package/lib/commonjs/ui/hooks/useI18n.js.map +0 -1
- package/lib/commonjs/ui/hooks/useLanguageManagement.js +0 -112
- package/lib/commonjs/ui/hooks/useLanguageManagement.js.map +0 -1
- package/lib/commonjs/ui/hooks/useProfileEditing.js +0 -107
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +0 -1
- package/lib/commonjs/ui/hooks/useQueryClient.js +0 -20
- package/lib/commonjs/ui/hooks/useQueryClient.js.map +0 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +0 -281
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +0 -1
- package/lib/commonjs/ui/hooks/useSessionSocket.js +0 -302
- package/lib/commonjs/ui/hooks/useSessionSocket.js.map +0 -1
- package/lib/commonjs/ui/hooks/useStorage.js +0 -79
- package/lib/commonjs/ui/hooks/useStorage.js.map +0 -1
- package/lib/commonjs/ui/hooks/useThemeColors.js +0 -31
- package/lib/commonjs/ui/hooks/useThemeColors.js.map +0 -1
- package/lib/commonjs/ui/hooks/useThemeStyles.js +0 -69
- package/lib/commonjs/ui/index.js +0 -101
- package/lib/commonjs/ui/index.js.map +0 -1
- package/lib/commonjs/ui/isFrontend.js +0 -10
- package/lib/commonjs/ui/navigation/bottomSheetManager.js +0 -180
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +0 -1
- package/lib/commonjs/ui/navigation/routes.js +0 -88
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +0 -329
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +0 -752
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +0 -2163
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +0 -703
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +0 -210
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +0 -414
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +0 -1191
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +0 -2333
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +0 -134
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +0 -218
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +0 -218
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +0 -184
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +0 -537
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +0 -1587
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -1647
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +0 -472
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +0 -647
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +0 -167
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +0 -166
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +0 -445
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +0 -86
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +0 -434
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +0 -98
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +0 -343
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +0 -194
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +0 -151
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +0 -609
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +0 -109
- package/lib/commonjs/ui/stores/accountStore.js +0 -252
- package/lib/commonjs/ui/stores/accountStore.js.map +0 -1
- package/lib/commonjs/ui/stores/assetStore.js +0 -225
- package/lib/commonjs/ui/stores/assetStore.js.map +0 -1
- package/lib/commonjs/ui/stores/authStore.js +0 -85
- package/lib/commonjs/ui/stores/authStore.js.map +0 -1
- package/lib/commonjs/ui/stores/fileStore.js +0 -153
- package/lib/commonjs/ui/stores/fileStore.js.map +0 -1
- package/lib/commonjs/ui/stores/followStore.js +0 -229
- package/lib/commonjs/ui/styles/authStyles.js +0 -338
- package/lib/commonjs/ui/styles/authStyles.js.map +0 -1
- 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 -50
- package/lib/commonjs/ui/styles/index.js.map +0 -1
- package/lib/commonjs/ui/styles/spacing.js +0 -109
- package/lib/commonjs/ui/styles/spacing.js.map +0 -1
- package/lib/commonjs/ui/styles/theme.js +0 -121
- package/lib/commonjs/ui/types/fileManagement.js +0 -6
- package/lib/commonjs/ui/types/fileManagement.js.map +0 -1
- package/lib/commonjs/ui/types/navigation.js +0 -6
- package/lib/commonjs/ui/utils/avatarUtils.js +0 -131
- package/lib/commonjs/ui/utils/colorUtils.js +0 -52
- package/lib/commonjs/ui/utils/colorUtils.js.map +0 -1
- package/lib/commonjs/ui/utils/confirmAction.js +0 -28
- package/lib/commonjs/ui/utils/confirmAction.js.map +0 -1
- package/lib/commonjs/ui/utils/errorHandlers.js +0 -137
- package/lib/commonjs/ui/utils/errorHandlers.js.map +0 -1
- package/lib/commonjs/ui/utils/fileManagement.js +0 -260
- package/lib/commonjs/ui/utils/fileManagement.js.map +0 -1
- package/lib/commonjs/ui/utils/sessionHelpers.js +0 -101
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +0 -1
- package/lib/commonjs/ui/utils/storageHelpers.js +0 -119
- package/lib/commonjs/ui/utils/storageHelpers.js.map +0 -1
- package/lib/commonjs/ui/utils/themeUtils.js +0 -47
- package/lib/commonjs/ui/utils/themeUtils.js.map +0 -1
- package/lib/commonjs/ui/utils/user-utils.js +0 -53
- package/lib/commonjs/ui/utils/user-utils.js.map +0 -1
- package/lib/commonjs/utils/apiUtils.js +0 -79
- package/lib/commonjs/utils/apiUtils.js.map +0 -1
- package/lib/commonjs/utils/asyncUtils.js +0 -207
- package/lib/commonjs/utils/asyncUtils.js.map +0 -1
- package/lib/commonjs/utils/cache.js +0 -259
- package/lib/commonjs/utils/cache.js.map +0 -1
- package/lib/commonjs/utils/deviceManager.js +0 -177
- package/lib/commonjs/utils/deviceManager.js.map +0 -1
- package/lib/commonjs/utils/errorUtils.js +0 -181
- package/lib/commonjs/utils/errorUtils.js.map +0 -1
- package/lib/commonjs/utils/hookUtils.js +0 -399
- package/lib/commonjs/utils/hookUtils.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -106
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/languageUtils.js +0 -159
- package/lib/commonjs/utils/languageUtils.js.map +0 -1
- package/lib/commonjs/utils/loggerUtils.js +0 -160
- package/lib/commonjs/utils/loggerUtils.js.map +0 -1
- package/lib/commonjs/utils/requestUtils.js +0 -217
- package/lib/commonjs/utils/requestUtils.js.map +0 -1
- package/lib/commonjs/utils/sessionUtils.js +0 -191
- package/lib/commonjs/utils/sessionUtils.js.map +0 -1
- package/lib/commonjs/utils/validationUtils.js +0 -191
- 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/assets/illustrations/HighFive.tsx +0 -41
- package/lib/module/assets/assets/lottie/welcomeheader_background_op1.json +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 -45
- package/lib/module/assets/icons/OxyServices.js.map +0 -1
- package/lib/module/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/module/assets/illustrations/HighFive.js +0 -54
- package/lib/module/assets/illustrations/HighFive.js.map +0 -1
- package/lib/module/assets/lottie/welcomeheader_background_op1.json +0 -1
- package/lib/module/constants/version.js +0 -21
- package/lib/module/constants/version.js.map +0 -1
- package/lib/module/core/HttpService.js +0 -566
- package/lib/module/core/HttpService.js.map +0 -1
- package/lib/module/core/OxyServices.base.js +0 -285
- package/lib/module/core/OxyServices.base.js.map +0 -1
- package/lib/module/core/OxyServices.errors.js +0 -20
- package/lib/module/core/OxyServices.errors.js.map +0 -1
- package/lib/module/core/OxyServices.js +0 -131
- package/lib/module/core/OxyServices.js.map +0 -1
- package/lib/module/core/index.js +0 -27
- package/lib/module/core/index.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.analytics.js +0 -56
- package/lib/module/core/mixins/OxyServices.analytics.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.assets.js +0 -371
- package/lib/module/core/mixins/OxyServices.assets.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.auth.js +0 -267
- package/lib/module/core/mixins/OxyServices.auth.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.developer.js +0 -111
- package/lib/module/core/mixins/OxyServices.developer.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.devices.js +0 -129
- package/lib/module/core/mixins/OxyServices.devices.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.karma.js +0 -113
- package/lib/module/core/mixins/OxyServices.karma.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.language.js +0 -120
- package/lib/module/core/mixins/OxyServices.language.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.location.js +0 -51
- package/lib/module/core/mixins/OxyServices.location.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.payment.js +0 -164
- package/lib/module/core/mixins/OxyServices.payment.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.privacy.js +0 -170
- package/lib/module/core/mixins/OxyServices.privacy.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.security.js +0 -92
- package/lib/module/core/mixins/OxyServices.security.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.user.js +0 -389
- package/lib/module/core/mixins/OxyServices.user.js.map +0 -1
- package/lib/module/core/mixins/OxyServices.utility.js +0 -160
- package/lib/module/core/mixins/OxyServices.utility.js.map +0 -1
- package/lib/module/core/mixins/index.js +0 -36
- package/lib/module/core/mixins/index.js.map +0 -1
- package/lib/module/core/mixins/mixinHelpers.js +0 -56
- package/lib/module/core/mixins/mixinHelpers.js.map +0 -1
- package/lib/module/crypto/index.js +0 -16
- package/lib/module/crypto/index.js.map +0 -1
- package/lib/module/crypto/keyManager.js +0 -508
- package/lib/module/crypto/keyManager.js.map +0 -1
- package/lib/module/crypto/polyfill.js +0 -78
- package/lib/module/crypto/polyfill.js.map +0 -1
- package/lib/module/crypto/signatureService.js +0 -286
- package/lib/module/crypto/signatureService.js.map +0 -1
- package/lib/module/crypto/types.js +0 -2
- package/lib/module/crypto/types.js.map +0 -1
- package/lib/module/i18n/index.js +0 -71
- package/lib/module/i18n/index.js.map +0 -1
- package/lib/module/i18n/locales/ar-SA.json +0 -120
- package/lib/module/i18n/locales/ca-ES.json +0 -120
- package/lib/module/i18n/locales/de-DE.json +0 -120
- package/lib/module/i18n/locales/en-US.json +0 -956
- package/lib/module/i18n/locales/es-ES.json +0 -723
- package/lib/module/i18n/locales/fr-FR.json +0 -120
- package/lib/module/i18n/locales/it-IT.json +0 -120
- package/lib/module/i18n/locales/ja-JP.json +0 -119
- package/lib/module/i18n/locales/ko-KR.json +0 -120
- package/lib/module/i18n/locales/pt-PT.json +0 -120
- package/lib/module/i18n/locales/zh-CN.json +0 -120
- package/lib/module/index.js +0 -74
- package/lib/module/index.js.map +0 -1
- package/lib/module/lib/sonner-safe.js +0 -29
- package/lib/module/lib/sonner-safe.js.map +0 -1
- package/lib/module/lib/sonner.js +0 -19
- package/lib/module/lib/sonner.js.map +0 -1
- package/lib/module/models/interfaces.js +0 -57
- package/lib/module/models/interfaces.js.map +0 -1
- package/lib/module/models/session.js +0 -2
- package/lib/module/models/session.js.map +0 -1
- package/lib/module/node/index.js +0 -20
- package/lib/module/node/index.js.map +0 -1
- package/lib/module/ui/components/ActivityIndicator.js +0 -198
- package/lib/module/ui/components/ActivityIndicator.js.map +0 -1
- package/lib/module/ui/components/AnimationExample.js +0 -209
- package/lib/module/ui/components/AnimationExample.js.map +0 -1
- package/lib/module/ui/components/AutoHeightScrollView.js +0 -41
- package/lib/module/ui/components/AutoHeightScrollView.js.map +0 -1
- package/lib/module/ui/components/Avatar.js +0 -168
- package/lib/module/ui/components/Avatar.js.map +0 -1
- package/lib/module/ui/components/BottomSheet.js +0 -402
- package/lib/module/ui/components/BottomSheet.js.map +0 -1
- package/lib/module/ui/components/BottomSheetRouter.js +0 -356
- package/lib/module/ui/components/BottomSheetRouter.js.map +0 -1
- package/lib/module/ui/components/CrossFadeIcon.js +0 -101
- package/lib/module/ui/components/CrossFadeIcon.js.map +0 -1
- package/lib/module/ui/components/EmptyState.js +0 -36
- package/lib/module/ui/components/EmptyState.js.map +0 -1
- package/lib/module/ui/components/ErrorBoundary.js +0 -139
- package/lib/module/ui/components/ErrorBoundary.js.map +0 -1
- package/lib/module/ui/components/FollowButton.js +0 -226
- package/lib/module/ui/components/FollowButton.js.map +0 -1
- package/lib/module/ui/components/FontLoader.js +0 -157
- package/lib/module/ui/components/FontLoader.js.map +0 -1
- package/lib/module/ui/components/GroupedItem.js +0 -135
- package/lib/module/ui/components/GroupedItem.js.map +0 -1
- package/lib/module/ui/components/GroupedSection.js +0 -37
- package/lib/module/ui/components/GroupedSection.js.map +0 -1
- package/lib/module/ui/components/Header.js +0 -428
- package/lib/module/ui/components/Header.js.map +0 -1
- package/lib/module/ui/components/HelperText.js +0 -99
- package/lib/module/ui/components/HelperText.js.map +0 -1
- package/lib/module/ui/components/Icon.js +0 -102
- package/lib/module/ui/components/Icon.js.map +0 -1
- package/lib/module/ui/components/IconButton/IconButton.js +0 -153
- package/lib/module/ui/components/IconButton/IconButton.js.map +0 -1
- package/lib/module/ui/components/IconButton/utils.js +0 -149
- package/lib/module/ui/components/IconButton/utils.js.map +0 -1
- package/lib/module/ui/components/LoadingState.js +0 -42
- package/lib/module/ui/components/LoadingState.js.map +0 -1
- package/lib/module/ui/components/OxyLogo.js +0 -48
- package/lib/module/ui/components/OxyLogo.js.map +0 -1
- package/lib/module/ui/components/OxyPayButton.js +0 -112
- package/lib/module/ui/components/OxyPayButton.js.map +0 -1
- package/lib/module/ui/components/OxyProvider.js +0 -140
- package/lib/module/ui/components/OxyProvider.js.map +0 -1
- package/lib/module/ui/components/OxySignInButton.js +0 -174
- package/lib/module/ui/components/OxySignInButton.js.map +0 -1
- package/lib/module/ui/components/ProfileCard.js +0 -133
- package/lib/module/ui/components/ProfileCard.js.map +0 -1
- package/lib/module/ui/components/QuickActions.js +0 -84
- package/lib/module/ui/components/QuickActions.js.map +0 -1
- package/lib/module/ui/components/Section.js +0 -34
- package/lib/module/ui/components/Section.js.map +0 -1
- package/lib/module/ui/components/SectionTitle.js +0 -31
- package/lib/module/ui/components/SectionTitle.js.map +0 -1
- package/lib/module/ui/components/SettingRow.js +0 -72
- package/lib/module/ui/components/SettingRow.js.map +0 -1
- package/lib/module/ui/components/StepBasedScreen.js +0 -392
- package/lib/module/ui/components/StepBasedScreen.js.map +0 -1
- package/lib/module/ui/components/Surface.js +0 -252
- package/lib/module/ui/components/Surface.js.map +0 -1
- package/lib/module/ui/components/TextField/Addons/Outline.js +0 -40
- package/lib/module/ui/components/TextField/Addons/Outline.js.map +0 -1
- package/lib/module/ui/components/TextField/Addons/Underline.js +0 -47
- package/lib/module/ui/components/TextField/Addons/Underline.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -148
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js +0 -141
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js +0 -135
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/enums.js +0 -18
- package/lib/module/ui/components/TextField/Adornment/enums.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/types.js +0 -4
- package/lib/module/ui/components/TextField/Adornment/types.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/utils.js +0 -57
- package/lib/module/ui/components/TextField/Adornment/utils.js.map +0 -1
- package/lib/module/ui/components/TextField/Label/InputLabel.js +0 -171
- package/lib/module/ui/components/TextField/Label/InputLabel.js.map +0 -1
- package/lib/module/ui/components/TextField/Label/LabelBackground.js +0 -78
- package/lib/module/ui/components/TextField/TextFieldFlat.js +0 -374
- package/lib/module/ui/components/TextField/TextFieldFlat.js.map +0 -1
- package/lib/module/ui/components/TextField/TextFieldOutlined.js +0 -357
- package/lib/module/ui/components/TextField/TextFieldOutlined.js.map +0 -1
- package/lib/module/ui/components/TextField/constants.js +0 -46
- package/lib/module/ui/components/TextField/constants.js.map +0 -1
- package/lib/module/ui/components/TextField/helpers.js +0 -472
- package/lib/module/ui/components/TextField/helpers.js.map +0 -1
- package/lib/module/ui/components/TextField/types.js +0 -4
- package/lib/module/ui/components/TextField/types.js.map +0 -1
- package/lib/module/ui/components/TextField.js +0 -333
- package/lib/module/ui/components/TextField.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/Pressable.js +0 -9
- package/lib/module/ui/components/TouchableRipple/Pressable.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +0 -253
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js +0 -101
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/utils.js +0 -50
- package/lib/module/ui/components/Typography/AnimatedText.js +0 -56
- package/lib/module/ui/components/Typography/AnimatedText.js.map +0 -1
- package/lib/module/ui/components/Typography/types.js +0 -22
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +0 -165
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +0 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +0 -402
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +0 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +0 -175
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +0 -1
- package/lib/module/ui/components/fileManagement/styles.js +0 -864
- package/lib/module/ui/components/icon/FAIRWalletIcon.js +0 -59
- package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +0 -1
- package/lib/module/ui/components/icon/OxyIcon.js +0 -21
- package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/module/ui/components/icon/index.js +0 -5
- package/lib/module/ui/components/index.js +0 -22
- package/lib/module/ui/components/index.js.map +0 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +0 -205
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +0 -1
- package/lib/module/ui/components/internal/PinInput.js +0 -110
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js +0 -156
- package/lib/module/ui/components/profile/EditBioModal.js +0 -175
- package/lib/module/ui/components/profile/EditBioModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditDisplayNameModal.js +0 -198
- package/lib/module/ui/components/profile/EditDisplayNameModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditEmailModal.js +0 -178
- package/lib/module/ui/components/profile/EditEmailModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditLinksModal.js +0 -309
- package/lib/module/ui/components/profile/EditLinksModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditLocationModal.js +0 -267
- package/lib/module/ui/components/profile/EditUsernameModal.js +0 -174
- package/lib/module/ui/components/profile/EditUsernameModal.js.map +0 -1
- package/lib/module/ui/components/styles/overlay.js +0 -80
- package/lib/module/ui/components/styles/overlay.js.map +0 -1
- package/lib/module/ui/components/styles/shadow.js +0 -128
- package/lib/module/ui/components/theming.js +0 -111
- package/lib/module/ui/components/theming.js.map +0 -1
- package/lib/module/ui/components/types.js +0 -2
- package/lib/module/ui/components/utils/forwardRef.js +0 -13
- package/lib/module/ui/components/utils/forwardRef.js.map +0 -1
- package/lib/module/ui/components/utils/hasTouchHandler.js +0 -9
- package/lib/module/ui/components/utils/hasTouchHandler.js.map +0 -1
- package/lib/module/ui/components/utils/roundLayoutSize.js +0 -4
- package/lib/module/ui/components/utils/roundLayoutSize.js.map +0 -1
- package/lib/module/ui/components/utils/splitStyles.js +0 -46
- package/lib/module/ui/constants/iconColors.js +0 -78
- package/lib/module/ui/constants/iconColors.js.map +0 -1
- package/lib/module/ui/constants/spacing.js +0 -45
- package/lib/module/ui/constants/spacing.js.map +0 -1
- package/lib/module/ui/constants/theme.js +0 -119
- package/lib/module/ui/context/OxyContext.js +0 -655
- package/lib/module/ui/context/OxyContext.js.map +0 -1
- package/lib/module/ui/context/ThemeContext.js +0 -29
- package/lib/module/ui/context/hooks/useAuthOperations.js +0 -607
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +0 -1
- package/lib/module/ui/context/hooks/useDeviceManagement.js +0 -68
- package/lib/module/ui/context/hooks/useDeviceManagement.js.map +0 -1
- package/lib/module/ui/context/hooks/useLanguageManagement.js +0 -107
- package/lib/module/ui/context/hooks/useLanguageManagement.js.map +0 -1
- package/lib/module/ui/context/hooks/useSessionManagement.js +0 -276
- package/lib/module/ui/context/hooks/useSessionManagement.js.map +0 -1
- package/lib/module/ui/context/hooks/useStorage.js +0 -74
- package/lib/module/ui/hooks/index.js +0 -7
- package/lib/module/ui/hooks/index.js.map +0 -1
- package/lib/module/ui/hooks/mutations/index.js +0 -15
- package/lib/module/ui/hooks/mutations/index.js.map +0 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +0 -543
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +0 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +0 -185
- package/lib/module/ui/hooks/queries/index.js +0 -21
- package/lib/module/ui/hooks/queries/index.js.map +0 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +0 -89
- package/lib/module/ui/hooks/queries/queryKeys.js.map +0 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +0 -209
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +0 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +0 -52
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +0 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +0 -178
- package/lib/module/ui/hooks/queryClient.js +0 -110
- package/lib/module/ui/hooks/queryClient.js.map +0 -1
- package/lib/module/ui/hooks/use-color-scheme.js +0 -26
- package/lib/module/ui/hooks/use-color-scheme.js.map +0 -1
- package/lib/module/ui/hooks/use-haptic-press.js +0 -17
- package/lib/module/ui/hooks/use-haptic-press.js.map +0 -1
- package/lib/module/ui/hooks/useAssets.js +0 -239
- package/lib/module/ui/hooks/useAssets.js.map +0 -1
- package/lib/module/ui/hooks/useDeviceManagement.js +0 -68
- package/lib/module/ui/hooks/useDeviceManagement.js.map +0 -1
- package/lib/module/ui/hooks/useFileDownloadUrl.js +0 -97
- package/lib/module/ui/hooks/useFileDownloadUrl.js.map +0 -1
- package/lib/module/ui/hooks/useFollow.js +0 -161
- package/lib/module/ui/hooks/useFollow.js.map +0 -1
- package/lib/module/ui/hooks/useFollow.types.js +0 -2
- package/lib/module/ui/hooks/useFollow.types.js.map +0 -1
- package/lib/module/ui/hooks/useI18n.js +0 -18
- package/lib/module/ui/hooks/useI18n.js.map +0 -1
- package/lib/module/ui/hooks/useLanguageManagement.js +0 -107
- package/lib/module/ui/hooks/useLanguageManagement.js.map +0 -1
- package/lib/module/ui/hooks/useProfileEditing.js +0 -102
- package/lib/module/ui/hooks/useProfileEditing.js.map +0 -1
- package/lib/module/ui/hooks/useQueryClient.js +0 -15
- package/lib/module/ui/hooks/useQueryClient.js.map +0 -1
- package/lib/module/ui/hooks/useSessionManagement.js +0 -276
- package/lib/module/ui/hooks/useSessionManagement.js.map +0 -1
- package/lib/module/ui/hooks/useSessionSocket.js +0 -297
- package/lib/module/ui/hooks/useSessionSocket.js.map +0 -1
- package/lib/module/ui/hooks/useStorage.js +0 -74
- package/lib/module/ui/hooks/useStorage.js.map +0 -1
- package/lib/module/ui/hooks/useThemeColors.js +0 -27
- package/lib/module/ui/hooks/useThemeColors.js.map +0 -1
- package/lib/module/ui/hooks/useThemeStyles.js +0 -64
- package/lib/module/ui/index.js +0 -63
- package/lib/module/ui/index.js.map +0 -1
- package/lib/module/ui/isFrontend.js +0 -6
- package/lib/module/ui/navigation/bottomSheetManager.js +0 -168
- package/lib/module/ui/navigation/bottomSheetManager.js.map +0 -1
- package/lib/module/ui/navigation/routes.js +0 -82
- package/lib/module/ui/screens/AccountCenterScreen.js +0 -324
- package/lib/module/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +0 -747
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +0 -2158
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -698
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +0 -205
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +0 -1
- package/lib/module/ui/screens/AppInfoScreen.js +0 -409
- package/lib/module/ui/screens/AppInfoScreen.js.map +0 -1
- package/lib/module/ui/screens/FeedbackScreen.js +0 -1186
- package/lib/module/ui/screens/FeedbackScreen.js.map +0 -1
- package/lib/module/ui/screens/FileManagementScreen.js +0 -2327
- package/lib/module/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +0 -129
- package/lib/module/ui/screens/HelpSupportScreen.js.map +0 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +0 -213
- package/lib/module/ui/screens/HistoryViewScreen.js.map +0 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +0 -213
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +0 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +0 -179
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +0 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +0 -533
- package/lib/module/ui/screens/OxyAuthScreen.js.map +0 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +0 -1583
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +0 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -1643
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +0 -467
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +0 -1
- package/lib/module/ui/screens/ProfileScreen.js +0 -642
- package/lib/module/ui/screens/ProfileScreen.js.map +0 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +0 -162
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +0 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +0 -161
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +0 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +0 -442
- package/lib/module/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/UserLinksScreen.js +0 -82
- package/lib/module/ui/screens/UserLinksScreen.js.map +0 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +0 -428
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +0 -94
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +0 -339
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +0 -189
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +0 -146
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +0 -605
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +0 -105
- package/lib/module/ui/stores/accountStore.js +0 -244
- package/lib/module/ui/stores/accountStore.js.map +0 -1
- package/lib/module/ui/stores/assetStore.js +0 -212
- package/lib/module/ui/stores/assetStore.js.map +0 -1
- package/lib/module/ui/stores/authStore.js +0 -81
- package/lib/module/ui/stores/authStore.js.map +0 -1
- package/lib/module/ui/stores/fileStore.js +0 -145
- package/lib/module/ui/stores/fileStore.js.map +0 -1
- package/lib/module/ui/stores/followStore.js +0 -225
- package/lib/module/ui/styles/authStyles.js +0 -333
- package/lib/module/ui/styles/authStyles.js.map +0 -1
- 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 -7
- package/lib/module/ui/styles/index.js.map +0 -1
- package/lib/module/ui/styles/spacing.js +0 -58
- package/lib/module/ui/styles/spacing.js.map +0 -1
- package/lib/module/ui/styles/theme.js +0 -114
- package/lib/module/ui/types/fileManagement.js +0 -4
- package/lib/module/ui/types/fileManagement.js.map +0 -1
- package/lib/module/ui/types/navigation.js +0 -4
- package/lib/module/ui/utils/avatarUtils.js +0 -126
- package/lib/module/ui/utils/avatarUtils.js.map +0 -1
- package/lib/module/ui/utils/colorUtils.js +0 -46
- package/lib/module/ui/utils/colorUtils.js.map +0 -1
- package/lib/module/ui/utils/confirmAction.js +0 -25
- package/lib/module/ui/utils/confirmAction.js.map +0 -1
- package/lib/module/ui/utils/errorHandlers.js +0 -129
- package/lib/module/ui/utils/errorHandlers.js.map +0 -1
- package/lib/module/ui/utils/fileManagement.js +0 -251
- package/lib/module/ui/utils/fileManagement.js.map +0 -1
- package/lib/module/ui/utils/sessionHelpers.js +0 -94
- package/lib/module/ui/utils/sessionHelpers.js.map +0 -1
- package/lib/module/ui/utils/storageHelpers.js +0 -111
- package/lib/module/ui/utils/storageHelpers.js.map +0 -1
- package/lib/module/ui/utils/themeUtils.js +0 -41
- package/lib/module/ui/utils/themeUtils.js.map +0 -1
- package/lib/module/ui/utils/user-utils.js +0 -46
- package/lib/module/utils/apiUtils.js +0 -72
- package/lib/module/utils/apiUtils.js.map +0 -1
- package/lib/module/utils/asyncUtils.js +0 -192
- package/lib/module/utils/asyncUtils.js.map +0 -1
- package/lib/module/utils/cache.js +0 -250
- package/lib/module/utils/cache.js.map +0 -1
- package/lib/module/utils/deviceManager.js +0 -171
- package/lib/module/utils/deviceManager.js.map +0 -1
- package/lib/module/utils/errorUtils.js +0 -167
- package/lib/module/utils/errorUtils.js.map +0 -1
- package/lib/module/utils/hookUtils.js +0 -381
- package/lib/module/utils/hookUtils.js.map +0 -1
- package/lib/module/utils/index.js +0 -11
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/languageUtils.js +0 -151
- package/lib/module/utils/languageUtils.js.map +0 -1
- package/lib/module/utils/loggerUtils.js +0 -149
- package/lib/module/utils/loggerUtils.js.map +0 -1
- package/lib/module/utils/requestUtils.js +0 -210
- package/lib/module/utils/requestUtils.js.map +0 -1
- package/lib/module/utils/sessionUtils.js +0 -180
- package/lib/module/utils/validationUtils.js +0 -170
- package/lib/module/utils/validationUtils.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/assets/illustrations/HighFive.d.ts +0 -9
- package/lib/typescript/assets/illustrations/HighFive.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/HttpService.d.ts +0 -159
- package/lib/typescript/core/HttpService.d.ts.map +0 -1
- package/lib/typescript/core/OxyServices.base.d.ts +0 -127
- package/lib/typescript/core/OxyServices.base.d.ts.map +0 -1
- package/lib/typescript/core/OxyServices.d.ts +0 -113
- package/lib/typescript/core/OxyServices.d.ts.map +0 -1
- package/lib/typescript/core/OxyServices.errors.d.ts +0 -12
- package/lib/typescript/core/OxyServices.errors.d.ts.map +0 -1
- package/lib/typescript/core/index.d.ts +0 -17
- package/lib/typescript/core/index.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.analytics.d.ts +0 -67
- package/lib/typescript/core/mixins/OxyServices.analytics.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.assets.d.ts +0 -136
- package/lib/typescript/core/mixins/OxyServices.assets.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts +0 -192
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.developer.d.ts +0 -100
- package/lib/typescript/core/mixins/OxyServices.developer.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.devices.d.ts +0 -97
- package/lib/typescript/core/mixins/OxyServices.devices.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.karma.d.ts +0 -86
- package/lib/typescript/core/mixins/OxyServices.karma.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.language.d.ts +0 -82
- package/lib/typescript/core/mixins/OxyServices.language.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.location.d.ts +0 -65
- package/lib/typescript/core/mixins/OxyServices.location.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.payment.d.ts +0 -112
- package/lib/typescript/core/mixins/OxyServices.payment.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.privacy.d.ts +0 -123
- package/lib/typescript/core/mixins/OxyServices.privacy.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.security.d.ts +0 -79
- package/lib/typescript/core/mixins/OxyServices.security.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.user.d.ts +0 -185
- package/lib/typescript/core/mixins/OxyServices.user.d.ts.map +0 -1
- package/lib/typescript/core/mixins/OxyServices.utility.d.ts +0 -94
- package/lib/typescript/core/mixins/OxyServices.utility.d.ts.map +0 -1
- package/lib/typescript/core/mixins/index.d.ts +0 -853
- package/lib/typescript/core/mixins/index.d.ts.map +0 -1
- package/lib/typescript/core/mixins/mixinHelpers.d.ts +0 -32
- package/lib/typescript/core/mixins/mixinHelpers.d.ts.map +0 -1
- package/lib/typescript/crypto/index.d.ts +0 -12
- package/lib/typescript/crypto/index.d.ts.map +0 -1
- package/lib/typescript/crypto/keyManager.d.ts +0 -97
- package/lib/typescript/crypto/keyManager.d.ts.map +0 -1
- package/lib/typescript/crypto/polyfill.d.ts +0 -13
- package/lib/typescript/crypto/polyfill.d.ts.map +0 -1
- package/lib/typescript/crypto/signatureService.d.ts +0 -87
- package/lib/typescript/crypto/signatureService.d.ts.map +0 -1
- package/lib/typescript/crypto/types.d.ts +0 -18
- package/lib/typescript/crypto/types.d.ts.map +0 -1
- package/lib/typescript/i18n/index.d.ts +0 -4
- package/lib/typescript/i18n/index.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -38
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/lib/sonner-safe.d.ts +0 -9
- package/lib/typescript/lib/sonner-safe.d.ts.map +0 -1
- package/lib/typescript/lib/sonner.d.ts +0 -15
- package/lib/typescript/lib/sonner.d.ts.map +0 -1
- package/lib/typescript/models/interfaces.d.ts +0 -414
- package/lib/typescript/models/interfaces.d.ts.map +0 -1
- package/lib/typescript/models/session.d.ts +0 -24
- package/lib/typescript/models/session.d.ts.map +0 -1
- package/lib/typescript/node/index.d.ts +0 -10
- package/lib/typescript/node/index.d.ts.map +0 -1
- package/lib/typescript/types/buffer.d.ts +0 -97
- package/lib/typescript/types/color.d.ts +0 -20
- package/lib/typescript/types/elliptic.d.ts +0 -62
- package/lib/typescript/types/expo-crypto.d.ts +0 -30
- package/lib/typescript/types/expo-document-picker.d.ts +0 -36
- package/lib/typescript/types/expo-secure-store.d.ts +0 -22
- package/lib/typescript/types/expo-vector-icons.d.ts +0 -19
- package/lib/typescript/types/express.d.ts +0 -24
- package/lib/typescript/ui/components/ActivityIndicator.d.ts +0 -45
- package/lib/typescript/ui/components/ActivityIndicator.d.ts.map +0 -1
- package/lib/typescript/ui/components/AnimationExample.d.ts +0 -4
- package/lib/typescript/ui/components/AnimationExample.d.ts.map +0 -1
- package/lib/typescript/ui/components/AutoHeightScrollView.d.ts +0 -23
- package/lib/typescript/ui/components/AutoHeightScrollView.d.ts.map +0 -1
- package/lib/typescript/ui/components/Avatar.d.ts +0 -61
- package/lib/typescript/ui/components/Avatar.d.ts.map +0 -1
- package/lib/typescript/ui/components/BottomSheet.d.ts +0 -29
- package/lib/typescript/ui/components/BottomSheet.d.ts.map +0 -1
- package/lib/typescript/ui/components/BottomSheetRouter.d.ts +0 -14
- package/lib/typescript/ui/components/BottomSheetRouter.d.ts.map +0 -1
- package/lib/typescript/ui/components/CrossFadeIcon.d.ts +0 -27
- package/lib/typescript/ui/components/CrossFadeIcon.d.ts.map +0 -1
- package/lib/typescript/ui/components/EmptyState.d.ts +0 -8
- package/lib/typescript/ui/components/EmptyState.d.ts.map +0 -1
- package/lib/typescript/ui/components/ErrorBoundary.d.ts +0 -31
- package/lib/typescript/ui/components/ErrorBoundary.d.ts.map +0 -1
- package/lib/typescript/ui/components/FollowButton.d.ts +0 -18
- 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 -20
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +0 -1
- package/lib/typescript/ui/components/GroupedSection.d.ts +0 -25
- package/lib/typescript/ui/components/GroupedSection.d.ts.map +0 -1
- package/lib/typescript/ui/components/Header.d.ts +0 -38
- package/lib/typescript/ui/components/Header.d.ts.map +0 -1
- package/lib/typescript/ui/components/HelperText.d.ts +0 -47
- package/lib/typescript/ui/components/HelperText.d.ts.map +0 -1
- package/lib/typescript/ui/components/Icon.d.ts +0 -60
- package/lib/typescript/ui/components/Icon.d.ts.map +0 -1
- package/lib/typescript/ui/components/IconButton/IconButton.d.ts +0 -99
- package/lib/typescript/ui/components/IconButton/IconButton.d.ts.map +0 -1
- package/lib/typescript/ui/components/IconButton/utils.d.ts +0 -19
- package/lib/typescript/ui/components/IconButton/utils.d.ts.map +0 -1
- package/lib/typescript/ui/components/LoadingState.d.ts +0 -9
- package/lib/typescript/ui/components/LoadingState.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/OxyPayButton.d.ts +0 -29
- package/lib/typescript/ui/components/OxyPayButton.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts +0 -11
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxySignInButton.d.ts +0 -65
- package/lib/typescript/ui/components/OxySignInButton.d.ts.map +0 -1
- package/lib/typescript/ui/components/ProfileCard.d.ts +0 -18
- 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 -12
- package/lib/typescript/ui/components/Section.d.ts.map +0 -1
- package/lib/typescript/ui/components/SectionTitle.d.ts +0 -10
- package/lib/typescript/ui/components/SectionTitle.d.ts.map +0 -1
- package/lib/typescript/ui/components/SettingRow.d.ts +0 -14
- package/lib/typescript/ui/components/SettingRow.d.ts.map +0 -1
- package/lib/typescript/ui/components/StepBasedScreen.d.ts +0 -26
- package/lib/typescript/ui/components/StepBasedScreen.d.ts.map +0 -1
- package/lib/typescript/ui/components/Surface.d.ts +0 -76
- package/lib/typescript/ui/components/Surface.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/Addons/Outline.d.ts +0 -16
- package/lib/typescript/ui/components/TextField/Addons/Outline.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/Addons/Underline.d.ts +0 -19
- package/lib/typescript/ui/components/TextField/Addons/Underline.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -45
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -73
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -78
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/Adornment/enums.d.ts +0 -13
- package/lib/typescript/ui/components/TextField/Adornment/enums.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/Adornment/types.d.ts +0 -12
- package/lib/typescript/ui/components/TextField/Adornment/types.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/Adornment/utils.d.ts +0 -12
- package/lib/typescript/ui/components/TextField/Adornment/utils.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/Label/InputLabel.d.ts +0 -5
- package/lib/typescript/ui/components/TextField/Label/InputLabel.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/Label/LabelBackground.d.ts +0 -4
- package/lib/typescript/ui/components/TextField/Label/LabelBackground.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/TextFieldFlat.d.ts +0 -4
- package/lib/typescript/ui/components/TextField/TextFieldFlat.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/TextFieldOutlined.d.ts +0 -4
- package/lib/typescript/ui/components/TextField/TextFieldOutlined.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/constants.d.ts +0 -32
- package/lib/typescript/ui/components/TextField/constants.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/helpers.d.ts +0 -97
- package/lib/typescript/ui/components/TextField/helpers.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField/types.d.ts +0 -156
- package/lib/typescript/ui/components/TextField/types.d.ts.map +0 -1
- package/lib/typescript/ui/components/TextField.d.ts +0 -192
- package/lib/typescript/ui/components/TextField.d.ts.map +0 -1
- package/lib/typescript/ui/components/TouchableRipple/Pressable.d.ts +0 -13
- package/lib/typescript/ui/components/TouchableRipple/Pressable.d.ts.map +0 -1
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -62
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.d.ts.map +0 -1
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -25
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +0 -1
- package/lib/typescript/ui/components/TouchableRipple/utils.d.ts +0 -11
- package/lib/typescript/ui/components/TouchableRipple/utils.d.ts.map +0 -1
- package/lib/typescript/ui/components/Typography/AnimatedText.d.ts +0 -35
- package/lib/typescript/ui/components/Typography/AnimatedText.d.ts.map +0 -1
- package/lib/typescript/ui/components/Typography/types.d.ts +0 -19
- package/lib/typescript/ui/components/Typography/types.d.ts.map +0 -1
- package/lib/typescript/ui/components/fileManagement/FileDetailsModal.d.ts +0 -15
- package/lib/typescript/ui/components/fileManagement/FileDetailsModal.d.ts.map +0 -1
- package/lib/typescript/ui/components/fileManagement/FileViewer.d.ts +0 -18
- package/lib/typescript/ui/components/fileManagement/FileViewer.d.ts.map +0 -1
- package/lib/typescript/ui/components/fileManagement/UploadPreview.d.ts +0 -21
- package/lib/typescript/ui/components/fileManagement/UploadPreview.d.ts.map +0 -1
- package/lib/typescript/ui/components/fileManagement/styles.d.ts +0 -860
- package/lib/typescript/ui/components/fileManagement/styles.d.ts.map +0 -1
- package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts +0 -9
- package/lib/typescript/ui/components/icon/FAIRWalletIcon.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 -4
- package/lib/typescript/ui/components/icon/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/index.d.ts +0 -17
- package/lib/typescript/ui/components/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts +0 -18
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +0 -1
- package/lib/typescript/ui/components/internal/PinInput.d.ts +0 -23
- package/lib/typescript/ui/components/internal/PinInput.d.ts.map +0 -1
- package/lib/typescript/ui/components/photogrid/JustifiedPhotoGrid.d.ts +0 -27
- package/lib/typescript/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +0 -1
- package/lib/typescript/ui/components/profile/EditBioModal.d.ts +0 -11
- package/lib/typescript/ui/components/profile/EditBioModal.d.ts.map +0 -1
- package/lib/typescript/ui/components/profile/EditDisplayNameModal.d.ts +0 -12
- package/lib/typescript/ui/components/profile/EditDisplayNameModal.d.ts.map +0 -1
- package/lib/typescript/ui/components/profile/EditEmailModal.d.ts +0 -11
- package/lib/typescript/ui/components/profile/EditEmailModal.d.ts.map +0 -1
- package/lib/typescript/ui/components/profile/EditLinksModal.d.ts +0 -18
- package/lib/typescript/ui/components/profile/EditLinksModal.d.ts.map +0 -1
- package/lib/typescript/ui/components/profile/EditLocationModal.d.ts +0 -20
- package/lib/typescript/ui/components/profile/EditLocationModal.d.ts.map +0 -1
- package/lib/typescript/ui/components/profile/EditUsernameModal.d.ts +0 -11
- package/lib/typescript/ui/components/profile/EditUsernameModal.d.ts.map +0 -1
- package/lib/typescript/ui/components/styles/overlay.d.ts +0 -4
- package/lib/typescript/ui/components/styles/overlay.d.ts.map +0 -1
- package/lib/typescript/ui/components/styles/shadow.d.ts +0 -3
- package/lib/typescript/ui/components/styles/shadow.d.ts.map +0 -1
- package/lib/typescript/ui/components/theming.d.ts +0 -8
- package/lib/typescript/ui/components/theming.d.ts.map +0 -1
- package/lib/typescript/ui/components/types.d.ts +0 -80
- package/lib/typescript/ui/components/types.d.ts.map +0 -1
- package/lib/typescript/ui/components/utils/forwardRef.d.ts +0 -12
- package/lib/typescript/ui/components/utils/forwardRef.d.ts.map +0 -1
- package/lib/typescript/ui/components/utils/hasTouchHandler.d.ts +0 -6
- package/lib/typescript/ui/components/utils/hasTouchHandler.d.ts.map +0 -1
- package/lib/typescript/ui/components/utils/roundLayoutSize.d.ts +0 -2
- package/lib/typescript/ui/components/utils/roundLayoutSize.d.ts.map +0 -1
- package/lib/typescript/ui/components/utils/splitStyles.d.ts +0 -20
- package/lib/typescript/ui/components/utils/splitStyles.d.ts.map +0 -1
- package/lib/typescript/ui/constants/iconColors.d.ts +0 -130
- package/lib/typescript/ui/constants/iconColors.d.ts.map +0 -1
- package/lib/typescript/ui/constants/spacing.d.ts +0 -33
- package/lib/typescript/ui/constants/spacing.d.ts.map +0 -1
- package/lib/typescript/ui/constants/theme.d.ts +0 -97
- package/lib/typescript/ui/constants/theme.d.ts.map +0 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +0 -78
- package/lib/typescript/ui/context/OxyContext.d.ts.map +0 -1
- package/lib/typescript/ui/context/ThemeContext.d.ts +0 -19
- package/lib/typescript/ui/context/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts +0 -59
- package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts.map +0 -1
- package/lib/typescript/ui/context/hooks/useDeviceManagement.d.ts +0 -27
- package/lib/typescript/ui/context/hooks/useDeviceManagement.d.ts.map +0 -1
- package/lib/typescript/ui/context/hooks/useLanguageManagement.d.ts +0 -25
- package/lib/typescript/ui/context/hooks/useLanguageManagement.d.ts.map +0 -1
- package/lib/typescript/ui/context/hooks/useSessionManagement.d.ts +0 -41
- package/lib/typescript/ui/context/hooks/useSessionManagement.d.ts.map +0 -1
- package/lib/typescript/ui/context/hooks/useStorage.d.ts +0 -22
- package/lib/typescript/ui/context/hooks/useStorage.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/index.d.ts +0 -5
- package/lib/typescript/ui/hooks/index.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/mutations/index.d.ts +0 -9
- package/lib/typescript/ui/hooks/mutations/index.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/mutations/useAccountMutations.d.ts +0 -44
- package/lib/typescript/ui/hooks/mutations/useAccountMutations.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/mutations/useServicesMutations.d.ts +0 -23
- package/lib/typescript/ui/hooks/mutations/useServicesMutations.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/queries/index.d.ts +0 -11
- package/lib/typescript/ui/hooks/queries/index.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/queries/queryKeys.d.ts +0 -65
- package/lib/typescript/ui/hooks/queries/queryKeys.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/queries/useAccountQueries.d.ts +0 -47
- package/lib/typescript/ui/hooks/queries/useAccountQueries.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/queries/useSecurityQueries.d.ts +0 -15
- package/lib/typescript/ui/hooks/queries/useSecurityQueries.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/queries/useServicesQueries.d.ts +0 -34
- package/lib/typescript/ui/hooks/queries/useServicesQueries.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/queryClient.d.ts +0 -19
- package/lib/typescript/ui/hooks/queryClient.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/use-color-scheme.d.ts +0 -8
- package/lib/typescript/ui/hooks/use-color-scheme.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/use-haptic-press.d.ts +0 -8
- package/lib/typescript/ui/hooks/use-haptic-press.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useAssets.d.ts +0 -35
- package/lib/typescript/ui/hooks/useAssets.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useDeviceManagement.d.ts +0 -27
- package/lib/typescript/ui/hooks/useDeviceManagement.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useFileDownloadUrl.d.ts +0 -19
- package/lib/typescript/ui/hooks/useFileDownloadUrl.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useFollow.d.ts +0 -62
- package/lib/typescript/ui/hooks/useFollow.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useFollow.types.d.ts +0 -33
- package/lib/typescript/ui/hooks/useFollow.types.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useI18n.d.ts +0 -5
- package/lib/typescript/ui/hooks/useI18n.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useLanguageManagement.d.ts +0 -25
- package/lib/typescript/ui/hooks/useLanguageManagement.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useProfileEditing.d.ts +0 -36
- package/lib/typescript/ui/hooks/useProfileEditing.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useQueryClient.d.ts +0 -7
- package/lib/typescript/ui/hooks/useQueryClient.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useSessionManagement.d.ts +0 -41
- package/lib/typescript/ui/hooks/useSessionManagement.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useSessionSocket.d.ts +0 -20
- package/lib/typescript/ui/hooks/useSessionSocket.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useStorage.d.ts +0 -22
- package/lib/typescript/ui/hooks/useStorage.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useThemeColors.d.ts +0 -94
- package/lib/typescript/ui/hooks/useThemeColors.d.ts.map +0 -1
- package/lib/typescript/ui/hooks/useThemeStyles.d.ts +0 -45
- package/lib/typescript/ui/hooks/useThemeStyles.d.ts.map +0 -1
- package/lib/typescript/ui/index.d.ts +0 -5
- package/lib/typescript/ui/index.d.ts.map +0 -1
- package/lib/typescript/ui/isFrontend.d.ts +0 -3
- package/lib/typescript/ui/isFrontend.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/bottomSheetManager.d.ts +0 -74
- package/lib/typescript/ui/navigation/bottomSheetManager.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/routes.d.ts +0 -6
- package/lib/typescript/ui/navigation/routes.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/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 -8
- 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/AccountVerificationScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountVerificationScreen.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/FeedbackScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/HelpSupportScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/HelpSupportScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/HistoryViewScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/HistoryViewScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/LanguageSelectorScreen.d.ts +0 -7
- package/lib/typescript/ui/screens/LanguageSelectorScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/LegalDocumentsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/LegalDocumentsScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/OxyAuthScreen.d.ts +0 -17
- package/lib/typescript/ui/screens/OxyAuthScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +0 -27
- package/lib/typescript/ui/screens/PaymentGatewayScreen.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/PrivacySettingsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/PrivacySettingsScreen.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/SavesCollectionsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SearchSettingsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SearchSettingsScreen.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/UserLinksScreen.d.ts +0 -15
- package/lib/typescript/ui/screens/UserLinksScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/WelcomeNewUserScreen.d.ts +0 -13
- package/lib/typescript/ui/screens/WelcomeNewUserScreen.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/stores/accountStore.d.ts +0 -34
- package/lib/typescript/ui/stores/accountStore.d.ts.map +0 -1
- package/lib/typescript/ui/stores/assetStore.d.ts +0 -54
- package/lib/typescript/ui/stores/assetStore.d.ts.map +0 -1
- package/lib/typescript/ui/stores/authStore.d.ts +0 -21
- package/lib/typescript/ui/stores/authStore.d.ts.map +0 -1
- package/lib/typescript/ui/stores/fileStore.d.ts +0 -31
- package/lib/typescript/ui/stores/fileStore.d.ts.map +0 -1
- package/lib/typescript/ui/stores/followStore.d.ts +0 -25
- package/lib/typescript/ui/stores/followStore.d.ts.map +0 -1
- package/lib/typescript/ui/styles/authStyles.d.ts +0 -332
- package/lib/typescript/ui/styles/authStyles.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 -5
- package/lib/typescript/ui/styles/index.d.ts.map +0 -1
- package/lib/typescript/ui/styles/spacing.d.ts +0 -49
- package/lib/typescript/ui/styles/spacing.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/ui/types/fileManagement.d.ts +0 -41
- package/lib/typescript/ui/types/fileManagement.d.ts.map +0 -1
- package/lib/typescript/ui/types/navigation.d.ts +0 -36
- package/lib/typescript/ui/types/navigation.d.ts.map +0 -1
- package/lib/typescript/ui/utils/avatarUtils.d.ts +0 -34
- package/lib/typescript/ui/utils/avatarUtils.d.ts.map +0 -1
- package/lib/typescript/ui/utils/colorUtils.d.ts +0 -14
- package/lib/typescript/ui/utils/colorUtils.d.ts.map +0 -1
- package/lib/typescript/ui/utils/confirmAction.d.ts +0 -7
- package/lib/typescript/ui/utils/confirmAction.d.ts.map +0 -1
- package/lib/typescript/ui/utils/errorHandlers.d.ts +0 -35
- package/lib/typescript/ui/utils/errorHandlers.d.ts.map +0 -1
- package/lib/typescript/ui/utils/fileManagement.d.ts +0 -87
- package/lib/typescript/ui/utils/fileManagement.d.ts.map +0 -1
- package/lib/typescript/ui/utils/sessionHelpers.d.ts +0 -59
- package/lib/typescript/ui/utils/sessionHelpers.d.ts.map +0 -1
- package/lib/typescript/ui/utils/storageHelpers.d.ts +0 -31
- package/lib/typescript/ui/utils/storageHelpers.d.ts.map +0 -1
- package/lib/typescript/ui/utils/themeUtils.d.ts +0 -24
- package/lib/typescript/ui/utils/themeUtils.d.ts.map +0 -1
- package/lib/typescript/ui/utils/user-utils.d.ts +0 -29
- package/lib/typescript/ui/utils/user-utils.d.ts.map +0 -1
- package/lib/typescript/utils/apiUtils.d.ts +0 -54
- package/lib/typescript/utils/apiUtils.d.ts.map +0 -1
- package/lib/typescript/utils/asyncUtils.d.ts +0 -59
- package/lib/typescript/utils/asyncUtils.d.ts.map +0 -1
- package/lib/typescript/utils/cache.d.ts +0 -128
- package/lib/typescript/utils/cache.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/errorUtils.d.ts +0 -53
- package/lib/typescript/utils/errorUtils.d.ts.map +0 -1
- package/lib/typescript/utils/hookUtils.d.ts +0 -102
- package/lib/typescript/utils/hookUtils.d.ts.map +0 -1
- package/lib/typescript/utils/index.d.ts +0 -7
- package/lib/typescript/utils/index.d.ts.map +0 -1
- package/lib/typescript/utils/languageUtils.d.ts +0 -38
- package/lib/typescript/utils/languageUtils.d.ts.map +0 -1
- package/lib/typescript/utils/loggerUtils.d.ts +0 -49
- package/lib/typescript/utils/loggerUtils.d.ts.map +0 -1
- package/lib/typescript/utils/requestUtils.d.ts +0 -122
- package/lib/typescript/utils/requestUtils.d.ts.map +0 -1
- package/lib/typescript/utils/sessionUtils.d.ts +0 -55
- package/lib/typescript/utils/sessionUtils.d.ts.map +0 -1
- package/lib/typescript/utils/validationUtils.d.ts +0 -86
- package/lib/typescript/utils/validationUtils.d.ts.map +0 -1
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Oxy Crypto Module
|
|
5
|
-
*
|
|
6
|
-
* Provides cryptographic identity management for the Oxy ecosystem.
|
|
7
|
-
* Handles key generation, secure storage, and digital signatures.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
// Import polyfills first - this ensures Buffer is available for crypto libraries
|
|
11
|
-
import './polyfill';
|
|
12
|
-
export { KeyManager } from './keyManager';
|
|
13
|
-
export { SignatureService } from './signatureService';
|
|
14
|
-
// Re-export for convenience
|
|
15
|
-
export { KeyManager as default } from './keyManager';
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["KeyManager","SignatureService","default"],"sourceRoot":"../../../src","sources":["crypto/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,OAAO,YAAY;AAEnB,SAASA,UAAU,QAAsB,cAAc;AACvD,SACEC,gBAAgB,QAGX,oBAAoB;AAG3B;AACA,SAASD,UAAU,IAAIE,OAAO,QAAQ,cAAc","ignoreList":[]}
|
|
@@ -1,508 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Key Manager - ECDSA secp256k1 Key Generation and Storage
|
|
5
|
-
*
|
|
6
|
-
* Handles secure generation, storage, and retrieval of cryptographic keys.
|
|
7
|
-
* Private keys are stored securely using expo-secure-store and never leave the device.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import { ec as EC } from 'elliptic';
|
|
11
|
-
import { Platform } from 'react-native';
|
|
12
|
-
|
|
13
|
-
// Lazy imports for React Native specific modules
|
|
14
|
-
let SecureStore = null;
|
|
15
|
-
let ExpoCrypto = null;
|
|
16
|
-
const ec = new EC('secp256k1');
|
|
17
|
-
const STORAGE_KEYS = {
|
|
18
|
-
PRIVATE_KEY: 'oxy_identity_private_key',
|
|
19
|
-
PUBLIC_KEY: 'oxy_identity_public_key',
|
|
20
|
-
BACKUP_PRIVATE_KEY: 'oxy_identity_backup_private_key',
|
|
21
|
-
BACKUP_PUBLIC_KEY: 'oxy_identity_backup_public_key',
|
|
22
|
-
BACKUP_TIMESTAMP: 'oxy_identity_backup_timestamp'
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Initialize React Native specific modules
|
|
27
|
-
* This allows the module to work in both Node.js and React Native environments
|
|
28
|
-
*/
|
|
29
|
-
async function initSecureStore() {
|
|
30
|
-
if (!SecureStore) {
|
|
31
|
-
try {
|
|
32
|
-
SecureStore = await import('expo-secure-store');
|
|
33
|
-
} catch (error) {
|
|
34
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
35
|
-
throw new Error(`Failed to load expo-secure-store: ${errorMessage}. Make sure expo-secure-store is installed and properly configured.`);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (!SecureStore) {
|
|
39
|
-
throw new Error('expo-secure-store module is not available');
|
|
40
|
-
}
|
|
41
|
-
return SecureStore;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Check if we're in a React Native environment
|
|
46
|
-
*/
|
|
47
|
-
function isReactNative() {
|
|
48
|
-
return typeof navigator !== 'undefined' && navigator.product === 'ReactNative';
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if we're in a Node.js environment
|
|
53
|
-
*/
|
|
54
|
-
function isNodeJS() {
|
|
55
|
-
return typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Check if we're on web platform
|
|
60
|
-
* Identity storage is only available on native platforms (iOS/Android)
|
|
61
|
-
*/
|
|
62
|
-
function isWebPlatform() {
|
|
63
|
-
try {
|
|
64
|
-
return Platform.OS === 'web';
|
|
65
|
-
} catch {
|
|
66
|
-
// Fallback if Platform is not available
|
|
67
|
-
return typeof window !== 'undefined' && typeof navigator !== 'undefined' && navigator.product !== 'ReactNative';
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
async function initExpoCrypto() {
|
|
71
|
-
if (!ExpoCrypto) {
|
|
72
|
-
ExpoCrypto = await import('expo-crypto');
|
|
73
|
-
}
|
|
74
|
-
return ExpoCrypto;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Convert Uint8Array to hexadecimal string
|
|
79
|
-
* Works in both Node.js and React Native
|
|
80
|
-
*/
|
|
81
|
-
function uint8ArrayToHex(bytes) {
|
|
82
|
-
return Array.from(bytes).map(b => b.toString(16).padStart(2, '0')).join('');
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Generate cryptographically secure random bytes
|
|
87
|
-
*/
|
|
88
|
-
async function getSecureRandomBytes(length) {
|
|
89
|
-
// In React Native, always use expo-crypto
|
|
90
|
-
if (isReactNative() || !isNodeJS()) {
|
|
91
|
-
const Crypto = await initExpoCrypto();
|
|
92
|
-
return Crypto.getRandomBytes(length);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// In Node.js, use Node's crypto module
|
|
96
|
-
// Use Function constructor to prevent Metro bundler from statically analyzing this require
|
|
97
|
-
// This ensures the require is only evaluated in Node.js runtime, not during Metro bundling
|
|
98
|
-
try {
|
|
99
|
-
// eslint-disable-next-line @typescript-eslint/no-implied-eval
|
|
100
|
-
const getCrypto = new Function('return require("crypto")');
|
|
101
|
-
const crypto = getCrypto();
|
|
102
|
-
return new Uint8Array(crypto.randomBytes(length));
|
|
103
|
-
} catch (error) {
|
|
104
|
-
// Fallback to expo-crypto if Node crypto fails
|
|
105
|
-
const Crypto = await initExpoCrypto();
|
|
106
|
-
return Crypto.getRandomBytes(length);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
export class KeyManager {
|
|
110
|
-
// In-memory cache for identity state (invalidated on identity changes)
|
|
111
|
-
static cachedPublicKey = null;
|
|
112
|
-
static cachedHasIdentity = null;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Invalidate cached identity state
|
|
116
|
-
* Called internally when identity is created/deleted/imported
|
|
117
|
-
*/
|
|
118
|
-
static invalidateCache() {
|
|
119
|
-
KeyManager.cachedPublicKey = null;
|
|
120
|
-
KeyManager.cachedHasIdentity = null;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Generate a new ECDSA secp256k1 key pair
|
|
125
|
-
* Returns the keys in hexadecimal format
|
|
126
|
-
*/
|
|
127
|
-
static generateKeyPairSync() {
|
|
128
|
-
const keyPair = ec.genKeyPair();
|
|
129
|
-
return {
|
|
130
|
-
privateKey: keyPair.getPrivate('hex'),
|
|
131
|
-
publicKey: keyPair.getPublic('hex')
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Generate a new key pair using secure random bytes
|
|
137
|
-
*/
|
|
138
|
-
static async generateKeyPair() {
|
|
139
|
-
const randomBytes = await getSecureRandomBytes(32);
|
|
140
|
-
const privateKeyHex = uint8ArrayToHex(randomBytes);
|
|
141
|
-
const keyPair = ec.keyFromPrivate(privateKeyHex);
|
|
142
|
-
return {
|
|
143
|
-
privateKey: keyPair.getPrivate('hex'),
|
|
144
|
-
publicKey: keyPair.getPublic('hex')
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Generate and securely store a new key pair on the device
|
|
150
|
-
* Returns only the public key (private key is stored securely)
|
|
151
|
-
*/
|
|
152
|
-
static async createIdentity() {
|
|
153
|
-
if (isWebPlatform()) {
|
|
154
|
-
throw new Error('Identity creation is only available on native platforms (iOS/Android). Please use the native app to create your identity.');
|
|
155
|
-
}
|
|
156
|
-
const store = await initSecureStore();
|
|
157
|
-
const {
|
|
158
|
-
privateKey,
|
|
159
|
-
publicKey
|
|
160
|
-
} = await KeyManager.generateKeyPair();
|
|
161
|
-
await store.setItemAsync(STORAGE_KEYS.PRIVATE_KEY, privateKey, {
|
|
162
|
-
keychainAccessible: store.WHEN_UNLOCKED_THIS_DEVICE_ONLY
|
|
163
|
-
});
|
|
164
|
-
await store.setItemAsync(STORAGE_KEYS.PUBLIC_KEY, publicKey);
|
|
165
|
-
|
|
166
|
-
// Update cache
|
|
167
|
-
KeyManager.cachedPublicKey = publicKey;
|
|
168
|
-
KeyManager.cachedHasIdentity = true;
|
|
169
|
-
return publicKey;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Import an existing key pair (e.g., from backup file)
|
|
174
|
-
*/
|
|
175
|
-
static async importKeyPair(privateKey) {
|
|
176
|
-
if (isWebPlatform()) {
|
|
177
|
-
throw new Error('Identity import is only available on native platforms (iOS/Android). Please use the native app to import your identity.');
|
|
178
|
-
}
|
|
179
|
-
const store = await initSecureStore();
|
|
180
|
-
const keyPair = ec.keyFromPrivate(privateKey);
|
|
181
|
-
const publicKey = keyPair.getPublic('hex');
|
|
182
|
-
await store.setItemAsync(STORAGE_KEYS.PRIVATE_KEY, privateKey, {
|
|
183
|
-
keychainAccessible: store.WHEN_UNLOCKED_THIS_DEVICE_ONLY
|
|
184
|
-
});
|
|
185
|
-
await store.setItemAsync(STORAGE_KEYS.PUBLIC_KEY, publicKey);
|
|
186
|
-
|
|
187
|
-
// Update cache
|
|
188
|
-
KeyManager.cachedPublicKey = publicKey;
|
|
189
|
-
KeyManager.cachedHasIdentity = true;
|
|
190
|
-
return publicKey;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Get the stored private key
|
|
195
|
-
* WARNING: Only use this for signing operations within the app
|
|
196
|
-
*/
|
|
197
|
-
static async getPrivateKey() {
|
|
198
|
-
if (isWebPlatform()) {
|
|
199
|
-
return null; // Identity storage is only available on native platforms
|
|
200
|
-
}
|
|
201
|
-
try {
|
|
202
|
-
const store = await initSecureStore();
|
|
203
|
-
return await store.getItemAsync(STORAGE_KEYS.PRIVATE_KEY);
|
|
204
|
-
} catch (error) {
|
|
205
|
-
// If secure store is not available, return null (no identity)
|
|
206
|
-
// This allows the app to continue functioning even if secure store fails to load
|
|
207
|
-
if (__DEV__) {
|
|
208
|
-
console.warn('[KeyManager] Failed to access secure store:', error);
|
|
209
|
-
}
|
|
210
|
-
return null;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Get the stored public key (cached for performance)
|
|
216
|
-
*/
|
|
217
|
-
static async getPublicKey() {
|
|
218
|
-
if (isWebPlatform()) {
|
|
219
|
-
return null; // Identity storage is only available on native platforms
|
|
220
|
-
}
|
|
221
|
-
if (KeyManager.cachedPublicKey !== null) {
|
|
222
|
-
return KeyManager.cachedPublicKey;
|
|
223
|
-
}
|
|
224
|
-
try {
|
|
225
|
-
const store = await initSecureStore();
|
|
226
|
-
const publicKey = await store.getItemAsync(STORAGE_KEYS.PUBLIC_KEY);
|
|
227
|
-
|
|
228
|
-
// Cache result (null is a valid cache value meaning no identity)
|
|
229
|
-
KeyManager.cachedPublicKey = publicKey;
|
|
230
|
-
return publicKey;
|
|
231
|
-
} catch (error) {
|
|
232
|
-
// If secure store is not available, return null (no identity)
|
|
233
|
-
// Cache null to avoid repeated failed attempts
|
|
234
|
-
KeyManager.cachedPublicKey = null;
|
|
235
|
-
if (__DEV__) {
|
|
236
|
-
console.warn('[KeyManager] Failed to access secure store:', error);
|
|
237
|
-
}
|
|
238
|
-
return null;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Check if an identity (key pair) exists on this device (cached for performance)
|
|
244
|
-
*/
|
|
245
|
-
static async hasIdentity() {
|
|
246
|
-
if (isWebPlatform()) {
|
|
247
|
-
return false; // Identity storage is only available on native platforms
|
|
248
|
-
}
|
|
249
|
-
if (KeyManager.cachedHasIdentity !== null) {
|
|
250
|
-
return KeyManager.cachedHasIdentity;
|
|
251
|
-
}
|
|
252
|
-
try {
|
|
253
|
-
const privateKey = await KeyManager.getPrivateKey();
|
|
254
|
-
const hasIdentity = privateKey !== null;
|
|
255
|
-
|
|
256
|
-
// Cache result
|
|
257
|
-
KeyManager.cachedHasIdentity = hasIdentity;
|
|
258
|
-
return hasIdentity;
|
|
259
|
-
} catch (error) {
|
|
260
|
-
// If we can't check, assume no identity (safer default)
|
|
261
|
-
// Cache false to avoid repeated failed attempts
|
|
262
|
-
KeyManager.cachedHasIdentity = false;
|
|
263
|
-
if (__DEV__) {
|
|
264
|
-
console.warn('[KeyManager] Failed to check identity:', error);
|
|
265
|
-
}
|
|
266
|
-
return false;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Delete the stored identity (both keys)
|
|
272
|
-
* Use with EXTREME caution - this is irreversible without a backup file
|
|
273
|
-
* This should ONLY be called when explicitly requested by the user
|
|
274
|
-
* @param skipBackup - If true, skip backup before deletion (default: false)
|
|
275
|
-
* @param force - If true, skip confirmation checks (default: false)
|
|
276
|
-
* @param userConfirmed - If true, user has explicitly confirmed deletion (default: false)
|
|
277
|
-
*/
|
|
278
|
-
static async deleteIdentity(skipBackup = false, force = false, userConfirmed = false) {
|
|
279
|
-
if (isWebPlatform()) {
|
|
280
|
-
return; // Identity storage is only available on native platforms, nothing to delete
|
|
281
|
-
}
|
|
282
|
-
// CRITICAL SAFEGUARD: Require explicit user confirmation unless force is true
|
|
283
|
-
if (!force && !userConfirmed) {
|
|
284
|
-
throw new Error('Identity deletion requires explicit user confirmation. This is a safety measure to prevent accidental data loss.');
|
|
285
|
-
}
|
|
286
|
-
if (!force) {
|
|
287
|
-
const hasIdentity = await KeyManager.hasIdentity();
|
|
288
|
-
if (!hasIdentity) {
|
|
289
|
-
return; // Nothing to delete
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
const store = await initSecureStore();
|
|
293
|
-
|
|
294
|
-
// ALWAYS create backup before deletion unless explicitly skipped
|
|
295
|
-
if (!skipBackup) {
|
|
296
|
-
try {
|
|
297
|
-
const backupSuccess = await KeyManager.backupIdentity();
|
|
298
|
-
if (!backupSuccess && typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
299
|
-
console.warn('[KeyManager] Failed to backup identity before deletion - proceeding anyway');
|
|
300
|
-
}
|
|
301
|
-
} catch (backupError) {
|
|
302
|
-
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
303
|
-
console.warn('[KeyManager] Failed to backup identity before deletion:', backupError);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
await store.deleteItemAsync(STORAGE_KEYS.PRIVATE_KEY);
|
|
308
|
-
await store.deleteItemAsync(STORAGE_KEYS.PUBLIC_KEY);
|
|
309
|
-
|
|
310
|
-
// Invalidate cache
|
|
311
|
-
KeyManager.invalidateCache();
|
|
312
|
-
|
|
313
|
-
// Also clear backup if force deletion
|
|
314
|
-
if (force) {
|
|
315
|
-
try {
|
|
316
|
-
await store.deleteItemAsync(STORAGE_KEYS.BACKUP_PRIVATE_KEY);
|
|
317
|
-
await store.deleteItemAsync(STORAGE_KEYS.BACKUP_PUBLIC_KEY);
|
|
318
|
-
await store.deleteItemAsync(STORAGE_KEYS.BACKUP_TIMESTAMP);
|
|
319
|
-
} catch (error) {
|
|
320
|
-
// Ignore backup deletion errors
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Backup identity to SecureStore (separate backup storage)
|
|
327
|
-
* This provides a recovery mechanism if primary storage fails
|
|
328
|
-
*/
|
|
329
|
-
static async backupIdentity() {
|
|
330
|
-
if (isWebPlatform()) {
|
|
331
|
-
return false; // Identity storage is only available on native platforms
|
|
332
|
-
}
|
|
333
|
-
try {
|
|
334
|
-
const store = await initSecureStore();
|
|
335
|
-
const privateKey = await KeyManager.getPrivateKey();
|
|
336
|
-
const publicKey = await KeyManager.getPublicKey();
|
|
337
|
-
if (!privateKey || !publicKey) {
|
|
338
|
-
return false; // Nothing to backup
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
// Store backup in SecureStore (still secure, but separate from primary storage)
|
|
342
|
-
await store.setItemAsync(STORAGE_KEYS.BACKUP_PRIVATE_KEY, privateKey, {
|
|
343
|
-
keychainAccessible: store.WHEN_UNLOCKED_THIS_DEVICE_ONLY
|
|
344
|
-
});
|
|
345
|
-
await store.setItemAsync(STORAGE_KEYS.BACKUP_PUBLIC_KEY, publicKey);
|
|
346
|
-
await store.setItemAsync(STORAGE_KEYS.BACKUP_TIMESTAMP, Date.now().toString());
|
|
347
|
-
return true;
|
|
348
|
-
} catch (error) {
|
|
349
|
-
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
350
|
-
console.error('[KeyManager] Failed to backup identity:', error);
|
|
351
|
-
}
|
|
352
|
-
return false;
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Verify identity integrity - checks if keys are valid and accessible
|
|
358
|
-
*/
|
|
359
|
-
static async verifyIdentityIntegrity() {
|
|
360
|
-
if (isWebPlatform()) {
|
|
361
|
-
return false; // Identity storage is only available on native platforms
|
|
362
|
-
}
|
|
363
|
-
try {
|
|
364
|
-
const privateKey = await KeyManager.getPrivateKey();
|
|
365
|
-
const publicKey = await KeyManager.getPublicKey();
|
|
366
|
-
if (!privateKey || !publicKey) {
|
|
367
|
-
return false;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
// Validate private key format
|
|
371
|
-
if (!KeyManager.isValidPrivateKey(privateKey)) {
|
|
372
|
-
return false;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
// Validate public key format
|
|
376
|
-
if (!KeyManager.isValidPublicKey(publicKey)) {
|
|
377
|
-
return false;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
// Verify public key can be derived from private key
|
|
381
|
-
const derivedPublicKey = KeyManager.derivePublicKey(privateKey);
|
|
382
|
-
if (derivedPublicKey !== publicKey) {
|
|
383
|
-
return false; // Keys don't match
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// Verify we can create a key pair object (tests elliptic curve operations)
|
|
387
|
-
const keyPair = await KeyManager.getKeyPairObject();
|
|
388
|
-
if (!keyPair) {
|
|
389
|
-
return false;
|
|
390
|
-
}
|
|
391
|
-
return true;
|
|
392
|
-
} catch (error) {
|
|
393
|
-
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
394
|
-
console.error('[KeyManager] Identity integrity check failed:', error);
|
|
395
|
-
}
|
|
396
|
-
return false;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* Restore identity from backup if primary storage is corrupted
|
|
402
|
-
*/
|
|
403
|
-
static async restoreIdentityFromBackup() {
|
|
404
|
-
if (isWebPlatform()) {
|
|
405
|
-
return false; // Identity storage is only available on native platforms
|
|
406
|
-
}
|
|
407
|
-
try {
|
|
408
|
-
const store = await initSecureStore();
|
|
409
|
-
|
|
410
|
-
// Check if backup exists
|
|
411
|
-
const backupPrivateKey = await store.getItemAsync(STORAGE_KEYS.BACKUP_PRIVATE_KEY);
|
|
412
|
-
const backupPublicKey = await store.getItemAsync(STORAGE_KEYS.BACKUP_PUBLIC_KEY);
|
|
413
|
-
if (!backupPrivateKey || !backupPublicKey) {
|
|
414
|
-
return false; // No backup available
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
// Verify backup integrity
|
|
418
|
-
if (!KeyManager.isValidPrivateKey(backupPrivateKey)) {
|
|
419
|
-
return false;
|
|
420
|
-
}
|
|
421
|
-
if (!KeyManager.isValidPublicKey(backupPublicKey)) {
|
|
422
|
-
return false;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
// Verify keys match
|
|
426
|
-
const derivedPublicKey = KeyManager.derivePublicKey(backupPrivateKey);
|
|
427
|
-
if (derivedPublicKey !== backupPublicKey) {
|
|
428
|
-
return false; // Backup keys don't match
|
|
429
|
-
}
|
|
430
|
-
await store.setItemAsync(STORAGE_KEYS.PRIVATE_KEY, backupPrivateKey, {
|
|
431
|
-
keychainAccessible: store.WHEN_UNLOCKED_THIS_DEVICE_ONLY
|
|
432
|
-
});
|
|
433
|
-
await store.setItemAsync(STORAGE_KEYS.PUBLIC_KEY, backupPublicKey);
|
|
434
|
-
const restored = await KeyManager.verifyIdentityIntegrity();
|
|
435
|
-
if (restored) {
|
|
436
|
-
// Update cache
|
|
437
|
-
KeyManager.cachedPublicKey = backupPublicKey;
|
|
438
|
-
KeyManager.cachedHasIdentity = true;
|
|
439
|
-
await store.setItemAsync(STORAGE_KEYS.BACKUP_TIMESTAMP, Date.now().toString());
|
|
440
|
-
return true;
|
|
441
|
-
}
|
|
442
|
-
return false;
|
|
443
|
-
} catch (error) {
|
|
444
|
-
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
445
|
-
console.error('[KeyManager] Failed to restore identity from backup:', error);
|
|
446
|
-
}
|
|
447
|
-
return false;
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
/**
|
|
452
|
-
* Get the elliptic curve key object from the stored private key
|
|
453
|
-
* Used internally for signing operations
|
|
454
|
-
*/
|
|
455
|
-
static async getKeyPairObject() {
|
|
456
|
-
if (isWebPlatform()) {
|
|
457
|
-
return null; // Identity storage is only available on native platforms
|
|
458
|
-
}
|
|
459
|
-
const privateKey = await KeyManager.getPrivateKey();
|
|
460
|
-
if (!privateKey) return null;
|
|
461
|
-
return ec.keyFromPrivate(privateKey);
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* Derive public key from a private key (without storing)
|
|
466
|
-
*/
|
|
467
|
-
static derivePublicKey(privateKey) {
|
|
468
|
-
const keyPair = ec.keyFromPrivate(privateKey);
|
|
469
|
-
return keyPair.getPublic('hex');
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* Validate that a string is a valid public key
|
|
474
|
-
*/
|
|
475
|
-
static isValidPublicKey(publicKey) {
|
|
476
|
-
try {
|
|
477
|
-
ec.keyFromPublic(publicKey, 'hex');
|
|
478
|
-
return true;
|
|
479
|
-
} catch {
|
|
480
|
-
return false;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* Validate that a string is a valid private key
|
|
486
|
-
*/
|
|
487
|
-
static isValidPrivateKey(privateKey) {
|
|
488
|
-
try {
|
|
489
|
-
const keyPair = ec.keyFromPrivate(privateKey);
|
|
490
|
-
// Verify it can derive a public key
|
|
491
|
-
keyPair.getPublic('hex');
|
|
492
|
-
return true;
|
|
493
|
-
} catch {
|
|
494
|
-
return false;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
/**
|
|
499
|
-
* Get a shortened version of the public key for display
|
|
500
|
-
* Format: first 8 chars...last 8 chars
|
|
501
|
-
*/
|
|
502
|
-
static shortenPublicKey(publicKey) {
|
|
503
|
-
if (publicKey.length <= 20) return publicKey;
|
|
504
|
-
return `${publicKey.slice(0, 8)}...${publicKey.slice(-8)}`;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
export default KeyManager;
|
|
508
|
-
//# sourceMappingURL=keyManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ec","EC","Platform","SecureStore","ExpoCrypto","STORAGE_KEYS","PRIVATE_KEY","PUBLIC_KEY","BACKUP_PRIVATE_KEY","BACKUP_PUBLIC_KEY","BACKUP_TIMESTAMP","initSecureStore","error","errorMessage","Error","message","String","isReactNative","navigator","product","isNodeJS","process","versions","node","isWebPlatform","OS","window","initExpoCrypto","uint8ArrayToHex","bytes","Array","from","map","b","toString","padStart","join","getSecureRandomBytes","length","Crypto","getRandomBytes","getCrypto","Function","crypto","Uint8Array","randomBytes","KeyManager","cachedPublicKey","cachedHasIdentity","invalidateCache","generateKeyPairSync","keyPair","genKeyPair","privateKey","getPrivate","publicKey","getPublic","generateKeyPair","privateKeyHex","keyFromPrivate","createIdentity","store","setItemAsync","keychainAccessible","WHEN_UNLOCKED_THIS_DEVICE_ONLY","importKeyPair","getPrivateKey","getItemAsync","__DEV__","console","warn","getPublicKey","hasIdentity","deleteIdentity","skipBackup","force","userConfirmed","backupSuccess","backupIdentity","backupError","deleteItemAsync","Date","now","verifyIdentityIntegrity","isValidPrivateKey","isValidPublicKey","derivedPublicKey","derivePublicKey","getKeyPairObject","restoreIdentityFromBackup","backupPrivateKey","backupPublicKey","restored","keyFromPublic","shortenPublicKey","slice"],"sourceRoot":"../../../src","sources":["crypto/keyManager.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,EAAE,IAAIC,EAAE,QAAQ,UAAU;AAEnC,SAASC,QAAQ,QAAQ,cAAc;;AAEvC;AACA,IAAIC,WAAsD,GAAG,IAAI;AACjE,IAAIC,UAA+C,GAAG,IAAI;AAE1D,MAAMJ,EAAE,GAAG,IAAIC,EAAE,CAAC,WAAW,CAAC;AAE9B,MAAMI,YAAY,GAAG;EACnBC,WAAW,EAAE,0BAA0B;EACvCC,UAAU,EAAE,yBAAyB;EACrCC,kBAAkB,EAAE,iCAAiC;EACrDC,iBAAiB,EAAE,gCAAgC;EACnDC,gBAAgB,EAAE;AACpB,CAAU;;AAEV;AACA;AACA;AACA;AACA,eAAeC,eAAeA,CAAA,EAAgD;EAC5E,IAAI,CAACR,WAAW,EAAE;IAChB,IAAI;MACFA,WAAW,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC;IACjD,CAAC,CAAC,OAAOS,KAAK,EAAE;MACd,MAAMC,YAAY,GAAGD,KAAK,YAAYE,KAAK,GAAGF,KAAK,CAACG,OAAO,GAAGC,MAAM,CAACJ,KAAK,CAAC;MAC3E,MAAM,IAAIE,KAAK,CAAC,qCAAqCD,YAAY,qEAAqE,CAAC;IACzI;EACF;EACA,IAAI,CAACV,WAAW,EAAE;IAChB,MAAM,IAAIW,KAAK,CAAC,2CAA2C,CAAC;EAC9D;EACA,OAAOX,WAAW;AACpB;;AAEA;AACA;AACA;AACA,SAASc,a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,EAAE,CAAC2D,cAAc,CAACN,UAAU,CAAC;MAC7C;MACAF,OAAO,CAACK,SAAS,CAAC,KAAK,CAAC;MACxB,OAAO,IAAI;IACb,CAAC,CAAC,MAAM;MACN,OAAO,KAAK;IACd;EACF;;EAEA;AACF;AACA;AACA;EACE,OAAOsC,gBAAgBA,CAACvC,SAAiB,EAAU;IACjD,IAAIA,SAAS,CAACjB,MAAM,IAAI,EAAE,EAAE,OAAOiB,SAAS;IAC5C,OAAO,GAAGA,SAAS,CAACwC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,MAAMxC,SAAS,CAACwC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;EAC5D;AACF;AAEA,eAAejD,UAAU","ignoreList":[]}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Crypto Polyfills for React Native
|
|
5
|
-
*
|
|
6
|
-
* This file ensures that required polyfills are available
|
|
7
|
-
* before any crypto operations are performed.
|
|
8
|
-
*
|
|
9
|
-
* Polyfills included:
|
|
10
|
-
* - Buffer: Required by crypto libraries
|
|
11
|
-
* - crypto.getRandomValues: Required for secure random number generation
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
// Import Buffer polyfill for React Native compatibility
|
|
15
|
-
// Some crypto libraries depend on Buffer which isn't available in React Native
|
|
16
|
-
import { Buffer } from 'buffer';
|
|
17
|
-
|
|
18
|
-
// Get the global object in a cross-platform way
|
|
19
|
-
const getGlobalObject = () => {
|
|
20
|
-
if (typeof globalThis !== 'undefined') return globalThis;
|
|
21
|
-
if (typeof global !== 'undefined') return global;
|
|
22
|
-
if (typeof window !== 'undefined') return window;
|
|
23
|
-
if (typeof self !== 'undefined') return self;
|
|
24
|
-
return {};
|
|
25
|
-
};
|
|
26
|
-
const globalObject = getGlobalObject();
|
|
27
|
-
|
|
28
|
-
// Make Buffer available globally for libraries that depend on it
|
|
29
|
-
if (!globalObject.Buffer) {
|
|
30
|
-
globalObject.Buffer = Buffer;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Polyfill crypto.getRandomValues for React Native
|
|
34
|
-
// This is required by crypto libraries for secure random number generation
|
|
35
|
-
|
|
36
|
-
// Cache for expo-crypto module
|
|
37
|
-
let expoCryptoModule = null;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Get random bytes using expo-crypto (synchronous)
|
|
41
|
-
* This is a synchronous wrapper that loads expo-crypto lazily
|
|
42
|
-
*/
|
|
43
|
-
function getRandomBytesSync(byteCount) {
|
|
44
|
-
if (!expoCryptoModule) {
|
|
45
|
-
// Try to require expo-crypto synchronously
|
|
46
|
-
try {
|
|
47
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
48
|
-
expoCryptoModule = require('expo-crypto');
|
|
49
|
-
} catch {
|
|
50
|
-
throw new Error('expo-crypto is required for crypto.getRandomValues polyfill');
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
// TypeScript guard - expoCryptoModule is guaranteed to be non-null here
|
|
54
|
-
const cryptoModule = expoCryptoModule;
|
|
55
|
-
if (!cryptoModule) {
|
|
56
|
-
throw new Error('Failed to load expo-crypto module');
|
|
57
|
-
}
|
|
58
|
-
return cryptoModule.getRandomBytes(byteCount);
|
|
59
|
-
}
|
|
60
|
-
const cryptoPolyfill = {
|
|
61
|
-
getRandomValues(array) {
|
|
62
|
-
const bytes = getRandomBytesSync(array.byteLength);
|
|
63
|
-
const uint8View = new Uint8Array(array.buffer, array.byteOffset, array.byteLength);
|
|
64
|
-
uint8View.set(bytes);
|
|
65
|
-
return array;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
// Only polyfill if crypto or crypto.getRandomValues is not available
|
|
70
|
-
if (typeof globalObject.crypto === 'undefined') {
|
|
71
|
-
globalObject.crypto = cryptoPolyfill;
|
|
72
|
-
} else if (typeof globalObject.crypto.getRandomValues !== 'function') {
|
|
73
|
-
globalObject.crypto.getRandomValues = cryptoPolyfill.getRandomValues;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Re-export Buffer for convenience
|
|
77
|
-
export { Buffer };
|
|
78
|
-
//# sourceMappingURL=polyfill.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Buffer","getGlobalObject","globalThis","global","window","self","globalObject","expoCryptoModule","getRandomBytesSync","byteCount","require","Error","cryptoModule","getRandomBytes","cryptoPolyfill","getRandomValues","array","bytes","byteLength","uint8View","Uint8Array","buffer","byteOffset","set","crypto"],"sourceRoot":"../../../src","sources":["crypto/polyfill.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAASA,MAAM,QAAQ,QAAQ;;AAE/B;AACA,MAAMC,eAAe,GAAGA,CAAA,KAAyB;EAC/C,IAAI,OAAOC,UAAU,KAAK,WAAW,EAAE,OAAOA,UAAU;EACxD,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE,OAAOA,MAAM;EAChD,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE,OAAOA,MAAM;EAChD,IAAI,OAAOC,IAAI,KAAK,WAAW,EAAE,OAAOA,IAAI;EAC5C,OAAO,CAAC,CAAC;AACX,CAAC;AAED,MAAMC,YAAY,GAAGL,eAAe,CAAC,CAAC;;AAEtC;AACA,IAAI,CAACK,YAAY,CAACN,MAAM,EAAE;EACvBM,YAAY,CAA0CN,MAAM,GAAGA,MAAM;AACxE;;AAEA;AACA;;AAKA;AACA,IAAIO,gBAAqD,GAAG,IAAI;;AAEhE;AACA;AACA;AACA;AACA,SAASC,kBAAkBA,CAACC,SAAiB,EAAc;EACzD,IAAI,CAACF,gBAAgB,EAAE;IACrB;IACA,IAAI;MACF;MACAA,gBAAgB,GAAGG,OAAO,CAAC,aAAa,CAAC;IAC3C,CAAC,CAAC,MAAM;MACN,MAAM,IAAIC,KAAK,CAAC,6DAA6D,CAAC;IAChF;E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