@replyke/core 7.0.0-beta.80 → 7.0.0-beta.82
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/dist/cjs/hooks/auth/index.d.ts +1 -1
- package/dist/cjs/hooks/auth/index.js.map +1 -1
- package/dist/cjs/hooks/auth/useAuth.d.ts +30 -27
- package/dist/cjs/hooks/auth/useAuth.js.map +1 -1
- package/dist/cjs/hooks/collections/index.d.ts +1 -1
- package/dist/cjs/hooks/collections/index.js.map +1 -1
- package/dist/cjs/hooks/collections/useCollections.d.ts +23 -18
- package/dist/cjs/hooks/collections/useCollections.js.map +1 -1
- package/dist/cjs/hooks/comments/index.d.ts +8 -0
- package/dist/cjs/hooks/comments/index.js.map +1 -1
- package/dist/cjs/hooks/comments/useCommentSectionData.d.ts +16 -13
- package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/cjs/hooks/comments/useCreateComment.d.ts +3 -2
- package/dist/cjs/hooks/comments/useCreateComment.js.map +1 -1
- package/dist/cjs/hooks/comments/useDeleteComment.d.ts +3 -2
- package/dist/cjs/hooks/comments/useDeleteComment.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchComment.d.ts +3 -2
- package/dist/cjs/hooks/comments/useFetchComment.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.d.ts +3 -2
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchManyComments.d.ts +3 -2
- package/dist/cjs/hooks/comments/useFetchManyComments.js.map +1 -1
- package/dist/cjs/hooks/comments/useReplies.d.ts +3 -2
- package/dist/cjs/hooks/comments/useReplies.js.map +1 -1
- package/dist/cjs/hooks/comments/useUpdateComment.d.ts +3 -2
- package/dist/cjs/hooks/comments/useUpdateComment.js.map +1 -1
- package/dist/cjs/hooks/crypto/index.d.ts +1 -0
- package/dist/cjs/hooks/crypto/useSignTestingJwt.d.ts +3 -2
- package/dist/cjs/hooks/crypto/useSignTestingJwt.js.map +1 -1
- package/dist/cjs/hooks/entities/useCreateEntity.d.ts +2 -2
- package/dist/cjs/hooks/entities/useCreateEntity.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/index.d.ts +1 -1
- package/dist/cjs/hooks/entity-lists/index.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/useEntityList.d.ts +18 -16
- package/dist/cjs/hooks/entity-lists/useEntityList.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/useInfusedData.d.ts +3 -2
- package/dist/cjs/hooks/entity-lists/useInfusedData.js +0 -1
- package/dist/cjs/hooks/entity-lists/useInfusedData.js.map +1 -1
- package/dist/cjs/hooks/reactions/index.d.ts +5 -1
- package/dist/cjs/hooks/reactions/useAddReaction.d.ts +3 -2
- package/dist/cjs/hooks/reactions/useAddReaction.js.map +1 -1
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.d.ts +3 -2
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.js.map +1 -1
- package/dist/cjs/hooks/reactions/useFetchEntityReactions.d.ts +3 -2
- package/dist/cjs/hooks/reactions/useFetchEntityReactions.js.map +1 -1
- package/dist/cjs/hooks/reactions/useReactionToggle.d.ts +4 -3
- package/dist/cjs/hooks/reactions/useReactionToggle.js.map +1 -1
- package/dist/cjs/hooks/reactions/useRemoveReaction.d.ts +3 -2
- package/dist/cjs/hooks/reactions/useRemoveReaction.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/index.d.ts +11 -0
- package/dist/cjs/hooks/relationships/connections/useAcceptConnection.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useAcceptConnection.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useConnectionManager.d.ts +2 -2
- package/dist/cjs/hooks/relationships/connections/useDeclineConnection.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useDeclineConnection.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionStatus.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionStatus.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsCountByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchReceivedPendingConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchSentPendingConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useRemoveConnection.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useRemoveConnection.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useRemoveConnectionByUserId.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useRemoveConnectionByUserId.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/index.d.ts +11 -0
- package/dist/cjs/hooks/relationships/follows/useFetchFollowStatus.d.ts +5 -3
- package/dist/cjs/hooks/relationships/follows/useFetchFollowStatus.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersCountByUserId.d.ts +3 -2
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersCountByUserId.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingCountByUserId.d.ts +3 -2
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingCountByUserId.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFollowManager.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFollowUser.d.ts +3 -2
- package/dist/cjs/hooks/relationships/follows/useFollowUser.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useUnfollowByFollowId.d.ts +3 -2
- package/dist/cjs/hooks/relationships/follows/useUnfollowByFollowId.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useUnfollowUserByUserId.d.ts +3 -2
- package/dist/cjs/hooks/relationships/follows/useUnfollowUserByUserId.js.map +1 -1
- package/dist/cjs/hooks/reports/index.d.ts +4 -0
- package/dist/cjs/hooks/reports/useCreateReport.d.ts +16 -3
- package/dist/cjs/hooks/reports/useCreateReport.js.map +1 -1
- package/dist/cjs/hooks/reports/useFetchModeratedReports.d.ts +3 -3
- package/dist/cjs/hooks/reports/useHandleSpaceCommentReport.d.ts +2 -2
- package/dist/cjs/hooks/reports/useHandleSpaceEntityReport.d.ts +2 -2
- package/dist/cjs/hooks/space-lists/index.d.ts +2 -1
- package/dist/cjs/hooks/space-lists/index.js.map +1 -1
- package/dist/cjs/hooks/space-lists/useSpaceList.d.ts +18 -16
- package/dist/cjs/hooks/space-lists/useSpaceList.js.map +1 -1
- package/dist/cjs/hooks/space-lists/useSpaceListActions.d.ts +3 -3
- package/dist/cjs/hooks/spaces/index.d.ts +21 -0
- package/dist/cjs/hooks/spaces/index.js.map +1 -1
- package/dist/cjs/hooks/spaces/useApproveMember.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useApproveMember.js.map +1 -1
- package/dist/cjs/hooks/spaces/useCheckMyMembership.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useCheckMyMembership.js.map +1 -1
- package/dist/cjs/hooks/spaces/useCheckSlugAvailability.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useCheckSlugAvailability.js.map +1 -1
- package/dist/cjs/hooks/spaces/useDeclineMember.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useDeclineMember.js.map +1 -1
- package/dist/cjs/hooks/spaces/useDeleteSpace.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useDeleteSpace.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchManySpaces.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useFetchManySpaces.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpace.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useFetchSpace.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceBreadcrumb.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceBreadcrumb.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceChildren.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceChildren.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceMembers.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceMembers.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceTeam.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceTeam.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchUserSpaces.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useFetchUserSpaces.js.map +1 -1
- package/dist/cjs/hooks/spaces/useJoinSpace.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useJoinSpace.js.map +1 -1
- package/dist/cjs/hooks/spaces/useLeaveSpace.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useLeaveSpace.js.map +1 -1
- package/dist/cjs/hooks/spaces/useModerateSpaceComment.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useModerateSpaceComment.js.map +1 -1
- package/dist/cjs/hooks/spaces/useModerateSpaceEntity.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useModerateSpaceEntity.js.map +1 -1
- package/dist/cjs/hooks/spaces/useRemoveMember.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useRemoveMember.js.map +1 -1
- package/dist/cjs/hooks/spaces/useSpacePermissions.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useUpdateMemberRole.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useUpdateMemberRole.js.map +1 -1
- package/dist/cjs/hooks/storage/index.d.ts +1 -1
- package/dist/cjs/hooks/storage/index.js.map +1 -1
- package/dist/cjs/hooks/storage/useUploadFile.d.ts +6 -6
- package/dist/cjs/hooks/storage/useUploadFile.js.map +1 -1
- package/dist/cjs/hooks/storage/useUploadImage.d.ts +2 -2
- package/dist/cjs/hooks/storage/useUploadImage.js.map +1 -1
- package/dist/cjs/hooks/users/index.d.ts +6 -6
- package/dist/cjs/hooks/users/index.js.map +1 -1
- package/dist/cjs/hooks/users/useCheckUsernameAvailability.d.ts +3 -2
- package/dist/cjs/hooks/users/useCheckUsernameAvailability.js.map +1 -1
- package/dist/cjs/hooks/users/useFetchUser.d.ts +3 -2
- package/dist/cjs/hooks/users/useFetchUser.js.map +1 -1
- package/dist/cjs/hooks/users/useFetchUserByForeignId.d.ts +3 -2
- package/dist/cjs/hooks/users/useFetchUserByForeignId.js.map +1 -1
- package/dist/cjs/hooks/users/useFetchUserByUsername.d.ts +3 -2
- package/dist/cjs/hooks/users/useFetchUserByUsername.js.map +1 -1
- package/dist/cjs/hooks/users/useFetchUserSuggestions.d.ts +3 -2
- package/dist/cjs/hooks/users/useFetchUserSuggestions.js.map +1 -1
- package/dist/cjs/hooks/users/useMentions.d.ts +3 -2
- package/dist/cjs/hooks/users/useMentions.js.map +1 -1
- package/dist/cjs/hooks/utils/index.d.ts +1 -1
- package/dist/cjs/hooks/utils/index.js.map +1 -1
- package/dist/cjs/hooks/utils/useGetMetadata.d.ts +4 -2
- package/dist/cjs/hooks/utils/useGetMetadata.js.map +1 -1
- package/dist/cjs/index.d.ts +16 -18
- package/dist/cjs/index.js +6 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/UrlMetadata.d.ts +92 -0
- package/dist/cjs/interfaces/UrlMetadata.js +3 -0
- package/dist/cjs/interfaces/UrlMetadata.js.map +1 -0
- package/dist/cjs/store/slices/authThunks.js +14 -19
- package/dist/cjs/store/slices/authThunks.js.map +1 -1
- package/dist/esm/hooks/auth/index.d.ts +1 -1
- package/dist/esm/hooks/auth/index.js.map +1 -1
- package/dist/esm/hooks/auth/useAuth.d.ts +30 -27
- package/dist/esm/hooks/auth/useAuth.js.map +1 -1
- package/dist/esm/hooks/collections/index.d.ts +1 -1
- package/dist/esm/hooks/collections/index.js.map +1 -1
- package/dist/esm/hooks/collections/useCollections.d.ts +23 -18
- package/dist/esm/hooks/collections/useCollections.js.map +1 -1
- package/dist/esm/hooks/comments/index.d.ts +8 -0
- package/dist/esm/hooks/comments/index.js.map +1 -1
- package/dist/esm/hooks/comments/useCommentSectionData.d.ts +16 -13
- package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/esm/hooks/comments/useCreateComment.d.ts +3 -2
- package/dist/esm/hooks/comments/useCreateComment.js.map +1 -1
- package/dist/esm/hooks/comments/useDeleteComment.d.ts +3 -2
- package/dist/esm/hooks/comments/useDeleteComment.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchComment.d.ts +3 -2
- package/dist/esm/hooks/comments/useFetchComment.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.d.ts +3 -2
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchManyComments.d.ts +3 -2
- package/dist/esm/hooks/comments/useFetchManyComments.js.map +1 -1
- package/dist/esm/hooks/comments/useReplies.d.ts +3 -2
- package/dist/esm/hooks/comments/useReplies.js.map +1 -1
- package/dist/esm/hooks/comments/useUpdateComment.d.ts +3 -2
- package/dist/esm/hooks/comments/useUpdateComment.js.map +1 -1
- package/dist/esm/hooks/crypto/index.d.ts +1 -0
- package/dist/esm/hooks/crypto/useSignTestingJwt.d.ts +3 -2
- package/dist/esm/hooks/crypto/useSignTestingJwt.js.map +1 -1
- package/dist/esm/hooks/entities/useCreateEntity.d.ts +2 -2
- package/dist/esm/hooks/entities/useCreateEntity.js.map +1 -1
- package/dist/esm/hooks/entity-lists/index.d.ts +1 -1
- package/dist/esm/hooks/entity-lists/index.js.map +1 -1
- package/dist/esm/hooks/entity-lists/useEntityList.d.ts +18 -16
- package/dist/esm/hooks/entity-lists/useEntityList.js.map +1 -1
- package/dist/esm/hooks/entity-lists/useInfusedData.d.ts +3 -2
- package/dist/esm/hooks/entity-lists/useInfusedData.js +0 -1
- package/dist/esm/hooks/entity-lists/useInfusedData.js.map +1 -1
- package/dist/esm/hooks/reactions/index.d.ts +5 -1
- package/dist/esm/hooks/reactions/useAddReaction.d.ts +3 -2
- package/dist/esm/hooks/reactions/useAddReaction.js.map +1 -1
- package/dist/esm/hooks/reactions/useFetchCommentReactions.d.ts +3 -2
- package/dist/esm/hooks/reactions/useFetchCommentReactions.js.map +1 -1
- package/dist/esm/hooks/reactions/useFetchEntityReactions.d.ts +3 -2
- package/dist/esm/hooks/reactions/useFetchEntityReactions.js.map +1 -1
- package/dist/esm/hooks/reactions/useReactionToggle.d.ts +4 -3
- package/dist/esm/hooks/reactions/useReactionToggle.js.map +1 -1
- package/dist/esm/hooks/reactions/useRemoveReaction.d.ts +3 -2
- package/dist/esm/hooks/reactions/useRemoveReaction.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/index.d.ts +11 -0
- package/dist/esm/hooks/relationships/connections/useAcceptConnection.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useAcceptConnection.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useConnectionManager.d.ts +2 -2
- package/dist/esm/hooks/relationships/connections/useDeclineConnection.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useDeclineConnection.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionStatus.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useFetchConnectionStatus.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsCountByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchReceivedPendingConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchSentPendingConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useRemoveConnection.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useRemoveConnection.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useRemoveConnectionByUserId.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useRemoveConnectionByUserId.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/index.d.ts +11 -0
- package/dist/esm/hooks/relationships/follows/useFetchFollowStatus.d.ts +5 -3
- package/dist/esm/hooks/relationships/follows/useFetchFollowStatus.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowersCountByUserId.d.ts +3 -2
- package/dist/esm/hooks/relationships/follows/useFetchFollowersCountByUserId.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowingCountByUserId.d.ts +3 -2
- package/dist/esm/hooks/relationships/follows/useFetchFollowingCountByUserId.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFollowManager.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFollowUser.d.ts +3 -2
- package/dist/esm/hooks/relationships/follows/useFollowUser.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useUnfollowByFollowId.d.ts +3 -2
- package/dist/esm/hooks/relationships/follows/useUnfollowByFollowId.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useUnfollowUserByUserId.d.ts +3 -2
- package/dist/esm/hooks/relationships/follows/useUnfollowUserByUserId.js.map +1 -1
- package/dist/esm/hooks/reports/index.d.ts +4 -0
- package/dist/esm/hooks/reports/useCreateReport.d.ts +16 -3
- package/dist/esm/hooks/reports/useCreateReport.js.map +1 -1
- package/dist/esm/hooks/reports/useFetchModeratedReports.d.ts +3 -3
- package/dist/esm/hooks/reports/useHandleSpaceCommentReport.d.ts +2 -2
- package/dist/esm/hooks/reports/useHandleSpaceEntityReport.d.ts +2 -2
- package/dist/esm/hooks/space-lists/index.d.ts +2 -1
- package/dist/esm/hooks/space-lists/index.js.map +1 -1
- package/dist/esm/hooks/space-lists/useSpaceList.d.ts +18 -16
- package/dist/esm/hooks/space-lists/useSpaceList.js.map +1 -1
- package/dist/esm/hooks/space-lists/useSpaceListActions.d.ts +3 -3
- package/dist/esm/hooks/spaces/index.d.ts +21 -0
- package/dist/esm/hooks/spaces/index.js.map +1 -1
- package/dist/esm/hooks/spaces/useApproveMember.d.ts +2 -2
- package/dist/esm/hooks/spaces/useApproveMember.js.map +1 -1
- package/dist/esm/hooks/spaces/useCheckMyMembership.d.ts +3 -2
- package/dist/esm/hooks/spaces/useCheckMyMembership.js.map +1 -1
- package/dist/esm/hooks/spaces/useCheckSlugAvailability.d.ts +3 -2
- package/dist/esm/hooks/spaces/useCheckSlugAvailability.js.map +1 -1
- package/dist/esm/hooks/spaces/useDeclineMember.d.ts +2 -2
- package/dist/esm/hooks/spaces/useDeclineMember.js.map +1 -1
- package/dist/esm/hooks/spaces/useDeleteSpace.d.ts +3 -2
- package/dist/esm/hooks/spaces/useDeleteSpace.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchManySpaces.d.ts +2 -2
- package/dist/esm/hooks/spaces/useFetchManySpaces.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpace.d.ts +3 -2
- package/dist/esm/hooks/spaces/useFetchSpace.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceBreadcrumb.d.ts +3 -2
- package/dist/esm/hooks/spaces/useFetchSpaceBreadcrumb.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceByShortId.d.ts +3 -2
- package/dist/esm/hooks/spaces/useFetchSpaceByShortId.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceBySlug.d.ts +3 -2
- package/dist/esm/hooks/spaces/useFetchSpaceBySlug.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceChildren.d.ts +2 -2
- package/dist/esm/hooks/spaces/useFetchSpaceChildren.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceMembers.d.ts +2 -2
- package/dist/esm/hooks/spaces/useFetchSpaceMembers.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceTeam.d.ts +2 -2
- package/dist/esm/hooks/spaces/useFetchSpaceTeam.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchUserSpaces.d.ts +2 -2
- package/dist/esm/hooks/spaces/useFetchUserSpaces.js.map +1 -1
- package/dist/esm/hooks/spaces/useJoinSpace.d.ts +3 -2
- package/dist/esm/hooks/spaces/useJoinSpace.js.map +1 -1
- package/dist/esm/hooks/spaces/useLeaveSpace.d.ts +3 -2
- package/dist/esm/hooks/spaces/useLeaveSpace.js.map +1 -1
- package/dist/esm/hooks/spaces/useModerateSpaceComment.d.ts +2 -2
- package/dist/esm/hooks/spaces/useModerateSpaceComment.js.map +1 -1
- package/dist/esm/hooks/spaces/useModerateSpaceEntity.d.ts +2 -2
- package/dist/esm/hooks/spaces/useModerateSpaceEntity.js.map +1 -1
- package/dist/esm/hooks/spaces/useRemoveMember.d.ts +2 -2
- package/dist/esm/hooks/spaces/useRemoveMember.js.map +1 -1
- package/dist/esm/hooks/spaces/useSpacePermissions.d.ts +2 -2
- package/dist/esm/hooks/spaces/useUpdateMemberRole.d.ts +2 -2
- package/dist/esm/hooks/spaces/useUpdateMemberRole.js.map +1 -1
- package/dist/esm/hooks/storage/index.d.ts +1 -1
- package/dist/esm/hooks/storage/index.js +1 -1
- package/dist/esm/hooks/storage/index.js.map +1 -1
- package/dist/esm/hooks/storage/useUploadFile.d.ts +6 -6
- package/dist/esm/hooks/storage/useUploadFile.js.map +1 -1
- package/dist/esm/hooks/storage/useUploadImage.d.ts +2 -2
- package/dist/esm/hooks/storage/useUploadImage.js.map +1 -1
- package/dist/esm/hooks/users/index.d.ts +6 -6
- package/dist/esm/hooks/users/index.js +6 -6
- package/dist/esm/hooks/users/index.js.map +1 -1
- package/dist/esm/hooks/users/useCheckUsernameAvailability.d.ts +3 -2
- package/dist/esm/hooks/users/useCheckUsernameAvailability.js.map +1 -1
- package/dist/esm/hooks/users/useFetchUser.d.ts +3 -2
- package/dist/esm/hooks/users/useFetchUser.js.map +1 -1
- package/dist/esm/hooks/users/useFetchUserByForeignId.d.ts +3 -2
- package/dist/esm/hooks/users/useFetchUserByForeignId.js.map +1 -1
- package/dist/esm/hooks/users/useFetchUserByUsername.d.ts +3 -2
- package/dist/esm/hooks/users/useFetchUserByUsername.js.map +1 -1
- package/dist/esm/hooks/users/useFetchUserSuggestions.d.ts +3 -2
- package/dist/esm/hooks/users/useFetchUserSuggestions.js.map +1 -1
- package/dist/esm/hooks/users/useMentions.d.ts +3 -2
- package/dist/esm/hooks/users/useMentions.js.map +1 -1
- package/dist/esm/hooks/utils/index.d.ts +1 -1
- package/dist/esm/hooks/utils/index.js +1 -1
- package/dist/esm/hooks/utils/index.js.map +1 -1
- package/dist/esm/hooks/utils/useGetMetadata.d.ts +4 -2
- package/dist/esm/hooks/utils/useGetMetadata.js.map +1 -1
- package/dist/esm/index.d.ts +16 -18
- package/dist/esm/index.js +4 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/UrlMetadata.d.ts +92 -0
- package/dist/esm/interfaces/UrlMetadata.js +2 -0
- package/dist/esm/interfaces/UrlMetadata.js.map +1 -0
- package/dist/esm/store/slices/authThunks.js +14 -19
- package/dist/esm/store/slices/authThunks.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModerateSpaceEntity.js","sourceRoot":"","sources":["../../../../src/hooks/spaces/useModerateSpaceEntity.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,sEAAgD;AAChD,iFAA2D;AAc3D;;;;;;;;;;;;;GAaG;AACH,SAAS,sBAAsB;IAA/B,iBA8BC;IA7BS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IACnC,IAAM,KAAK,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEhC,IAAM,mBAAmB,GAAG,IAAA,mBAAW,EACrC,gEAAO,
|
|
1
|
+
{"version":3,"file":"useModerateSpaceEntity.js","sourceRoot":"","sources":["../../../../src/hooks/spaces/useModerateSpaceEntity.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,sEAAgD;AAChD,iFAA2D;AAc3D;;;;;;;;;;;;;GAaG;AACH,SAAS,sBAAsB;IAA/B,iBA8BC;IA7BS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IACnC,IAAM,KAAK,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEhC,IAAM,mBAAmB,GAAG,IAAA,mBAAW,EACrC,gEAAO,EAKoB;;YAJzB,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,MAAM,YAAA;;;;oBAEN,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAED,IAAI,CAAC,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;wBAC1B,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;oBACxD,CAAC;oBAEgB,qBAAM,KAAK,CAAC,KAAK,CAChC,WAAI,SAAS,qBAAW,OAAO,uBAAa,QAAQ,gBAAa,EACjE,EAAE,MAAM,QAAA,EAAE,MAAM,QAAA,EAAE,CACnB,EAAA;;oBAHK,QAAQ,GAAG,SAGhB;oBAED,sBAAO,QAAQ,CAAC,IAAwB,EAAC;;;SAC1C,EACD,CAAC,SAAS,EAAE,KAAK,CAAC,CACnB,CAAC;IAEF,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAED,kBAAe,sBAAsB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface RemoveMemberProps {
|
|
2
2
|
spaceId: string;
|
|
3
3
|
memberId: string;
|
|
4
4
|
}
|
|
5
5
|
interface RemoveMemberResponse {
|
|
6
6
|
message: string;
|
|
7
7
|
}
|
|
8
|
-
declare function useRemoveMember(): ({ spaceId, memberId }:
|
|
8
|
+
declare function useRemoveMember(): ({ spaceId, memberId }: RemoveMemberProps) => Promise<RemoveMemberResponse>;
|
|
9
9
|
export default useRemoveMember;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRemoveMember.js","sourceRoot":"","sources":["../../../../src/hooks/spaces/useRemoveMember.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,sEAAgD;AAChD,iFAA2D;AAW3D,SAAS,eAAe;IAAxB,iBAwBC;IAvBS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IACnC,IAAM,KAAK,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEhC,IAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,gEAAO,
|
|
1
|
+
{"version":3,"file":"useRemoveMember.js","sourceRoot":"","sources":["../../../../src/hooks/spaces/useRemoveMember.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,sEAAgD;AAChD,iFAA2D;AAW3D,SAAS,eAAe;IAAxB,iBAwBC;IAvBS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IACnC,IAAM,KAAK,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEhC,IAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,gEAAO,EAAwC;;YAAtC,OAAO,aAAA,EAAE,QAAQ,cAAA;;;;oBACxB,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAED,IAAI,CAAC,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;wBAC1B,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;oBACvD,CAAC;oBAEgB,qBAAM,KAAK,CAAC,MAAM,CACjC,WAAI,SAAS,qBAAW,OAAO,sBAAY,QAAQ,CAAE,CACtD,EAAA;;oBAFK,QAAQ,GAAG,SAEhB;oBAED,sBAAO,QAAQ,CAAC,IAA4B,EAAC;;;SAC9C,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SpaceMemberPermissions, PostingPermission, ReadingPermission } from "../../interfaces/models/Space";
|
|
2
|
-
interface UseSpacePermissionsProps {
|
|
2
|
+
export interface UseSpacePermissionsProps {
|
|
3
3
|
memberPermissions: SpaceMemberPermissions | null | undefined;
|
|
4
4
|
postingPermission: PostingPermission;
|
|
5
5
|
readingPermission?: ReadingPermission;
|
|
6
6
|
}
|
|
7
|
-
interface UseSpacePermissionsValues {
|
|
7
|
+
export interface UseSpacePermissionsValues {
|
|
8
8
|
isMember: boolean;
|
|
9
9
|
isAdmin: boolean;
|
|
10
10
|
isModerator: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SpaceMemberRole } from "../../interfaces/models/SpaceMember";
|
|
2
2
|
import { UpdateMemberRoleResponse } from "../../interfaces/models/Space";
|
|
3
|
-
interface
|
|
3
|
+
export interface UpdateMemberRoleProps {
|
|
4
4
|
spaceId: string;
|
|
5
5
|
memberId: string;
|
|
6
6
|
role: SpaceMemberRole;
|
|
7
7
|
}
|
|
8
|
-
declare function useUpdateMemberRole(): ({ spaceId, memberId, role }:
|
|
8
|
+
declare function useUpdateMemberRole(): ({ spaceId, memberId, role }: UpdateMemberRoleProps) => Promise<UpdateMemberRoleResponse>;
|
|
9
9
|
export default useUpdateMemberRole;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUpdateMemberRole.js","sourceRoot":"","sources":["../../../../src/hooks/spaces/useUpdateMemberRole.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,sEAAgD;AAGhD,iFAA2D;AAQ3D,SAAS,mBAAmB;IAA5B,iBAyBC;IAxBS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IACnC,IAAM,KAAK,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEhC,IAAM,gBAAgB,GAAG,IAAA,mBAAW,EAClC,gEAAO,
|
|
1
|
+
{"version":3,"file":"useUpdateMemberRole.js","sourceRoot":"","sources":["../../../../src/hooks/spaces/useUpdateMemberRole.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,sEAAgD;AAGhD,iFAA2D;AAQ3D,SAAS,mBAAmB;IAA5B,iBAyBC;IAxBS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IACnC,IAAM,KAAK,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEhC,IAAM,gBAAgB,GAAG,IAAA,mBAAW,EAClC,gEAAO,EAAkD;;YAAhD,OAAO,aAAA,EAAE,QAAQ,cAAA,EAAE,IAAI,UAAA;;;;oBAC9B,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAED,IAAI,CAAC,OAAO,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;wBACnC,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;oBAC9D,CAAC;oBAEgB,qBAAM,KAAK,CAAC,KAAK,CAChC,WAAI,SAAS,qBAAW,OAAO,sBAAY,QAAQ,UAAO,EAC1D,EAAE,IAAI,MAAA,EAAE,CACT,EAAA;;oBAHK,QAAQ,GAAG,SAGhB;oBAED,sBAAO,QAAQ,CAAC,IAAgC,EAAC;;;SAClD,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as useUploadFile } from "./useUploadFile";
|
|
1
|
+
export { default as useUploadFile, type RNFile, type UploadFileOptions, type UploadResponse, } from "./useUploadFile";
|
|
2
2
|
export { default as useUploadImage } from "./useUploadImage";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/storage/index.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/storage/index.ts"],"names":[],"mappings":";;;;;;AAAA,iDAKyB;AAJvB,+HAAA,OAAO,OAAiB;AAK1B,mDAA6D;AAApD,iIAAA,OAAO,OAAkB"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
type BrowserFile = File;
|
|
2
|
-
|
|
2
|
+
export interface RNFile {
|
|
3
3
|
uri: string;
|
|
4
4
|
name: string;
|
|
5
5
|
type?: string;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
type UniversalFile = BrowserFile | RNFile;
|
|
8
|
-
|
|
8
|
+
export interface UploadFileOptions {
|
|
9
9
|
entityId?: string;
|
|
10
10
|
commentId?: string;
|
|
11
11
|
spaceId?: string;
|
|
12
12
|
position?: number;
|
|
13
13
|
metadata?: Record<string, any>;
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
}
|
|
15
|
+
export interface UploadResponse {
|
|
16
16
|
fileId: string;
|
|
17
17
|
type: "image" | "video" | "document" | "other";
|
|
18
18
|
relativePath: string;
|
|
@@ -20,6 +20,6 @@ type UploadResponse = {
|
|
|
20
20
|
size: number;
|
|
21
21
|
mimeType: string;
|
|
22
22
|
createdAt: string;
|
|
23
|
-
}
|
|
23
|
+
}
|
|
24
24
|
declare function useUploadFile(): (file: UniversalFile, pathParts: string[], options?: UploadFileOptions) => Promise<UploadResponse>;
|
|
25
25
|
export default useUploadFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUploadFile.js","sourceRoot":"","sources":["../../../../src/hooks/storage/useUploadFile.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,iFAA2D;AAC3D,sEAAgD;AAEhD,mDAAmD;AACnD,SAAS,aAAa,CAAC,IAAmB;IACxC,OAAO,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,YAAY,IAAI,CAAC;AAC7D,CAAC;
|
|
1
|
+
{"version":3,"file":"useUploadFile.js","sourceRoot":"","sources":["../../../../src/hooks/storage/useUploadFile.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,iFAA2D;AAC3D,sEAAgD;AAEhD,mDAAmD;AACnD,SAAS,aAAa,CAAC,IAAmB;IACxC,OAAO,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,YAAY,IAAI,CAAC;AAC7D,CAAC;AA8BD,SAAS,aAAa;IAAtB,iBAiEC;IAhEC,IAAM,KAAK,GAAG,IAAA,yBAAe,GAAE,CAAC;IACxB,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,UAAU,GAAG,IAAA,mBAAW,EAC5B,UACE,IAAmB,EACnB,SAAmB,EACnB,OAA2B;;;;;oBAE3B,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAED,IAAI,CAAC,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;wBACrD,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC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CAAC;oBACD,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,EAAE,CAAC;wBACtB,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;oBAChE,CAAC;oBAGgB,qBAAM,KAAK,CAAC,IAAI,CAAC,WAAI,SAAS,aAAU,EAAE,QAAQ,EAAE;4BACnE,OAAO,EAAE;gCACP,cAAc,EAAE,qBAAqB;6BACtC;4BACD,eAAe,EAAE,IAAI;yBACtB,CAAC,EAAA;;oBALI,QAAQ,GAAG,SAKf;oBAEF,sBAAO,QAAQ,CAAC,IAAsB,EAAC;;;SACxC,EACD,CAAC,SAAS,EAAE,KAAK,CAAC,CACnB,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Image, UploadImageOptions } from "../../interfaces/models/Image";
|
|
2
2
|
type BrowserFile = File;
|
|
3
|
-
|
|
3
|
+
interface RNFile {
|
|
4
4
|
uri: string;
|
|
5
5
|
name: string;
|
|
6
6
|
type?: string;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
type UniversalFile = BrowserFile | RNFile;
|
|
9
9
|
declare function useUploadImage(): {
|
|
10
10
|
uploadImage: (file: UniversalFile, options: UploadImageOptions) => Promise<Image>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUploadImage.js","sourceRoot":"","sources":["../../../../src/hooks/storage/useUploadImage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA8C;AAC9C,iFAA2D;AAC3D,sEAAgD;AAGhD,gEAAgE;AAChE,SAAS,aAAa,CAAC,IAAmB;IACxC,OAAO,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,YAAY,IAAI,CAAC;AAC7D,CAAC;
|
|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AAiB,EAC9B,QAAQ,EACR;4BACE,OAAO,EAAE;gCACP,cAAc,EAAE,qBAAqB;6BACtC;4BACD,eAAe,EAAE,IAAI;4BACrB,gBAAgB,EAAE,UAAC,aAAa;;gCAC9B,IAAI,aAAa,CAAC,KAAK,EAAE,CAAC;oCACxB,IAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CACjC,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,aAAa,CAAC,KAAK,CACnD,CAAC;oCACF,WAAW,CAAC,gBAAgB,CAAC,CAAC;oCAC9B,MAAA,OAAO,CAAC,UAAU,wDAAG,gBAAgB,CAAC,CAAC;gCACzC,CAAC;4BACH,CAAC;yBACF,CACF,EAAA;;oBAlBK,QAAQ,GAAG,SAkBhB;oBAED,sBAAO,QAAQ,CAAC,IAAa,EAAC;;oBAE9B,YAAY,CAAC,KAAK,CAAC,CAAC;oBACpB,WAAW,CAAC,CAAC,CAAC,CAAC;;;;;SAElB,EACD,CAAC,SAAS,EAAE,KAAK,CAAC,CACnB,CAAC;IAEF,OAAO;QACL,WAAW,aAAA;QACX,SAAS,WAAA;QACT,QAAQ,UAAA;KACT,CAAC;AACJ,CAAC;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as useFetchUser } from "./useFetchUser";
|
|
2
|
-
export { default as useFetchUserByForeignId } from "./useFetchUserByForeignId";
|
|
3
|
-
export { default as useFetchUserByUsername } from "./useFetchUserByUsername";
|
|
4
|
-
export { default as useCheckUsernameAvailability } from "./useCheckUsernameAvailability";
|
|
5
|
-
export { default as useFetchUserSuggestions } from "./useFetchUserSuggestions";
|
|
6
|
-
export { default as useMentions } from "./useMentions";
|
|
1
|
+
export { default as useFetchUser, type FetchUserProps, } from "./useFetchUser";
|
|
2
|
+
export { default as useFetchUserByForeignId, type FetchUserByForeignIdProps, } from "./useFetchUserByForeignId";
|
|
3
|
+
export { default as useFetchUserByUsername, type FetchUserByUsernameProps, } from "./useFetchUserByUsername";
|
|
4
|
+
export { default as useCheckUsernameAvailability, type CheckUsernameAvailabilityProps, } from "./useCheckUsernameAvailability";
|
|
5
|
+
export { default as useFetchUserSuggestions, type FetchUserSuggestionsProps, } from "./useFetchUserSuggestions";
|
|
6
|
+
export { default as useMentions, type UseMentionsProps, } from "./useMentions";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/users/index.ts"],"names":[],"mappings":";;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/users/index.ts"],"names":[],"mappings":";;;;;;AAAA,+CAGwB;AAFtB,6HAAA,OAAO,OAAgB;AAGzB,qEAGmC;AAFjC,mJAAA,OAAO,OAA2B;AAGpC,mEAGkC;AAFhC,iJAAA,OAAO,OAA0B;AAGnC,+EAGwC;AAFtC,6JAAA,OAAO,OAAgC;AAGzC,qEAGmC;AAFjC,mJAAA,OAAO,OAA2B;AAGpC,6CAGuB;AAFrB,2HAAA,OAAO,OAAe"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export interface CheckUsernameAvailabilityProps {
|
|
2
2
|
username: string;
|
|
3
|
-
}
|
|
3
|
+
}
|
|
4
|
+
declare function useCheckUsernameAvailability(): ({ username }: CheckUsernameAvailabilityProps) => Promise<{
|
|
4
5
|
available: boolean;
|
|
5
6
|
}>;
|
|
6
7
|
export default useCheckUsernameAvailability;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCheckUsernameAvailability.js","sourceRoot":"","sources":["../../../../src/hooks/users/useCheckUsernameAvailability.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AAEpC,sEAAgD;AAChD,6DAAuC;
|
|
1
|
+
{"version":3,"file":"useCheckUsernameAvailability.js","sourceRoot":"","sources":["../../../../src/hooks/users/useCheckUsernameAvailability.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AAEpC,sEAAgD;AAChD,6DAAuC;AAMvC,SAAS,4BAA4B;IAArC,iBAyBC;IAxBS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,yBAAyB,GAAG,IAAA,mBAAW,EAC3C,gEAAO,EAA4C;;YAA1C,QAAQ,cAAA;;;;oBACf,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,QAAQ,EAAE,CAAC;wBACd,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;oBAC/C,CAAC;oBAEgB,qBAAM,eAAK,CAAC,GAAG,CAAC,WAAI,SAAS,0BAAuB,EAAE;4BACrE,MAAM,EAAE,EAAE,QAAQ,UAAA,EAAE;yBACrB,CAAC,EAAA;;oBAFI,QAAQ,GAAG,SAEf;oBAEF,sBAAO,QAAQ,CAAC,IAEf,EAAC;;;SACH,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,yBAAyB,CAAC;AACnC,CAAC;AAED,kBAAe,4BAA4B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { User, UserIncludeParam } from "../../interfaces/models/User";
|
|
2
|
-
|
|
2
|
+
export interface FetchUserProps {
|
|
3
3
|
userId: string;
|
|
4
4
|
include?: UserIncludeParam;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
|
+
declare function useFetchUser(): ({ userId, include, }: FetchUserProps) => Promise<User>;
|
|
6
7
|
export default useFetchUser;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchUser.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUser.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AAEpC,sEAAgD;AAChD,6DAAuC;
|
|
1
|
+
{"version":3,"file":"useFetchUser.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUser.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AAEpC,sEAAgD;AAChD,6DAAuC;AAQvC,SAAS,YAAY;IAArB,iBA4BC;IA3BS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,SAAS,GAAG,IAAA,mBAAW,EAC3B,gEAAO,EAGU;;YAFf,MAAM,YAAA,EACN,OAAO,aAAA;;;;oBAEP,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,MAAM,EAAE,CAAC;wBACZ,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;oBAC9C,CAAC;oBAEgB,qBAAM,eAAK,CAAC,GAAG,CAAC,WAAI,SAAS,oBAAU,MAAM,CAAE,EAAE;4BAChE,MAAM,EAAE;gCACN,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO;6BAC9D;yBACF,CAAC,EAAA;;oBAJI,QAAQ,GAAG,SAIf;oBAEF,sBAAO,QAAQ,CAAC,IAAY,EAAC;;;SAC9B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { User, UserIncludeParam } from "../../interfaces/models/User";
|
|
2
|
-
|
|
2
|
+
export interface FetchUserByForeignIdProps {
|
|
3
3
|
foreignId: string;
|
|
4
4
|
include?: UserIncludeParam;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
|
+
declare function useFetchUserByForeignId(): ({ foreignId, include, }: FetchUserByForeignIdProps) => Promise<User>;
|
|
6
7
|
export default useFetchUserByForeignId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchUserByForeignId.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserByForeignId.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AAEpC,sEAAgD;AAChD,6DAAuC;
|
|
1
|
+
{"version":3,"file":"useFetchUserByForeignId.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserByForeignId.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AAEpC,sEAAgD;AAChD,6DAAuC;AAQvC,SAAS,uBAAuB;IAAhC,iBA6BC;IA5BS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,oBAAoB,GAAG,IAAA,mBAAW,EACtC,gEAAO,EAGqB;;YAF1B,SAAS,eAAA,EACT,OAAO,aAAA;;;;oBAEP,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;oBACjD,CAAC;oBAEgB,qBAAM,eAAK,CAAC,GAAG,CAAC,WAAI,SAAS,yBAAsB,EAAE;4BACpE,MAAM,EAAE;gCACN,SAAS,WAAA;gCACT,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO;6BAC9D;yBACF,CAAC,EAAA;;oBALI,QAAQ,GAAG,SAKf;oBAEF,sBAAO,QAAQ,CAAC,IAAY,EAAC;;;SAC9B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAED,kBAAe,uBAAuB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { User, UserIncludeParam } from "../../interfaces/models/User";
|
|
2
|
-
|
|
2
|
+
export interface FetchUserByUsernameProps {
|
|
3
3
|
username: string;
|
|
4
4
|
include?: UserIncludeParam;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
|
+
declare function useFetchUserByUsername(): ({ username, include, }: FetchUserByUsernameProps) => Promise<User>;
|
|
6
7
|
export default useFetchUserByUsername;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchUserByUsername.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserByUsername.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AAEpC,sEAAgD;AAChD,6DAAuC;
|
|
1
|
+
{"version":3,"file":"useFetchUserByUsername.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserByUsername.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AAEpC,sEAAgD;AAChD,6DAAuC;AAQvC,SAAS,sBAAsB;IAA/B,iBA6BC;IA5BS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,mBAAmB,GAAG,IAAA,mBAAW,EACrC,gEAAO,EAGoB;;YAFzB,QAAQ,cAAA,EACR,OAAO,aAAA;;;;oBAEP,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,QAAQ,EAAE,CAAC;wBACd,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;oBAC/C,CAAC;oBAEgB,qBAAM,eAAK,CAAC,GAAG,CAAC,WAAI,SAAS,uBAAoB,EAAE;4BAClE,MAAM,EAAE;gCACN,QAAQ,UAAA;gCACR,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO;6BAC9D;yBACF,CAAC,EAAA;;oBALI,QAAQ,GAAG,SAKf;oBAEF,sBAAO,QAAQ,CAAC,IAAY,EAAC;;;SAC9B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAED,kBAAe,sBAAsB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { User } from "../../interfaces/models/User";
|
|
2
|
-
|
|
2
|
+
export interface FetchUserSuggestionsProps {
|
|
3
3
|
query: string;
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
|
+
declare function useFetchUserSuggestions(): ({ query }: FetchUserSuggestionsProps) => Promise<User[]>;
|
|
5
6
|
export default useFetchUserSuggestions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchUserSuggestions.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserSuggestions.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,iFAA2D;AAC3D,sEAAgD;
|
|
1
|
+
{"version":3,"file":"useFetchUserSuggestions.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserSuggestions.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,iFAA2D;AAC3D,sEAAgD;AAOhD,SAAS,uBAAuB;IAAhC,iBAsBC;IArBC,IAAM,KAAK,GAAG,IAAA,yBAAe,GAAE,CAAC;IACxB,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,oBAAoB,GAAG,IAAA,mBAAW,EACtC,gEAAO,EAAoC;;YAAlC,KAAK,WAAA;;;;oBACZ,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAEgB,qBAAM,KAAK,CAAC,GAAG,CAAC,WAAI,SAAS,uBAAoB,EAAE;4BAClE,MAAM,EAAE;gCACN,KAAK,OAAA;6BACN;yBACF,CAAC,EAAA;;oBAJI,QAAQ,GAAG,SAIf;oBAEF,sBAAO,QAAQ,CAAC,IAAc,EAAC;;;SAChC,EACD,CAAC,KAAK,EAAE,SAAS,CAAC,CACnB,CAAC;IAEF,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAED,kBAAe,uBAAuB,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { User } from "../../interfaces/models/User";
|
|
2
2
|
import { Mention } from "../../interfaces/models/Mention";
|
|
3
|
-
|
|
3
|
+
export interface UseMentionsProps {
|
|
4
4
|
content: string;
|
|
5
5
|
setContent: (value: string) => void;
|
|
6
6
|
focus: () => void;
|
|
7
7
|
cursorPosition: number;
|
|
8
8
|
isSelectionActive: boolean;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
|
+
declare const useMentions: ({ content, setContent, focus, cursorPosition, isSelectionActive, }: UseMentionsProps) => {
|
|
10
11
|
isMentionActive: boolean;
|
|
11
12
|
loading: boolean;
|
|
12
13
|
mentionSuggestions: User[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMentions.js","sourceRoot":"","sources":["../../../../src/hooks/users/useMentions.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAiE;AAGjE,sFAAgE;AAChE,uDAAsD;
|
|
1
|
+
{"version":3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AAC,CAAC;YAC7C,CAAC,EAAE,aAAa,CAAC,CAAC;QACpB,CAAC;aAAM,CAAC;YACN,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAAC;gBAC7B,YAAY,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC;YAED,iBAAiB,CAAC,EAAE,CAAC,CAAC;YACtB,kBAAkB,CAAC,KAAK,CAAC,CAAC;YAC1B,qBAAqB,CAAC,EAAE,CAAC,CAAC;YAC1B,eAAe,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;QAED,4DAA4D;QAC5D,OAAO;YACL,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAAC;gBAC7B,YAAY,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE;QACD,cAAc;QACd,iBAAiB;QACjB,6BAA6B;QAC7B,OAAO;KACR,CAAC,CAAC;IAEH,OAAO;QACL,eAAe,iBAAA;QACf,OAAO,EAAE,YAAY;QACrB,kBAAkB,oBAAA;QAClB,kBAAkB,oBAAA;QAClB,QAAQ,UAAA;QACR,UAAU,YAAA;QACV,aAAa,eAAA;KACd,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as useGetMetadata } from "./useGetMetadata";
|
|
1
|
+
export { default as useGetMetadata, type GetMetadataProps, } from "./useGetMetadata";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/utils/index.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/utils/index.ts"],"names":[],"mappings":";;;;;;AAAA,mDAG0B;AAFxB,iIAAA,OAAO,OAAkB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { UrlMetadata } from "../../interfaces/UrlMetadata";
|
|
2
|
+
export interface GetMetadataProps {
|
|
2
3
|
url: string;
|
|
3
|
-
}
|
|
4
|
+
}
|
|
5
|
+
declare function useGetMetadata(): ({ url }: GetMetadataProps) => Promise<UrlMetadata>;
|
|
4
6
|
export default useGetMetadata;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetMetadata.js","sourceRoot":"","sources":["../../../../src/hooks/utils/useGetMetadata.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,6DAAuC;AACvC,sEAAgD;AAChD,2DAA0D;
|
|
1
|
+
{"version":3,"file":"useGetMetadata.js","sourceRoot":"","sources":["../../../../src/hooks/utils/useGetMetadata.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,6DAAuC;AACvC,sEAAgD;AAChD,2DAA0D;AAO1D,SAAS,cAAc;IAAvB,iBAkCC;IAjCS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,WAAW,GAAG,IAAA,mBAAW,EAC7B,gEAAO,EAAyB;;YAAvB,GAAG,SAAA;;;;oBACV,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,GAAG,EAAE,CAAC;wBACT,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAEK,UAAU,GAAG,IAAA,6BAAa,EAAC,GAAG,CAAC,CAAC;oBAEtC,IAAI,CAAC,UAAU,EAAE,CAAC;wBAChB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;oBACpD,CAAC;oBAEgB,qBAAM,eAAK,CAAC,GAAG,CAC9B,WAAI,SAAS,wBAAqB,EAClC;4BACE,MAAM,EAAE;gCACN,GAAG,KAAA;6BACJ;yBACF,CACF,EAAA;;oBAPK,QAAQ,GAAG,SAOhB;oBAED,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;SACtB,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,kBAAe,cAAc,CAAC"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -9,26 +9,24 @@ export type { ReportReasonKey } from "./constants/reportReasons";
|
|
|
9
9
|
export { ReplykeProvider, ReplykeIntegrationProvider, EntityProvider, CommentSectionProvider, SpaceProvider, } from "./context";
|
|
10
10
|
export { replykeReducers, replykeApiReducer, replykeMiddleware, replykeApi, type ReplykeState, } from "./store/integration";
|
|
11
11
|
export { useProject, useProjectData } from "./hooks/projects";
|
|
12
|
-
export { useSignTestingJwt } from "./hooks/crypto";
|
|
13
|
-
export { useAuth, type UseAuthValues } from "./hooks/auth";
|
|
12
|
+
export { useSignTestingJwt, type SignTestingJwtProps } from "./hooks/crypto";
|
|
13
|
+
export { useAuth, type UseAuthValues, type SignUpWithEmailAndPasswordProps, type SignInWithEmailAndPasswordProps, type ChangePasswordProps, } from "./hooks/auth";
|
|
14
14
|
export { useUser, useUserActions, type UseUserProps, type UseUserValues, type UpdateUserParams, } from "./hooks/user";
|
|
15
15
|
export { useAppNotifications, useAppNotificationsActions, type UseAppNotificationsProps, type UseAppNotificationsValues, } from "./hooks/app-notifications";
|
|
16
|
-
export { useCollections, useCollectionsActions, useIsEntityInCollection, useCollectionEntitiesWrapper, type UseCollectionsProps, type UseCollectionsValues, type UseCollectionEntitiesWrapperProps, type UseCollectionEntitiesWrapperValues, } from "./hooks/collections";
|
|
17
|
-
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useIncrementEntityViews, useFetchManyEntitiesWrapper, useUpdateEntity, useFetchDrafts, usePublishDraft, type UseFetchManyEntitiesWrapperProps, type UseFetchManyEntitiesWrapperValues, } from "./hooks/entities";
|
|
18
|
-
export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListFilters, type EntityListSort, type EntityListFetchOptions, } from "./hooks/entity-lists";
|
|
19
|
-
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers, useFetchSpaceTeam, useFetchUserSpaces, useUpdateMemberRole, useApproveMember, useDeclineMember, useRemoveMember, useModerateSpaceEntity, useModerateSpaceComment, useSpacePermissions, useCreateRule, useUpdateRule, useDeleteRule, useFetchRule, useFetchManyRules, useReorderRules, type UseSpaceDataProps, type UseSpaceDataValues, type CreateSpaceProps, type UpdateSpaceProps, type CreateRuleProps, type UpdateRuleProps, type DeleteRuleProps, type FetchRuleProps, type FetchManyRulesProps, type ReorderRulesProps, } from "./hooks/spaces";
|
|
20
|
-
export { useSpaceList, useSpaceListActions, type UseSpaceListProps, type UseSpaceListValues, } from "./hooks/space-lists";
|
|
21
|
-
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useDeleteComment, useEntityComments, useFetchManyCommentsWrapper, type UseFetchManyCommentsWrapperProps, type UseFetchManyCommentsWrapperValues, } from "./hooks/comments";
|
|
22
|
-
export { useFetchEntityReactions, useFetchCommentReactions, useFetchEntityReactionsWrapper, useFetchCommentReactionsWrapper, useAddReaction, useRemoveReaction, useReactionToggle, type UseFetchEntityReactionsWrapperProps, type UseFetchEntityReactionsWrapperValues, type UseFetchCommentReactionsWrapperProps, type UseFetchCommentReactionsWrapperValues, type UseReactionToggleValues, } from "./hooks/reactions";
|
|
23
|
-
export { useFetchUser, useFetchUserByForeignId, useFetchUserByUsername, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, } from "./hooks/users";
|
|
24
|
-
export { useFetchFollowStatus, useFetchFollowers, useFetchFollowersByUserId, useFetchFollowersCount, useFetchFollowersCountByUserId, useFetchFollowing, useFetchFollowingByUserId, useFetchFollowingCount, useFetchFollowingCountByUserId, useFollowManager, useFollowUser, useUnfollowByFollowId, useUnfollowUserByUserId, } from "./hooks/relationships/follows";
|
|
25
|
-
export { useRequestConnection, useAcceptConnection, useDeclineConnection, useRemoveConnection, useFetchConnections, useFetchConnectionStatus, useRemoveConnectionByUserId, useFetchConnectionsCount, useFetchSentPendingConnections, useFetchReceivedPendingConnections, useFetchConnectionsByUserId, useFetchConnectionsCountByUserId, useConnectionManager, } from "./hooks/relationships/connections";
|
|
26
|
-
export { useCreateReport } from "./hooks/reports";
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export { useGetMetadata } from "./hooks/utils";
|
|
31
|
-
export { useUploadFile, useUploadImage } from "./hooks/storage";
|
|
16
|
+
export { useCollections, useCollectionsActions, useIsEntityInCollection, useCollectionEntitiesWrapper, type UseCollectionsProps, type UseCollectionsValues, type CreateCollectionProps, type UpdateCollectionProps, type DeleteCollectionProps, type AddToCollectionProps, type RemoveFromCollectionProps, type UseCollectionEntitiesWrapperProps, type UseCollectionEntitiesWrapperValues, } from "./hooks/collections";
|
|
17
|
+
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useIncrementEntityViews, useFetchManyEntitiesWrapper, useUpdateEntity, useFetchDrafts, usePublishDraft, type CreateEntityProps, type DeleteEntityProps, type FetchEntityProps, type FetchEntityByForeignIdProps, type FetchEntityByShortIdProps, type PublishDraftProps, type UseFetchManyEntitiesWrapperProps, type UseFetchManyEntitiesWrapperValues, } from "./hooks/entities";
|
|
18
|
+
export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListCreateEntityProps, type EntityListDeleteEntityProps, type EntityListFilters, type EntityListSort, type EntityListFetchOptions, } from "./hooks/entity-lists";
|
|
19
|
+
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers, useFetchSpaceTeam, useFetchUserSpaces, useUpdateMemberRole, useApproveMember, useDeclineMember, useRemoveMember, useModerateSpaceEntity, useModerateSpaceComment, useSpacePermissions, useCheckMyMembership, useCreateRule, useUpdateRule, useDeleteRule, useFetchRule, useFetchManyRules, useReorderRules, type UseSpaceDataProps, type UseSpaceDataValues, type FetchSpaceProps, type FetchSpaceByShortIdProps, type FetchSpaceBySlugProps, type FetchSpaceBreadcrumbProps, type FetchSpaceChildrenProps, type FetchManySpacesProps, type CheckSlugAvailabilityProps, type CreateSpaceProps, type UpdateSpaceProps, type DeleteSpaceProps, type JoinSpaceProps, type LeaveSpaceProps, type FetchSpaceMembersProps, type FetchSpaceTeamProps, type FetchUserSpacesProps, type CheckMyMembershipProps, type UpdateMemberRoleProps, type ApproveMemberProps, type DeclineMemberProps, type RemoveMemberProps, type ModerateSpaceEntityProps, type ModerateSpaceCommentProps, type UseSpacePermissionsProps, type UseSpacePermissionsValues, type CreateRuleProps, type UpdateRuleProps, type DeleteRuleProps, type FetchRuleProps, type FetchManyRulesProps, type ReorderRulesProps, } from "./hooks/spaces";
|
|
20
|
+
export { useSpaceList, useSpaceListActions, type UseSpaceListProps, type UseSpaceListValues, type SpaceListCreateSpaceProps, type SpaceListDeleteSpaceProps, type FetchSpacesOptions, type CreateSpaceOptions, type DeleteSpaceOptions, } from "./hooks/space-lists";
|
|
21
|
+
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useDeleteComment, useEntityComments, useFetchManyCommentsWrapper, type CommentSectionCreateCommentProps, type CommentSectionUpdateCommentProps, type CommentSectionDeleteCommentProps, type CreateCommentProps, type FetchManyCommentsProps, type FetchCommentProps, type FetchCommentByForeignIdProps, type UseRepliesProps, type UpdateCommentProps, type DeleteCommentProps, type UseFetchManyCommentsWrapperProps, type UseFetchManyCommentsWrapperValues, } from "./hooks/comments";
|
|
22
|
+
export { useFetchEntityReactions, useFetchCommentReactions, useFetchEntityReactionsWrapper, useFetchCommentReactionsWrapper, useAddReaction, useRemoveReaction, useReactionToggle, type UseFetchEntityReactionsWrapperProps, type UseFetchEntityReactionsWrapperValues, type UseFetchCommentReactionsWrapperProps, type UseFetchCommentReactionsWrapperValues, type UseReactionToggleProps, type UseReactionToggleValues, type ToggleReactionProps, type AddReactionProps, type RemoveReactionProps, type FetchEntityReactionsProps, type FetchCommentReactionsProps, } from "./hooks/reactions";
|
|
23
|
+
export { useFetchUser, useFetchUserByForeignId, useFetchUserByUsername, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, type FetchUserProps, type FetchUserByForeignIdProps, type FetchUserByUsernameProps, type CheckUsernameAvailabilityProps, type FetchUserSuggestionsProps, type UseMentionsProps, } from "./hooks/users";
|
|
24
|
+
export { useFetchFollowStatus, useFetchFollowers, useFetchFollowersByUserId, useFetchFollowersCount, useFetchFollowersCountByUserId, useFetchFollowing, useFetchFollowingByUserId, useFetchFollowingCount, useFetchFollowingCountByUserId, useFollowManager, useFollowUser, useUnfollowByFollowId, useUnfollowUserByUserId, type FollowUserProps, type UnfollowByFollowIdProps, type UnfollowUserByUserIdProps, type FetchFollowStatusProps, type FollowStatusResponse, type FollowerWithFollowInfo, type FetchFollowersParams, type FetchFollowersByUserIdParams, type FetchFollowersCountByUserIdProps, type FollowingWithFollowInfo, type FetchFollowingParams, type FetchFollowingByUserIdParams, type FetchFollowingCountByUserIdProps, type UseFollowToggleProps, } from "./hooks/relationships/follows";
|
|
25
|
+
export { useRequestConnection, useAcceptConnection, useDeclineConnection, useRemoveConnection, useFetchConnections, useFetchConnectionStatus, useRemoveConnectionByUserId, useFetchConnectionsCount, useFetchSentPendingConnections, useFetchReceivedPendingConnections, useFetchConnectionsByUserId, useFetchConnectionsCountByUserId, useConnectionManager, type AcceptConnectionProps, type DeclineConnectionProps, type RemoveConnectionProps, type RemoveConnectionByUserIdProps, type FetchConnectionStatusProps, type FetchConnectionsParams, type FetchConnectionsByUserIdParams, type FetchConnectionsCountByUserIdParams, type FetchSentPendingConnectionsParams, type FetchReceivedPendingConnectionsParams, type UseConnectionManagerProps, type ConnectionData, } from "./hooks/relationships/connections";
|
|
26
|
+
export { useCreateReport, useFetchModeratedReports, useHandleSpaceEntityReport, useHandleSpaceCommentReport, type UseCreateReportProps, type CreateReportProps, type CreateCommentReportProps, type CreateEntityReportProps, type FetchModeratedReportsParams, type ReportUserReport, type Report, type HandleSpaceEntityReportParams, type HandleReportResponse, type HandleSpaceCommentReportParams, } from "./hooks/reports";
|
|
27
|
+
export { useGetMetadata, type GetMetadataProps } from "./hooks/utils";
|
|
28
|
+
export type { UrlMetadata, UrlMetadataImage, UrlMetadataVideo, UrlMetadataAudio, UrlMetadataTwitter, UrlMetadataArticle, UrlMetadataAppLinks, } from "./interfaces/UrlMetadata";
|
|
29
|
+
export { useUploadFile, useUploadImage, type RNFile, type UploadFileOptions, type UploadResponse, } from "./hooks/storage";
|
|
32
30
|
export type { PaginatedResponse, PaginationMetadata, } from "./interfaces/IPaginatedResponse";
|
|
33
31
|
export type { EntityCommentsTree } from "./interfaces/EntityCommentsTree";
|
|
34
32
|
export type { UserFull, User, AuthUser, UserRole, UserInclude, UserIncludeArray, UserIncludeParam, } from "./interfaces/models/User";
|
package/dist/cjs/index.js
CHANGED
|
@@ -37,8 +37,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.useFetchSpaceByShortId = exports.useFetchSpace = exports.useSpaceData = exports.useSpace = exports.useEntityListActions = exports.useEntityList = exports.usePublishDraft = exports.useFetchDrafts = exports.useUpdateEntity = exports.useFetchManyEntitiesWrapper = exports.useIncrementEntityViews = exports.useFetchManyEntities = exports.useFetchEntityByShortId = exports.useFetchEntityByForeignId = exports.useFetchEntity = exports.useDeleteEntity = exports.useCreateEntity = exports.useEntityData = exports.useEntity = exports.useCollectionEntitiesWrapper = exports.useIsEntityInCollection = exports.useCollectionsActions = exports.useCollections = exports.useAppNotificationsActions = exports.useAppNotifications = exports.useUserActions = exports.useUser = exports.useAuth = exports.useSignTestingJwt = exports.useProjectData = exports.useProject = exports.replykeApi = exports.replykeMiddleware = exports.replykeApiReducer = exports.replykeReducers = exports.SpaceProvider = exports.CommentSectionProvider = exports.EntityProvider = exports.ReplykeIntegrationProvider = exports.ReplykeProvider = exports.reportReasons = exports.getEnvVar = exports.getApiBaseUrl = exports.isProduction = exports.isDevelopment = exports.getPublicFileUrl = exports.getUserName = exports.safeMergeStyleProps = exports.keywordHelpers = exports.handleError = void 0;
|
|
40
|
-
exports.
|
|
41
|
-
exports.validateSortType = exports.validateMetadataPropertyName = exports.validateSortBy = exports.AppNotification = exports.useUploadImage = exports.useUploadFile = exports.useGetMetadata = exports.useHandleSpaceCommentReport = exports.useHandleSpaceEntityReport = exports.useFetchModeratedReports = exports.useCreateReport = exports.useConnectionManager = exports.useFetchConnectionsCountByUserId = exports.useFetchConnectionsByUserId = exports.useFetchReceivedPendingConnections = exports.useFetchSentPendingConnections = exports.useFetchConnectionsCount = exports.useRemoveConnectionByUserId = exports.useFetchConnectionStatus = exports.useFetchConnections = exports.useRemoveConnection = exports.useDeclineConnection = exports.useAcceptConnection = exports.useRequestConnection = exports.useUnfollowUserByUserId = exports.useUnfollowByFollowId = exports.useFollowUser = exports.useFollowManager = exports.useFetchFollowingCountByUserId = exports.useFetchFollowingCount = exports.useFetchFollowingByUserId = exports.useFetchFollowing = exports.useFetchFollowersCountByUserId = exports.useFetchFollowersCount = exports.useFetchFollowersByUserId = exports.useFetchFollowers = exports.useFetchFollowStatus = exports.useMentions = exports.useFetchUserSuggestions = void 0;
|
|
40
|
+
exports.useFetchUserByUsername = exports.useFetchUserByForeignId = exports.useFetchUser = exports.useReactionToggle = exports.useRemoveReaction = exports.useAddReaction = exports.useFetchCommentReactionsWrapper = exports.useFetchEntityReactionsWrapper = exports.useFetchCommentReactions = exports.useFetchEntityReactions = exports.useFetchManyCommentsWrapper = exports.useEntityComments = exports.useDeleteComment = exports.useUpdateComment = exports.useReplies = exports.useFetchCommentByForeignId = exports.useFetchComment = exports.useFetchManyComments = exports.useCreateComment = exports.useCommentSectionData = exports.useCommentSection = exports.useSpaceListActions = exports.useSpaceList = exports.useReorderRules = exports.useFetchManyRules = exports.useFetchRule = exports.useDeleteRule = exports.useUpdateRule = exports.useCreateRule = exports.useCheckMyMembership = exports.useSpacePermissions = exports.useModerateSpaceComment = exports.useModerateSpaceEntity = exports.useRemoveMember = exports.useDeclineMember = exports.useApproveMember = exports.useUpdateMemberRole = exports.useFetchUserSpaces = exports.useFetchSpaceTeam = exports.useFetchSpaceMembers = exports.useLeaveSpace = exports.useJoinSpace = exports.useDeleteSpace = exports.useUpdateSpace = exports.useCreateSpace = exports.useCheckSlugAvailability = exports.useFetchManySpaces = exports.useFetchSpaceChildren = exports.useFetchSpaceBreadcrumb = exports.useFetchSpaceBySlug = void 0;
|
|
41
|
+
exports.validateSortType = exports.validateMetadataPropertyName = exports.validateSortBy = exports.AppNotification = exports.useUploadImage = exports.useUploadFile = exports.useGetMetadata = exports.useHandleSpaceCommentReport = exports.useHandleSpaceEntityReport = exports.useFetchModeratedReports = exports.useCreateReport = exports.useConnectionManager = exports.useFetchConnectionsCountByUserId = exports.useFetchConnectionsByUserId = exports.useFetchReceivedPendingConnections = exports.useFetchSentPendingConnections = exports.useFetchConnectionsCount = exports.useRemoveConnectionByUserId = exports.useFetchConnectionStatus = exports.useFetchConnections = exports.useRemoveConnection = exports.useDeclineConnection = exports.useAcceptConnection = exports.useRequestConnection = exports.useUnfollowUserByUserId = exports.useUnfollowByFollowId = exports.useFollowUser = exports.useFollowManager = exports.useFetchFollowingCountByUserId = exports.useFetchFollowingCount = exports.useFetchFollowingByUserId = exports.useFetchFollowing = exports.useFetchFollowersCountByUserId = exports.useFetchFollowersCount = exports.useFetchFollowersByUserId = exports.useFetchFollowers = exports.useFetchFollowStatus = exports.useMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = void 0;
|
|
42
42
|
// Helpers & Utilities
|
|
43
43
|
var handleError_1 = require("./utils/handleError");
|
|
44
44
|
Object.defineProperty(exports, "handleError", { enumerable: true, get: function () { return handleError_1.handleError; } });
|
|
@@ -140,6 +140,7 @@ Object.defineProperty(exports, "useRemoveMember", { enumerable: true, get: funct
|
|
|
140
140
|
Object.defineProperty(exports, "useModerateSpaceEntity", { enumerable: true, get: function () { return spaces_1.useModerateSpaceEntity; } });
|
|
141
141
|
Object.defineProperty(exports, "useModerateSpaceComment", { enumerable: true, get: function () { return spaces_1.useModerateSpaceComment; } });
|
|
142
142
|
Object.defineProperty(exports, "useSpacePermissions", { enumerable: true, get: function () { return spaces_1.useSpacePermissions; } });
|
|
143
|
+
Object.defineProperty(exports, "useCheckMyMembership", { enumerable: true, get: function () { return spaces_1.useCheckMyMembership; } });
|
|
143
144
|
// Rule hooks
|
|
144
145
|
Object.defineProperty(exports, "useCreateRule", { enumerable: true, get: function () { return spaces_1.useCreateRule; } });
|
|
145
146
|
Object.defineProperty(exports, "useUpdateRule", { enumerable: true, get: function () { return spaces_1.useUpdateRule; } });
|
|
@@ -214,12 +215,9 @@ Object.defineProperty(exports, "useConnectionManager", { enumerable: true, get:
|
|
|
214
215
|
// -- reports
|
|
215
216
|
var reports_1 = require("./hooks/reports");
|
|
216
217
|
Object.defineProperty(exports, "useCreateReport", { enumerable: true, get: function () { return reports_1.useCreateReport; } });
|
|
217
|
-
|
|
218
|
-
Object.defineProperty(exports, "
|
|
219
|
-
|
|
220
|
-
Object.defineProperty(exports, "useHandleSpaceEntityReport", { enumerable: true, get: function () { return reports_3.useHandleSpaceEntityReport; } });
|
|
221
|
-
var reports_4 = require("./hooks/reports");
|
|
222
|
-
Object.defineProperty(exports, "useHandleSpaceCommentReport", { enumerable: true, get: function () { return reports_4.useHandleSpaceCommentReport; } });
|
|
218
|
+
Object.defineProperty(exports, "useFetchModeratedReports", { enumerable: true, get: function () { return reports_1.useFetchModeratedReports; } });
|
|
219
|
+
Object.defineProperty(exports, "useHandleSpaceEntityReport", { enumerable: true, get: function () { return reports_1.useHandleSpaceEntityReport; } });
|
|
220
|
+
Object.defineProperty(exports, "useHandleSpaceCommentReport", { enumerable: true, get: function () { return reports_1.useHandleSpaceCommentReport; } });
|
|
223
221
|
// -- general
|
|
224
222
|
var utils_1 = require("./hooks/utils");
|
|
225
223
|
Object.defineProperty(exports, "useGetMetadata", { enumerable: true, get: function () { return utils_1.useGetMetadata; } });
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,mDAAkD;AAAzC,0GAAA,WAAW,OAAA;AACpB,yDAAwD;AAA/C,gHAAA,cAAc,OAAA;AACvB,qEAAoE;AAA3D,0HAAA,mBAAmB,OAAA;AAC5B,qDAAoD;AAA3C,0GAAA,WAAW,OAAA;AACpB,+DAAyE;AAAhE,qIAAA,OAAO,OAAoB;AACpC,mCAKqB;AAJnB,oGAAA,aAAa,OAAA;AACb,mGAAA,YAAY,OAAA;AACZ,oGAAA,aAAa,OAAA;AACb,gGAAA,SAAS,OAAA;AAGX,YAAY;AACZ,2DAA0D;AAAjD,8GAAA,aAAa,OAAA;AAGtB,+CAA+C;AAC/C,qCAMmB;AALjB,0GAAA,eAAe,OAAA;AACf,qHAAA,0BAA0B,OAAA;AAC1B,yGAAA,cAAc,OAAA;AACd,iHAAA,sBAAsB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|
3
|
+
width: number | null;
|
|
4
|
+
height: number | null;
|
|
5
|
+
type: string | null;
|
|
6
|
+
alt: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface UrlMetadataVideo {
|
|
9
|
+
url: string;
|
|
10
|
+
width: number | null;
|
|
11
|
+
height: number | null;
|
|
12
|
+
type: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface UrlMetadataAudio {
|
|
15
|
+
url: string;
|
|
16
|
+
type: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface UrlMetadataTwitter {
|
|
19
|
+
card: string | null;
|
|
20
|
+
site: string | null;
|
|
21
|
+
creator: string | null;
|
|
22
|
+
title: string | null;
|
|
23
|
+
description: string | null;
|
|
24
|
+
images: UrlMetadataImage[];
|
|
25
|
+
players: {
|
|
26
|
+
url: string;
|
|
27
|
+
width: number | null;
|
|
28
|
+
height: number | null;
|
|
29
|
+
}[];
|
|
30
|
+
}
|
|
31
|
+
export interface UrlMetadataArticle {
|
|
32
|
+
publishedTime: string | null;
|
|
33
|
+
modifiedTime: string | null;
|
|
34
|
+
expirationTime: string | null;
|
|
35
|
+
author: string | null;
|
|
36
|
+
section: string | null;
|
|
37
|
+
tag: string | null;
|
|
38
|
+
}
|
|
39
|
+
export interface UrlMetadataAppLinks {
|
|
40
|
+
ios: {
|
|
41
|
+
url: string;
|
|
42
|
+
appStoreId: string | null;
|
|
43
|
+
appName: string | null;
|
|
44
|
+
} | null;
|
|
45
|
+
android: {
|
|
46
|
+
url: string;
|
|
47
|
+
package: string | null;
|
|
48
|
+
appName: string | null;
|
|
49
|
+
} | null;
|
|
50
|
+
web: {
|
|
51
|
+
url: string;
|
|
52
|
+
shouldFallback: string | null;
|
|
53
|
+
} | null;
|
|
54
|
+
}
|
|
55
|
+
export interface UrlMetadata {
|
|
56
|
+
title: string | null;
|
|
57
|
+
description: string | null;
|
|
58
|
+
siteName: string | null;
|
|
59
|
+
url: string;
|
|
60
|
+
type: string | null;
|
|
61
|
+
locale: string | null;
|
|
62
|
+
charset: string | null;
|
|
63
|
+
favicon: string | null;
|
|
64
|
+
images: UrlMetadataImage[];
|
|
65
|
+
videos: UrlMetadataVideo[];
|
|
66
|
+
audio: UrlMetadataAudio[];
|
|
67
|
+
twitter: UrlMetadataTwitter;
|
|
68
|
+
article: UrlMetadataArticle;
|
|
69
|
+
jsonLd: Record<string, unknown>[] | null;
|
|
70
|
+
appLinks: UrlMetadataAppLinks;
|
|
71
|
+
book: {
|
|
72
|
+
author: string | null;
|
|
73
|
+
tag: string | null;
|
|
74
|
+
isbn: string | null;
|
|
75
|
+
releaseDate: string | null;
|
|
76
|
+
} | null;
|
|
77
|
+
music: {
|
|
78
|
+
album: string | null;
|
|
79
|
+
musician: string | null;
|
|
80
|
+
duration: number | null;
|
|
81
|
+
releaseDate: string | null;
|
|
82
|
+
creator: string | null;
|
|
83
|
+
} | null;
|
|
84
|
+
profile: {
|
|
85
|
+
firstName: string | null;
|
|
86
|
+
lastName: string | null;
|
|
87
|
+
username: string | null;
|
|
88
|
+
gender: string | null;
|
|
89
|
+
} | null;
|
|
90
|
+
requestUrl: string;
|
|
91
|
+
success: boolean;
|
|
92
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UrlMetadata.js","sourceRoot":"","sources":["../../../src/interfaces/UrlMetadata.ts"],"names":[],"mappings":""}
|