@replyke/core 7.0.0-beta.100 → 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 +7 -0
- package/dist/cjs/hooks/comments/useCommentSectionData.js +62 -38
- 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 +7 -0
- package/dist/esm/hooks/comments/useCommentSectionData.js +62 -38
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replyke/core",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.103",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Replyke, maintained by Yanay Tsabary",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"axios": "^1.4.0",
|
|
44
44
|
"js-cookie": "^3.0.5",
|
|
45
|
-
"lodash": "^4.17.21"
|
|
45
|
+
"lodash": "^4.17.21",
|
|
46
|
+
"socket.io-client": "^4.8.1"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@reduxjs/toolkit": "^2.0.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMentions.js","sourceRoot":"","sources":["../../../../src/hooks/users/useMentions.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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