@replyke/core 7.0.0-beta.101 → 7.0.0-beta.103
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.d.ts +1 -0
- package/dist/cjs/config/axios.js +4 -4
- package/dist/cjs/config/axios.js.map +1 -1
- package/dist/cjs/context/chat-context.d.ts +17 -0
- package/dist/cjs/context/chat-context.js +299 -0
- package/dist/cjs/context/chat-context.js.map +1 -0
- package/dist/cjs/context/conversation-context.d.ts +14 -0
- package/dist/cjs/context/conversation-context.js +231 -0
- package/dist/cjs/context/conversation-context.js.map +1 -0
- package/dist/cjs/context/index.d.ts +3 -0
- package/dist/cjs/context/index.js +13 -1
- package/dist/cjs/context/index.js.map +1 -1
- package/dist/cjs/context/message-thread-context.d.ts +13 -0
- package/dist/cjs/context/message-thread-context.js +32 -0
- package/dist/cjs/context/message-thread-context.js.map +1 -0
- package/dist/cjs/hooks/chat/conversations/index.d.ts +10 -0
- package/dist/cjs/hooks/chat/conversations/index.js +17 -0
- package/dist/cjs/hooks/chat/conversations/index.js.map +1 -0
- package/dist/cjs/hooks/chat/conversations/useConversation.d.ts +18 -0
- package/dist/cjs/hooks/chat/conversations/useConversation.js +134 -0
- package/dist/cjs/hooks/chat/conversations/useConversation.js.map +1 -0
- package/dist/cjs/hooks/chat/conversations/useConversationMembers.d.ts +18 -0
- package/dist/cjs/hooks/chat/conversations/useConversationMembers.js +219 -0
- package/dist/cjs/hooks/chat/conversations/useConversationMembers.js.map +1 -0
- package/dist/cjs/hooks/chat/conversations/useConversations.d.ts +17 -0
- package/dist/cjs/hooks/chat/conversations/useConversations.js +193 -0
- package/dist/cjs/hooks/chat/conversations/useConversations.js.map +1 -0
- package/dist/cjs/hooks/chat/conversations/useCreateDirectConversation.d.ts +6 -0
- package/dist/cjs/hooks/chat/conversations/useCreateDirectConversation.js +83 -0
- package/dist/cjs/hooks/chat/conversations/useCreateDirectConversation.js.map +1 -0
- package/dist/cjs/hooks/chat/conversations/useSpaceConversation.d.ts +10 -0
- package/dist/cjs/hooks/chat/conversations/useSpaceConversation.js +91 -0
- package/dist/cjs/hooks/chat/conversations/useSpaceConversation.js.map +1 -0
- package/dist/cjs/hooks/chat/index.d.ts +15 -0
- package/dist/cjs/hooks/chat/index.js +36 -0
- package/dist/cjs/hooks/chat/index.js.map +1 -0
- package/dist/cjs/hooks/chat/messages/index.d.ts +12 -0
- package/dist/cjs/hooks/chat/messages/index.js +19 -0
- package/dist/cjs/hooks/chat/messages/index.js.map +1 -0
- package/dist/cjs/hooks/chat/messages/useChatMessages.d.ts +15 -0
- package/dist/cjs/hooks/chat/messages/useChatMessages.js +228 -0
- package/dist/cjs/hooks/chat/messages/useChatMessages.js.map +1 -0
- package/dist/cjs/hooks/chat/messages/useDeleteMessage.d.ts +6 -0
- package/dist/cjs/hooks/chat/messages/useDeleteMessage.js +81 -0
- package/dist/cjs/hooks/chat/messages/useDeleteMessage.js.map +1 -0
- package/dist/cjs/hooks/chat/messages/useEditMessage.d.ts +13 -0
- package/dist/cjs/hooks/chat/messages/useEditMessage.js +81 -0
- package/dist/cjs/hooks/chat/messages/useEditMessage.js.map +1 -0
- package/dist/cjs/hooks/chat/messages/useMessageThread.d.ts +15 -0
- package/dist/cjs/hooks/chat/messages/useMessageThread.js +38 -0
- package/dist/cjs/hooks/chat/messages/useMessageThread.js.map +1 -0
- package/dist/cjs/hooks/chat/messages/useSendMessage.d.ts +17 -0
- package/dist/cjs/hooks/chat/messages/useSendMessage.js +156 -0
- package/dist/cjs/hooks/chat/messages/useSendMessage.js.map +1 -0
- package/dist/cjs/hooks/chat/messages/useToggleReaction.d.ts +11 -0
- package/dist/cjs/hooks/chat/messages/useToggleReaction.js +95 -0
- package/dist/cjs/hooks/chat/messages/useToggleReaction.js.map +1 -0
- package/dist/cjs/hooks/chat/useChatSocket.d.ts +11 -0
- package/dist/cjs/hooks/chat/useChatSocket.js +13 -0
- package/dist/cjs/hooks/chat/useChatSocket.js.map +1 -0
- package/dist/cjs/hooks/chat/useConversationData.d.ts +31 -0
- package/dist/cjs/hooks/chat/useConversationData.js +47 -0
- package/dist/cjs/hooks/chat/useConversationData.js.map +1 -0
- package/dist/cjs/hooks/chat/useMarkConversationAsRead.d.ts +10 -0
- package/dist/cjs/hooks/chat/useMarkConversationAsRead.js +87 -0
- package/dist/cjs/hooks/chat/useMarkConversationAsRead.js.map +1 -0
- package/dist/cjs/hooks/chat/useReportMessage.d.ts +8 -0
- package/dist/cjs/hooks/chat/useReportMessage.js +76 -0
- package/dist/cjs/hooks/chat/useReportMessage.js.map +1 -0
- package/dist/cjs/hooks/chat/useTotalUnreadCount.d.ts +6 -0
- package/dist/cjs/hooks/chat/useTotalUnreadCount.js +14 -0
- package/dist/cjs/hooks/chat/useTotalUnreadCount.js.map +1 -0
- package/dist/cjs/hooks/chat/useTypingIndicator.d.ts +21 -0
- package/dist/cjs/hooks/chat/useTypingIndicator.js +68 -0
- package/dist/cjs/hooks/chat/useTypingIndicator.js.map +1 -0
- package/dist/cjs/hooks/comments/index.d.ts +1 -1
- package/dist/cjs/hooks/comments/index.js.map +1 -1
- package/dist/cjs/hooks/comments/useCommentSectionData.d.ts +5 -0
- package/dist/cjs/hooks/comments/useCommentSectionData.js +20 -17
- package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/cjs/hooks/spaces/index.d.ts +4 -0
- package/dist/cjs/hooks/spaces/index.js +6 -1
- package/dist/cjs/hooks/spaces/index.js.map +1 -1
- package/dist/cjs/hooks/spaces/useSpaceMentions.d.ts +24 -0
- package/dist/cjs/hooks/spaces/useSpaceMentions.js +191 -0
- package/dist/cjs/hooks/spaces/useSpaceMentions.js.map +1 -0
- package/dist/cjs/hooks/spaces/useUnbanMember.d.ts +11 -0
- package/dist/cjs/hooks/spaces/useUnbanMember.js +71 -0
- package/dist/cjs/hooks/spaces/useUnbanMember.js.map +1 -0
- package/dist/cjs/hooks/users/index.d.ts +1 -1
- package/dist/cjs/hooks/users/index.js +3 -3
- package/dist/cjs/hooks/users/index.js.map +1 -1
- package/dist/cjs/hooks/users/{useMentions.d.ts → useUserMentions.d.ts} +8 -4
- package/dist/cjs/hooks/users/{useMentions.js → useUserMentions.js} +22 -17
- package/dist/cjs/hooks/users/useUserMentions.js.map +1 -0
- package/dist/cjs/index.d.ts +11 -5
- package/dist/cjs/index.js +70 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/models/File.d.ts +1 -0
- package/dist/cjs/interfaces/models/IChatMessage.d.ts +34 -0
- package/dist/cjs/interfaces/models/IChatMessage.js +3 -0
- package/dist/cjs/interfaces/models/IChatMessage.js.map +1 -0
- package/dist/cjs/interfaces/models/IConversation.d.ts +25 -0
- package/dist/cjs/interfaces/models/IConversation.js +3 -0
- package/dist/cjs/interfaces/models/IConversation.js.map +1 -0
- package/dist/cjs/interfaces/models/IConversationMember.d.ts +16 -0
- package/dist/cjs/interfaces/models/IConversationMember.js +3 -0
- package/dist/cjs/interfaces/models/IConversationMember.js.map +1 -0
- package/dist/cjs/interfaces/models/Mention.d.ts +8 -1
- package/dist/cjs/store/api/spacesApi.d.ts +364 -0
- package/dist/cjs/store/api/spacesApi.js +20 -3
- package/dist/cjs/store/api/spacesApi.js.map +1 -1
- package/dist/cjs/store/hooks.d.ts +1 -0
- package/dist/cjs/store/index.d.ts +2 -0
- package/dist/cjs/store/replykeReducers.d.ts +2 -0
- package/dist/cjs/store/replykeReducers.js +2 -0
- package/dist/cjs/store/replykeReducers.js.map +1 -1
- package/dist/cjs/store/rootReducer.d.ts +3 -0
- package/dist/cjs/store/slices/chatSlice.d.ts +120 -0
- package/dist/cjs/store/slices/chatSlice.js +369 -0
- package/dist/cjs/store/slices/chatSlice.js.map +1 -0
- package/dist/cjs/store/slices/entityListsSlice.d.ts +168 -24
- package/dist/cjs/store/slices/spaceListsSlice.d.ts +24 -0
- package/dist/cjs/store/slices/userSlice.d.ts +16 -0
- package/dist/cjs/types/socket.d.ts +73 -0
- package/dist/cjs/types/socket.js +3 -0
- package/dist/cjs/types/socket.js.map +1 -0
- package/dist/esm/config/axios.d.ts +1 -0
- package/dist/esm/config/axios.js +1 -1
- package/dist/esm/config/axios.js.map +1 -1
- package/dist/esm/context/chat-context.d.ts +17 -0
- package/dist/esm/context/chat-context.js +291 -0
- package/dist/esm/context/chat-context.js.map +1 -0
- package/dist/esm/context/conversation-context.d.ts +14 -0
- package/dist/esm/context/conversation-context.js +223 -0
- package/dist/esm/context/conversation-context.js.map +1 -0
- package/dist/esm/context/index.d.ts +3 -0
- package/dist/esm/context/index.js +3 -0
- package/dist/esm/context/index.js.map +1 -1
- package/dist/esm/context/message-thread-context.d.ts +13 -0
- package/dist/esm/context/message-thread-context.js +24 -0
- package/dist/esm/context/message-thread-context.js.map +1 -0
- package/dist/esm/hooks/chat/conversations/index.d.ts +10 -0
- package/dist/esm/hooks/chat/conversations/index.js +6 -0
- package/dist/esm/hooks/chat/conversations/index.js.map +1 -0
- package/dist/esm/hooks/chat/conversations/useConversation.d.ts +18 -0
- package/dist/esm/hooks/chat/conversations/useConversation.js +129 -0
- package/dist/esm/hooks/chat/conversations/useConversation.js.map +1 -0
- package/dist/esm/hooks/chat/conversations/useConversationMembers.d.ts +18 -0
- package/dist/esm/hooks/chat/conversations/useConversationMembers.js +214 -0
- package/dist/esm/hooks/chat/conversations/useConversationMembers.js.map +1 -0
- package/dist/esm/hooks/chat/conversations/useConversations.d.ts +17 -0
- package/dist/esm/hooks/chat/conversations/useConversations.js +188 -0
- package/dist/esm/hooks/chat/conversations/useConversations.js.map +1 -0
- package/dist/esm/hooks/chat/conversations/useCreateDirectConversation.d.ts +6 -0
- package/dist/esm/hooks/chat/conversations/useCreateDirectConversation.js +78 -0
- package/dist/esm/hooks/chat/conversations/useCreateDirectConversation.js.map +1 -0
- package/dist/esm/hooks/chat/conversations/useSpaceConversation.d.ts +10 -0
- package/dist/esm/hooks/chat/conversations/useSpaceConversation.js +86 -0
- package/dist/esm/hooks/chat/conversations/useSpaceConversation.js.map +1 -0
- package/dist/esm/hooks/chat/index.d.ts +15 -0
- package/dist/esm/hooks/chat/index.js +13 -0
- package/dist/esm/hooks/chat/index.js.map +1 -0
- package/dist/esm/hooks/chat/messages/index.d.ts +12 -0
- package/dist/esm/hooks/chat/messages/index.js +7 -0
- package/dist/esm/hooks/chat/messages/index.js.map +1 -0
- package/dist/esm/hooks/chat/messages/useChatMessages.d.ts +15 -0
- package/dist/esm/hooks/chat/messages/useChatMessages.js +223 -0
- package/dist/esm/hooks/chat/messages/useChatMessages.js.map +1 -0
- package/dist/esm/hooks/chat/messages/useDeleteMessage.d.ts +6 -0
- package/dist/esm/hooks/chat/messages/useDeleteMessage.js +76 -0
- package/dist/esm/hooks/chat/messages/useDeleteMessage.js.map +1 -0
- package/dist/esm/hooks/chat/messages/useEditMessage.d.ts +13 -0
- package/dist/esm/hooks/chat/messages/useEditMessage.js +76 -0
- package/dist/esm/hooks/chat/messages/useEditMessage.js.map +1 -0
- package/dist/esm/hooks/chat/messages/useMessageThread.d.ts +15 -0
- package/dist/esm/hooks/chat/messages/useMessageThread.js +33 -0
- package/dist/esm/hooks/chat/messages/useMessageThread.js.map +1 -0
- package/dist/esm/hooks/chat/messages/useSendMessage.d.ts +17 -0
- package/dist/esm/hooks/chat/messages/useSendMessage.js +151 -0
- package/dist/esm/hooks/chat/messages/useSendMessage.js.map +1 -0
- package/dist/esm/hooks/chat/messages/useToggleReaction.d.ts +11 -0
- package/dist/esm/hooks/chat/messages/useToggleReaction.js +90 -0
- package/dist/esm/hooks/chat/messages/useToggleReaction.js.map +1 -0
- package/dist/esm/hooks/chat/useChatSocket.d.ts +11 -0
- package/dist/esm/hooks/chat/useChatSocket.js +11 -0
- package/dist/esm/hooks/chat/useChatSocket.js.map +1 -0
- package/dist/esm/hooks/chat/useConversationData.d.ts +31 -0
- package/dist/esm/hooks/chat/useConversationData.js +42 -0
- package/dist/esm/hooks/chat/useConversationData.js.map +1 -0
- package/dist/esm/hooks/chat/useMarkConversationAsRead.d.ts +10 -0
- package/dist/esm/hooks/chat/useMarkConversationAsRead.js +82 -0
- package/dist/esm/hooks/chat/useMarkConversationAsRead.js.map +1 -0
- package/dist/esm/hooks/chat/useReportMessage.d.ts +8 -0
- package/dist/esm/hooks/chat/useReportMessage.js +71 -0
- package/dist/esm/hooks/chat/useReportMessage.js.map +1 -0
- package/dist/esm/hooks/chat/useTotalUnreadCount.d.ts +6 -0
- package/dist/esm/hooks/chat/useTotalUnreadCount.js +12 -0
- package/dist/esm/hooks/chat/useTotalUnreadCount.js.map +1 -0
- package/dist/esm/hooks/chat/useTypingIndicator.d.ts +21 -0
- package/dist/esm/hooks/chat/useTypingIndicator.js +66 -0
- package/dist/esm/hooks/chat/useTypingIndicator.js.map +1 -0
- package/dist/esm/hooks/comments/index.d.ts +1 -1
- package/dist/esm/hooks/comments/index.js.map +1 -1
- package/dist/esm/hooks/comments/useCommentSectionData.d.ts +5 -0
- package/dist/esm/hooks/comments/useCommentSectionData.js +20 -17
- package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/esm/hooks/spaces/index.d.ts +4 -0
- package/dist/esm/hooks/spaces/index.js +3 -0
- package/dist/esm/hooks/spaces/index.js.map +1 -1
- package/dist/esm/hooks/spaces/useSpaceMentions.d.ts +24 -0
- package/dist/esm/hooks/spaces/useSpaceMentions.js +186 -0
- package/dist/esm/hooks/spaces/useSpaceMentions.js.map +1 -0
- package/dist/esm/hooks/spaces/useUnbanMember.d.ts +11 -0
- package/dist/esm/hooks/spaces/useUnbanMember.js +66 -0
- package/dist/esm/hooks/spaces/useUnbanMember.js.map +1 -0
- package/dist/esm/hooks/users/index.d.ts +1 -1
- package/dist/esm/hooks/users/index.js +1 -1
- package/dist/esm/hooks/users/index.js.map +1 -1
- package/dist/esm/hooks/users/{useMentions.d.ts → useUserMentions.d.ts} +8 -4
- package/dist/esm/hooks/users/{useMentions.js → useUserMentions.js} +22 -17
- package/dist/esm/hooks/users/useUserMentions.js.map +1 -0
- package/dist/esm/index.d.ts +11 -5
- package/dist/esm/index.js +7 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/models/File.d.ts +1 -0
- package/dist/esm/interfaces/models/IChatMessage.d.ts +34 -0
- package/dist/esm/interfaces/models/IChatMessage.js +2 -0
- package/dist/esm/interfaces/models/IChatMessage.js.map +1 -0
- package/dist/esm/interfaces/models/IConversation.d.ts +25 -0
- package/dist/esm/interfaces/models/IConversation.js +2 -0
- package/dist/esm/interfaces/models/IConversation.js.map +1 -0
- package/dist/esm/interfaces/models/IConversationMember.d.ts +16 -0
- package/dist/esm/interfaces/models/IConversationMember.js +2 -0
- package/dist/esm/interfaces/models/IConversationMember.js.map +1 -0
- package/dist/esm/interfaces/models/Mention.d.ts +8 -1
- package/dist/esm/store/api/spacesApi.d.ts +364 -0
- package/dist/esm/store/api/spacesApi.js +19 -2
- package/dist/esm/store/api/spacesApi.js.map +1 -1
- package/dist/esm/store/hooks.d.ts +1 -0
- package/dist/esm/store/index.d.ts +2 -0
- package/dist/esm/store/replykeReducers.d.ts +2 -0
- package/dist/esm/store/replykeReducers.js +2 -0
- package/dist/esm/store/replykeReducers.js.map +1 -1
- package/dist/esm/store/rootReducer.d.ts +3 -0
- package/dist/esm/store/slices/chatSlice.d.ts +120 -0
- package/dist/esm/store/slices/chatSlice.js +350 -0
- package/dist/esm/store/slices/chatSlice.js.map +1 -0
- package/dist/esm/store/slices/entityListsSlice.d.ts +168 -24
- package/dist/esm/store/slices/spaceListsSlice.d.ts +24 -0
- package/dist/esm/store/slices/userSlice.d.ts +16 -0
- package/dist/esm/types/socket.d.ts +73 -0
- package/dist/esm/types/socket.js +2 -0
- package/dist/esm/types/socket.js.map +1 -0
- package/package.json +3 -2
- package/dist/cjs/hooks/users/useMentions.js.map +0 -1
- package/dist/esm/hooks/users/useMentions.js.map +0 -1
|
@@ -104,6 +104,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
104
104
|
userId: string | null;
|
|
105
105
|
entityId: string | null;
|
|
106
106
|
commentId: string | null;
|
|
107
|
+
chatMessageId: string | null;
|
|
107
108
|
spaceId: string | null;
|
|
108
109
|
type: "image" | "video" | "document" | "other";
|
|
109
110
|
originalPath: string;
|
|
@@ -144,6 +145,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
144
145
|
userId: string | null;
|
|
145
146
|
entityId: string | null;
|
|
146
147
|
commentId: string | null;
|
|
148
|
+
chatMessageId: string | null;
|
|
147
149
|
spaceId: string | null;
|
|
148
150
|
type: "image" | "video" | "document" | "other";
|
|
149
151
|
originalPath: string;
|
|
@@ -229,6 +231,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
229
231
|
userId: string | null;
|
|
230
232
|
entityId: string | null;
|
|
231
233
|
commentId: string | null;
|
|
234
|
+
chatMessageId: string | null;
|
|
232
235
|
spaceId: string | null;
|
|
233
236
|
type: "image" | "video" | "document" | "other";
|
|
234
237
|
originalPath: string;
|
|
@@ -269,6 +272,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
269
272
|
userId: string | null;
|
|
270
273
|
entityId: string | null;
|
|
271
274
|
commentId: string | null;
|
|
275
|
+
chatMessageId: string | null;
|
|
272
276
|
spaceId: string | null;
|
|
273
277
|
type: "image" | "video" | "document" | "other";
|
|
274
278
|
originalPath: string;
|
|
@@ -354,6 +358,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
354
358
|
userId: string | null;
|
|
355
359
|
entityId: string | null;
|
|
356
360
|
commentId: string | null;
|
|
361
|
+
chatMessageId: string | null;
|
|
357
362
|
spaceId: string | null;
|
|
358
363
|
type: "image" | "video" | "document" | "other";
|
|
359
364
|
originalPath: string;
|
|
@@ -394,6 +399,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
394
399
|
userId: string | null;
|
|
395
400
|
entityId: string | null;
|
|
396
401
|
commentId: string | null;
|
|
402
|
+
chatMessageId: string | null;
|
|
397
403
|
spaceId: string | null;
|
|
398
404
|
type: "image" | "video" | "document" | "other";
|
|
399
405
|
originalPath: string;
|
|
@@ -482,6 +488,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
482
488
|
userId: string | null;
|
|
483
489
|
entityId: string | null;
|
|
484
490
|
commentId: string | null;
|
|
491
|
+
chatMessageId: string | null;
|
|
485
492
|
spaceId: string | null;
|
|
486
493
|
type: "image" | "video" | "document" | "other";
|
|
487
494
|
originalPath: string;
|
|
@@ -522,6 +529,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
522
529
|
userId: string | null;
|
|
523
530
|
entityId: string | null;
|
|
524
531
|
commentId: string | null;
|
|
532
|
+
chatMessageId: string | null;
|
|
525
533
|
spaceId: string | null;
|
|
526
534
|
type: "image" | "video" | "document" | "other";
|
|
527
535
|
originalPath: string;
|
|
@@ -607,6 +615,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
607
615
|
userId: string | null;
|
|
608
616
|
entityId: string | null;
|
|
609
617
|
commentId: string | null;
|
|
618
|
+
chatMessageId: string | null;
|
|
610
619
|
spaceId: string | null;
|
|
611
620
|
type: "image" | "video" | "document" | "other";
|
|
612
621
|
originalPath: string;
|
|
@@ -647,6 +656,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
647
656
|
userId: string | null;
|
|
648
657
|
entityId: string | null;
|
|
649
658
|
commentId: string | null;
|
|
659
|
+
chatMessageId: string | null;
|
|
650
660
|
spaceId: string | null;
|
|
651
661
|
type: "image" | "video" | "document" | "other";
|
|
652
662
|
originalPath: string;
|
|
@@ -732,6 +742,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
732
742
|
userId: string | null;
|
|
733
743
|
entityId: string | null;
|
|
734
744
|
commentId: string | null;
|
|
745
|
+
chatMessageId: string | null;
|
|
735
746
|
spaceId: string | null;
|
|
736
747
|
type: "image" | "video" | "document" | "other";
|
|
737
748
|
originalPath: string;
|
|
@@ -772,6 +783,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
772
783
|
userId: string | null;
|
|
773
784
|
entityId: string | null;
|
|
774
785
|
commentId: string | null;
|
|
786
|
+
chatMessageId: string | null;
|
|
775
787
|
spaceId: string | null;
|
|
776
788
|
type: "image" | "video" | "document" | "other";
|
|
777
789
|
originalPath: string;
|
|
@@ -860,6 +872,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
860
872
|
userId: string | null;
|
|
861
873
|
entityId: string | null;
|
|
862
874
|
commentId: string | null;
|
|
875
|
+
chatMessageId: string | null;
|
|
863
876
|
spaceId: string | null;
|
|
864
877
|
type: "image" | "video" | "document" | "other";
|
|
865
878
|
originalPath: string;
|
|
@@ -900,6 +913,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
900
913
|
userId: string | null;
|
|
901
914
|
entityId: string | null;
|
|
902
915
|
commentId: string | null;
|
|
916
|
+
chatMessageId: string | null;
|
|
903
917
|
spaceId: string | null;
|
|
904
918
|
type: "image" | "video" | "document" | "other";
|
|
905
919
|
originalPath: string;
|
|
@@ -988,6 +1002,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
988
1002
|
userId: string | null;
|
|
989
1003
|
entityId: string | null;
|
|
990
1004
|
commentId: string | null;
|
|
1005
|
+
chatMessageId: string | null;
|
|
991
1006
|
spaceId: string | null;
|
|
992
1007
|
type: "image" | "video" | "document" | "other";
|
|
993
1008
|
originalPath: string;
|
|
@@ -1028,6 +1043,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
1028
1043
|
userId: string | null;
|
|
1029
1044
|
entityId: string | null;
|
|
1030
1045
|
commentId: string | null;
|
|
1046
|
+
chatMessageId: string | null;
|
|
1031
1047
|
spaceId: string | null;
|
|
1032
1048
|
type: "image" | "video" | "document" | "other";
|
|
1033
1049
|
originalPath: string;
|
|
@@ -1113,6 +1129,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
1113
1129
|
userId: string | null;
|
|
1114
1130
|
entityId: string | null;
|
|
1115
1131
|
commentId: string | null;
|
|
1132
|
+
chatMessageId: string | null;
|
|
1116
1133
|
spaceId: string | null;
|
|
1117
1134
|
type: "image" | "video" | "document" | "other";
|
|
1118
1135
|
originalPath: string;
|
|
@@ -1153,6 +1170,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
1153
1170
|
userId: string | null;
|
|
1154
1171
|
entityId: string | null;
|
|
1155
1172
|
commentId: string | null;
|
|
1173
|
+
chatMessageId: string | null;
|
|
1156
1174
|
spaceId: string | null;
|
|
1157
1175
|
type: "image" | "video" | "document" | "other";
|
|
1158
1176
|
originalPath: string;
|
|
@@ -1238,6 +1256,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
1238
1256
|
userId: string | null;
|
|
1239
1257
|
entityId: string | null;
|
|
1240
1258
|
commentId: string | null;
|
|
1259
|
+
chatMessageId: string | null;
|
|
1241
1260
|
spaceId: string | null;
|
|
1242
1261
|
type: "image" | "video" | "document" | "other";
|
|
1243
1262
|
originalPath: string;
|
|
@@ -1278,6 +1297,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
1278
1297
|
userId: string | null;
|
|
1279
1298
|
entityId: string | null;
|
|
1280
1299
|
commentId: string | null;
|
|
1300
|
+
chatMessageId: string | null;
|
|
1281
1301
|
spaceId: string | null;
|
|
1282
1302
|
type: "image" | "video" | "document" | "other";
|
|
1283
1303
|
originalPath: string;
|
|
@@ -1363,6 +1383,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
1363
1383
|
userId: string | null;
|
|
1364
1384
|
entityId: string | null;
|
|
1365
1385
|
commentId: string | null;
|
|
1386
|
+
chatMessageId: string | null;
|
|
1366
1387
|
spaceId: string | null;
|
|
1367
1388
|
type: "image" | "video" | "document" | "other";
|
|
1368
1389
|
originalPath: string;
|
|
@@ -1403,6 +1424,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
1403
1424
|
userId: string | null;
|
|
1404
1425
|
entityId: string | null;
|
|
1405
1426
|
commentId: string | null;
|
|
1427
|
+
chatMessageId: string | null;
|
|
1406
1428
|
spaceId: string | null;
|
|
1407
1429
|
type: "image" | "video" | "document" | "other";
|
|
1408
1430
|
originalPath: string;
|
|
@@ -1488,6 +1510,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
1488
1510
|
userId: string | null;
|
|
1489
1511
|
entityId: string | null;
|
|
1490
1512
|
commentId: string | null;
|
|
1513
|
+
chatMessageId: string | null;
|
|
1491
1514
|
spaceId: string | null;
|
|
1492
1515
|
type: "image" | "video" | "document" | "other";
|
|
1493
1516
|
originalPath: string;
|
|
@@ -1528,6 +1551,7 @@ export declare const spaceListsSlice: import("@reduxjs/toolkit").Slice<SpaceList
|
|
|
1528
1551
|
userId: string | null;
|
|
1529
1552
|
entityId: string | null;
|
|
1530
1553
|
commentId: string | null;
|
|
1554
|
+
chatMessageId: string | null;
|
|
1531
1555
|
spaceId: string | null;
|
|
1532
1556
|
type: "image" | "video" | "document" | "other";
|
|
1533
1557
|
originalPath: string;
|
|
@@ -27,6 +27,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
27
27
|
userId: string | null;
|
|
28
28
|
entityId: string | null;
|
|
29
29
|
commentId: string | null;
|
|
30
|
+
chatMessageId: string | null;
|
|
30
31
|
spaceId: string | null;
|
|
31
32
|
type: "image" | "video" | "document" | "other";
|
|
32
33
|
originalPath: string;
|
|
@@ -67,6 +68,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
67
68
|
userId: string | null;
|
|
68
69
|
entityId: string | null;
|
|
69
70
|
commentId: string | null;
|
|
71
|
+
chatMessageId: string | null;
|
|
70
72
|
spaceId: string | null;
|
|
71
73
|
type: "image" | "video" | "document" | "other";
|
|
72
74
|
originalPath: string;
|
|
@@ -146,6 +148,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
146
148
|
userId: string | null;
|
|
147
149
|
entityId: string | null;
|
|
148
150
|
commentId: string | null;
|
|
151
|
+
chatMessageId: string | null;
|
|
149
152
|
spaceId: string | null;
|
|
150
153
|
type: "image" | "video" | "document" | "other";
|
|
151
154
|
originalPath: string;
|
|
@@ -186,6 +189,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
186
189
|
userId: string | null;
|
|
187
190
|
entityId: string | null;
|
|
188
191
|
commentId: string | null;
|
|
192
|
+
chatMessageId: string | null;
|
|
189
193
|
spaceId: string | null;
|
|
190
194
|
type: "image" | "video" | "document" | "other";
|
|
191
195
|
originalPath: string;
|
|
@@ -265,6 +269,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
265
269
|
userId: string | null;
|
|
266
270
|
entityId: string | null;
|
|
267
271
|
commentId: string | null;
|
|
272
|
+
chatMessageId: string | null;
|
|
268
273
|
spaceId: string | null;
|
|
269
274
|
type: "image" | "video" | "document" | "other";
|
|
270
275
|
originalPath: string;
|
|
@@ -305,6 +310,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
305
310
|
userId: string | null;
|
|
306
311
|
entityId: string | null;
|
|
307
312
|
commentId: string | null;
|
|
313
|
+
chatMessageId: string | null;
|
|
308
314
|
spaceId: string | null;
|
|
309
315
|
type: "image" | "video" | "document" | "other";
|
|
310
316
|
originalPath: string;
|
|
@@ -384,6 +390,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
384
390
|
userId: string | null;
|
|
385
391
|
entityId: string | null;
|
|
386
392
|
commentId: string | null;
|
|
393
|
+
chatMessageId: string | null;
|
|
387
394
|
spaceId: string | null;
|
|
388
395
|
type: "image" | "video" | "document" | "other";
|
|
389
396
|
originalPath: string;
|
|
@@ -424,6 +431,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
424
431
|
userId: string | null;
|
|
425
432
|
entityId: string | null;
|
|
426
433
|
commentId: string | null;
|
|
434
|
+
chatMessageId: string | null;
|
|
427
435
|
spaceId: string | null;
|
|
428
436
|
type: "image" | "video" | "document" | "other";
|
|
429
437
|
originalPath: string;
|
|
@@ -503,6 +511,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
503
511
|
userId: string | null;
|
|
504
512
|
entityId: string | null;
|
|
505
513
|
commentId: string | null;
|
|
514
|
+
chatMessageId: string | null;
|
|
506
515
|
spaceId: string | null;
|
|
507
516
|
type: "image" | "video" | "document" | "other";
|
|
508
517
|
originalPath: string;
|
|
@@ -543,6 +552,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
543
552
|
userId: string | null;
|
|
544
553
|
entityId: string | null;
|
|
545
554
|
commentId: string | null;
|
|
555
|
+
chatMessageId: string | null;
|
|
546
556
|
spaceId: string | null;
|
|
547
557
|
type: "image" | "video" | "document" | "other";
|
|
548
558
|
originalPath: string;
|
|
@@ -622,6 +632,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
622
632
|
userId: string | null;
|
|
623
633
|
entityId: string | null;
|
|
624
634
|
commentId: string | null;
|
|
635
|
+
chatMessageId: string | null;
|
|
625
636
|
spaceId: string | null;
|
|
626
637
|
type: "image" | "video" | "document" | "other";
|
|
627
638
|
originalPath: string;
|
|
@@ -662,6 +673,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
662
673
|
userId: string | null;
|
|
663
674
|
entityId: string | null;
|
|
664
675
|
commentId: string | null;
|
|
676
|
+
chatMessageId: string | null;
|
|
665
677
|
spaceId: string | null;
|
|
666
678
|
type: "image" | "video" | "document" | "other";
|
|
667
679
|
originalPath: string;
|
|
@@ -741,6 +753,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
741
753
|
userId: string | null;
|
|
742
754
|
entityId: string | null;
|
|
743
755
|
commentId: string | null;
|
|
756
|
+
chatMessageId: string | null;
|
|
744
757
|
spaceId: string | null;
|
|
745
758
|
type: "image" | "video" | "document" | "other";
|
|
746
759
|
originalPath: string;
|
|
@@ -781,6 +794,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
781
794
|
userId: string | null;
|
|
782
795
|
entityId: string | null;
|
|
783
796
|
commentId: string | null;
|
|
797
|
+
chatMessageId: string | null;
|
|
784
798
|
spaceId: string | null;
|
|
785
799
|
type: "image" | "video" | "document" | "other";
|
|
786
800
|
originalPath: string;
|
|
@@ -860,6 +874,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
860
874
|
userId: string | null;
|
|
861
875
|
entityId: string | null;
|
|
862
876
|
commentId: string | null;
|
|
877
|
+
chatMessageId: string | null;
|
|
863
878
|
spaceId: string | null;
|
|
864
879
|
type: "image" | "video" | "document" | "other";
|
|
865
880
|
originalPath: string;
|
|
@@ -900,6 +915,7 @@ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
|
|
|
900
915
|
userId: string | null;
|
|
901
916
|
entityId: string | null;
|
|
902
917
|
commentId: string | null;
|
|
918
|
+
chatMessageId: string | null;
|
|
903
919
|
spaceId: string | null;
|
|
904
920
|
type: "image" | "video" | "document" | "other";
|
|
905
921
|
originalPath: string;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { IChatMessage } from "../interfaces/models/IChatMessage";
|
|
2
|
+
import type { IConversation } from "../interfaces/models/IConversation";
|
|
3
|
+
import type { IConversationMember } from "../interfaces/models/IConversationMember";
|
|
4
|
+
export interface ServerToClientEvents {
|
|
5
|
+
"message:created": (message: IChatMessage) => void;
|
|
6
|
+
"message:updated": (payload: {
|
|
7
|
+
messageId: string;
|
|
8
|
+
conversationId: string;
|
|
9
|
+
content: string | null;
|
|
10
|
+
gif: IChatMessage["gif"];
|
|
11
|
+
mentions: IChatMessage["mentions"];
|
|
12
|
+
metadata: Record<string, any>;
|
|
13
|
+
editedAt: Date | null;
|
|
14
|
+
}) => void;
|
|
15
|
+
"message:deleted": (payload: {
|
|
16
|
+
messageId: string;
|
|
17
|
+
conversationId: string;
|
|
18
|
+
userDeletedAt: Date;
|
|
19
|
+
}) => void;
|
|
20
|
+
"message:removed": (payload: {
|
|
21
|
+
messageId: string;
|
|
22
|
+
conversationId: string;
|
|
23
|
+
}) => void;
|
|
24
|
+
"message:reaction": (payload: {
|
|
25
|
+
messageId: string;
|
|
26
|
+
conversationId: string;
|
|
27
|
+
emoji: string;
|
|
28
|
+
userId: string;
|
|
29
|
+
delta: 1 | -1;
|
|
30
|
+
reactionCounts: Record<string, number>;
|
|
31
|
+
}) => void;
|
|
32
|
+
"thread:reply_count": (payload: {
|
|
33
|
+
messageId: string;
|
|
34
|
+
conversationId: string;
|
|
35
|
+
threadReplyCount: number;
|
|
36
|
+
}) => void;
|
|
37
|
+
"typing:start": (payload: {
|
|
38
|
+
userId: string;
|
|
39
|
+
conversationId: string;
|
|
40
|
+
}) => void;
|
|
41
|
+
"typing:stop": (payload: {
|
|
42
|
+
userId: string;
|
|
43
|
+
conversationId: string;
|
|
44
|
+
}) => void;
|
|
45
|
+
"member:joined": (payload: {
|
|
46
|
+
conversationId: string;
|
|
47
|
+
member: IConversationMember;
|
|
48
|
+
}) => void;
|
|
49
|
+
"member:left": (payload: {
|
|
50
|
+
conversationId: string;
|
|
51
|
+
userId: string;
|
|
52
|
+
}) => void;
|
|
53
|
+
"conversation:updated": (patch: Partial<IConversation> & {
|
|
54
|
+
id: string;
|
|
55
|
+
}) => void;
|
|
56
|
+
"conversation:deleted": (payload: {
|
|
57
|
+
conversationId: string;
|
|
58
|
+
}) => void;
|
|
59
|
+
}
|
|
60
|
+
export interface ClientToServerEvents {
|
|
61
|
+
"join:conversation": (payload: {
|
|
62
|
+
conversationId: string;
|
|
63
|
+
}) => void;
|
|
64
|
+
"leave:conversation": (payload: {
|
|
65
|
+
conversationId: string;
|
|
66
|
+
}) => void;
|
|
67
|
+
"typing:start": (payload: {
|
|
68
|
+
conversationId: string;
|
|
69
|
+
}) => void;
|
|
70
|
+
"typing:stop": (payload: {
|
|
71
|
+
conversationId: string;
|
|
72
|
+
}) => void;
|
|
73
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"socket.js","sourceRoot":"","sources":["../../../src/types/socket.ts"],"names":[],"mappings":""}
|
package/dist/esm/config/axios.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axios.js","sourceRoot":"","sources":["../../../src/config/axios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,IAAM,QAAQ,GAAG,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"axios.js","sourceRoot":"","sources":["../../../src/config/axios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,IAAM,QAAQ,GAAG,4BAA4B,CAAC;AAErD,eAAe,KAAK,CAAC,MAAM,CAAC;IAC1B,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;CAChD,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { Socket } from "socket.io-client";
|
|
3
|
+
import type { ServerToClientEvents, ClientToServerEvents } from "../types/socket";
|
|
4
|
+
export interface ChatContextValue {
|
|
5
|
+
socket: Socket<ServerToClientEvents, ClientToServerEvents> | null;
|
|
6
|
+
connected: boolean;
|
|
7
|
+
/** Called by ConversationProvider on mount to suppress unread increments */
|
|
8
|
+
registerActiveConversation: (id: string) => void;
|
|
9
|
+
/** Called by ConversationProvider on unmount */
|
|
10
|
+
unregisterActiveConversation: (id: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const ChatContext: React.Context<ChatContextValue>;
|
|
13
|
+
export declare function useChatContext(): ChatContextValue;
|
|
14
|
+
export interface ChatProviderProps {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const ChatProvider: React.FC<ChatProviderProps>;
|