@oxyhq/services 5.16.22 → 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 +104 -23
- package/src/ui/context/hooks/useAuthOperations.ts +11 -3
- package/src/ui/hooks/useSessionSocket.ts +224 -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 -772
- 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 -303
- 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 -766
- 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 -298
- 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 -86
- 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 -21
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_assetStore","oxyInstance","setOxyAssetInstance","instance","exports","useAssets","assets","uploadProgress","loading","errors","setAsset","setAssets","removeAsset","setUploadProgress","removeUploadProgress","addLink","removeLink","setUploading","setLinking","setDeleting","setUploadError","setLinkError","setDeleteError","clearErrors","getAssetsByApp","getAssetsByEntity","getAssetUsageCount","isAssetLinked","reset","useAssetStore","upload","useCallback","file","metadata","Error","result","assetUpload","undefined","fileId","id","uploaded","size","total","percentage","status","setTimeout","error","message","link","assetId","app","entityType","entityId","visibility","assetLink","createdBy","createdAt","Date","toISOString","unlink","assetUnlink","getUrl","variant","expiresIn","assetGetUrl","url","getAsset","assetGet","deleteAsset","force","assetDelete","restore","assetRestore","getVariants","assetGetVariants","Object","values"],"sourceRoot":"../../../../src","sources":["ui/hooks/useAssets.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AASA;AACA,IAAIE,WAA+B,GAAG,IAAI;AAEnC,MAAMC,mBAAmB,GAAIC,QAAqB,IAAK;EAC5DF,WAAW,GAAGE,QAAQ;AACxB,CAAC;;AAED;AACA;AACA;AAFAC,OAAA,CAAAF,mBAAA,GAAAA,mBAAA;AAGO,MAAMG,SAAS,GAAGA,CAAA,KAAM;EAC7B,MAAM;IACJC,MAAM;IACNC,cAAc;IACdC,OAAO;IACPC,MAAM;IACNC,QAAQ;IACRC,SAAS;IACTC,WAAW;IACXC,iBAAiB;IACjBC,oBAAoB;IACpBC,OAAO;IACPC,UAAU;IACVC,YAAY;IACZC,UAAU;IACVC,WAAW;IACXC,cAAc;IACdC,YAAY;IACZC,cAAc;IACdC,WAAW;IACXC,cAAc;IACdC,iBAAiB;IACjBC,kBAAkB;IAClBC,aAAa;IACbC;EACF,CAAC,GAAG,IAAAC,yBAAa,EAAC,CAAC;;EAEnB;EACA,MAAMC,MAAM,GAAG,IAAAC,kBAAW,EAAC,OACzBC,IAAU,EACVC,QAA8B,KACJ;IAC1B,IAAI,CAAChC,WAAW,EAAE;MAChB,MAAM,IAAIiC,KAAK,CAAC,sEAAsE,CAAC;IACzF;IAEA,I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,WAAW,EAAE;MAChB,MAAM,IAAIiC,KAAK,CAAC,sEAAsE,CAAC;IACzF;IAEA,IAAI;MACF,OAAO,MAAMjC,WAAW,CAACyE,gBAAgB,CAACzB,OAAO,CAAC;IACpD,CAAC,CAAC,OAAOH,KAAU,EAAE;MACnB,MAAMA,KAAK;IACb;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACL;IACAxC,MAAM,EAAEqE,MAAM,CAACC,MAAM,CAACtE,MAAM,CAAC;IAC7BC,cAAc;IACdC,OAAO;IACPC,MAAM;IAEN;IACAqB,MAAM;IACNkB,IAAI;IACJW,MAAM;IACNE,MAAM;IACNK,QAAQ;IACRE,WAAW;IACXG,OAAO;IACPE,WAAW;IAEX;IACAjD,cAAc;IACdC,iBAAiB;IACjBC,kBAAkB;IAClBC,aAAa;IAEb;IACAJ,WAAW;IACXK;EACF,CAAC;AACH,CAAC;AAACxB,OAAA,CAAAC,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useDeviceManagement = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _deviceManager = require("../../utils/deviceManager");
|
|
9
|
-
var _errorHandlers = require("../utils/errorHandlers");
|
|
10
|
-
/**
|
|
11
|
-
* Provide device session management helpers tied to the current active session.
|
|
12
|
-
*
|
|
13
|
-
* @param options - Device management configuration
|
|
14
|
-
*/
|
|
15
|
-
const useDeviceManagement = ({
|
|
16
|
-
oxyServices,
|
|
17
|
-
activeSessionId,
|
|
18
|
-
onError,
|
|
19
|
-
clearSessionState,
|
|
20
|
-
logger
|
|
21
|
-
}) => {
|
|
22
|
-
const getDeviceSessions = (0, _react.useCallback)(async () => {
|
|
23
|
-
if (!activeSessionId) throw new Error('No active session');
|
|
24
|
-
try {
|
|
25
|
-
return await oxyServices.getDeviceSessions(activeSessionId);
|
|
26
|
-
} catch (error) {
|
|
27
|
-
(0, _errorHandlers.handleAuthError)(error, {
|
|
28
|
-
defaultMessage: 'Failed to get device sessions',
|
|
29
|
-
code: 'GET_DEVICE_SESSIONS_ERROR',
|
|
30
|
-
onError,
|
|
31
|
-
logger
|
|
32
|
-
});
|
|
33
|
-
throw error instanceof Error ? error : new Error('Failed to get device sessions');
|
|
34
|
-
}
|
|
35
|
-
}, [activeSessionId, logger, onError, oxyServices]);
|
|
36
|
-
const logoutAllDeviceSessions = (0, _react.useCallback)(async () => {
|
|
37
|
-
if (!activeSessionId) throw new Error('No active session');
|
|
38
|
-
try {
|
|
39
|
-
await oxyServices.logoutAllDeviceSessions(activeSessionId);
|
|
40
|
-
await clearSessionState();
|
|
41
|
-
} catch (error) {
|
|
42
|
-
(0, _errorHandlers.handleAuthError)(error, {
|
|
43
|
-
defaultMessage: 'Failed to logout all device sessions',
|
|
44
|
-
code: 'LOGOUT_ALL_DEVICES_ERROR',
|
|
45
|
-
onError,
|
|
46
|
-
logger
|
|
47
|
-
});
|
|
48
|
-
throw error instanceof Error ? error : new Error('Failed to logout all device sessions');
|
|
49
|
-
}
|
|
50
|
-
}, [activeSessionId, clearSessionState, logger, onError, oxyServices]);
|
|
51
|
-
const updateDeviceName = (0, _react.useCallback)(async deviceName => {
|
|
52
|
-
if (!activeSessionId) throw new Error('No active session');
|
|
53
|
-
try {
|
|
54
|
-
await oxyServices.updateDeviceName(activeSessionId, deviceName);
|
|
55
|
-
await _deviceManager.DeviceManager.updateDeviceName(deviceName);
|
|
56
|
-
} catch (error) {
|
|
57
|
-
(0, _errorHandlers.handleAuthError)(error, {
|
|
58
|
-
defaultMessage: 'Failed to update device name',
|
|
59
|
-
code: 'UPDATE_DEVICE_NAME_ERROR',
|
|
60
|
-
onError,
|
|
61
|
-
logger
|
|
62
|
-
});
|
|
63
|
-
throw error instanceof Error ? error : new Error('Failed to update device name');
|
|
64
|
-
}
|
|
65
|
-
}, [activeSessionId, logger, onError, oxyServices]);
|
|
66
|
-
return {
|
|
67
|
-
getDeviceSessions,
|
|
68
|
-
logoutAllDeviceSessions,
|
|
69
|
-
updateDeviceName
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
exports.useDeviceManagement = useDeviceManagement;
|
|
73
|
-
//# sourceMappingURL=useDeviceManagement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_deviceManager","_errorHandlers","useDeviceManagement","oxyServices","activeSessionId","onError","clearSessionState","logger","getDeviceSessions","useCallback","Error","error","handleAuthError","defaultMessage","code","logoutAllDeviceSessions","updateDeviceName","deviceName","DeviceManager","exports"],"sourceRoot":"../../../../src","sources":["ui/hooks/useDeviceManagement.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AAwBA;AACA;AACA;AACA;AACA;AACO,MAAMG,mBAAmB,GAAGA,CAAC;EAClCC,WAAW;EACXC,eAAe;EACfC,OAAO;EACPC,iBAAiB;EACjBC;AAC0B,CAAC,KAAgC;EAC3D,MAAMC,iBAAiB,GAAG,IAAAC,kBAAW,EAAC,YAQjC;IACH,IAAI,CAACL,eAAe,EAAE,MAAM,IAAIM,KAAK,CAAC,mBAAmB,CAAC;IAC1D,IAAI;MACF,OAAO,MAAMP,WAAW,CAACK,iBAAiB,CAACJ,eAAe,CAAC;IAC7D,CAAC,CAAC,OAAOO,KAAK,EAAE;MACd,IAAAC,8BAAe,EAACD,KAAK,EAAE;QACrBE,cAAc,EAAE,+BAA+B;QAC/CC,IAAI,EAAE,2BAA2B;QACjCT,OAAO;QACPE;MACF,CAAC,CAAC;MACF,MAAMI,KAAK,YAAYD,KAAK,GAAGC,KAAK,GAAG,IAAID,KAAK,CAAC,+BAA+B,CAAC;IACnF;EACF,CAAC,EAAE,CAACN,eAAe,EAAEG,MAAM,EAAEF,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LK,iBAAiB;IACjBO,uBAAuB;IACvBC;EACF,CAAC;AACH,CAAC;AAACG,OAAA,CAAAjB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useFileDownloadUrl = exports.setOxyFileUrlInstance = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
let oxyInstance = null;
|
|
9
|
-
const setOxyFileUrlInstance = instance => {
|
|
10
|
-
oxyInstance = instance;
|
|
11
|
-
};
|
|
12
|
-
exports.setOxyFileUrlInstance = setOxyFileUrlInstance;
|
|
13
|
-
/**
|
|
14
|
-
* Hook to resolve a file's download URL asynchronously.
|
|
15
|
-
*
|
|
16
|
-
* Prefers `getFileDownloadUrlAsync` and falls back to the synchronous
|
|
17
|
-
* `getFileDownloadUrl` helper if the async call fails.
|
|
18
|
-
*/
|
|
19
|
-
const useFileDownloadUrl = (fileId, options) => {
|
|
20
|
-
const [url, setUrl] = (0, _react.useState)(null);
|
|
21
|
-
const [loading, setLoading] = (0, _react.useState)(false);
|
|
22
|
-
const [error, setError] = (0, _react.useState)(null);
|
|
23
|
-
(0, _react.useEffect)(() => {
|
|
24
|
-
if (!fileId) {
|
|
25
|
-
setUrl(null);
|
|
26
|
-
setLoading(false);
|
|
27
|
-
setError(null);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (!oxyInstance) {
|
|
31
|
-
// Fail silently but don't crash the UI – caller can decide what to do with null URL.
|
|
32
|
-
setUrl(null);
|
|
33
|
-
setLoading(false);
|
|
34
|
-
setError(new Error('OxyServices instance not configured for useFileDownloadUrl'));
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
let cancelled = false;
|
|
38
|
-
const load = async () => {
|
|
39
|
-
setLoading(true);
|
|
40
|
-
setError(null);
|
|
41
|
-
|
|
42
|
-
// Store instance in local variable for TypeScript null checking
|
|
43
|
-
const instance = oxyInstance;
|
|
44
|
-
if (!instance) {
|
|
45
|
-
setLoading(false);
|
|
46
|
-
setError(new Error('OxyServices instance not configured for useFileDownloadUrl'));
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
try {
|
|
50
|
-
const {
|
|
51
|
-
variant,
|
|
52
|
-
expiresIn
|
|
53
|
-
} = options || {};
|
|
54
|
-
let resolvedUrl = null;
|
|
55
|
-
if (typeof instance.getFileDownloadUrlAsync === 'function') {
|
|
56
|
-
resolvedUrl = await instance.getFileDownloadUrlAsync(fileId, variant, expiresIn);
|
|
57
|
-
}
|
|
58
|
-
if (!resolvedUrl && typeof instance.getFileDownloadUrl === 'function') {
|
|
59
|
-
resolvedUrl = instance.getFileDownloadUrl(fileId, variant, expiresIn);
|
|
60
|
-
}
|
|
61
|
-
if (!cancelled) {
|
|
62
|
-
setUrl(resolvedUrl || null);
|
|
63
|
-
}
|
|
64
|
-
} catch (err) {
|
|
65
|
-
// Fallback to sync URL on error where possible
|
|
66
|
-
try {
|
|
67
|
-
if (typeof instance.getFileDownloadUrl === 'function') {
|
|
68
|
-
const {
|
|
69
|
-
variant,
|
|
70
|
-
expiresIn
|
|
71
|
-
} = options || {};
|
|
72
|
-
const fallbackUrl = instance.getFileDownloadUrl(fileId, variant, expiresIn);
|
|
73
|
-
if (!cancelled) {
|
|
74
|
-
setUrl(fallbackUrl || null);
|
|
75
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
76
|
-
}
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
} catch {
|
|
80
|
-
// ignore secondary failure, we'll surface the original error below
|
|
81
|
-
}
|
|
82
|
-
if (!cancelled) {
|
|
83
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
84
|
-
}
|
|
85
|
-
} finally {
|
|
86
|
-
if (!cancelled) {
|
|
87
|
-
setLoading(false);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
load();
|
|
92
|
-
return () => {
|
|
93
|
-
cancelled = true;
|
|
94
|
-
};
|
|
95
|
-
}, [fileId, options?.variant, options?.expiresIn]);
|
|
96
|
-
return {
|
|
97
|
-
url,
|
|
98
|
-
loading,
|
|
99
|
-
error
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
exports.useFileDownloadUrl = useFileDownloadUrl;
|
|
103
|
-
//# sourceMappingURL=useFileDownloadUrl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","oxyInstance","setOxyFileUrlInstance","instance","exports","useFileDownloadUrl","fileId","options","url","setUrl","useState","loading","setLoading","error","setError","useEffect","Error","cancelled","load","variant","expiresIn","resolvedUrl","getFileDownloadUrlAsync","getFileDownloadUrl","err","fallbackUrl","String"],"sourceRoot":"../../../../src","sources":["ui/hooks/useFileDownloadUrl.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAIC,WAA+B,GAAG,IAAI;AAEnC,MAAMC,qBAAqB,GAAIC,QAAqB,IAAK;EAC9DF,WAAW,GAAGE,QAAQ;AACxB,CAAC;AAACC,OAAA,CAAAF,qBAAA,GAAAA,qBAAA;AAaF;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,kBAAkB,GAAGA,CAChCC,MAAsB,EACtBC,OAAmC,KACN;EAC7B,MAAM,CAACC,GAAG,EAAEC,MAAM,CAAC,GAAG,IAAAC,eAAQ,EAAgB,IAAI,CAAC;EACnD,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAF,eAAQ,EAAC,KAAK,CAAC;EAC7C,MAAM,CAACG,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAJ,eAAQ,EAAe,IAAI,CAAC;EAEtD,IAAAK,gBAAS,EAAC,MAAM;IACd,IAAI,CAACT,MAAM,EAAE;MACXG,MAAM,CAAC,IAAI,CAAC;MACZG,UAAU,CAAC,KAAK,C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Gb,OAAO,IAAI,CAAC,CAAC;YAC5C,MAAMkB,WAAW,GAAGtB,QAAQ,CAACoB,kBAAkB,CAACjB,MAAM,EAAEa,OAAO,EAAEC,SAAS,CAAC;YAC3E,IAAI,CAACH,SAAS,EAAE;cACdR,MAAM,CAACgB,WAAW,IAAI,IAAI,CAAC;cAC3BX,QAAQ,CAACU,GAAG,YAAYR,KAAK,GAAGQ,GAAG,GAAG,IAAIR,KAAK,CAACU,MAAM,CAACF,GAAG,CAAC,CAAC,CAAC;YAC/D;YACA;UACF;QACF,CAAC,CAAC,MAAM;UACN;QAAA;QAGF,IAAI,CAACP,SAAS,EAAE;UACdH,QAAQ,CAACU,GAAG,YAAYR,KAAK,GAAGQ,GAAG,GAAG,IAAIR,KAAK,CAACU,MAAM,CAACF,GAAG,CAAC,CAAC,CAAC;QAC/D;MACF,CAAC,SAAS;QACR,IAAI,CAACP,SAAS,EAAE;UACdL,UAAU,CAAC,KAAK,CAAC;QACnB;MACF;IACF,CAAC;IAEDM,IAAI,CAAC,CAAC;IAEN,OAAO,MAAM;MACXD,SAAS,GAAG,IAAI;IAClB,CAAC;EACH,CAAC,EAAE,CAACX,MAAM,EAAEC,OAAO,EAAEY,OAAO,EAAEZ,OAAO,EAAEa,SAAS,CAAC,CAAC;EAElD,OAAO;IAAEZ,GAAG;IAAEG,OAAO;IAAEE;EAAM,CAAC;AAChC,CAAC;AAACT,OAAA,CAAAC,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useFollowerCounts = exports.useFollow = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _followStore = require("../stores/followStore");
|
|
9
|
-
var _OxyContext = require("../context/OxyContext");
|
|
10
|
-
const useFollow = userId => {
|
|
11
|
-
const {
|
|
12
|
-
oxyServices
|
|
13
|
-
} = (0, _OxyContext.useOxy)();
|
|
14
|
-
const userIds = (0, _react.useMemo)(() => Array.isArray(userId) ? userId : userId ? [userId] : [], [userId]);
|
|
15
|
-
const isSingleUser = typeof userId === 'string';
|
|
16
|
-
|
|
17
|
-
// Zustand selectors
|
|
18
|
-
const followState = (0, _followStore.useFollowStore)();
|
|
19
|
-
|
|
20
|
-
// Single user helpers
|
|
21
|
-
const isFollowing = isSingleUser && userId ? followState.followingUsers[userId] ?? false : false;
|
|
22
|
-
const isLoading = isSingleUser && userId ? followState.loadingUsers[userId] ?? false : false;
|
|
23
|
-
const error = isSingleUser && userId ? followState.errors[userId] ?? null : null;
|
|
24
|
-
|
|
25
|
-
// Follower count helpers
|
|
26
|
-
const followerCount = isSingleUser && userId ? followState.followerCounts[userId] ?? null : null;
|
|
27
|
-
const followingCount = isSingleUser && userId ? followState.followingCounts[userId] ?? null : null;
|
|
28
|
-
const isLoadingCounts = isSingleUser && userId ? followState.loadingCounts[userId] ?? false : false;
|
|
29
|
-
const toggleFollow = (0, _react.useCallback)(async () => {
|
|
30
|
-
if (!isSingleUser || !userId) throw new Error('toggleFollow is only available for single user mode');
|
|
31
|
-
await followState.toggleFollowUser(userId, oxyServices, isFollowing);
|
|
32
|
-
}, [isSingleUser, userId, followState, oxyServices, isFollowing]);
|
|
33
|
-
const setFollowStatus = (0, _react.useCallback)(following => {
|
|
34
|
-
if (!isSingleUser || !userId) throw new Error('setFollowStatus is only available for single user mode');
|
|
35
|
-
followState.setFollowingStatus(userId, following);
|
|
36
|
-
}, [isSingleUser, userId, followState]);
|
|
37
|
-
const fetchStatus = (0, _react.useCallback)(async () => {
|
|
38
|
-
if (!isSingleUser || !userId) throw new Error('fetchStatus is only available for single user mode');
|
|
39
|
-
await followState.fetchFollowStatus(userId, oxyServices);
|
|
40
|
-
}, [isSingleUser, userId, followState, oxyServices]);
|
|
41
|
-
const clearError = (0, _react.useCallback)(() => {
|
|
42
|
-
if (!isSingleUser || !userId) throw new Error('clearError is only available for single user mode');
|
|
43
|
-
followState.clearFollowError(userId);
|
|
44
|
-
}, [isSingleUser, userId, followState]);
|
|
45
|
-
const fetchUserCounts = (0, _react.useCallback)(async () => {
|
|
46
|
-
if (!isSingleUser || !userId) throw new Error('fetchUserCounts is only available for single user mode');
|
|
47
|
-
await followState.fetchUserCounts(userId, oxyServices);
|
|
48
|
-
}, [isSingleUser, userId, followState, oxyServices]);
|
|
49
|
-
const setFollowerCount = (0, _react.useCallback)(count => {
|
|
50
|
-
if (!isSingleUser || !userId) throw new Error('setFollowerCount is only available for single user mode');
|
|
51
|
-
followState.setFollowerCount(userId, count);
|
|
52
|
-
}, [isSingleUser, userId, followState]);
|
|
53
|
-
const setFollowingCount = (0, _react.useCallback)(count => {
|
|
54
|
-
if (!isSingleUser || !userId) throw new Error('setFollowingCount is only available for single user mode');
|
|
55
|
-
followState.setFollowingCount(userId, count);
|
|
56
|
-
}, [isSingleUser, userId, followState]);
|
|
57
|
-
|
|
58
|
-
// Auto-fetch counts when hook is used for a single user and counts are missing.
|
|
59
|
-
(0, _react.useEffect)(() => {
|
|
60
|
-
if (!isSingleUser || !userId) return;
|
|
61
|
-
|
|
62
|
-
// If either count is not set and we're not already loading counts, trigger a fetch.
|
|
63
|
-
if ((followerCount === null || followingCount === null) && !isLoadingCounts) {
|
|
64
|
-
fetchUserCounts().catch(err => console.warn('useFollow: fetchUserCounts failed', err));
|
|
65
|
-
}
|
|
66
|
-
}, [isSingleUser, userId, followerCount, followingCount, isLoadingCounts, fetchUserCounts]);
|
|
67
|
-
|
|
68
|
-
// Multiple user helpers
|
|
69
|
-
const followData = (0, _react.useMemo)(() => {
|
|
70
|
-
const data = {};
|
|
71
|
-
userIds.forEach(uid => {
|
|
72
|
-
data[uid] = {
|
|
73
|
-
isFollowing: followState.followingUsers[uid] ?? false,
|
|
74
|
-
isLoading: followState.loadingUsers[uid] ?? false,
|
|
75
|
-
error: followState.errors[uid] ?? null
|
|
76
|
-
};
|
|
77
|
-
});
|
|
78
|
-
return data;
|
|
79
|
-
}, [userIds, followState.followingUsers, followState.loadingUsers, followState.errors]);
|
|
80
|
-
const toggleFollowForUser = (0, _react.useCallback)(async targetUserId => {
|
|
81
|
-
const currentState = followState.followingUsers[targetUserId] ?? false;
|
|
82
|
-
await followState.toggleFollowUser(targetUserId, oxyServices, currentState);
|
|
83
|
-
}, [followState, oxyServices]);
|
|
84
|
-
const setFollowStatusForUser = (0, _react.useCallback)((targetUserId, following) => {
|
|
85
|
-
followState.setFollowingStatus(targetUserId, following);
|
|
86
|
-
}, [followState]);
|
|
87
|
-
const fetchStatusForUser = (0, _react.useCallback)(async targetUserId => {
|
|
88
|
-
await followState.fetchFollowStatus(targetUserId, oxyServices);
|
|
89
|
-
}, [followState, oxyServices]);
|
|
90
|
-
const fetchAllStatuses = (0, _react.useCallback)(async () => {
|
|
91
|
-
await Promise.all(userIds.map(uid => followState.fetchFollowStatus(uid, oxyServices)));
|
|
92
|
-
}, [userIds, followState, oxyServices]);
|
|
93
|
-
const clearErrorForUser = (0, _react.useCallback)(targetUserId => {
|
|
94
|
-
followState.clearFollowError(targetUserId);
|
|
95
|
-
}, [followState]);
|
|
96
|
-
const updateCountsFromFollowAction = (0, _react.useCallback)((targetUserId, action, counts) => {
|
|
97
|
-
const currentUserId = oxyServices.getCurrentUserId() || undefined;
|
|
98
|
-
followState.updateCountsFromFollowAction(targetUserId, action, counts, currentUserId);
|
|
99
|
-
}, [followState, oxyServices]);
|
|
100
|
-
|
|
101
|
-
// Aggregate helpers for multiple users
|
|
102
|
-
const isAnyLoading = userIds.some(uid => followState.loadingUsers[uid]);
|
|
103
|
-
const hasAnyError = userIds.some(uid => !!followState.errors[uid]);
|
|
104
|
-
const allFollowing = userIds.every(uid => followState.followingUsers[uid]);
|
|
105
|
-
const allNotFollowing = userIds.every(uid => !followState.followingUsers[uid]);
|
|
106
|
-
if (isSingleUser && userId) {
|
|
107
|
-
return {
|
|
108
|
-
isFollowing,
|
|
109
|
-
isLoading,
|
|
110
|
-
error,
|
|
111
|
-
toggleFollow,
|
|
112
|
-
setFollowStatus,
|
|
113
|
-
fetchStatus,
|
|
114
|
-
clearError,
|
|
115
|
-
// Follower count methods
|
|
116
|
-
followerCount,
|
|
117
|
-
followingCount,
|
|
118
|
-
isLoadingCounts,
|
|
119
|
-
fetchUserCounts,
|
|
120
|
-
setFollowerCount,
|
|
121
|
-
setFollowingCount
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
return {
|
|
125
|
-
followData,
|
|
126
|
-
toggleFollowForUser,
|
|
127
|
-
setFollowStatusForUser,
|
|
128
|
-
fetchStatusForUser,
|
|
129
|
-
fetchAllStatuses,
|
|
130
|
-
clearErrorForUser,
|
|
131
|
-
isAnyLoading,
|
|
132
|
-
hasAnyError,
|
|
133
|
-
allFollowing,
|
|
134
|
-
allNotFollowing
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
// Convenience hook for just follower counts
|
|
139
|
-
exports.useFollow = useFollow;
|
|
140
|
-
const useFollowerCounts = userId => {
|
|
141
|
-
const {
|
|
142
|
-
oxyServices
|
|
143
|
-
} = (0, _OxyContext.useOxy)();
|
|
144
|
-
const followState = (0, _followStore.useFollowStore)();
|
|
145
|
-
const followerCount = followState.followerCounts[userId] ?? null;
|
|
146
|
-
const followingCount = followState.followingCounts[userId] ?? null;
|
|
147
|
-
const isLoadingCounts = followState.loadingCounts[userId] ?? false;
|
|
148
|
-
const fetchUserCounts = (0, _react.useCallback)(async () => {
|
|
149
|
-
await followState.fetchUserCounts(userId, oxyServices);
|
|
150
|
-
}, [userId, followState, oxyServices]);
|
|
151
|
-
const setFollowerCount = (0, _react.useCallback)(count => {
|
|
152
|
-
followState.setFollowerCount(userId, count);
|
|
153
|
-
}, [userId, followState]);
|
|
154
|
-
const setFollowingCount = (0, _react.useCallback)(count => {
|
|
155
|
-
followState.setFollowingCount(userId, count);
|
|
156
|
-
}, [userId, followState]);
|
|
157
|
-
return {
|
|
158
|
-
followerCount,
|
|
159
|
-
followingCount,
|
|
160
|
-
isLoadingCounts,
|
|
161
|
-
fetchUserCounts,
|
|
162
|
-
setFollowerCount,
|
|
163
|
-
setFollowingCount
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
exports.useFollowerCounts = useFollowerCounts;
|
|
167
|
-
//# sourceMappingURL=useFollow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_followStore","_OxyContext","useFollow","userId","oxyServices","useOxy","userIds","useMemo","Array","isArray","isSingleUser","followState","useFollowStore","isFollowing","followingUsers","isLoading","loadingUsers","error","errors","followerCount","followerCounts","followingCount","followingCounts","isLoadingCounts","loadingCounts","toggleFollow","useCallback","Error","toggleFollowUser","setFollowStatus","following","setFollowingStatus","fetchStatus","fetchFollowStatus","clearError","clearFollowError","fetchUserCounts","setFollowerCount","count","setFollowingCount","useEffect","catch","err","console","warn","followData","data","forEach","uid","toggleFollowForUser","targetUserId","currentState","setFollowStatusForUser","fetchStatusForUser","fetchAllStatuses","Promise","all","map","clearErrorForUser","updateCountsFromFollowAction","action","counts","currentUserId","getCurrentUserId","undefined","isAnyLoading","some","hasAnyError","allFollowing","every","allNotFollowing","exports","useFollowerCounts"],"sourceRoot":"../../../../src","sources":["ui/hooks/useFollow.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEO,MAAMG,SAAS,GAAIC,MAA0B,IAAK;EACvD,MAAM;IAAEC;EAAY,CAAC,GAAG,IAAAC,kBAAM,EAAC,CAAC;EAChC,MAAMC,OAAO,GAAG,IAAAC,cAAO,EAAC,MAAOC,KAAK,CAACC,OAAO,CAACN,MAAM,CAAC,GAAGA,MAAM,GAAGA,MAAM,GAAG,CAACA,MAAM,CAAC,GAAG,EAAG,EAAE,CAACA,MAAM,CAAC,CAAC;EAClG,MAAMO,YAAY,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useFollow.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useI18n = useI18n;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _OxyContext = require("../context/OxyContext");
|
|
9
|
-
var _i18n = require("../../i18n");
|
|
10
|
-
function useI18n() {
|
|
11
|
-
const {
|
|
12
|
-
currentLanguage
|
|
13
|
-
} = (0, _OxyContext.useOxy)();
|
|
14
|
-
const t = (0, _react.useMemo)(() => {
|
|
15
|
-
return (key, vars) => (0, _i18n.translate)(currentLanguage, key, vars);
|
|
16
|
-
}, [currentLanguage]);
|
|
17
|
-
return {
|
|
18
|
-
t,
|
|
19
|
-
locale: currentLanguage
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=useI18n.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_OxyContext","_i18n","useI18n","currentLanguage","useOxy","t","useMemo","key","vars","translate","locale"],"sourceRoot":"../../../../src","sources":["ui/hooks/useI18n.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEO,SAASG,OAAOA,CAAA,EAAG;EACxB,MAAM;IAAEC;EAAgB,CAAC,GAAG,IAAAC,kBAAM,EAAC,CAAC;EACpC,MAAMC,CAAC,GAAG,IAAAC,cAAO,EAAC,MAAM;IACtB,OAAO,CAACC,GAAW,EAAEC,IAAsC,KAAK,IAAAC,eAAS,EAACN,eAAe,EAAEI,GAAG,EAAEC,IAAI,CAAC;EACvG,CAAC,EAAE,CAACL,eAAe,CAAC,CAAC;EACrB,OAAO;IAAEE,CAAC;IAAEK,MAAM,EAAEP;EAAgB,CAAC;AACvC","ignoreList":[]}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useLanguageManagement = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _languageUtils = require("../../utils/languageUtils");
|
|
9
|
-
var _errorHandlers = require("../utils/errorHandlers");
|
|
10
|
-
const DEFAULT_LANGUAGE = 'en-US';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Manage UI language state, persistence, and metadata derivation.
|
|
14
|
-
*
|
|
15
|
-
* @param options - Configuration for storage access and error reporting
|
|
16
|
-
*/
|
|
17
|
-
const useLanguageManagement = ({
|
|
18
|
-
storage,
|
|
19
|
-
languageKey,
|
|
20
|
-
onError,
|
|
21
|
-
logger
|
|
22
|
-
}) => {
|
|
23
|
-
const [currentLanguage, setCurrentLanguage] = (0, _react.useState)(DEFAULT_LANGUAGE);
|
|
24
|
-
const loadLanguageFromStorage = (0, _react.useCallback)(async () => {
|
|
25
|
-
if (!storage) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
try {
|
|
29
|
-
const savedLanguageRaw = await storage.getItem(languageKey);
|
|
30
|
-
const normalized = (0, _languageUtils.normalizeLanguageCode)(savedLanguageRaw) || savedLanguageRaw;
|
|
31
|
-
if (normalized) {
|
|
32
|
-
setCurrentLanguage(normalized);
|
|
33
|
-
}
|
|
34
|
-
} catch (error) {
|
|
35
|
-
const message = (0, _errorHandlers.extractErrorMessage)(error, 'Failed to load language preference');
|
|
36
|
-
onError?.({
|
|
37
|
-
message,
|
|
38
|
-
code: 'LANGUAGE_LOAD_ERROR',
|
|
39
|
-
status: 500
|
|
40
|
-
});
|
|
41
|
-
if (logger) {
|
|
42
|
-
logger(message, error);
|
|
43
|
-
} else if (__DEV__) {
|
|
44
|
-
console.warn('Failed to load language preference:', error);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, [languageKey, logger, onError, storage]);
|
|
48
|
-
(0, _react.useEffect)(() => {
|
|
49
|
-
loadLanguageFromStorage().catch(error => {
|
|
50
|
-
if (logger) {
|
|
51
|
-
logger('Unexpected error loading language', error);
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}, [loadLanguageFromStorage, logger]);
|
|
55
|
-
const setLanguage = (0, _react.useCallback)(async languageId => {
|
|
56
|
-
if (!storage) {
|
|
57
|
-
throw new Error('Storage not initialized');
|
|
58
|
-
}
|
|
59
|
-
const normalized = (0, _languageUtils.normalizeLanguageCode)(languageId) || languageId;
|
|
60
|
-
try {
|
|
61
|
-
await storage.setItem(languageKey, normalized);
|
|
62
|
-
setCurrentLanguage(normalized);
|
|
63
|
-
} catch (error) {
|
|
64
|
-
const message = (0, _errorHandlers.extractErrorMessage)(error, 'Failed to save language preference');
|
|
65
|
-
onError?.({
|
|
66
|
-
message,
|
|
67
|
-
code: 'LANGUAGE_SAVE_ERROR',
|
|
68
|
-
status: 500
|
|
69
|
-
});
|
|
70
|
-
if (logger) {
|
|
71
|
-
logger(message, error);
|
|
72
|
-
} else if (__DEV__) {
|
|
73
|
-
console.warn('Failed to save language preference:', error);
|
|
74
|
-
}
|
|
75
|
-
throw error instanceof Error ? error : new Error(message);
|
|
76
|
-
}
|
|
77
|
-
}, [languageKey, logger, onError, storage]);
|
|
78
|
-
const applyLanguagePreference = (0, _react.useCallback)(async user => {
|
|
79
|
-
if (!storage || !user) {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
const userLanguage = user?.language;
|
|
83
|
-
if (!userLanguage) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
try {
|
|
87
|
-
const normalized = (0, _languageUtils.normalizeLanguageCode)(userLanguage) || userLanguage;
|
|
88
|
-
await storage.setItem(languageKey, normalized);
|
|
89
|
-
setCurrentLanguage(normalized);
|
|
90
|
-
} catch (error) {
|
|
91
|
-
if (logger) {
|
|
92
|
-
logger('Failed to apply server language preference', error);
|
|
93
|
-
} else if (__DEV__) {
|
|
94
|
-
console.warn('Failed to apply server language preference', error);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}, [languageKey, logger, storage]);
|
|
98
|
-
const metadata = (0, _react.useMemo)(() => (0, _languageUtils.getLanguageMetadata)(currentLanguage), [currentLanguage]);
|
|
99
|
-
const languageName = (0, _react.useMemo)(() => (0, _languageUtils.getLanguageName)(currentLanguage), [currentLanguage]);
|
|
100
|
-
const nativeLanguageName = (0, _react.useMemo)(() => (0, _languageUtils.getNativeLanguageName)(currentLanguage), [currentLanguage]);
|
|
101
|
-
return {
|
|
102
|
-
currentLanguage,
|
|
103
|
-
metadata,
|
|
104
|
-
languageName,
|
|
105
|
-
nativeLanguageName,
|
|
106
|
-
setLanguage,
|
|
107
|
-
applyLanguagePreference,
|
|
108
|
-
hydrateLanguage: loadLanguageFromStorage
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
exports.useLanguageManagement = useLanguageManagement;
|
|
112
|
-
//# sourceMappingURL=useLanguageManagement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_languageUtils","_errorHandlers","DEFAULT_LANGUAGE","useLanguageManagement","storage","languageKey","onError","logger","currentLanguage","setCurrentLanguage","useState","loadLanguageFromStorage","useCallback","savedLanguageRaw","getItem","normalized","normalizeLanguageCode","error","message","extractErrorMessage","code","status","__DEV__","console","warn","useEffect","catch","setLanguage","languageId","Error","setItem","applyLanguagePreference","user","userLanguage","language","metadata","useMemo","getLanguageMetadata","languageName","getLanguageName","nativeLanguageName","getNativeLanguageName","hydrateLanguage","exports"],"sourceRoot":"../../../../src","sources":["ui/hooks/useLanguageManagement.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AAQA,IAAAE,cAAA,GAAAF,OAAA;AAmBA,MAAMG,gBAAgB,GAAG,OAAO;;AAEhC;AACA;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W,EAAEU,UAAU,CAAC;MAC9CN,kBAAkB,CAACM,UAAU,CAAC;IAChC,CAAC,CAAC,OAAOE,KAAK,EAAE;MACd,IAAIV,MAAM,EAAE;QACVA,MAAM,CAAC,4CAA4C,EAAEU,KAAK,CAAC;MAC7D,CAAC,MAAM,IAAIK,OAAO,EAAE;QAClBC,OAAO,CAACC,IAAI,CAAC,4CAA4C,EAAEP,KAAK,CAAC;MACnE;IACF;EACF,CAAC,EACD,CAACZ,WAAW,EAAEE,MAAM,EAAEH,OAAO,CAC/B,CAAC;EAED,MAAM+B,QAAQ,GAAG,IAAAC,cAAO,EAAC,MAAM,IAAAC,kCAAmB,EAAC7B,eAAe,CAAC,EAAE,CAACA,eAAe,CAAC,CAAC;EACvF,MAAM8B,YAAY,GAAG,IAAAF,cAAO,EAAC,MAAM,IAAAG,8BAAe,EAAC/B,eAAe,CAAC,EAAE,CAACA,eAAe,CAAC,CAAC;EACvF,MAAMgC,kBAAkB,GAAG,IAAAJ,cAAO,EAChC,MAAM,IAAAK,oCAAqB,EAACjC,eAAe,CAAC,EAC5C,CAACA,eAAe,CAClB,CAAC;EAED,OAAO;IACLA,eAAe;IACf2B,QAAQ;IACRG,YAAY;IACZE,kBAAkB;IAClBb,WAAW;IACXI,uBAAuB;IACvBW,eAAe,EAAE/B;EACnB,CAAC;AACH,CAAC;AAACgC,OAAA,CAAAxC,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useProfileEditing = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _useI18n = require("./useI18n");
|
|
9
|
-
var _useAccountMutations = require("./mutations/useAccountMutations");
|
|
10
|
-
var _authStore = require("../stores/authStore");
|
|
11
|
-
/**
|
|
12
|
-
* Hook for managing profile editing operations
|
|
13
|
-
* Provides functions to update profile fields and handle saving
|
|
14
|
-
*/
|
|
15
|
-
const useProfileEditing = () => {
|
|
16
|
-
const {
|
|
17
|
-
t
|
|
18
|
-
} = (0, _useI18n.useI18n)();
|
|
19
|
-
const updateProfileMutation = (0, _useAccountMutations.useUpdateProfile)();
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Save profile updates to the server using TanStack Query
|
|
23
|
-
*/
|
|
24
|
-
const saveProfile = (0, _react.useCallback)(async updates => {
|
|
25
|
-
// Prepare update object
|
|
26
|
-
const updateData = {};
|
|
27
|
-
if (updates.username !== undefined) {
|
|
28
|
-
updateData.username = updates.username;
|
|
29
|
-
}
|
|
30
|
-
if (updates.email !== undefined) {
|
|
31
|
-
updateData.email = updates.email;
|
|
32
|
-
}
|
|
33
|
-
if (updates.bio !== undefined) {
|
|
34
|
-
updateData.bio = updates.bio;
|
|
35
|
-
}
|
|
36
|
-
if (updates.location !== undefined || updates.locations !== undefined) {
|
|
37
|
-
updateData.location = updates.locations && updates.locations.length > 0 ? updates.locations[0].name : updates.location || '';
|
|
38
|
-
if (updates.locations) {
|
|
39
|
-
updateData.locations = updates.locations;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
if (updates.links !== undefined) {
|
|
43
|
-
updateData.links = updates.links;
|
|
44
|
-
}
|
|
45
|
-
if (updates.linksMetadata !== undefined) {
|
|
46
|
-
updateData.linksMetadata = updates.linksMetadata;
|
|
47
|
-
}
|
|
48
|
-
if (updates.avatar !== undefined) {
|
|
49
|
-
updateData.avatar = updates.avatar;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Handle name field
|
|
53
|
-
if (updates.displayName !== undefined || updates.lastName !== undefined) {
|
|
54
|
-
const currentUser = _authStore.useAuthStore.getState().user;
|
|
55
|
-
const currentName = currentUser?.name;
|
|
56
|
-
updateData.name = {
|
|
57
|
-
first: updates.displayName ?? (typeof currentName === 'object' ? currentName?.first : '') ?? '',
|
|
58
|
-
last: updates.lastName ?? (typeof currentName === 'object' ? currentName?.last : '') ?? ''
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
try {
|
|
62
|
-
await updateProfileMutation.mutateAsync(updateData);
|
|
63
|
-
return true;
|
|
64
|
-
} catch (error) {
|
|
65
|
-
// Error toast is handled by the mutation
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
}, [updateProfileMutation, t]);
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Update a single profile field
|
|
72
|
-
*/
|
|
73
|
-
const updateField = (0, _react.useCallback)(async (field, value) => {
|
|
74
|
-
const updates = {};
|
|
75
|
-
switch (field) {
|
|
76
|
-
case 'displayName':
|
|
77
|
-
updates.displayName = value;
|
|
78
|
-
break;
|
|
79
|
-
case 'username':
|
|
80
|
-
updates.username = value;
|
|
81
|
-
break;
|
|
82
|
-
case 'email':
|
|
83
|
-
updates.email = value;
|
|
84
|
-
break;
|
|
85
|
-
case 'bio':
|
|
86
|
-
updates.bio = value;
|
|
87
|
-
break;
|
|
88
|
-
case 'location':
|
|
89
|
-
updates.locations = value;
|
|
90
|
-
break;
|
|
91
|
-
case 'links':
|
|
92
|
-
updates.linksMetadata = value;
|
|
93
|
-
updates.links = value.map(link => link.url || link);
|
|
94
|
-
break;
|
|
95
|
-
default:
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
return await saveProfile(updates);
|
|
99
|
-
}, [saveProfile]);
|
|
100
|
-
return {
|
|
101
|
-
saveProfile,
|
|
102
|
-
updateField,
|
|
103
|
-
isSaving: updateProfileMutation.isPending
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
exports.useProfileEditing = useProfileEditing;
|
|
107
|
-
//# sourceMappingURL=useProfileEditing.js.map
|