@replyke/core 7.0.0-beta.9 → 7.0.0-beta.91
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/config/axios.js +1 -2
- package/dist/cjs/config/axios.js.map +1 -1
- package/dist/cjs/config/useAxiosPrivate.js +16 -10
- package/dist/cjs/config/useAxiosPrivate.js.map +1 -1
- package/dist/cjs/context/entity-context.d.ts +2 -2
- package/dist/cjs/context/entity-context.js +4 -4
- package/dist/cjs/context/entity-context.js.map +1 -1
- package/dist/cjs/context/index.d.ts +1 -0
- package/dist/cjs/context/index.js +3 -1
- package/dist/cjs/context/index.js.map +1 -1
- package/dist/cjs/context/replyke-integration-context.d.ts +52 -0
- package/dist/cjs/context/replyke-integration-context.js +92 -0
- package/dist/cjs/context/replyke-integration-context.js.map +1 -0
- package/dist/cjs/context/replyke-store-context.js +19 -7
- package/dist/cjs/context/replyke-store-context.js.map +1 -1
- package/dist/cjs/helpers/addNotificationsMessages.js +14 -1
- package/dist/cjs/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/cjs/hooks/app-notifications/useAppNotifications.js +15 -39
- package/dist/cjs/hooks/app-notifications/useAppNotifications.js.map +1 -1
- package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.d.ts +3 -0
- package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.js +14 -23
- package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.js.map +1 -1
- package/dist/cjs/hooks/auth/index.d.ts +9 -1
- package/dist/cjs/hooks/auth/index.js +17 -1
- package/dist/cjs/hooks/auth/index.js.map +1 -1
- package/dist/cjs/hooks/auth/useAccountSync.d.ts +2 -0
- package/dist/cjs/hooks/auth/useAccountSync.js +170 -0
- package/dist/cjs/hooks/auth/useAccountSync.js.map +1 -0
- package/dist/cjs/hooks/auth/useAccounts.d.ts +7 -0
- package/dist/cjs/hooks/auth/useAccounts.js +23 -0
- package/dist/cjs/hooks/auth/useAccounts.js.map +1 -0
- package/dist/cjs/hooks/auth/useAddAccount.d.ts +5 -0
- package/dist/cjs/hooks/auth/useAddAccount.js +27 -0
- package/dist/cjs/hooks/auth/useAddAccount.js.map +1 -0
- package/dist/cjs/hooks/auth/useAuth.d.ts +31 -24
- package/dist/cjs/hooks/auth/useAuth.js +5 -5
- package/dist/cjs/hooks/auth/useAuth.js.map +1 -1
- package/dist/cjs/hooks/auth/useOAuthIdentities.d.ts +19 -0
- package/dist/cjs/hooks/{reports/useFetchSpaceReports.js → auth/useOAuthIdentities.js} +58 -41
- package/dist/cjs/hooks/auth/useOAuthIdentities.js.map +1 -0
- package/dist/cjs/hooks/auth/useRemoveAccount.d.ts +6 -0
- package/dist/cjs/hooks/auth/useRemoveAccount.js +128 -0
- package/dist/cjs/hooks/auth/useRemoveAccount.js.map +1 -0
- package/dist/cjs/hooks/auth/useRequestPasswordReset.d.ts +5 -0
- package/dist/cjs/hooks/{entities/useRemoveEntityDownvote.js → auth/useRequestPasswordReset.js} +13 -14
- package/dist/cjs/hooks/auth/useRequestPasswordReset.js.map +1 -0
- package/dist/cjs/hooks/auth/useSignOutAll.d.ts +4 -0
- package/dist/cjs/hooks/auth/useSignOutAll.js +71 -0
- package/dist/cjs/hooks/auth/useSignOutAll.js.map +1 -0
- package/dist/cjs/hooks/auth/useSwitchAccount.d.ts +6 -0
- package/dist/cjs/hooks/auth/useSwitchAccount.js +103 -0
- package/dist/cjs/hooks/auth/useSwitchAccount.js.map +1 -0
- package/dist/cjs/hooks/collections/index.d.ts +4 -0
- package/dist/cjs/hooks/collections/index.js +16 -0
- package/dist/cjs/hooks/collections/index.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.d.ts +21 -0
- package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.js +211 -0
- package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollections.d.ts +48 -0
- package/dist/cjs/hooks/collections/useCollections.js +264 -0
- package/dist/cjs/hooks/collections/useCollections.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollectionsActions.d.ts +21 -0
- package/dist/cjs/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +114 -120
- package/dist/cjs/hooks/collections/useCollectionsActions.js.map +1 -0
- package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.d.ts +2 -2
- package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.js +3 -4
- package/dist/cjs/hooks/collections/useIsEntitySaved.js.map +1 -0
- package/dist/cjs/hooks/comments/index.d.ts +10 -2
- package/dist/cjs/hooks/comments/index.js +3 -5
- 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 +40 -12
- 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/useEntityComments.d.ts +2 -1
- package/dist/cjs/hooks/comments/useEntityComments.js +2 -1
- package/dist/cjs/hooks/comments/useEntityComments.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchComment.d.ts +5 -5
- package/dist/cjs/hooks/comments/useFetchComment.js +7 -5
- package/dist/cjs/hooks/comments/useFetchComment.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.d.ts +5 -5
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.js +9 -6
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchManyComments.d.ts +5 -4
- package/dist/cjs/hooks/comments/useFetchManyComments.js +9 -10
- package/dist/cjs/hooks/comments/useFetchManyComments.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.d.ts +21 -0
- package/dist/cjs/hooks/comments/{useProfileComments.js → useFetchManyCommentsWrapper.js} +40 -18
- package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -0
- package/dist/cjs/hooks/comments/useReplies.d.ts +3 -2
- package/dist/cjs/hooks/comments/useReplies.js +1 -0
- 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 +7 -3
- package/dist/cjs/hooks/crypto/useSignTestingJwt.js +11 -14
- package/dist/cjs/hooks/crypto/useSignTestingJwt.js.map +1 -1
- package/dist/cjs/hooks/entities/index.d.ts +10 -5
- package/dist/cjs/hooks/entities/index.js +7 -11
- package/dist/cjs/hooks/entities/index.js.map +1 -1
- package/dist/cjs/hooks/entities/useCreateEntity.d.ts +25 -2
- package/dist/cjs/hooks/entities/useCreateEntity.js +93 -15
- package/dist/cjs/hooks/entities/useCreateEntity.js.map +1 -1
- package/dist/cjs/hooks/entities/useDeleteEntity.d.ts +3 -2
- package/dist/cjs/hooks/entities/useDeleteEntity.js +1 -3
- package/dist/cjs/hooks/entities/useDeleteEntity.js.map +1 -1
- package/dist/cjs/hooks/entities/useEntityData.d.ts +24 -12
- package/dist/cjs/hooks/entities/useEntityData.js +0 -19
- package/dist/cjs/hooks/entities/useEntityData.js.map +1 -1
- package/dist/cjs/hooks/entities/useFetchDrafts.d.ts +11 -0
- package/dist/cjs/hooks/entities/useFetchDrafts.js +81 -0
- package/dist/cjs/hooks/entities/useFetchDrafts.js.map +1 -0
- package/dist/cjs/hooks/entities/useFetchEntity.d.ts +3 -2
- package/dist/cjs/hooks/entities/useFetchEntity.js +7 -7
- package/dist/cjs/hooks/entities/useFetchEntity.js.map +1 -1
- package/dist/cjs/hooks/entities/useFetchEntityByForeignId.d.ts +3 -2
- package/dist/cjs/hooks/entities/useFetchEntityByForeignId.js +9 -18
- package/dist/cjs/hooks/entities/useFetchEntityByForeignId.js.map +1 -1
- package/dist/cjs/hooks/entities/useFetchEntityByShortId.d.ts +3 -2
- package/dist/cjs/hooks/entities/useFetchEntityByShortId.js +8 -18
- package/dist/cjs/hooks/entities/useFetchEntityByShortId.js.map +1 -1
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.d.ts +41 -0
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js +241 -0
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
- package/dist/cjs/hooks/entities/usePublishDraft.d.ts +6 -0
- package/dist/cjs/hooks/entities/{useUpvoteEntity.js → usePublishDraft.js} +11 -11
- package/dist/cjs/hooks/entities/usePublishDraft.js.map +1 -0
- package/dist/cjs/hooks/entities/useUpdateEntity.js +7 -3
- package/dist/cjs/hooks/entities/useUpdateEntity.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 +10 -10
- package/dist/cjs/hooks/entity-lists/useEntityList.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/useEntityListActions.js +2 -2
- package/dist/cjs/hooks/entity-lists/useEntityListActions.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 +14 -0
- package/dist/cjs/hooks/reactions/index.js +21 -0
- package/dist/cjs/hooks/reactions/index.js.map +1 -0
- package/dist/cjs/hooks/reactions/useAddReaction.d.ts +10 -0
- package/dist/cjs/hooks/reactions/useAddReaction.js +77 -0
- package/dist/cjs/hooks/reactions/useAddReaction.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.d.ts +11 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.js +84 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.d.ts +17 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.js +170 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactions.d.ts +11 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactions.js +84 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactions.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.d.ts +17 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.js +170 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.js.map +1 -0
- package/dist/cjs/hooks/reactions/useReactionToggle.d.ts +20 -0
- package/dist/cjs/hooks/reactions/useReactionToggle.js +146 -0
- package/dist/cjs/hooks/reactions/useReactionToggle.js.map +1 -0
- package/dist/cjs/hooks/reactions/useRemoveReaction.d.ts +8 -0
- package/dist/cjs/hooks/{comments/useDownvoteComment.js → reactions/useRemoveReaction.js} +16 -13
- package/dist/cjs/hooks/reactions/useRemoveReaction.js.map +1 -0
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/useFetchConnections.js +0 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnections.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsCount.js +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsCount.js.map +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/useFetchReceivedPendingConnections.js +0 -1
- package/dist/cjs/hooks/relationships/connections/useFetchReceivedPendingConnections.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchSentPendingConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchSentPendingConnections.js +0 -1
- package/dist/cjs/hooks/relationships/connections/useFetchSentPendingConnections.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useRemoveConnection.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useRemoveConnection.js +1 -1
- 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 +1 -1
- package/dist/cjs/hooks/relationships/connections/useRemoveConnectionByUserId.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useRequestConnection.js +1 -1
- package/dist/cjs/hooks/relationships/connections/useRequestConnection.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 +1 -3
- package/dist/cjs/hooks/relationships/follows/useFetchFollowStatus.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowers.js +0 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowers.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersCount.js +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersCount.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/useFetchFollowing.js +0 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowing.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingCount.js +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingCount.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 +1 -1
- 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 +1 -3
- 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 +1 -3
- package/dist/cjs/hooks/relationships/follows/useUnfollowUserByUserId.js.map +1 -1
- package/dist/cjs/hooks/reports/index.d.ts +5 -1
- package/dist/cjs/hooks/reports/index.js +3 -3
- package/dist/cjs/hooks/reports/index.js.map +1 -1
- package/dist/cjs/hooks/reports/useCreateReport.d.ts +16 -3
- package/dist/cjs/hooks/reports/useCreateReport.js +3 -3
- package/dist/cjs/hooks/reports/useCreateReport.js.map +1 -1
- package/dist/cjs/hooks/reports/useFetchModeratedReports.d.ts +60 -0
- package/dist/cjs/hooks/reports/useFetchModeratedReports.js +91 -0
- package/dist/cjs/hooks/reports/useFetchModeratedReports.js.map +1 -0
- package/dist/cjs/hooks/reports/useHandleSpaceCommentReport.d.ts +5 -5
- package/dist/cjs/hooks/reports/useHandleSpaceCommentReport.js +2 -2
- package/dist/cjs/hooks/reports/useHandleSpaceEntityReport.d.ts +5 -5
- package/dist/cjs/hooks/reports/useHandleSpaceEntityReport.js +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 +22 -17
- package/dist/cjs/hooks/space-lists/useSpaceList.js +29 -14
- package/dist/cjs/hooks/space-lists/useSpaceList.js.map +1 -1
- package/dist/cjs/hooks/space-lists/useSpaceListActions.d.ts +7 -4
- package/dist/cjs/hooks/space-lists/useSpaceListActions.js +6 -3
- package/dist/cjs/hooks/space-lists/useSpaceListActions.js.map +1 -1
- package/dist/cjs/hooks/spaces/index.d.ts +27 -1
- package/dist/cjs/hooks/spaces/index.js +18 -3
- package/dist/cjs/hooks/spaces/index.js.map +1 -1
- package/dist/cjs/hooks/spaces/rules/index.d.ts +12 -0
- package/dist/cjs/hooks/spaces/rules/index.js +19 -0
- package/dist/cjs/hooks/spaces/rules/index.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useCreateRule.d.ts +8 -0
- package/dist/cjs/hooks/{users/useUpdateUser.js → spaces/rules/useCreateRule.js} +18 -19
- package/dist/cjs/hooks/spaces/rules/useCreateRule.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useDeleteRule.d.ts +7 -0
- package/dist/cjs/hooks/spaces/rules/useDeleteRule.js +74 -0
- package/dist/cjs/hooks/spaces/rules/useDeleteRule.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useFetchManyRules.d.ts +6 -0
- package/dist/cjs/hooks/{comments/useUpvoteComment.js → spaces/rules/useFetchManyRules.js} +15 -15
- package/dist/cjs/hooks/spaces/rules/useFetchManyRules.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useFetchRule.d.ts +7 -0
- package/dist/cjs/hooks/spaces/rules/useFetchRule.js +74 -0
- package/dist/cjs/hooks/spaces/rules/useFetchRule.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useReorderRules.d.ts +7 -0
- package/dist/cjs/hooks/{entities/useRemoveEntityUpvote.js → spaces/rules/useReorderRules.js} +18 -15
- package/dist/cjs/hooks/spaces/rules/useReorderRules.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useUpdateRule.d.ts +11 -0
- package/dist/cjs/hooks/{comments/useRemoveCommentDownvote.js → spaces/rules/useUpdateRule.js} +18 -15
- package/dist/cjs/hooks/spaces/rules/useUpdateRule.js.map +1 -0
- 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/useCreateSpace.d.ts +7 -2
- package/dist/cjs/hooks/spaces/useCreateSpace.js +54 -3
- package/dist/cjs/hooks/spaces/useCreateSpace.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 +8 -4
- package/dist/cjs/hooks/spaces/useFetchManySpaces.js +13 -2
- package/dist/cjs/hooks/spaces/useFetchManySpaces.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpace.d.ts +5 -3
- package/dist/cjs/hooks/spaces/useFetchSpace.js +6 -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 +5 -3
- package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.js +7 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.d.ts +5 -3
- package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.js +7 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceChildren.d.ts +4 -3
- package/dist/cjs/hooks/spaces/useFetchSpaceChildren.js +8 -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 +2 -13
- package/dist/cjs/hooks/spaces/useFetchSpaceMembers.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceTeam.d.ts +6 -0
- package/dist/cjs/hooks/{entities/useDownvoteEntity.js → spaces/useFetchSpaceTeam.js} +17 -15
- package/dist/cjs/hooks/spaces/useFetchSpaceTeam.js.map +1 -0
- package/dist/cjs/hooks/spaces/useFetchUserSpaces.d.ts +12 -0
- package/dist/cjs/hooks/spaces/{useFetchMySpaces.js → useFetchUserSpaces.js} +31 -8
- package/dist/cjs/hooks/spaces/useFetchUserSpaces.js.map +1 -0
- 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 +26 -0
- package/dist/cjs/hooks/spaces/useModerateSpaceComment.js +85 -0
- package/dist/cjs/hooks/spaces/useModerateSpaceComment.js.map +1 -0
- package/dist/cjs/hooks/spaces/useModerateSpaceEntity.d.ts +26 -0
- package/dist/cjs/hooks/spaces/useModerateSpaceEntity.js +85 -0
- package/dist/cjs/hooks/spaces/useModerateSpaceEntity.js.map +1 -0
- 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/useSpaceData.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useSpaceData.js +9 -4
- package/dist/cjs/hooks/spaces/useSpaceData.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/spaces/useUpdateSpace.d.ts +7 -2
- package/dist/cjs/hooks/spaces/useUpdateSpace.js +49 -4
- package/dist/cjs/hooks/spaces/useUpdateSpace.js.map +1 -1
- package/dist/cjs/hooks/storage/index.d.ts +2 -1
- package/dist/cjs/hooks/storage/index.js +3 -1
- package/dist/cjs/hooks/storage/index.js.map +1 -1
- package/dist/cjs/hooks/storage/useUploadFile.d.ts +16 -5
- package/dist/cjs/hooks/storage/useUploadFile.js +22 -9
- package/dist/cjs/hooks/storage/useUploadFile.js.map +1 -1
- package/dist/cjs/hooks/storage/useUploadImage.d.ts +14 -0
- package/dist/cjs/hooks/storage/useUploadImage.js +158 -0
- package/dist/cjs/hooks/storage/useUploadImage.js.map +1 -0
- package/dist/cjs/hooks/user/index.d.ts +1 -0
- package/dist/cjs/hooks/user/useUser.js +8 -8
- package/dist/cjs/hooks/user/useUser.js.map +1 -1
- package/dist/cjs/hooks/user/useUserActions.js +18 -5
- package/dist/cjs/hooks/user/useUserActions.js.map +1 -1
- package/dist/cjs/hooks/users/index.d.ts +6 -6
- package/dist/cjs/hooks/users/index.js +3 -3
- 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 +5 -3
- package/dist/cjs/hooks/users/useFetchUser.js +6 -2
- package/dist/cjs/hooks/users/useFetchUser.js.map +1 -1
- package/dist/cjs/hooks/users/useFetchUserByForeignId.d.ts +5 -3
- package/dist/cjs/hooks/users/useFetchUserByForeignId.js +5 -2
- package/dist/cjs/hooks/users/useFetchUserByForeignId.js.map +1 -1
- package/dist/cjs/hooks/users/useFetchUserByUsername.d.ts +7 -0
- package/dist/cjs/hooks/{comments/useRemoveCommentUpvote.js → users/useFetchUserByUsername.js} +17 -13
- package/dist/cjs/hooks/users/useFetchUserByUsername.js.map +1 -0
- 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 +4 -3
- package/dist/cjs/hooks/utils/useGetMetadata.js.map +1 -1
- package/dist/cjs/index.d.ts +36 -25
- package/dist/cjs/index.js +70 -23
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/IAccountStorage.d.ts +6 -0
- package/dist/cjs/interfaces/IAccountStorage.js +3 -0
- package/dist/cjs/interfaces/IAccountStorage.js.map +1 -0
- 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/interfaces/models/AppNotification.d.ts +36 -2
- package/dist/cjs/interfaces/models/{List.d.ts → Collection.d.ts} +2 -4
- package/dist/cjs/interfaces/models/Collection.js +3 -0
- package/dist/cjs/interfaces/models/Collection.js.map +1 -0
- package/dist/cjs/interfaces/models/Comment.d.ts +13 -1
- package/dist/cjs/interfaces/models/Entity.d.ts +14 -1
- package/dist/cjs/interfaces/models/File.d.ts +38 -0
- package/dist/cjs/interfaces/models/{List.js → File.js} +1 -1
- package/dist/cjs/interfaces/models/File.js.map +1 -0
- package/dist/cjs/interfaces/models/Image.d.ts +74 -0
- package/dist/cjs/interfaces/models/Image.js +3 -0
- package/dist/cjs/interfaces/models/Image.js.map +1 -0
- package/dist/cjs/interfaces/models/Reaction.d.ts +23 -0
- package/dist/cjs/interfaces/models/Reaction.js +3 -0
- package/dist/cjs/interfaces/models/Reaction.js.map +1 -0
- package/dist/cjs/interfaces/models/Rule.d.ts +22 -0
- package/dist/cjs/interfaces/models/Rule.js +3 -0
- package/dist/cjs/interfaces/models/Rule.js.map +1 -0
- package/dist/cjs/interfaces/models/Space.d.ts +12 -5
- package/dist/cjs/interfaces/models/SpaceMember.d.ts +3 -0
- package/dist/cjs/interfaces/models/User.d.ts +10 -3
- package/dist/cjs/store/api/appNotificationsApi.d.ts +181 -181
- package/dist/cjs/store/api/baseApi.d.ts +3 -1
- package/dist/cjs/store/api/baseApi.js +10 -6
- package/dist/cjs/store/api/baseApi.js.map +1 -1
- package/dist/cjs/store/api/collectionsApi.d.ts +4541 -0
- package/dist/cjs/store/api/collectionsApi.js +244 -0
- package/dist/cjs/store/api/collectionsApi.js.map +1 -0
- package/dist/cjs/store/api/entityListsApi.d.ts +107 -107
- package/dist/cjs/store/api/index.d.ts +1 -1
- package/dist/cjs/store/api/index.js +2 -2
- package/dist/cjs/store/api/index.js.map +1 -1
- package/dist/cjs/store/api/spacesApi.d.ts +968 -960
- package/dist/cjs/store/api/spacesApi.js +30 -12
- package/dist/cjs/store/api/spacesApi.js.map +1 -1
- package/dist/cjs/store/api/userApi.d.ts +12 -4
- package/dist/cjs/store/api/userApi.js +62 -11
- package/dist/cjs/store/api/userApi.js.map +1 -1
- package/dist/cjs/store/hooks.d.ts +27 -0
- package/dist/cjs/store/hooks.js +18 -0
- package/dist/cjs/store/hooks.js.map +1 -0
- package/dist/cjs/store/index.d.ts +19 -11
- package/dist/cjs/store/index.js +4 -1
- package/dist/cjs/store/index.js.map +1 -1
- package/dist/cjs/store/integration.d.ts +35 -0
- package/dist/cjs/store/integration.js +61 -0
- package/dist/cjs/store/integration.js.map +1 -0
- package/dist/cjs/store/replykeReducers.d.ts +38 -0
- package/dist/cjs/store/replykeReducers.js +44 -0
- package/dist/cjs/store/replykeReducers.js.map +1 -0
- package/dist/cjs/store/rootReducer.d.ts +30 -14
- package/dist/cjs/store/rootReducer.js +6 -19
- package/dist/cjs/store/rootReducer.js.map +1 -1
- package/dist/cjs/store/slices/accountsSlice.d.ts +41 -0
- package/dist/cjs/store/slices/accountsSlice.js +71 -0
- package/dist/cjs/store/slices/accountsSlice.js.map +1 -0
- package/dist/cjs/store/slices/appNotificationsSlice.d.ts +515 -8
- package/dist/cjs/store/slices/appNotificationsSlice.js +9 -9
- package/dist/cjs/store/slices/appNotificationsSlice.js.map +1 -1
- package/dist/cjs/store/slices/authSlice.d.ts +19 -7
- package/dist/cjs/store/slices/authSlice.js +19 -7
- package/dist/cjs/store/slices/authSlice.js.map +1 -1
- package/dist/cjs/store/slices/authThunks.d.ts +7 -0
- package/dist/cjs/store/slices/authThunks.js +168 -58
- package/dist/cjs/store/slices/authThunks.js.map +1 -1
- package/dist/cjs/store/slices/collectionsSlice.d.ts +428 -0
- package/dist/cjs/store/slices/collectionsSlice.js +211 -0
- package/dist/cjs/store/slices/collectionsSlice.js.map +1 -0
- package/dist/cjs/store/slices/entityListsSlice.d.ts +3838 -147
- package/dist/cjs/store/slices/entityListsSlice.js +2 -2
- package/dist/cjs/store/slices/entityListsSlice.js.map +1 -1
- package/dist/cjs/store/slices/spaceListsSlice.d.ts +1136 -65
- package/dist/cjs/store/slices/spaceListsSlice.js +14 -5
- package/dist/cjs/store/slices/spaceListsSlice.js.map +1 -1
- package/dist/cjs/store/slices/userSlice.d.ts +715 -7
- package/dist/cjs/store/slices/userSlice.js +22 -10
- package/dist/cjs/store/slices/userSlice.js.map +1 -1
- package/dist/cjs/store/types/index.d.ts +5 -1
- package/dist/cjs/utils/env.js +3 -3
- package/dist/cjs/utils/env.js.map +1 -1
- package/dist/esm/config/axios.js +1 -2
- package/dist/esm/config/axios.js.map +1 -1
- package/dist/esm/config/useAxiosPrivate.js +16 -10
- package/dist/esm/config/useAxiosPrivate.js.map +1 -1
- package/dist/esm/context/entity-context.d.ts +2 -2
- package/dist/esm/context/entity-context.js +4 -4
- package/dist/esm/context/entity-context.js.map +1 -1
- package/dist/esm/context/index.d.ts +1 -0
- package/dist/esm/context/index.js +1 -0
- package/dist/esm/context/index.js.map +1 -1
- package/dist/esm/context/replyke-integration-context.d.ts +52 -0
- package/dist/esm/context/replyke-integration-context.js +85 -0
- package/dist/esm/context/replyke-integration-context.js.map +1 -0
- package/dist/esm/context/replyke-store-context.js +21 -9
- package/dist/esm/context/replyke-store-context.js.map +1 -1
- package/dist/esm/helpers/addNotificationsMessages.js +14 -1
- package/dist/esm/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/esm/hooks/app-notifications/useAppNotifications.js +16 -40
- package/dist/esm/hooks/app-notifications/useAppNotifications.js.map +1 -1
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.d.ts +3 -0
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.js +15 -24
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.js.map +1 -1
- package/dist/esm/hooks/auth/index.d.ts +9 -1
- package/dist/esm/hooks/auth/index.js +8 -0
- package/dist/esm/hooks/auth/index.js.map +1 -1
- package/dist/esm/hooks/auth/useAccountSync.d.ts +2 -0
- package/dist/esm/hooks/auth/useAccountSync.js +167 -0
- package/dist/esm/hooks/auth/useAccountSync.js.map +1 -0
- package/dist/esm/hooks/auth/useAccounts.d.ts +7 -0
- package/dist/esm/hooks/auth/useAccounts.js +20 -0
- package/dist/esm/hooks/auth/useAccounts.js.map +1 -0
- package/dist/esm/hooks/auth/useAddAccount.d.ts +5 -0
- package/dist/esm/hooks/auth/useAddAccount.js +24 -0
- package/dist/esm/hooks/auth/useAddAccount.js.map +1 -0
- package/dist/esm/hooks/auth/useAuth.d.ts +31 -24
- package/dist/esm/hooks/auth/useAuth.js +5 -5
- package/dist/esm/hooks/auth/useAuth.js.map +1 -1
- package/dist/esm/hooks/auth/useOAuthIdentities.d.ts +19 -0
- package/dist/esm/hooks/{reports/useFetchSpaceReports.js → auth/useOAuthIdentities.js} +59 -42
- package/dist/esm/hooks/auth/useOAuthIdentities.js.map +1 -0
- package/dist/esm/hooks/auth/useRemoveAccount.d.ts +6 -0
- package/dist/esm/hooks/auth/useRemoveAccount.js +122 -0
- package/dist/esm/hooks/auth/useRemoveAccount.js.map +1 -0
- package/dist/esm/hooks/auth/useRequestPasswordReset.d.ts +5 -0
- package/dist/esm/hooks/{entities/useRemoveEntityDownvote.js → auth/useRequestPasswordReset.js} +13 -14
- package/dist/esm/hooks/auth/useRequestPasswordReset.js.map +1 -0
- package/dist/esm/hooks/auth/useSignOutAll.d.ts +4 -0
- package/dist/esm/hooks/auth/useSignOutAll.js +65 -0
- package/dist/esm/hooks/auth/useSignOutAll.js.map +1 -0
- package/dist/esm/hooks/auth/useSwitchAccount.d.ts +6 -0
- package/dist/esm/hooks/auth/useSwitchAccount.js +97 -0
- package/dist/esm/hooks/auth/useSwitchAccount.js.map +1 -0
- package/dist/esm/hooks/collections/index.d.ts +4 -0
- package/dist/esm/hooks/collections/index.js +6 -0
- package/dist/esm/hooks/collections/index.js.map +1 -0
- package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.d.ts +21 -0
- package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.js +206 -0
- package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.js.map +1 -0
- package/dist/esm/hooks/collections/useCollections.d.ts +48 -0
- package/dist/esm/hooks/collections/useCollections.js +259 -0
- package/dist/esm/hooks/collections/useCollections.js.map +1 -0
- package/dist/esm/hooks/collections/useCollectionsActions.d.ts +21 -0
- package/dist/esm/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +105 -111
- package/dist/esm/hooks/collections/useCollectionsActions.js.map +1 -0
- package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.d.ts +2 -2
- package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.js +3 -4
- package/dist/esm/hooks/collections/useIsEntitySaved.js.map +1 -0
- package/dist/esm/hooks/comments/index.d.ts +10 -2
- package/dist/esm/hooks/comments/index.js +1 -2
- 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 +40 -12
- 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/useEntityComments.d.ts +2 -1
- package/dist/esm/hooks/comments/useEntityComments.js +2 -1
- package/dist/esm/hooks/comments/useEntityComments.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchComment.d.ts +5 -5
- package/dist/esm/hooks/comments/useFetchComment.js +7 -5
- package/dist/esm/hooks/comments/useFetchComment.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.d.ts +5 -5
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.js +9 -6
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchManyComments.d.ts +5 -4
- package/dist/esm/hooks/comments/useFetchManyComments.js +8 -9
- package/dist/esm/hooks/comments/useFetchManyComments.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.d.ts +21 -0
- package/dist/esm/hooks/comments/{useProfileComments.js → useFetchManyCommentsWrapper.js} +40 -18
- package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -0
- package/dist/esm/hooks/comments/useReplies.d.ts +3 -2
- package/dist/esm/hooks/comments/useReplies.js +1 -0
- 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 +7 -3
- package/dist/esm/hooks/crypto/useSignTestingJwt.js +11 -14
- package/dist/esm/hooks/crypto/useSignTestingJwt.js.map +1 -1
- package/dist/esm/hooks/entities/index.d.ts +10 -5
- package/dist/esm/hooks/entities/index.js +3 -5
- package/dist/esm/hooks/entities/index.js.map +1 -1
- package/dist/esm/hooks/entities/useCreateEntity.d.ts +25 -2
- package/dist/esm/hooks/entities/useCreateEntity.js +93 -15
- package/dist/esm/hooks/entities/useCreateEntity.js.map +1 -1
- package/dist/esm/hooks/entities/useDeleteEntity.d.ts +3 -2
- package/dist/esm/hooks/entities/useDeleteEntity.js +1 -3
- package/dist/esm/hooks/entities/useDeleteEntity.js.map +1 -1
- package/dist/esm/hooks/entities/useEntityData.d.ts +24 -12
- package/dist/esm/hooks/entities/useEntityData.js +0 -19
- package/dist/esm/hooks/entities/useEntityData.js.map +1 -1
- package/dist/esm/hooks/entities/useFetchDrafts.d.ts +11 -0
- package/dist/esm/hooks/entities/useFetchDrafts.js +76 -0
- package/dist/esm/hooks/entities/useFetchDrafts.js.map +1 -0
- package/dist/esm/hooks/entities/useFetchEntity.d.ts +3 -2
- package/dist/esm/hooks/entities/useFetchEntity.js +6 -6
- package/dist/esm/hooks/entities/useFetchEntity.js.map +1 -1
- package/dist/esm/hooks/entities/useFetchEntityByForeignId.d.ts +3 -2
- package/dist/esm/hooks/entities/useFetchEntityByForeignId.js +8 -17
- package/dist/esm/hooks/entities/useFetchEntityByForeignId.js.map +1 -1
- package/dist/esm/hooks/entities/useFetchEntityByShortId.d.ts +3 -2
- package/dist/esm/hooks/entities/useFetchEntityByShortId.js +7 -17
- package/dist/esm/hooks/entities/useFetchEntityByShortId.js.map +1 -1
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.d.ts +41 -0
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js +236 -0
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
- package/dist/esm/hooks/entities/usePublishDraft.d.ts +6 -0
- package/dist/esm/hooks/entities/{useUpvoteEntity.js → usePublishDraft.js} +11 -11
- package/dist/esm/hooks/entities/usePublishDraft.js.map +1 -0
- package/dist/esm/hooks/entities/useUpdateEntity.js +7 -3
- package/dist/esm/hooks/entities/useUpdateEntity.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 +10 -10
- package/dist/esm/hooks/entity-lists/useEntityList.js.map +1 -1
- package/dist/esm/hooks/entity-lists/useEntityListActions.js +2 -2
- package/dist/esm/hooks/entity-lists/useEntityListActions.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 +14 -0
- package/dist/esm/hooks/reactions/index.js +8 -0
- package/dist/esm/hooks/reactions/index.js.map +1 -0
- package/dist/esm/hooks/reactions/useAddReaction.d.ts +10 -0
- package/dist/esm/hooks/reactions/useAddReaction.js +72 -0
- package/dist/esm/hooks/reactions/useAddReaction.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactions.d.ts +11 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactions.js +79 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactions.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.d.ts +17 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.js +165 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactions.d.ts +11 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactions.js +79 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactions.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.d.ts +17 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.js +165 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.js.map +1 -0
- package/dist/esm/hooks/reactions/useReactionToggle.d.ts +20 -0
- package/dist/esm/hooks/reactions/useReactionToggle.js +141 -0
- package/dist/esm/hooks/reactions/useReactionToggle.js.map +1 -0
- package/dist/esm/hooks/reactions/useRemoveReaction.d.ts +8 -0
- package/dist/esm/hooks/{comments/useDownvoteComment.js → reactions/useRemoveReaction.js} +16 -13
- package/dist/esm/hooks/reactions/useRemoveReaction.js.map +1 -0
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/useFetchConnections.js +0 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnections.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsCount.js +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsCount.js.map +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/useFetchReceivedPendingConnections.js +0 -1
- package/dist/esm/hooks/relationships/connections/useFetchReceivedPendingConnections.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchSentPendingConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchSentPendingConnections.js +0 -1
- package/dist/esm/hooks/relationships/connections/useFetchSentPendingConnections.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useRemoveConnection.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useRemoveConnection.js +1 -1
- 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 +1 -1
- package/dist/esm/hooks/relationships/connections/useRemoveConnectionByUserId.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useRequestConnection.js +1 -1
- package/dist/esm/hooks/relationships/connections/useRequestConnection.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 +1 -3
- package/dist/esm/hooks/relationships/follows/useFetchFollowStatus.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowers.js +0 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowers.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowersCount.js +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowersCount.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/useFetchFollowing.js +0 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowing.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowingCount.js +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowingCount.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 +1 -1
- 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 +1 -3
- 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 +1 -3
- package/dist/esm/hooks/relationships/follows/useUnfollowUserByUserId.js.map +1 -1
- package/dist/esm/hooks/reports/index.d.ts +5 -1
- package/dist/esm/hooks/reports/index.js +1 -1
- package/dist/esm/hooks/reports/index.js.map +1 -1
- package/dist/esm/hooks/reports/useCreateReport.d.ts +16 -3
- package/dist/esm/hooks/reports/useCreateReport.js +3 -3
- package/dist/esm/hooks/reports/useCreateReport.js.map +1 -1
- package/dist/esm/hooks/reports/useFetchModeratedReports.d.ts +60 -0
- package/dist/esm/hooks/reports/useFetchModeratedReports.js +86 -0
- package/dist/esm/hooks/reports/useFetchModeratedReports.js.map +1 -0
- package/dist/esm/hooks/reports/useHandleSpaceCommentReport.d.ts +5 -5
- package/dist/esm/hooks/reports/useHandleSpaceCommentReport.js +2 -2
- package/dist/esm/hooks/reports/useHandleSpaceEntityReport.d.ts +5 -5
- package/dist/esm/hooks/reports/useHandleSpaceEntityReport.js +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 +22 -17
- package/dist/esm/hooks/space-lists/useSpaceList.js +29 -14
- package/dist/esm/hooks/space-lists/useSpaceList.js.map +1 -1
- package/dist/esm/hooks/space-lists/useSpaceListActions.d.ts +7 -4
- package/dist/esm/hooks/space-lists/useSpaceListActions.js +6 -3
- package/dist/esm/hooks/space-lists/useSpaceListActions.js.map +1 -1
- package/dist/esm/hooks/spaces/index.d.ts +27 -1
- package/dist/esm/hooks/spaces/index.js +7 -1
- package/dist/esm/hooks/spaces/index.js.map +1 -1
- package/dist/esm/hooks/spaces/rules/index.d.ts +12 -0
- package/dist/esm/hooks/spaces/rules/index.js +7 -0
- package/dist/esm/hooks/spaces/rules/index.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useCreateRule.d.ts +8 -0
- package/dist/esm/hooks/spaces/rules/useCreateRule.js +72 -0
- package/dist/esm/hooks/spaces/rules/useCreateRule.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useDeleteRule.d.ts +7 -0
- package/dist/esm/hooks/spaces/rules/useDeleteRule.js +69 -0
- package/dist/esm/hooks/spaces/rules/useDeleteRule.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useFetchManyRules.d.ts +6 -0
- package/dist/esm/hooks/{comments/useUpvoteComment.js → spaces/rules/useFetchManyRules.js} +15 -15
- package/dist/esm/hooks/spaces/rules/useFetchManyRules.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useFetchRule.d.ts +7 -0
- package/dist/esm/hooks/{entities/useRemoveEntityUpvote.js → spaces/rules/useFetchRule.js} +18 -15
- package/dist/esm/hooks/spaces/rules/useFetchRule.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useReorderRules.d.ts +7 -0
- package/dist/esm/hooks/{comments/useRemoveCommentDownvote.js → spaces/rules/useReorderRules.js} +18 -15
- package/dist/esm/hooks/spaces/rules/useReorderRules.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useUpdateRule.d.ts +11 -0
- package/dist/esm/hooks/{users/useUpdateUser.js → spaces/rules/useUpdateRule.js} +15 -19
- package/dist/esm/hooks/spaces/rules/useUpdateRule.js.map +1 -0
- 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/useCreateSpace.d.ts +7 -2
- package/dist/esm/hooks/spaces/useCreateSpace.js +54 -3
- package/dist/esm/hooks/spaces/useCreateSpace.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 +8 -4
- package/dist/esm/hooks/spaces/useFetchManySpaces.js +13 -2
- package/dist/esm/hooks/spaces/useFetchManySpaces.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpace.d.ts +5 -3
- package/dist/esm/hooks/spaces/useFetchSpace.js +6 -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 +5 -3
- package/dist/esm/hooks/spaces/useFetchSpaceByShortId.js +7 -2
- package/dist/esm/hooks/spaces/useFetchSpaceByShortId.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceBySlug.d.ts +5 -3
- package/dist/esm/hooks/spaces/useFetchSpaceBySlug.js +7 -2
- package/dist/esm/hooks/spaces/useFetchSpaceBySlug.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceChildren.d.ts +4 -3
- package/dist/esm/hooks/spaces/useFetchSpaceChildren.js +8 -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 +2 -13
- package/dist/esm/hooks/spaces/useFetchSpaceMembers.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceTeam.d.ts +6 -0
- package/dist/esm/hooks/{entities/useDownvoteEntity.js → spaces/useFetchSpaceTeam.js} +17 -15
- package/dist/esm/hooks/spaces/useFetchSpaceTeam.js.map +1 -0
- package/dist/esm/hooks/spaces/useFetchUserSpaces.d.ts +12 -0
- package/dist/esm/hooks/spaces/{useFetchMySpaces.js → useFetchUserSpaces.js} +31 -8
- package/dist/esm/hooks/spaces/useFetchUserSpaces.js.map +1 -0
- 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 +26 -0
- package/dist/esm/hooks/spaces/useModerateSpaceComment.js +80 -0
- package/dist/esm/hooks/spaces/useModerateSpaceComment.js.map +1 -0
- package/dist/esm/hooks/spaces/useModerateSpaceEntity.d.ts +26 -0
- package/dist/esm/hooks/spaces/useModerateSpaceEntity.js +80 -0
- package/dist/esm/hooks/spaces/useModerateSpaceEntity.js.map +1 -0
- 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/useSpaceData.d.ts +3 -2
- package/dist/esm/hooks/spaces/useSpaceData.js +10 -5
- package/dist/esm/hooks/spaces/useSpaceData.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/spaces/useUpdateSpace.d.ts +7 -2
- package/dist/esm/hooks/spaces/useUpdateSpace.js +49 -4
- package/dist/esm/hooks/spaces/useUpdateSpace.js.map +1 -1
- package/dist/esm/hooks/storage/index.d.ts +2 -1
- package/dist/esm/hooks/storage/index.js +2 -1
- package/dist/esm/hooks/storage/index.js.map +1 -1
- package/dist/esm/hooks/storage/useUploadFile.d.ts +16 -5
- package/dist/esm/hooks/storage/useUploadFile.js +22 -9
- package/dist/esm/hooks/storage/useUploadFile.js.map +1 -1
- package/dist/esm/hooks/storage/useUploadImage.d.ts +14 -0
- package/dist/esm/hooks/storage/useUploadImage.js +153 -0
- package/dist/esm/hooks/storage/useUploadImage.js.map +1 -0
- package/dist/esm/hooks/user/index.d.ts +1 -0
- package/dist/esm/hooks/user/useUser.js +8 -8
- package/dist/esm/hooks/user/useUser.js.map +1 -1
- package/dist/esm/hooks/user/useUserActions.js +19 -6
- package/dist/esm/hooks/user/useUserActions.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 +5 -3
- package/dist/esm/hooks/users/useFetchUser.js +6 -2
- package/dist/esm/hooks/users/useFetchUser.js.map +1 -1
- package/dist/esm/hooks/users/useFetchUserByForeignId.d.ts +5 -3
- package/dist/esm/hooks/users/useFetchUserByForeignId.js +5 -2
- package/dist/esm/hooks/users/useFetchUserByForeignId.js.map +1 -1
- package/dist/esm/hooks/users/useFetchUserByUsername.d.ts +7 -0
- package/dist/esm/hooks/{comments/useRemoveCommentUpvote.js → users/useFetchUserByUsername.js} +17 -13
- package/dist/esm/hooks/users/useFetchUserByUsername.js.map +1 -0
- 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 +3 -2
- package/dist/esm/hooks/utils/useGetMetadata.js.map +1 -1
- package/dist/esm/index.d.ts +36 -25
- package/dist/esm/index.js +25 -13
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/IAccountStorage.d.ts +6 -0
- package/dist/esm/interfaces/IAccountStorage.js +2 -0
- package/dist/esm/interfaces/IAccountStorage.js.map +1 -0
- 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/interfaces/models/AppNotification.d.ts +36 -2
- package/dist/esm/interfaces/models/{List.d.ts → Collection.d.ts} +2 -4
- package/dist/esm/interfaces/models/Collection.js +2 -0
- package/dist/esm/interfaces/models/Collection.js.map +1 -0
- package/dist/esm/interfaces/models/Comment.d.ts +13 -1
- package/dist/esm/interfaces/models/Entity.d.ts +14 -1
- package/dist/esm/interfaces/models/File.d.ts +38 -0
- package/dist/esm/interfaces/models/File.js +2 -0
- package/dist/esm/interfaces/models/File.js.map +1 -0
- package/dist/esm/interfaces/models/Image.d.ts +74 -0
- package/dist/esm/interfaces/models/Image.js +2 -0
- package/dist/esm/interfaces/models/Image.js.map +1 -0
- package/dist/esm/interfaces/models/Reaction.d.ts +23 -0
- package/dist/esm/interfaces/models/Reaction.js +2 -0
- package/dist/esm/interfaces/models/Reaction.js.map +1 -0
- package/dist/esm/interfaces/models/Rule.d.ts +22 -0
- package/dist/esm/interfaces/models/Rule.js +2 -0
- package/dist/esm/interfaces/models/Rule.js.map +1 -0
- package/dist/esm/interfaces/models/Space.d.ts +12 -5
- package/dist/esm/interfaces/models/SpaceMember.d.ts +3 -0
- package/dist/esm/interfaces/models/User.d.ts +10 -3
- package/dist/esm/store/api/appNotificationsApi.d.ts +181 -181
- package/dist/esm/store/api/baseApi.d.ts +3 -1
- package/dist/esm/store/api/baseApi.js +9 -5
- package/dist/esm/store/api/baseApi.js.map +1 -1
- package/dist/esm/store/api/collectionsApi.d.ts +4541 -0
- package/dist/esm/store/api/collectionsApi.js +241 -0
- package/dist/esm/store/api/collectionsApi.js.map +1 -0
- package/dist/esm/store/api/entityListsApi.d.ts +107 -107
- package/dist/esm/store/api/index.d.ts +1 -1
- package/dist/esm/store/api/index.js +2 -2
- package/dist/esm/store/api/index.js.map +1 -1
- package/dist/esm/store/api/spacesApi.d.ts +968 -960
- package/dist/esm/store/api/spacesApi.js +29 -11
- package/dist/esm/store/api/spacesApi.js.map +1 -1
- package/dist/esm/store/api/userApi.d.ts +12 -4
- package/dist/esm/store/api/userApi.js +62 -11
- package/dist/esm/store/api/userApi.js.map +1 -1
- package/dist/esm/store/hooks.d.ts +27 -0
- package/dist/esm/store/hooks.js +14 -0
- package/dist/esm/store/hooks.js.map +1 -0
- package/dist/esm/store/index.d.ts +19 -11
- package/dist/esm/store/index.js +4 -1
- package/dist/esm/store/index.js.map +1 -1
- package/dist/esm/store/integration.d.ts +35 -0
- package/dist/esm/store/integration.js +53 -0
- package/dist/esm/store/integration.js.map +1 -0
- package/dist/esm/store/replykeReducers.d.ts +38 -0
- package/dist/esm/store/replykeReducers.js +38 -0
- package/dist/esm/store/replykeReducers.js.map +1 -0
- package/dist/esm/store/rootReducer.d.ts +30 -14
- package/dist/esm/store/rootReducer.js +6 -16
- package/dist/esm/store/rootReducer.js.map +1 -1
- package/dist/esm/store/slices/accountsSlice.d.ts +41 -0
- package/dist/esm/store/slices/accountsSlice.js +64 -0
- package/dist/esm/store/slices/accountsSlice.js.map +1 -0
- package/dist/esm/store/slices/appNotificationsSlice.d.ts +515 -8
- package/dist/esm/store/slices/appNotificationsSlice.js +9 -9
- package/dist/esm/store/slices/appNotificationsSlice.js.map +1 -1
- package/dist/esm/store/slices/authSlice.d.ts +19 -7
- package/dist/esm/store/slices/authSlice.js +19 -7
- package/dist/esm/store/slices/authSlice.js.map +1 -1
- package/dist/esm/store/slices/authThunks.d.ts +7 -0
- package/dist/esm/store/slices/authThunks.js +167 -57
- package/dist/esm/store/slices/authThunks.js.map +1 -1
- package/dist/esm/store/slices/collectionsSlice.d.ts +428 -0
- package/dist/esm/store/slices/collectionsSlice.js +202 -0
- package/dist/esm/store/slices/collectionsSlice.js.map +1 -0
- package/dist/esm/store/slices/entityListsSlice.d.ts +3838 -147
- package/dist/esm/store/slices/entityListsSlice.js +2 -2
- package/dist/esm/store/slices/entityListsSlice.js.map +1 -1
- package/dist/esm/store/slices/spaceListsSlice.d.ts +1136 -65
- package/dist/esm/store/slices/spaceListsSlice.js +14 -5
- package/dist/esm/store/slices/spaceListsSlice.js.map +1 -1
- package/dist/esm/store/slices/userSlice.d.ts +715 -7
- package/dist/esm/store/slices/userSlice.js +22 -10
- package/dist/esm/store/slices/userSlice.js.map +1 -1
- package/dist/esm/store/types/index.d.ts +5 -1
- package/dist/esm/utils/env.js +3 -3
- package/dist/esm/utils/env.js.map +1 -1
- package/package.json +7 -5
- package/dist/cjs/hooks/comments/useCommentVotes.d.ts +0 -11
- package/dist/cjs/hooks/comments/useCommentVotes.js +0 -234
- package/dist/cjs/hooks/comments/useCommentVotes.js.map +0 -1
- package/dist/cjs/hooks/comments/useDownvoteComment.d.ts +0 -5
- package/dist/cjs/hooks/comments/useDownvoteComment.js.map +0 -1
- package/dist/cjs/hooks/comments/useProfileComments.d.ts +0 -18
- package/dist/cjs/hooks/comments/useProfileComments.js.map +0 -1
- package/dist/cjs/hooks/comments/useRemoveCommentDownvote.d.ts +0 -5
- package/dist/cjs/hooks/comments/useRemoveCommentDownvote.js.map +0 -1
- package/dist/cjs/hooks/comments/useRemoveCommentUpvote.d.ts +0 -5
- package/dist/cjs/hooks/comments/useRemoveCommentUpvote.js.map +0 -1
- package/dist/cjs/hooks/comments/useUpvoteComment.d.ts +0 -5
- package/dist/cjs/hooks/comments/useUpvoteComment.js.map +0 -1
- package/dist/cjs/hooks/entities/useDownvoteEntity.d.ts +0 -5
- package/dist/cjs/hooks/entities/useDownvoteEntity.js.map +0 -1
- package/dist/cjs/hooks/entities/useEntityVotes.d.ts +0 -11
- package/dist/cjs/hooks/entities/useEntityVotes.js +0 -241
- package/dist/cjs/hooks/entities/useEntityVotes.js.map +0 -1
- package/dist/cjs/hooks/entities/useRemoveEntityDownvote.d.ts +0 -5
- package/dist/cjs/hooks/entities/useRemoveEntityDownvote.js.map +0 -1
- package/dist/cjs/hooks/entities/useRemoveEntityUpvote.d.ts +0 -5
- package/dist/cjs/hooks/entities/useRemoveEntityUpvote.js.map +0 -1
- package/dist/cjs/hooks/entities/useUpvoteEntity.d.ts +0 -5
- package/dist/cjs/hooks/entities/useUpvoteEntity.js.map +0 -1
- package/dist/cjs/hooks/lists/index.d.ts +0 -3
- package/dist/cjs/hooks/lists/index.js +0 -14
- package/dist/cjs/hooks/lists/index.js.map +0 -1
- package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +0 -1
- package/dist/cjs/hooks/lists/useLists.d.ts +0 -36
- package/dist/cjs/hooks/lists/useLists.js +0 -239
- package/dist/cjs/hooks/lists/useLists.js.map +0 -1
- package/dist/cjs/hooks/lists/useListsActions.d.ts +0 -21
- package/dist/cjs/hooks/lists/useListsActions.js.map +0 -1
- package/dist/cjs/hooks/reports/useFetchSpaceReports.d.ts +0 -39
- package/dist/cjs/hooks/reports/useFetchSpaceReports.js.map +0 -1
- package/dist/cjs/hooks/spaces/useFetchMySpaces.d.ts +0 -8
- package/dist/cjs/hooks/spaces/useFetchMySpaces.js.map +0 -1
- package/dist/cjs/hooks/users/useUpdateUser.d.ts +0 -18
- package/dist/cjs/hooks/users/useUpdateUser.js.map +0 -1
- package/dist/cjs/interfaces/models/List.js.map +0 -1
- package/dist/cjs/store/api/listsApi.d.ts +0 -3564
- package/dist/cjs/store/api/listsApi.js +0 -288
- package/dist/cjs/store/api/listsApi.js.map +0 -1
- package/dist/cjs/store/slices/listsSlice.d.ts +0 -1911
- package/dist/cjs/store/slices/listsSlice.js +0 -211
- package/dist/cjs/store/slices/listsSlice.js.map +0 -1
- package/dist/esm/hooks/comments/useCommentVotes.d.ts +0 -11
- package/dist/esm/hooks/comments/useCommentVotes.js +0 -229
- package/dist/esm/hooks/comments/useCommentVotes.js.map +0 -1
- package/dist/esm/hooks/comments/useDownvoteComment.d.ts +0 -5
- package/dist/esm/hooks/comments/useDownvoteComment.js.map +0 -1
- package/dist/esm/hooks/comments/useProfileComments.d.ts +0 -18
- package/dist/esm/hooks/comments/useProfileComments.js.map +0 -1
- package/dist/esm/hooks/comments/useRemoveCommentDownvote.d.ts +0 -5
- package/dist/esm/hooks/comments/useRemoveCommentDownvote.js.map +0 -1
- package/dist/esm/hooks/comments/useRemoveCommentUpvote.d.ts +0 -5
- package/dist/esm/hooks/comments/useRemoveCommentUpvote.js.map +0 -1
- package/dist/esm/hooks/comments/useUpvoteComment.d.ts +0 -5
- package/dist/esm/hooks/comments/useUpvoteComment.js.map +0 -1
- package/dist/esm/hooks/entities/useDownvoteEntity.d.ts +0 -5
- package/dist/esm/hooks/entities/useDownvoteEntity.js.map +0 -1
- package/dist/esm/hooks/entities/useEntityVotes.d.ts +0 -11
- package/dist/esm/hooks/entities/useEntityVotes.js +0 -236
- package/dist/esm/hooks/entities/useEntityVotes.js.map +0 -1
- package/dist/esm/hooks/entities/useRemoveEntityDownvote.d.ts +0 -5
- package/dist/esm/hooks/entities/useRemoveEntityDownvote.js.map +0 -1
- package/dist/esm/hooks/entities/useRemoveEntityUpvote.d.ts +0 -5
- package/dist/esm/hooks/entities/useRemoveEntityUpvote.js.map +0 -1
- package/dist/esm/hooks/entities/useUpvoteEntity.d.ts +0 -5
- package/dist/esm/hooks/entities/useUpvoteEntity.js.map +0 -1
- package/dist/esm/hooks/lists/index.d.ts +0 -3
- package/dist/esm/hooks/lists/index.js +0 -5
- package/dist/esm/hooks/lists/index.js.map +0 -1
- package/dist/esm/hooks/lists/useIsEntitySaved.js.map +0 -1
- package/dist/esm/hooks/lists/useLists.d.ts +0 -36
- package/dist/esm/hooks/lists/useLists.js +0 -234
- package/dist/esm/hooks/lists/useLists.js.map +0 -1
- package/dist/esm/hooks/lists/useListsActions.d.ts +0 -21
- package/dist/esm/hooks/lists/useListsActions.js.map +0 -1
- package/dist/esm/hooks/reports/useFetchSpaceReports.d.ts +0 -39
- package/dist/esm/hooks/reports/useFetchSpaceReports.js.map +0 -1
- package/dist/esm/hooks/spaces/useFetchMySpaces.d.ts +0 -8
- package/dist/esm/hooks/spaces/useFetchMySpaces.js.map +0 -1
- package/dist/esm/hooks/users/useUpdateUser.d.ts +0 -18
- package/dist/esm/hooks/users/useUpdateUser.js.map +0 -1
- package/dist/esm/interfaces/models/List.js +0 -2
- package/dist/esm/interfaces/models/List.js.map +0 -1
- package/dist/esm/store/api/listsApi.d.ts +0 -3564
- package/dist/esm/store/api/listsApi.js +0 -285
- package/dist/esm/store/api/listsApi.js.map +0 -1
- package/dist/esm/store/slices/listsSlice.d.ts +0 -1911
- package/dist/esm/store/slices/listsSlice.js +0 -202
- package/dist/esm/store/slices/listsSlice.js.map +0 -1
package/dist/esm/index.d.ts
CHANGED
|
@@ -6,41 +6,52 @@ export { default as getPublicFileUrl } from "./helpers/getPublicFileUrl";
|
|
|
6
6
|
export { isDevelopment, isProduction, getApiBaseUrl, getEnvVar, } from "./utils/env";
|
|
7
7
|
export { reportReasons } from "./constants/reportReasons";
|
|
8
8
|
export type { ReportReasonKey } from "./constants/reportReasons";
|
|
9
|
-
export { ReplykeProvider, EntityProvider, CommentSectionProvider, SpaceProvider, } from "./context";
|
|
9
|
+
export { ReplykeProvider, ReplykeIntegrationProvider, EntityProvider, CommentSectionProvider, SpaceProvider, } from "./context";
|
|
10
|
+
export { replykeReducers, replykeApiReducer, replykeMiddleware, replykeApi, type ReplykeState, } from "./store/integration";
|
|
10
11
|
export { useProject, useProjectData } from "./hooks/projects";
|
|
11
|
-
export { useSignTestingJwt } from "./hooks/crypto";
|
|
12
|
-
export { useAuth, type UseAuthValues } from "./hooks/auth";
|
|
13
|
-
export {
|
|
12
|
+
export { useSignTestingJwt, type SignTestingJwtProps } from "./hooks/crypto";
|
|
13
|
+
export { useAuth, useRequestPasswordReset, type UseAuthValues, type SignUpWithEmailAndPasswordProps, type SignInWithEmailAndPasswordProps, type ChangePasswordProps, type RequestPasswordResetProps, } from "./hooks/auth";
|
|
14
|
+
export { useAccountSync, useAccounts, useSwitchAccount, useAddAccount, useRemoveAccount, useSignOutAll, type UseAccountsReturn, type UseSwitchAccountReturn, type UseAddAccountReturn, type UseRemoveAccountReturn, type UseSignOutAllReturn, } from "./hooks/auth";
|
|
15
|
+
export { useOAuthIdentities, type OAuthIdentity, type UseOAuthIdentitiesReturn, } from "./hooks/auth";
|
|
16
|
+
export { useReplykeDispatch, useReplykeSelector } from "./store/hooks";
|
|
17
|
+
export { setTokens, selectAccessToken } from "./store/slices/authSlice";
|
|
18
|
+
export { requestNewAccessTokenThunk } from "./store/slices/authThunks";
|
|
19
|
+
export type { IAccountStorage } from "./interfaces/IAccountStorage";
|
|
20
|
+
export { MAX_ACCOUNTS, type AccountSummary, type AccountEntry, type AccountMap, } from "./store/slices/accountsSlice";
|
|
21
|
+
export { useUser, useUserActions, type UseUserProps, type UseUserValues, type UpdateUserParams, } from "./hooks/user";
|
|
14
22
|
export { useAppNotifications, useAppNotificationsActions, type UseAppNotificationsProps, type UseAppNotificationsValues, } from "./hooks/app-notifications";
|
|
15
|
-
export {
|
|
16
|
-
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity,
|
|
17
|
-
export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListFilters, type EntityListSort, type EntityListFetchOptions, } from "./hooks/entity-lists";
|
|
18
|
-
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers,
|
|
19
|
-
export { useSpaceList, useSpaceListActions, type UseSpaceListProps, type UseSpaceListValues, } from "./hooks/space-lists";
|
|
20
|
-
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment,
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export { useUploadFile } from "./hooks/storage";
|
|
23
|
+
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";
|
|
24
|
+
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";
|
|
25
|
+
export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListCreateEntityProps, type EntityListDeleteEntityProps, type EntityListFilters, type EntityListSort, type EntityListFetchOptions, } from "./hooks/entity-lists";
|
|
26
|
+
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";
|
|
27
|
+
export { useSpaceList, useSpaceListActions, type UseSpaceListProps, type UseSpaceListValues, type SpaceListCreateSpaceProps, type SpaceListDeleteSpaceProps, type FetchSpacesOptions, type CreateSpaceOptions, type DeleteSpaceOptions, } from "./hooks/space-lists";
|
|
28
|
+
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";
|
|
29
|
+
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";
|
|
30
|
+
export { useFetchUser, useFetchUserByForeignId, useFetchUserByUsername, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, type FetchUserProps, type FetchUserByForeignIdProps, type FetchUserByUsernameProps, type CheckUsernameAvailabilityProps, type FetchUserSuggestionsProps, type UseMentionsProps, } from "./hooks/users";
|
|
31
|
+
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";
|
|
32
|
+
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";
|
|
33
|
+
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";
|
|
34
|
+
export { useGetMetadata, type GetMetadataProps } from "./hooks/utils";
|
|
35
|
+
export type { UrlMetadata, UrlMetadataImage, UrlMetadataVideo, UrlMetadataAudio, UrlMetadataTwitter, UrlMetadataArticle, UrlMetadataAppLinks, } from "./interfaces/UrlMetadata";
|
|
36
|
+
export { useUploadFile, useUploadImage, type RNFile, type UploadFileOptions, type UploadResponse, } from "./hooks/storage";
|
|
30
37
|
export type { PaginatedResponse, PaginationMetadata, } from "./interfaces/IPaginatedResponse";
|
|
31
38
|
export type { EntityCommentsTree } from "./interfaces/EntityCommentsTree";
|
|
32
|
-
export type { UserFull, User, AuthUser, UserRole, } from "./interfaces/models/User";
|
|
39
|
+
export type { UserFull, User, AuthUser, UserRole, UserInclude, UserIncludeArray, UserIncludeParam, } from "./interfaces/models/User";
|
|
33
40
|
export * as AppNotification from "./interfaces/models/AppNotification";
|
|
34
|
-
export type { Entity } from "./interfaces/models/Entity";
|
|
35
|
-
export type {
|
|
36
|
-
export type { Comment, GifData } from "./interfaces/models/Comment";
|
|
41
|
+
export type { Entity, EntityInclude, EntityIncludeArray, EntityIncludeParam, } from "./interfaces/models/Entity";
|
|
42
|
+
export type { Collection } from "./interfaces/models/Collection";
|
|
43
|
+
export type { Comment, GifData, CommentInclude, CommentIncludeArray, CommentIncludeParam, } from "./interfaces/models/Comment";
|
|
44
|
+
export type { Reaction, ReactionType, ReactionCounts, } from "./interfaces/models/Reaction";
|
|
37
45
|
export type { Mention } from "./interfaces/models/Mention";
|
|
38
|
-
export type { Space, SpaceDetailed, SpacePreview, SpaceMemberPermissions, ReadingPermission, PostingPermission, PaginationMeta,
|
|
39
|
-
export type { SpaceMember, SpaceMemberRole, SpaceMemberStatus, SpaceMemberWithUser, SpaceMembersResponse, } from "./interfaces/models/SpaceMember";
|
|
46
|
+
export type { Space, SpaceDetailed, SpacePreview, SpaceMemberPermissions, ReadingPermission, PostingPermission, PaginationMeta, UserSpaceItem, UserSpacesResponse, JoinSpaceResponse, LeaveSpaceResponse, UpdateMemberRoleResponse, ApproveMemberResponse, DeclineMemberResponse, DeleteSpaceResponse, SpaceInclude, SpaceIncludeArray, SpaceIncludeParam, } from "./interfaces/models/Space";
|
|
47
|
+
export type { SpaceMember, SpaceMemberRole, SpaceMemberStatus, SpaceMemberWithUser, SpaceMembersResponse, SpaceTeamResponse, } from "./interfaces/models/SpaceMember";
|
|
40
48
|
export type { SpaceListSortByOptions, SpaceListFilters, } from "./interfaces/SpaceListSortByOptions";
|
|
41
49
|
export type { SpaceBreadcrumb } from "./interfaces/SpaceBreadcrumb";
|
|
50
|
+
export type { Rule, FetchManyRulesResponse, DeleteRuleResponse, } from "./interfaces/models/Rule";
|
|
42
51
|
export type { CommentsSortByOptions } from "./interfaces/CommentsSortByOptions";
|
|
43
52
|
export type { EntityListSortByOptions, SortDirection, SortType, } from "./interfaces/EntityListSortByOptions";
|
|
44
53
|
export { validateSortBy, validateMetadataPropertyName, validateSortType, } from "./interfaces/EntityListSortByOptions";
|
|
45
54
|
export type { TimeFrame } from "./interfaces/TimeFrame";
|
|
46
55
|
export type { Connection, EstablishedConnection, PendingConnection, ConnectionsResponse, PendingConnectionsResponse, PendingConnectionListResponse, ConnectionRequestParams, ConnectionActionResponse, ConnectionWithdrawResponse, ConnectionCountResponse, RemoveConnectionByUserIdResponse, ConnectionStatusResponse, ConnectionStatus, } from "./interfaces/models/Connection";
|
|
56
|
+
export type { Image, ImageVariant, UploadImageOptions, } from "./interfaces/models/Image";
|
|
57
|
+
export type { File } from "./interfaces/models/File";
|
package/dist/esm/index.js
CHANGED
|
@@ -8,44 +8,56 @@ export { isDevelopment, isProduction, getApiBaseUrl, getEnvVar, } from "./utils/
|
|
|
8
8
|
// Constants
|
|
9
9
|
export { reportReasons } from "./constants/reportReasons";
|
|
10
10
|
// Context providers (Redux-powered by default)
|
|
11
|
-
export { ReplykeProvider, EntityProvider, CommentSectionProvider, SpaceProvider, } from "./context";
|
|
11
|
+
export { ReplykeProvider, ReplykeIntegrationProvider, EntityProvider, CommentSectionProvider, SpaceProvider, } from "./context";
|
|
12
|
+
// Integration mode exports (for users with their own Redux store)
|
|
13
|
+
export { replykeReducers, replykeApiReducer, replykeMiddleware, replykeApi, } from "./store/integration";
|
|
12
14
|
// -- projects
|
|
13
15
|
export { useProject, useProjectData } from "./hooks/projects";
|
|
14
16
|
// -- crypto
|
|
15
17
|
export { useSignTestingJwt } from "./hooks/crypto";
|
|
16
18
|
// -- authentication
|
|
17
|
-
export { useAuth } from "./hooks/auth";
|
|
19
|
+
export { useAuth, useRequestPasswordReset, } from "./hooks/auth";
|
|
20
|
+
// -- authentication (accounts)
|
|
21
|
+
export { useAccountSync, useAccounts, useSwitchAccount, useAddAccount, useRemoveAccount, useSignOutAll, } from "./hooks/auth";
|
|
22
|
+
// -- authentication (OAuth)
|
|
23
|
+
export { useOAuthIdentities, } from "./hooks/auth";
|
|
24
|
+
// -- store internals (for platform-specific hooks in react-js / react-native)
|
|
25
|
+
export { useReplykeDispatch, useReplykeSelector } from "./store/hooks";
|
|
26
|
+
export { setTokens, selectAccessToken } from "./store/slices/authSlice";
|
|
27
|
+
export { requestNewAccessTokenThunk } from "./store/slices/authThunks";
|
|
28
|
+
export { MAX_ACCOUNTS, } from "./store/slices/accountsSlice";
|
|
18
29
|
// -- (current) user
|
|
19
30
|
export { useUser, useUserActions, } from "./hooks/user";
|
|
20
31
|
// -- app notifications
|
|
21
32
|
export { useAppNotifications, useAppNotificationsActions, } from "./hooks/app-notifications";
|
|
22
|
-
// --
|
|
23
|
-
export {
|
|
33
|
+
// -- collections
|
|
34
|
+
export { useCollections, useCollectionsActions, useIsEntityInCollection, useCollectionEntitiesWrapper, } from "./hooks/collections";
|
|
24
35
|
// -- entities
|
|
25
|
-
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity,
|
|
36
|
+
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useIncrementEntityViews, useFetchManyEntitiesWrapper, useUpdateEntity, useFetchDrafts, usePublishDraft, } from "./hooks/entities";
|
|
26
37
|
// -- entity lists
|
|
27
38
|
export { useEntityList, useEntityListActions, } from "./hooks/entity-lists";
|
|
28
39
|
// -- spaces
|
|
29
|
-
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers,
|
|
40
|
+
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,
|
|
41
|
+
// Rule hooks
|
|
42
|
+
useCreateRule, useUpdateRule, useDeleteRule, useFetchRule, useFetchManyRules, useReorderRules, } from "./hooks/spaces";
|
|
30
43
|
// -- space lists
|
|
31
44
|
export { useSpaceList, useSpaceListActions, } from "./hooks/space-lists";
|
|
32
45
|
// -- comments
|
|
33
|
-
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment,
|
|
46
|
+
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useDeleteComment, useEntityComments, useFetchManyCommentsWrapper, } from "./hooks/comments";
|
|
47
|
+
// -- reactions
|
|
48
|
+
export { useFetchEntityReactions, useFetchCommentReactions, useFetchEntityReactionsWrapper, useFetchCommentReactionsWrapper, useAddReaction, useRemoveReaction, useReactionToggle, } from "./hooks/reactions";
|
|
34
49
|
// -- users
|
|
35
|
-
export { useFetchUser, useFetchUserByForeignId, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions,
|
|
50
|
+
export { useFetchUser, useFetchUserByForeignId, useFetchUserByUsername, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, } from "./hooks/users";
|
|
36
51
|
// -- follows
|
|
37
52
|
export { useFetchFollowStatus, useFetchFollowers, useFetchFollowersByUserId, useFetchFollowersCount, useFetchFollowersCountByUserId, useFetchFollowing, useFetchFollowingByUserId, useFetchFollowingCount, useFetchFollowingCountByUserId, useFollowManager, useFollowUser, useUnfollowByFollowId, useUnfollowUserByUserId, } from "./hooks/relationships/follows";
|
|
38
53
|
// -- connections
|
|
39
54
|
export { useRequestConnection, useAcceptConnection, useDeclineConnection, useRemoveConnection, useFetchConnections, useFetchConnectionStatus, useRemoveConnectionByUserId, useFetchConnectionsCount, useFetchSentPendingConnections, useFetchReceivedPendingConnections, useFetchConnectionsByUserId, useFetchConnectionsCountByUserId, useConnectionManager, } from "./hooks/relationships/connections";
|
|
40
55
|
// -- reports
|
|
41
|
-
export { useCreateReport } from "./hooks/reports";
|
|
42
|
-
export { useFetchSpaceReports } from "./hooks/reports";
|
|
43
|
-
export { useHandleSpaceEntityReport } from "./hooks/reports";
|
|
44
|
-
export { useHandleSpaceCommentReport } from "./hooks/reports";
|
|
56
|
+
export { useCreateReport, useFetchModeratedReports, useHandleSpaceEntityReport, useHandleSpaceCommentReport, } from "./hooks/reports";
|
|
45
57
|
// -- general
|
|
46
58
|
export { useGetMetadata } from "./hooks/utils";
|
|
47
59
|
// -- storage
|
|
48
|
-
export { useUploadFile } from "./hooks/storage";
|
|
60
|
+
export { useUploadFile, useUploadImage, } from "./hooks/storage";
|
|
49
61
|
export * as AppNotification from "./interfaces/models/AppNotification";
|
|
50
62
|
export { validateSortBy, validateMetadataPropertyName, validateSortType, } from "./interfaces/EntityListSortByOptions";
|
|
51
63
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,SAAS,GACV,MAAM,aAAa,CAAC;AAErB,YAAY;AACZ,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,+CAA+C;AAC/C,OAAO,EACL,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,aAAa,GACd,MAAM,WAAW,CAAC;AAEnB,cAAc;AACd,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE9D,YAAY;AACZ,OAAO,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,SAAS,GACV,MAAM,aAAa,CAAC;AAErB,YAAY;AACZ,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,+CAA+C;AAC/C,OAAO,EACL,eAAe,EACf,0BAA0B,EAC1B,cAAc,EACd,sBAAsB,EACtB,aAAa,GACd,MAAM,WAAW,CAAC;AAEnB,kEAAkE;AAClE,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,GAEX,MAAM,qBAAqB,CAAC;AAE7B,cAAc;AACd,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE9D,YAAY;AACZ,OAAO,EAAE,iBAAiB,EAA4B,MAAM,gBAAgB,CAAC;AAE7E,oBAAoB;AACpB,OAAO,EACL,OAAO,EACP,uBAAuB,GAMxB,MAAM,cAAc,CAAC;AAEtB,+BAA+B;AAC/B,OAAO,EACL,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,aAAa,GAMd,MAAM,cAAc,CAAC;AAEtB,4BAA4B;AAC5B,OAAO,EACL,kBAAkB,GAGnB,MAAM,cAAc,CAAC;AAEtB,8EAA8E;AAC9E,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAIvE,OAAO,EACL,YAAY,GAIb,MAAM,8BAA8B,CAAC;AAEtC,oBAAoB;AACpB,OAAO,EACL,OAAO,EACP,cAAc,GAIf,MAAM,cAAc,CAAC;AAEtB,uBAAuB;AACvB,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAG3B,MAAM,2BAA2B,CAAC;AAEnC,iBAAiB;AACjB,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,GAU7B,MAAM,qBAAqB,CAAC;AAE7B,cAAc;AACd,OAAO,EACL,SAAS,EACT,aAAa,EACb,eAAe,EACf,eAAe,EACf,cAAc,EACd,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,2BAA2B,EAC3B,eAAe,EACf,cAAc,EACd,eAAe,GAShB,MAAM,kBAAkB,CAAC;AAE1B,kBAAkB;AAClB,OAAO,EACL,aAAa,EACb,oBAAoB,GAQrB,MAAM,sBAAsB,CAAC;AAE9B,YAAY;AACZ,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,cAAc,EACd,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB;AACpB,aAAa;AACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,GAiChB,MAAM,gBAAgB,CAAC;AAExB,iBAAiB;AACjB,OAAO,EACL,YAAY,EACZ,mBAAmB,GAQpB,MAAM,qBAAqB,CAAC;AAE7B,cAAc;AACd,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,0BAA0B,EAC1B,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,GAa5B,MAAM,kBAAkB,CAAC;AAE1B,eAAe;AACf,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,cAAc,EACd,iBAAiB,EACjB,iBAAiB,GAYlB,MAAM,mBAAmB,CAAC;AAE3B,WAAW;AACX,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,4BAA4B,EAC5B,uBAAuB,EACvB,WAAW,GAOZ,MAAM,eAAe,CAAC;AAEvB,aAAa;AACb,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,sBAAsB,EACtB,8BAA8B,EAC9B,iBAAiB,EACjB,yBAAyB,EACzB,sBAAsB,EACtB,8BAA8B,EAC9B,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,uBAAuB,GAexB,MAAM,+BAA+B,CAAC;AAEvC,iBAAiB;AACjB,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,EAChC,oBAAoB,GAarB,MAAM,mCAAmC,CAAC;AAE3C,aAAa;AACb,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,GAW5B,MAAM,iBAAiB,CAAC;AAEzB,aAAa;AACb,OAAO,EAAE,cAAc,EAAyB,MAAM,eAAe,CAAC;AAWtE,aAAa;AACb,OAAO,EACL,aAAa,EACb,cAAc,GAIf,MAAM,iBAAiB,CAAC;AAiBzB,OAAO,KAAK,eAAe,MAAM,qCAAqC,CAAC;AAiEvE,OAAO,EACL,cAAc,EACd,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AccountMap } from "../store/slices/accountsSlice";
|
|
2
|
+
export interface IAccountStorage {
|
|
3
|
+
getAccountMap(projectId: string): Promise<AccountMap | null>;
|
|
4
|
+
setAccountMap(projectId: string, map: AccountMap): Promise<void>;
|
|
5
|
+
deleteAccountMap(projectId: string): Promise<void>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAccountStorage.js","sourceRoot":"","sources":["../../../src/interfaces/IAccountStorage.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export interface UrlMetadataImage {
|
|
2
|
+
url: string;
|
|
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":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type AppNotificationType = "system" | "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "new-follow" | "connection-request" | "connection-accepted";
|
|
1
|
+
type AppNotificationType = "system" | "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "entity-reaction" | "comment-reaction" | "new-follow" | "connection-request" | "connection-accepted";
|
|
2
2
|
interface BaseAppNotification {
|
|
3
3
|
id: string;
|
|
4
4
|
userId: string;
|
|
@@ -113,6 +113,38 @@ export interface CommentUpvoteNotification extends BaseAppNotification {
|
|
|
113
113
|
initiatorAvatar: string | null | undefined;
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
+
export interface EntityReactionNotification extends BaseAppNotification {
|
|
117
|
+
type: "entity-reaction";
|
|
118
|
+
action: "open-entity";
|
|
119
|
+
metadata: {
|
|
120
|
+
entityId: string;
|
|
121
|
+
entityShortId: string;
|
|
122
|
+
entityTitle: string | null | undefined;
|
|
123
|
+
entityContent: string | null | undefined;
|
|
124
|
+
reactionType: string;
|
|
125
|
+
initiatorId: string;
|
|
126
|
+
initiatorName: string | null | undefined;
|
|
127
|
+
initiatorUsername: string | null | undefined;
|
|
128
|
+
initiatorAvatar: string | null | undefined;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
export interface CommentReactionNotification extends BaseAppNotification {
|
|
132
|
+
type: "comment-reaction";
|
|
133
|
+
action: "open-comment";
|
|
134
|
+
metadata: {
|
|
135
|
+
entityId: string;
|
|
136
|
+
entityShortId: string;
|
|
137
|
+
entityTitle: string | null | undefined;
|
|
138
|
+
entityContent: string | null | undefined;
|
|
139
|
+
commentId: string;
|
|
140
|
+
commentContent: string | null | undefined;
|
|
141
|
+
reactionType: string;
|
|
142
|
+
initiatorId: string;
|
|
143
|
+
initiatorName: string | null | undefined;
|
|
144
|
+
initiatorUsername: string | null | undefined;
|
|
145
|
+
initiatorAvatar: string | null | undefined;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
116
148
|
export interface NewFollowNotification extends BaseAppNotification {
|
|
117
149
|
type: "new-follow";
|
|
118
150
|
action: "open-profile";
|
|
@@ -145,7 +177,7 @@ export interface ConnectionAcceptedNotification extends BaseAppNotification {
|
|
|
145
177
|
initiatorAvatar: string | null | undefined;
|
|
146
178
|
};
|
|
147
179
|
}
|
|
148
|
-
export type UnifiedAppNotification = SystemNotification | EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification | ConnectionRequestNotification | ConnectionAcceptedNotification;
|
|
180
|
+
export type UnifiedAppNotification = SystemNotification | EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | EntityReactionNotification | CommentReactionNotification | NewFollowNotification | ConnectionRequestNotification | ConnectionAcceptedNotification;
|
|
149
181
|
export type NotificationTemplate = {
|
|
150
182
|
title?: string;
|
|
151
183
|
content?: string;
|
|
@@ -157,6 +189,8 @@ export type NotificationTemplates = {
|
|
|
157
189
|
commentMention: NotificationTemplate;
|
|
158
190
|
entityUpvote: NotificationTemplate;
|
|
159
191
|
commentUpvote: NotificationTemplate;
|
|
192
|
+
entityReaction: NotificationTemplate;
|
|
193
|
+
commentReaction: NotificationTemplate;
|
|
160
194
|
newFollow: NotificationTemplate;
|
|
161
195
|
connectionRequest: NotificationTemplate;
|
|
162
196
|
connectionAccepted: NotificationTemplate;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export interface List {
|
|
1
|
+
export interface Collection {
|
|
3
2
|
id: string;
|
|
4
3
|
projectId: string;
|
|
5
4
|
userId: string;
|
|
6
5
|
parentId: string | null;
|
|
7
6
|
name: string;
|
|
8
|
-
|
|
9
|
-
entities: Partial<Entity>[];
|
|
7
|
+
entityCount?: number;
|
|
10
8
|
createdAt: Date;
|
|
11
9
|
updatedAt: Date;
|
|
12
10
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Collection.js","sourceRoot":"","sources":["../../../../src/interfaces/models/Collection.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Entity } from "./Entity";
|
|
2
2
|
import { Mention } from "./Mention";
|
|
3
3
|
import { User } from "./User";
|
|
4
|
+
import { ReactionCounts, ReactionType } from "./Reaction";
|
|
4
5
|
export interface GifData {
|
|
5
6
|
id: string;
|
|
6
7
|
url: string;
|
|
@@ -16,17 +17,28 @@ export interface Comment {
|
|
|
16
17
|
entityId: string;
|
|
17
18
|
entity?: Entity;
|
|
18
19
|
userId: string;
|
|
19
|
-
user
|
|
20
|
+
user?: User;
|
|
20
21
|
parentId: string | null;
|
|
22
|
+
parentComment?: Comment;
|
|
21
23
|
content: string | null;
|
|
22
24
|
gif: GifData | null;
|
|
23
25
|
mentions: Mention[];
|
|
24
26
|
upvotes: string[];
|
|
25
27
|
downvotes: string[];
|
|
28
|
+
reactionCounts: ReactionCounts;
|
|
29
|
+
userReaction?: ReactionType | null;
|
|
26
30
|
repliesCount: number;
|
|
27
31
|
metadata: Record<string, any>;
|
|
28
32
|
createdAt: Date;
|
|
29
33
|
updatedAt: Date;
|
|
30
34
|
deletedAt: Date | null;
|
|
31
35
|
parentDeletedAt: Date | null;
|
|
36
|
+
moderationStatus: "approved" | "removed" | null;
|
|
37
|
+
moderatedAt: Date | null;
|
|
38
|
+
moderatedById: string | null;
|
|
39
|
+
moderatedByType: "client" | "user" | null;
|
|
40
|
+
moderationReason: string | null;
|
|
32
41
|
}
|
|
42
|
+
export type CommentInclude = "user" | "entity" | "space" | "parent";
|
|
43
|
+
export type CommentIncludeArray = CommentInclude[];
|
|
44
|
+
export type CommentIncludeParam = CommentInclude | CommentIncludeArray;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Mention } from "./Mention";
|
|
2
2
|
import { User } from "./User";
|
|
3
3
|
import { Space } from "./Space";
|
|
4
|
+
import { ReactionCounts, ReactionType } from "./Reaction";
|
|
5
|
+
import { File } from "./File";
|
|
4
6
|
export interface TopComment {
|
|
5
7
|
id: string;
|
|
6
8
|
user: User;
|
|
@@ -8,6 +10,7 @@ export interface TopComment {
|
|
|
8
10
|
content: string;
|
|
9
11
|
createdAt: string;
|
|
10
12
|
}
|
|
13
|
+
export type EntityFile = File;
|
|
11
14
|
export interface Entity {
|
|
12
15
|
id: string;
|
|
13
16
|
foreignId: string | null;
|
|
@@ -21,9 +24,12 @@ export interface Entity {
|
|
|
21
24
|
content: string | null;
|
|
22
25
|
mentions: Mention[];
|
|
23
26
|
attachments: Record<string, any>[];
|
|
27
|
+
files?: EntityFile[];
|
|
24
28
|
keywords: string[];
|
|
25
29
|
upvotes: string[];
|
|
26
30
|
downvotes: string[];
|
|
31
|
+
reactionCounts: ReactionCounts;
|
|
32
|
+
userReaction?: ReactionType | null;
|
|
27
33
|
repliesCount: number;
|
|
28
34
|
views: number;
|
|
29
35
|
score: number;
|
|
@@ -34,10 +40,17 @@ export interface Entity {
|
|
|
34
40
|
} | null;
|
|
35
41
|
metadata: Record<string, any>;
|
|
36
42
|
topComment: TopComment | null;
|
|
43
|
+
isSaved?: boolean;
|
|
37
44
|
createdAt: Date;
|
|
38
45
|
updatedAt: Date;
|
|
39
46
|
deletedAt: Date | null;
|
|
47
|
+
isDraft: boolean | null;
|
|
48
|
+
moderationStatus: "approved" | "removed" | null;
|
|
49
|
+
moderatedAt: Date | null;
|
|
50
|
+
moderatedById: string | null;
|
|
51
|
+
moderatedByType: "client" | "user" | null;
|
|
52
|
+
moderationReason: string | null;
|
|
40
53
|
}
|
|
41
|
-
export type EntityInclude = "space" | "user" | "topComment";
|
|
54
|
+
export type EntityInclude = "space" | "user" | "topComment" | "saved" | "files";
|
|
42
55
|
export type EntityIncludeArray = EntityInclude[];
|
|
43
56
|
export type EntityIncludeParam = string | EntityIncludeArray;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface FileImageVariant {
|
|
2
|
+
path: string;
|
|
3
|
+
publicPath: string;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
size: number;
|
|
7
|
+
format: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FileImage {
|
|
10
|
+
fileId: string;
|
|
11
|
+
originalWidth: number;
|
|
12
|
+
originalHeight: number;
|
|
13
|
+
variants: Record<string, FileImageVariant>;
|
|
14
|
+
processingStatus: "completed" | "failed";
|
|
15
|
+
processingError: string | null;
|
|
16
|
+
format: string;
|
|
17
|
+
quality: number;
|
|
18
|
+
exifStripped: boolean;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
}
|
|
22
|
+
export interface File {
|
|
23
|
+
id: string;
|
|
24
|
+
projectId: string;
|
|
25
|
+
userId: string | null;
|
|
26
|
+
entityId: string | null;
|
|
27
|
+
commentId: string | null;
|
|
28
|
+
spaceId: string | null;
|
|
29
|
+
type: "image" | "video" | "document" | "other";
|
|
30
|
+
originalPath: string;
|
|
31
|
+
originalSize: number;
|
|
32
|
+
originalMimeType: string;
|
|
33
|
+
position: number;
|
|
34
|
+
metadata: Record<string, any>;
|
|
35
|
+
image?: FileImage;
|
|
36
|
+
createdAt: Date;
|
|
37
|
+
updatedAt: Date;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.js","sourceRoot":"","sources":["../../../../src/interfaces/models/File.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export interface ImageVariant {
|
|
2
|
+
path: string;
|
|
3
|
+
publicPath: string;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
size: number;
|
|
7
|
+
format: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Image {
|
|
10
|
+
fileId: string;
|
|
11
|
+
imageId: string;
|
|
12
|
+
status: "completed" | "failed";
|
|
13
|
+
original: ImageVariant;
|
|
14
|
+
variants: Record<string, ImageVariant>;
|
|
15
|
+
metadata: {
|
|
16
|
+
originalFormat: string;
|
|
17
|
+
originalSize: number;
|
|
18
|
+
exifStripped: boolean;
|
|
19
|
+
processingTime: number;
|
|
20
|
+
};
|
|
21
|
+
createdAt: string;
|
|
22
|
+
}
|
|
23
|
+
interface BaseImageOptions {
|
|
24
|
+
quality?: number;
|
|
25
|
+
format?: "webp" | "jpeg" | "png" | "original";
|
|
26
|
+
stripExif?: boolean;
|
|
27
|
+
pathParts?: string[];
|
|
28
|
+
entityId?: string;
|
|
29
|
+
commentId?: string;
|
|
30
|
+
spaceId?: string;
|
|
31
|
+
onProgress?: (progress: number) => void;
|
|
32
|
+
}
|
|
33
|
+
export interface ExactDimensionsMode extends BaseImageOptions {
|
|
34
|
+
mode: "exact-dimensions";
|
|
35
|
+
dimensions: Record<string, {
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
}>;
|
|
39
|
+
fit?: "cover" | "contain" | "inside" | "outside";
|
|
40
|
+
}
|
|
41
|
+
export interface AspectRatioWidthMode extends BaseImageOptions {
|
|
42
|
+
mode: "aspect-ratio-width-based";
|
|
43
|
+
aspectRatio: {
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
};
|
|
47
|
+
widths: Record<string, number>;
|
|
48
|
+
fit?: "cover" | "contain" | "inside" | "outside";
|
|
49
|
+
}
|
|
50
|
+
export interface AspectRatioHeightMode extends BaseImageOptions {
|
|
51
|
+
mode: "aspect-ratio-height-based";
|
|
52
|
+
aspectRatio: {
|
|
53
|
+
width: number;
|
|
54
|
+
height: number;
|
|
55
|
+
};
|
|
56
|
+
heights: Record<string, number>;
|
|
57
|
+
fit?: "cover" | "contain" | "inside" | "outside";
|
|
58
|
+
}
|
|
59
|
+
export interface OriginalAspectMode extends BaseImageOptions {
|
|
60
|
+
mode: "original-aspect";
|
|
61
|
+
sizes: Record<string, number>;
|
|
62
|
+
fit?: "inside" | "outside";
|
|
63
|
+
}
|
|
64
|
+
export interface MultiAspectRatioMode extends BaseImageOptions {
|
|
65
|
+
mode: "multi-aspect-ratio";
|
|
66
|
+
aspectRatios: Array<{
|
|
67
|
+
width: number;
|
|
68
|
+
height: number;
|
|
69
|
+
}>;
|
|
70
|
+
sizes: Record<string, number>;
|
|
71
|
+
fit?: "cover" | "contain" | "inside" | "outside";
|
|
72
|
+
}
|
|
73
|
+
export type UploadImageOptions = ExactDimensionsMode | AspectRatioWidthMode | AspectRatioHeightMode | OriginalAspectMode | MultiAspectRatioMode;
|
|
74
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.js","sourceRoot":"","sources":["../../../../src/interfaces/models/Image.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { User } from "./User";
|
|
2
|
+
export type ReactionType = "upvote" | "downvote" | "like" | "love" | "wow" | "sad" | "angry" | "funny";
|
|
3
|
+
export interface ReactionCounts {
|
|
4
|
+
upvote: number;
|
|
5
|
+
downvote: number;
|
|
6
|
+
like: number;
|
|
7
|
+
love: number;
|
|
8
|
+
wow: number;
|
|
9
|
+
sad: number;
|
|
10
|
+
angry: number;
|
|
11
|
+
funny: number;
|
|
12
|
+
}
|
|
13
|
+
export interface Reaction {
|
|
14
|
+
id: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
targetType: "entity" | "comment";
|
|
17
|
+
targetId: string;
|
|
18
|
+
userId: string;
|
|
19
|
+
reactionType: ReactionType;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
user?: User;
|
|
23
|
+
}
|