@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
71 lines • 6.81 kB
JavaScript
// Helpers & Utilities
export { handleError } from "./utils/handleError";
export { keywordHelpers } from "./utils/keywordHelpers";
export { safeMergeStyleProps } from "./helpers/safeMergeStyleProps";
export { getUserName } from "./helpers/getUserName";
export { default as getPublicFileUrl } from "./helpers/getPublicFileUrl";
export { isDevelopment, isProduction, getApiBaseUrl, getEnvVar, } from "./utils/env";
// Constants
export { reportReasons } from "./constants/reportReasons";
// Context providers (Redux-powered by default)
export { ReplykeProvider, ReplykeIntegrationProvider, EntityProvider, CommentSectionProvider, SpaceProvider, ChatProvider, ConversationProvider, MessageThreadProvider, useChatContext, useConversationContext, useMessageThreadContext, } from "./context";
// Integration mode exports (for users with their own Redux store)
export { replykeReducers, replykeApiReducer, replykeMiddleware, replykeApi, } from "./store/integration";
// -- projects
export { useProject, useProjectData } from "./hooks/projects";
// -- crypto
export { useSignTestingJwt } from "./hooks/crypto";
// -- authentication
export { useAuth, useRequestPasswordReset, useSendVerificationEmail, useVerifyEmail, } from "./hooks/auth";
// -- authentication (accounts)
export { useAccountSync, useAccounts, useSwitchAccount, useAddAccount, useRemoveAccount, useSignOutAll, } from "./hooks/auth";
// -- authentication (OAuth)
export { useOAuthIdentities, } from "./hooks/auth";
// -- store internals (for platform-specific hooks in react-js / react-native)
export { useReplykeDispatch, useReplykeSelector } from "./store/hooks";
export { setTokens, setInitialized, selectAccessToken, } from "./store/slices/authSlice";
export { requestNewAccessTokenThunk } from "./store/slices/authThunks";
export { MAX_ACCOUNTS, } from "./store/slices/accountsSlice";
// -- (current) user
export { useUser, useUserActions, } from "./hooks/user";
// -- app notifications
export { useAppNotifications, useAppNotificationsActions, } from "./hooks/app-notifications";
// -- collections
export { useCollections, useCollectionsActions, useCollectionEntitiesWrapper, } from "./hooks/collections";
// -- entities
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useFetchManyEntitiesWrapper, useUpdateEntity, useFetchDrafts, usePublishDraft, useIsEntitySaved, } from "./hooks/entities";
// -- entity lists
export { useEntityList, useEntityListActions, } from "./hooks/entity-lists";
// -- spaces
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers, useFetchSpaceTeam, useFetchUserSpaces, useUpdateMemberRole, useApproveMember, useDeclineMember, useRemoveMember, useUnbanMember, useModerateSpaceEntity, useModerateSpaceComment, useSpacePermissions, useSpaceMentions, useCheckMyMembership,
// Digest config hooks
useFetchDigestConfig, useUpdateDigestConfig,
// Rule hooks
useCreateRule, useUpdateRule, useDeleteRule, useFetchRule, useFetchManyRules, useReorderRules, } from "./hooks/spaces";
// -- space lists
export { useSpaceList, useSpaceListActions, } from "./hooks/space-lists";
// -- comments
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useDeleteComment, useEntityComments, useFetchManyCommentsWrapper, } from "./hooks/comments";
// -- reactions
export { useFetchEntityReactions, useFetchCommentReactions, useFetchEntityReactionsWrapper, useFetchCommentReactionsWrapper, useAddReaction, useRemoveReaction, useReactionToggle, } from "./hooks/reactions";
// -- users
export { useFetchUser, useFetchUserByForeignId, useFetchUserByUsername, useCheckUsernameAvailability, useFetchUserSuggestions, useUserMentions, } from "./hooks/users";
// -- follows
export { useFetchFollowStatus, useFetchFollowers, useFetchFollowersByUserId, useFetchFollowersCount, useFetchFollowersCountByUserId, useFetchFollowing, useFetchFollowingByUserId, useFetchFollowingCount, useFetchFollowingCountByUserId, useFollowManager, useFollowUser, useUnfollowByFollowId, useUnfollowUserByUserId, } from "./hooks/relationships/follows";
// -- connections
export { useRequestConnection, useAcceptConnection, useDeclineConnection, useRemoveConnection, useFetchConnections, useFetchConnectionStatus, useRemoveConnectionByUserId, useFetchConnectionsCount, useFetchSentPendingConnections, useFetchReceivedPendingConnections, useFetchConnectionsByUserId, useFetchConnectionsCountByUserId, useConnectionManager, } from "./hooks/relationships/connections";
// -- reports
export { useCreateReport, useFetchModeratedReports, useHandleSpaceEntityReport, useHandleSpaceCommentReport, } from "./hooks/reports";
// -- general
export { useGetMetadata } from "./hooks/utils";
// -- search
export { useSearchContent, useSearchUsers, useSearchSpaces, useAskContent, } from "./hooks/search";
// -- storage
export { useUploadFile, useUploadImage, } from "./hooks/storage";
export * as AppNotification from "./interfaces/models/AppNotification";
export { validateSortBy, validateMetadataPropertyName, validateSortType, } from "./interfaces/EntityListSortByOptions";
// -- chat hooks
export { useConversations, useConversation, useFetchConversation, useUpdateConversation, useDeleteConversation, useCreateDirectConversation, useFetchSpaceConversation, useConversationMembers, useChatMessages, useSendMessage, useEditMessage, useDeleteMessage, useToggleReaction, useMessageThread, useTotalUnreadCount, useUnreadConversationCount, useMarkConversationAsRead, useReportMessage, useConversationData, useTypingIndicator, useChatSocket, } from "./hooks/chat";
// -- chat slice
export { setConversation, setConversationLoading, setConversationList, setConversationListLoading, setConversationListHasMore, setConversationListCursor, upsertConversationPreview, incrementUnread, clearUnread, setMessagesLoading, setMessagesHasMore, upsertMessage, addOptimisticMessage, failOptimisticMessage, removeMessage, updateReactions, setThreadReplies, setThreadLoading, setTypingUsers, setSocketConnected, selectConversation, selectConversationLoading, selectConversationList, selectConversationListLoading, selectConversationListHasMore, selectConversationListCursor, selectMessages, selectMessagesLoading, selectMessagesHasMore, selectOldestMessageId, selectNewestMessageId, selectThreadReplies, selectThreadLoading, selectThreadHasMore, selectTypingUsers, selectSocketConnected, } from "./store/slices/chatSlice";
//# sourceMappingURL=index.js.map