@webinex/chatify 1.0.3-rc3 → 2.0.0-build1
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/css/chatify.css +137 -105
- package/dist/esm/index.js +10 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/core/api/accountApi.d.ts +5 -0
- package/dist/esm/types/core/api/api.d.ts +2538 -0
- package/dist/esm/types/core/api/baseApi.d.ts +10 -0
- package/dist/esm/types/core/api/chatApi.d.ts +25 -0
- package/dist/esm/types/core/api/chatListApi.d.ts +6 -0
- package/dist/esm/types/core/api/chatMemberApi.d.ts +6 -0
- package/dist/esm/types/core/api/chatMessageApi.d.ts +34 -0
- package/dist/esm/types/core/api/index.d.ts +9 -0
- package/dist/esm/types/core/api/threadApi.d.ts +95 -0
- package/dist/esm/types/core/api/threadMessageApi.d.ts +28 -0
- package/dist/esm/types/core/client.d.ts +56 -9
- package/dist/esm/types/core/constants.d.ts +1 -0
- package/dist/esm/types/core/debounce.d.ts +27 -0
- package/dist/esm/types/core/index.d.ts +3 -16
- package/dist/esm/types/core/types.d.ts +105 -0
- package/dist/esm/types/index.d.ts +0 -1
- package/dist/esm/types/ui/Chat/ChatContext.d.ts +10 -0
- package/dist/esm/types/ui/Chat/ChatEditableHeaderName.d.ts +2 -0
- package/dist/esm/types/ui/Chat/ChatHeaderActions.d.ts +2 -0
- package/dist/esm/types/ui/Chat/ChatPanel.d.ts +13 -0
- package/dist/esm/types/ui/Chat/ChatView.d.ts +17 -0
- package/dist/esm/types/ui/Chat/Members/ChatMembersButton.d.ts +2 -0
- package/dist/esm/types/ui/Chat/Members/ChatMembersPanel.d.ts +2 -0
- package/dist/esm/types/ui/Chat/Members/ChatMembersPreview.d.ts +2 -0
- package/dist/esm/types/ui/Chat/Members/index.d.ts +11 -0
- package/dist/esm/types/ui/Chat/index.d.ts +6 -0
- package/dist/esm/types/ui/ChatGroup/ChatGroupContext.d.ts +12 -0
- package/dist/esm/types/ui/ChatGroup/ChatGroupPanel.d.ts +15 -0
- package/dist/esm/types/ui/ChatGroup/Create/CreateChatButton.d.ts +2 -0
- package/dist/esm/types/ui/{CreateChatPanel → ChatGroup/Create}/CreateChatForm.d.ts +1 -1
- package/dist/esm/types/ui/ChatGroup/Create/CreateChatMemberInput.d.ts +5 -0
- package/dist/esm/types/ui/ChatGroup/Create/CreateChatNameInput.d.ts +5 -0
- package/dist/esm/types/ui/ChatGroup/Create/CreateChatPanel.d.ts +2 -0
- package/dist/esm/types/ui/ChatGroup/Create/index.d.ts +17 -0
- package/dist/esm/types/ui/ChatGroup/Layout/ChatGroupAside.d.ts +2 -0
- package/dist/esm/types/ui/ChatGroup/Layout/ChatGroupBody.d.ts +2 -0
- package/dist/esm/types/ui/ChatGroup/Layout/ChatGroupFooter.d.ts +2 -0
- package/dist/esm/types/ui/ChatGroup/Layout/ChatGroupHeader.d.ts +2 -0
- package/dist/esm/types/ui/ChatGroup/Layout/ChatGroupMain.d.ts +2 -0
- package/dist/esm/types/ui/ChatGroup/Layout/index.d.ts +17 -0
- package/dist/esm/types/ui/ChatGroup/List/ChatList.d.ts +2 -0
- package/dist/esm/types/ui/ChatGroup/List/ChatListItemAvatar.d.ts +3 -0
- package/dist/esm/types/ui/ChatGroup/List/ChatListItemBox.d.ts +6 -0
- package/dist/esm/types/ui/ChatGroup/List/ChatListItemLastMessage.d.ts +3 -0
- package/dist/esm/types/ui/ChatGroup/List/ChatListItemLastMessageAuthor.d.ts +3 -0
- package/dist/esm/types/ui/{ChatList → ChatGroup/List}/ChatListItemLastMessageContent.d.ts +1 -1
- package/dist/esm/types/ui/ChatGroup/List/ChatListItemLastMessageSentAt.d.ts +3 -0
- package/dist/esm/types/ui/ChatGroup/List/ChatListItemName.d.ts +3 -0
- package/dist/esm/types/ui/ChatGroup/List/ChatListItemUnreadCount.d.ts +3 -0
- package/dist/esm/types/ui/ChatGroup/List/index.d.ts +29 -0
- package/dist/esm/types/ui/ChatGroup/index.d.ts +5 -0
- package/dist/esm/types/ui/Chatify.d.ts +8 -72
- package/dist/esm/types/ui/Conversation/Conversation.d.ts +21 -0
- package/dist/esm/types/ui/Conversation/ConversationActions.d.ts +2 -0
- package/dist/esm/types/ui/Conversation/ConversationBody.d.ts +2 -0
- package/dist/esm/types/ui/Conversation/ConversationContext.d.ts +20 -0
- package/dist/esm/types/ui/Conversation/ConversationHeader.d.ts +2 -0
- package/dist/esm/types/ui/Conversation/ConversationName.d.ts +2 -0
- package/dist/esm/types/ui/Conversation/InputBox/InputBox.d.ts +2 -0
- package/dist/esm/types/ui/Conversation/InputBox/InputFilesBox.d.ts +2 -0
- package/dist/esm/types/ui/Conversation/InputBox/InputSubmitButtonBox.d.ts +5 -0
- package/dist/esm/types/ui/Conversation/InputBox/InputTextBox.d.ts +8 -0
- package/dist/esm/types/ui/Conversation/InputBox/index.d.ts +14 -0
- package/dist/esm/types/ui/Conversation/Message/MessageAuthor.d.ts +3 -0
- package/dist/esm/types/ui/Conversation/Message/MessageBox.d.ts +6 -0
- package/dist/esm/types/ui/Conversation/Message/MessageContent.d.ts +3 -0
- package/dist/esm/types/ui/Conversation/Message/MessageInfoBox.d.ts +3 -0
- package/dist/esm/types/ui/{Message → Conversation/Message}/MessageRow.d.ts +1 -1
- package/dist/esm/types/ui/Conversation/Message/MessageText.d.ts +3 -0
- package/dist/esm/types/ui/Conversation/Message/index.d.ts +20 -0
- package/dist/esm/types/ui/Conversation/NextObserver/NextMessagesObserver.d.ts +5 -0
- package/dist/esm/types/ui/Conversation/NextObserver/index.d.ts +1 -0
- package/dist/esm/types/ui/Conversation/ReadObserver/MessageReadObserver.d.ts +6 -0
- package/dist/esm/types/ui/Conversation/ReadObserver/index.d.ts +1 -0
- package/dist/esm/types/ui/Conversation/SendingMessage/SendingMessageBox.d.ts +7 -0
- package/dist/esm/types/ui/Conversation/SendingMessage/SendingMessageContent.d.ts +3 -0
- package/dist/esm/types/ui/Conversation/SendingMessage/SendingMessageInfoBox.d.ts +3 -0
- package/dist/esm/types/ui/{SendingMessage/SendingMessageInfoBox.d.ts → Conversation/SendingMessage/SendingMessageText.d.ts} +1 -1
- package/dist/esm/types/ui/Conversation/SendingMessage/index.d.ts +14 -0
- package/dist/esm/types/ui/Conversation/SystemMessage/SystemMessageBox.d.ts +6 -0
- package/dist/esm/types/ui/Conversation/SystemMessage/SystemMessageRow.d.ts +9 -0
- package/dist/esm/types/ui/Conversation/SystemMessage/index.d.ts +8 -0
- package/dist/esm/types/ui/Conversation/index.d.ts +12 -0
- package/dist/esm/types/ui/{InputBox/InputFilesBox.d.ts → Thread/ThreadActions.d.ts} +1 -1
- package/dist/esm/types/ui/Thread/ThreadContext.d.ts +8 -0
- package/dist/esm/types/ui/Thread/ThreadPanel.d.ts +14 -0
- package/dist/esm/types/ui/Thread/index.d.ts +3 -0
- package/dist/esm/types/ui/color.d.ts +6 -0
- package/dist/esm/types/ui/common/Avatar.d.ts +6 -0
- package/dist/esm/types/ui/common/Icon.d.ts +20 -0
- package/dist/esm/types/ui/common/MessageSkeleton.d.ts +5 -0
- package/dist/esm/types/ui/common/index.d.ts +11 -0
- package/dist/esm/types/ui/customize.d.ts +5 -7
- package/dist/esm/types/ui/index.d.ts +9 -9
- package/dist/esm/types/ui/localizer.d.ts +2 -6
- package/package.json +12 -10
- package/src/core/api/accountApi.ts +13 -0
- package/src/core/api/api.ts +42 -0
- package/src/core/api/baseApi.ts +30 -0
- package/src/core/api/chatApi.ts +89 -0
- package/src/core/api/chatListApi.ts +149 -0
- package/src/core/api/chatMemberApi.ts +22 -0
- package/src/core/api/chatMessageApi.ts +156 -0
- package/src/core/api/index.ts +9 -0
- package/src/core/api/threadApi.ts +132 -0
- package/src/core/api/threadMessageApi.ts +127 -0
- package/src/core/client.ts +157 -31
- package/src/core/constants.ts +1 -0
- package/src/core/debounce.ts +90 -0
- package/src/core/index.ts +3 -16
- package/src/core/types.tsx +152 -0
- package/src/index.ts +0 -1
- package/src/styles/aside.scss +31 -2
- package/src/styles/chat.scss +34 -37
- package/src/styles/index.scss +7 -5
- package/src/styles/input.scss +3 -1
- package/src/styles/members.scss +13 -0
- package/src/ui/Chat/ChatContext.tsx +30 -0
- package/src/ui/{ChatPanel/ChatHeaderName.tsx → Chat/ChatEditableHeaderName.tsx} +9 -15
- package/src/ui/Chat/ChatHeaderActions.tsx +19 -0
- package/src/ui/Chat/ChatPanel.tsx +30 -0
- package/src/ui/Chat/ChatView.tsx +123 -0
- package/src/ui/Chat/Members/ChatMembersButton.tsx +9 -0
- package/src/ui/{ChatPanel → Chat/Members}/ChatMembersPanel.tsx +16 -20
- package/src/ui/Chat/Members/ChatMembersPreview.tsx +25 -0
- package/src/ui/Chat/Members/index.ts +13 -0
- package/src/ui/Chat/index.ts +6 -0
- package/src/ui/ChatGroup/ChatGroupContext.tsx +50 -0
- package/src/ui/ChatGroup/ChatGroupPanel.tsx +73 -0
- package/src/ui/ChatGroup/Create/CreateChatButton.tsx +15 -0
- package/src/ui/{CreateChatPanel → ChatGroup/Create}/CreateChatForm.tsx +2 -2
- package/src/ui/{CreateChatPanel → ChatGroup/Create}/CreateChatMemberInput.tsx +6 -7
- package/src/ui/{CreateChatPanel → ChatGroup/Create}/CreateChatNameInput.tsx +2 -2
- package/src/ui/{CreateChatPanel → ChatGroup/Create}/CreateChatPanel.tsx +14 -18
- package/src/ui/ChatGroup/Create/index.ts +19 -0
- package/src/ui/ChatGroup/Layout/ChatGroupAside.tsx +12 -0
- package/src/ui/ChatGroup/Layout/ChatGroupBody.tsx +10 -0
- package/src/ui/ChatGroup/Layout/ChatGroupFooter.tsx +3 -0
- package/src/ui/ChatGroup/Layout/ChatGroupHeader.tsx +5 -0
- package/src/ui/ChatGroup/Layout/ChatGroupMain.tsx +17 -0
- package/src/ui/ChatGroup/Layout/index.ts +19 -0
- package/src/ui/{ChatList → ChatGroup/List}/ChatList.tsx +8 -8
- package/src/ui/ChatGroup/List/ChatListItemAvatar.tsx +22 -0
- package/src/ui/{ChatList → ChatGroup/List}/ChatListItemBox.tsx +9 -5
- package/src/ui/{ChatList → ChatGroup/List}/ChatListItemLastMessage.tsx +1 -1
- package/src/ui/{ChatList → ChatGroup/List}/ChatListItemLastMessageAuthor.tsx +2 -7
- package/src/ui/{ChatList → ChatGroup/List}/ChatListItemLastMessageContent.tsx +3 -3
- package/src/ui/{ChatList → ChatGroup/List}/ChatListItemLastMessageSentAt.tsx +2 -2
- package/src/ui/ChatGroup/List/ChatListItemName.tsx +8 -0
- package/src/ui/{ChatList → ChatGroup/List}/ChatListItemUnreadCount.tsx +1 -1
- package/src/ui/ChatGroup/List/index.ts +31 -0
- package/src/ui/ChatGroup/index.ts +5 -0
- package/src/ui/Chatify.tsx +8 -153
- package/src/ui/Conversation/Conversation.tsx +76 -0
- package/src/ui/Conversation/ConversationActions.tsx +5 -0
- package/src/ui/Conversation/ConversationBody.tsx +28 -0
- package/src/ui/Conversation/ConversationContext.ts +27 -0
- package/src/ui/Conversation/ConversationHeader.tsx +23 -0
- package/src/ui/Conversation/ConversationName.tsx +7 -0
- package/src/ui/Conversation/InputBox/InputBox.tsx +40 -0
- package/src/ui/{InputBox → Conversation/InputBox}/InputFilesBox.tsx +2 -2
- package/src/ui/{InputBox → Conversation/InputBox}/InputSubmitButtonBox.tsx +2 -2
- package/src/ui/{InputBox → Conversation/InputBox}/InputTextBox.tsx +6 -4
- package/src/ui/Conversation/InputBox/index.ts +16 -0
- package/src/ui/{Message → Conversation/Message}/MessageAuthor.tsx +2 -2
- package/src/ui/{Message → Conversation/Message}/MessageBox.tsx +4 -4
- package/src/ui/{Message → Conversation/Message}/MessageContent.tsx +1 -1
- package/src/ui/{Message → Conversation/Message}/MessageInfoBox.tsx +9 -7
- package/src/ui/{Message → Conversation/Message}/MessageRow.tsx +3 -3
- package/src/ui/{Message → Conversation/Message}/MessageText.tsx +1 -1
- package/src/ui/Conversation/Message/index.ts +22 -0
- package/src/ui/{Next.tsx → Conversation/NextObserver/NextMessagesObserver.tsx} +9 -10
- package/src/ui/Conversation/NextObserver/index.ts +1 -0
- package/src/ui/{MessageReadObserver.tsx → Conversation/ReadObserver/MessageReadObserver.tsx} +17 -13
- package/src/ui/Conversation/ReadObserver/index.ts +1 -0
- package/src/ui/{SendingMessage → Conversation/SendingMessage}/SendingMessageBox.tsx +2 -2
- package/src/ui/{SendingMessage → Conversation/SendingMessage}/SendingMessageContent.tsx +1 -1
- package/src/ui/{SendingMessage → Conversation/SendingMessage}/SendingMessageInfoBox.tsx +2 -2
- package/src/ui/{SendingMessage → Conversation/SendingMessage}/SendingMessageText.tsx +1 -1
- package/src/ui/Conversation/SendingMessage/index.ts +16 -0
- package/src/ui/{SystemMessage → Conversation/SystemMessage}/SystemMessageBox.tsx +4 -4
- package/src/ui/Conversation/SystemMessage/SystemMessageRow.tsx +28 -0
- package/src/ui/Conversation/SystemMessage/index.ts +10 -0
- package/src/ui/Conversation/index.ts +13 -0
- package/src/ui/Thread/ThreadActions.tsx +22 -0
- package/src/ui/Thread/ThreadContext.ts +13 -0
- package/src/ui/Thread/ThreadPanel.tsx +138 -0
- package/src/ui/Thread/index.tsx +3 -0
- package/src/ui/color.ts +20 -0
- package/src/ui/common/Avatar.tsx +20 -0
- package/src/ui/{Icon.tsx → common/Icon.tsx} +6 -1
- package/src/ui/{MessageSkeleton.tsx → common/MessageSkeleton.tsx} +3 -2
- package/src/ui/common/index.ts +13 -0
- package/src/ui/customize.tsx +18 -10
- package/src/ui/index.ts +9 -9
- package/src/ui/localizer.tsx +7 -10
- package/dist/esm/types/ChatifyContext.d.ts +0 -11
- package/dist/esm/types/core/action.d.ts +0 -151
- package/dist/esm/types/core/models.d.ts +0 -70
- package/dist/esm/types/core/reducer.d.ts +0 -11
- package/dist/esm/types/core/state.d.ts +0 -55
- package/dist/esm/types/core/useAddChatMutation.d.ts +0 -2
- package/dist/esm/types/core/useAddMemberMutation.d.ts +0 -2
- package/dist/esm/types/core/useFetchNextMutation.d.ts +0 -3
- package/dist/esm/types/core/useGetAccountsQuery.d.ts +0 -3
- package/dist/esm/types/core/useGetChatListQuery.d.ts +0 -3
- package/dist/esm/types/core/useGetChatQuery.d.ts +0 -5
- package/dist/esm/types/core/useGetMessagesQuery.d.ts +0 -4
- package/dist/esm/types/core/useReadMonitor.d.ts +0 -1
- package/dist/esm/types/core/useRemoveMemberMutation.d.ts +0 -2
- package/dist/esm/types/core/useSendMutation.d.ts +0 -2
- package/dist/esm/types/core/useSignalRMonitor.d.ts +0 -2
- package/dist/esm/types/core/useUpdateChatNameMutation.d.ts +0 -2
- package/dist/esm/types/ui/AddChatButton.d.ts +0 -2
- package/dist/esm/types/ui/Avatar.d.ts +0 -6
- package/dist/esm/types/ui/ChatList/ChatList.d.ts +0 -2
- package/dist/esm/types/ui/ChatList/ChatListItemBox.d.ts +0 -6
- package/dist/esm/types/ui/ChatList/ChatListItemLastMessage.d.ts +0 -3
- package/dist/esm/types/ui/ChatList/ChatListItemLastMessageAuthor.d.ts +0 -3
- package/dist/esm/types/ui/ChatList/ChatListItemLastMessageSentAt.d.ts +0 -3
- package/dist/esm/types/ui/ChatList/ChatListItemName.d.ts +0 -3
- package/dist/esm/types/ui/ChatList/ChatListItemUnreadCount.d.ts +0 -3
- package/dist/esm/types/ui/ChatList/index.d.ts +0 -8
- package/dist/esm/types/ui/ChatName.d.ts +0 -5
- package/dist/esm/types/ui/ChatPanel/ChatBody.d.ts +0 -5
- package/dist/esm/types/ui/ChatPanel/ChatHeader.d.ts +0 -5
- package/dist/esm/types/ui/ChatPanel/ChatHeaderMembers.d.ts +0 -5
- package/dist/esm/types/ui/ChatPanel/ChatHeaderName.d.ts +0 -5
- package/dist/esm/types/ui/ChatPanel/ChatMembersButton.d.ts +0 -5
- package/dist/esm/types/ui/ChatPanel/ChatMembersPanel.d.ts +0 -5
- package/dist/esm/types/ui/ChatPanel/ChatPanel.d.ts +0 -5
- package/dist/esm/types/ui/ChatPanel/index.d.ts +0 -6
- package/dist/esm/types/ui/CreateChatPanel/CreateChatMemberInput.d.ts +0 -5
- package/dist/esm/types/ui/CreateChatPanel/CreateChatNameInput.d.ts +0 -5
- package/dist/esm/types/ui/CreateChatPanel/CreateChatPanel.d.ts +0 -2
- package/dist/esm/types/ui/CreateChatPanel/index.d.ts +0 -4
- package/dist/esm/types/ui/Icon.d.ts +0 -17
- package/dist/esm/types/ui/InputBox/InputBox.d.ts +0 -2
- package/dist/esm/types/ui/InputBox/InputSubmitButtonBox.d.ts +0 -5
- package/dist/esm/types/ui/InputBox/InputTextBox.d.ts +0 -7
- package/dist/esm/types/ui/InputBox/index.d.ts +0 -4
- package/dist/esm/types/ui/Layout/Aside.d.ts +0 -2
- package/dist/esm/types/ui/Layout/Body.d.ts +0 -2
- package/dist/esm/types/ui/Layout/Footer.d.ts +0 -2
- package/dist/esm/types/ui/Layout/Header.d.ts +0 -2
- package/dist/esm/types/ui/Layout/Main.d.ts +0 -2
- package/dist/esm/types/ui/Layout/index.d.ts +0 -5
- package/dist/esm/types/ui/Message/MessageAuthor.d.ts +0 -3
- package/dist/esm/types/ui/Message/MessageBox.d.ts +0 -6
- package/dist/esm/types/ui/Message/MessageContent.d.ts +0 -3
- package/dist/esm/types/ui/Message/MessageInfoBox.d.ts +0 -3
- package/dist/esm/types/ui/Message/MessageText.d.ts +0 -3
- package/dist/esm/types/ui/Message/index.d.ts +0 -6
- package/dist/esm/types/ui/MessageReadObserver.d.ts +0 -6
- package/dist/esm/types/ui/MessageSkeleton.d.ts +0 -4
- package/dist/esm/types/ui/Next.d.ts +0 -4
- package/dist/esm/types/ui/SendingMessage/SendingMessageBox.d.ts +0 -7
- package/dist/esm/types/ui/SendingMessage/SendingMessageContent.d.ts +0 -3
- package/dist/esm/types/ui/SendingMessage/SendingMessageText.d.ts +0 -3
- package/dist/esm/types/ui/SendingMessage/index.d.ts +0 -4
- package/dist/esm/types/ui/SystemMessage/SystemMessageBox.d.ts +0 -6
- package/dist/esm/types/ui/SystemMessage/SystemMessageRow.d.ts +0 -9
- package/dist/esm/types/ui/SystemMessage/index.d.ts +0 -2
- package/dist/esm/types/util/index.d.ts +0 -2
- package/dist/esm/types/util/uniqBy.d.ts +0 -1
- package/dist/esm/types/util/uniqId.d.ts +0 -1
- package/dist/index.d.ts +0 -637
- package/src/ChatifyContext.tsx +0 -41
- package/src/core/action.tsx +0 -431
- package/src/core/models.tsx +0 -82
- package/src/core/reducer.tsx +0 -87
- package/src/core/state.ts +0 -93
- package/src/core/useAddChatMutation.tsx +0 -28
- package/src/core/useAddMemberMutation.tsx +0 -25
- package/src/core/useFetchNextMutation.tsx +0 -28
- package/src/core/useGetAccountsQuery.tsx +0 -30
- package/src/core/useGetChatListQuery.tsx +0 -30
- package/src/core/useGetChatQuery.tsx +0 -31
- package/src/core/useGetMessagesQuery.tsx +0 -35
- package/src/core/useReadMonitor.tsx +0 -32
- package/src/core/useRemoveMemberMutation.tsx +0 -23
- package/src/core/useSendMutation.tsx +0 -24
- package/src/core/useSignalRMonitor.tsx +0 -66
- package/src/core/useUpdateChatNameMutation.tsx +0 -23
- package/src/ui/AddChatButton.tsx +0 -17
- package/src/ui/Avatar.tsx +0 -18
- package/src/ui/ChatList/ChatListItemName.tsx +0 -13
- package/src/ui/ChatList/index.ts +0 -8
- package/src/ui/ChatName.tsx +0 -10
- package/src/ui/ChatPanel/ChatBody.tsx +0 -44
- package/src/ui/ChatPanel/ChatHeader.tsx +0 -31
- package/src/ui/ChatPanel/ChatHeaderMembers.tsx +0 -28
- package/src/ui/ChatPanel/ChatMembersButton.tsx +0 -21
- package/src/ui/ChatPanel/ChatPanel.tsx +0 -27
- package/src/ui/ChatPanel/index.ts +0 -6
- package/src/ui/CreateChatPanel/index.ts +0 -4
- package/src/ui/InputBox/InputBox.tsx +0 -38
- package/src/ui/InputBox/index.ts +0 -4
- package/src/ui/Layout/Aside.tsx +0 -12
- package/src/ui/Layout/Body.tsx +0 -10
- package/src/ui/Layout/Footer.tsx +0 -3
- package/src/ui/Layout/Header.tsx +0 -5
- package/src/ui/Layout/Main.tsx +0 -15
- package/src/ui/Layout/index.ts +0 -5
- package/src/ui/Message/index.ts +0 -6
- package/src/ui/SendingMessage/index.ts +0 -4
- package/src/ui/SystemMessage/SystemMessageRow.tsx +0 -43
- package/src/ui/SystemMessage/index.ts +0 -2
- package/src/util/index.ts +0 -2
- package/src/util/uniqBy.tsx +0 -17
- package/src/util/uniqId.tsx +0 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CreateChatForm } from './CreateChatForm';
|
|
2
|
+
import { CreateChatMemberInput } from './CreateChatMemberInput';
|
|
3
|
+
import { CreateChatNameInput } from './CreateChatNameInput';
|
|
4
|
+
import { CreateChatPanel } from './CreateChatPanel';
|
|
5
|
+
import { CreateChatButton } from './CreateChatButton';
|
|
6
|
+
export * from './CreateChatForm';
|
|
7
|
+
export * from './CreateChatMemberInput';
|
|
8
|
+
export * from './CreateChatNameInput';
|
|
9
|
+
export * from './CreateChatPanel';
|
|
10
|
+
export * from './CreateChatButton';
|
|
11
|
+
export interface CreateChatPanelCustomizeValue {
|
|
12
|
+
CreateChatForm?: typeof CreateChatForm.Component | null;
|
|
13
|
+
CreateChatMemberInput?: typeof CreateChatMemberInput.Component | null;
|
|
14
|
+
CreateChatNameInput?: typeof CreateChatNameInput.Component | null;
|
|
15
|
+
CreateChatPanel?: typeof CreateChatPanel.Component | null;
|
|
16
|
+
CreateChatButton?: typeof CreateChatButton.Component | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChatGroupAside } from './ChatGroupAside';
|
|
2
|
+
import { ChatGroupHeader } from './ChatGroupHeader';
|
|
3
|
+
import { ChatGroupFooter } from './ChatGroupFooter';
|
|
4
|
+
import { ChatGroupMain } from './ChatGroupMain';
|
|
5
|
+
import { ChatGroupBody } from './ChatGroupBody';
|
|
6
|
+
export * from './ChatGroupAside';
|
|
7
|
+
export * from './ChatGroupHeader';
|
|
8
|
+
export * from './ChatGroupFooter';
|
|
9
|
+
export * from './ChatGroupMain';
|
|
10
|
+
export * from './ChatGroupBody';
|
|
11
|
+
export interface ChatGroupLayoutCustomizeValue {
|
|
12
|
+
ChatGroupAside?: typeof ChatGroupAside.Component | null;
|
|
13
|
+
ChatGroupHeader?: typeof ChatGroupHeader.Component | null;
|
|
14
|
+
ChatGroupFooter?: typeof ChatGroupFooter.Component | null;
|
|
15
|
+
ChatGroupMain?: typeof ChatGroupMain.Component | null;
|
|
16
|
+
ChatGroupBody?: typeof ChatGroupBody.Component | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChatListItem as ChatListItemModel } from '../../../core';
|
|
3
|
+
export interface ChatListItemBoxProps {
|
|
4
|
+
chat: ChatListItemModel;
|
|
5
|
+
}
|
|
6
|
+
export declare const ChatListItemBox: import("../../customize").Customizable<import("react").ComponentType<ChatListItemBoxProps>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ChatListItemBoxProps } from './ChatListItemBox';
|
|
3
|
-
export declare const ChatListItemLastMessageContent: import("
|
|
3
|
+
export declare const ChatListItemLastMessageContent: import("../../customize").Customizable<import("react").ComponentType<ChatListItemBoxProps>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ChatList } from './ChatList';
|
|
2
|
+
import { ChatListItemAvatar } from './ChatListItemAvatar';
|
|
3
|
+
import { ChatListItemBox } from './ChatListItemBox';
|
|
4
|
+
import { ChatListItemLastMessage } from './ChatListItemLastMessage';
|
|
5
|
+
import { ChatListItemLastMessageAuthor } from './ChatListItemLastMessageAuthor';
|
|
6
|
+
import { ChatListItemLastMessageContent } from './ChatListItemLastMessageContent';
|
|
7
|
+
import { ChatListItemLastMessageSentAt } from './ChatListItemLastMessageSentAt';
|
|
8
|
+
import { ChatListItemName } from './ChatListItemName';
|
|
9
|
+
import { ChatListItemUnreadCount } from './ChatListItemUnreadCount';
|
|
10
|
+
export * from './ChatList';
|
|
11
|
+
export * from './ChatListItemAvatar';
|
|
12
|
+
export * from './ChatListItemBox';
|
|
13
|
+
export * from './ChatListItemLastMessage';
|
|
14
|
+
export * from './ChatListItemLastMessageAuthor';
|
|
15
|
+
export * from './ChatListItemLastMessageContent';
|
|
16
|
+
export * from './ChatListItemLastMessageSentAt';
|
|
17
|
+
export * from './ChatListItemName';
|
|
18
|
+
export * from './ChatListItemUnreadCount';
|
|
19
|
+
export interface ChatListCustomizeValue {
|
|
20
|
+
ChatList?: typeof ChatList.Component | null;
|
|
21
|
+
ChatListItemAvatar?: typeof ChatListItemAvatar.Component | null;
|
|
22
|
+
ChatListItemBox?: typeof ChatListItemBox.Component | null;
|
|
23
|
+
ChatListItemLastMessage?: typeof ChatListItemLastMessage.Component | null;
|
|
24
|
+
ChatListItemLastMessageAuthor?: typeof ChatListItemLastMessageAuthor.Component | null;
|
|
25
|
+
ChatListItemLastMessageContent?: typeof ChatListItemLastMessageContent.Component | null;
|
|
26
|
+
ChatListItemLastMessageSentAt?: typeof ChatListItemLastMessageSentAt.Component | null;
|
|
27
|
+
ChatListItemName?: typeof ChatListItemName.Component | null;
|
|
28
|
+
ChatListItemUnreadCount?: typeof ChatListItemUnreadCount.Component | null;
|
|
29
|
+
}
|
|
@@ -1,72 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { ChatListItemBox, ChatListItemLastMessageContent, ChatListItemLastMessageAuthor, ChatListItemLastMessage, ChatListItemUnreadCount, ChatListItemName, ChatListItemLastMessageSentAt } from './ChatList';
|
|
10
|
-
import { SendingMessageBox, SendingMessageContent, SendingMessageInfoBox, SendingMessageText } from './SendingMessage';
|
|
11
|
-
import { MessageBox, MessageRow, MessageContent, MessageText, MessageAuthor, MessageInfoBox } from './Message';
|
|
12
|
-
import { MessageReadObserver } from './MessageReadObserver';
|
|
13
|
-
import { Icon } from './Icon';
|
|
14
|
-
import { SystemMessageRow } from './SystemMessage/SystemMessageRow';
|
|
15
|
-
import { ChatList } from './ChatList';
|
|
16
|
-
import { ChatBody, ChatHeader, ChatHeaderName, ChatPanel } from './ChatPanel';
|
|
17
|
-
import { InputBox, InputFilesBox, InputSubmitButtonBox, InputTextBox } from './InputBox';
|
|
18
|
-
import { SystemMessageBox } from './SystemMessage';
|
|
19
|
-
import { CreateChatForm, CreateChatMemberInput, CreateChatNameInput, CreateChatPanel } from './CreateChatPanel';
|
|
20
|
-
export interface ChatifyCustomizeValue {
|
|
21
|
-
ChatList?: typeof ChatList.Component | null;
|
|
22
|
-
ChatListItemBox?: typeof ChatListItemBox.Component | null;
|
|
23
|
-
ChatListItemName?: typeof ChatListItemName.Component | null;
|
|
24
|
-
ChatListItemUnreadCount?: typeof ChatListItemUnreadCount.Component | null;
|
|
25
|
-
ChatListItemLastMessage?: typeof ChatListItemLastMessage.Component | null;
|
|
26
|
-
ChatListItemLastMessageAuthor?: typeof ChatListItemLastMessageAuthor.Component | null;
|
|
27
|
-
ChatListItemLastMessageContent?: typeof ChatListItemLastMessageContent.Component | null;
|
|
28
|
-
ChatListItemLastMessageSentAt?: typeof ChatListItemLastMessageSentAt.Component | null;
|
|
29
|
-
Header?: typeof Header.Component | null;
|
|
30
|
-
Footer?: typeof Footer.Component | null;
|
|
31
|
-
Body?: typeof Body.Component | null;
|
|
32
|
-
Main?: typeof Main.Component | null;
|
|
33
|
-
Aside?: typeof Aside.Component | null;
|
|
34
|
-
MessageAuthor?: typeof MessageAuthor.Component | null;
|
|
35
|
-
MessageBox?: typeof MessageBox.Component | null;
|
|
36
|
-
MessageContent?: typeof MessageContent.Component | null;
|
|
37
|
-
MessageInfoBox?: typeof MessageInfoBox.Component | null;
|
|
38
|
-
MessageRow?: typeof MessageRow.Component | null;
|
|
39
|
-
MessageText?: typeof MessageText.Component | null;
|
|
40
|
-
SendingMessageBox?: typeof SendingMessageBox.Component | null;
|
|
41
|
-
SendingMessageContent?: typeof SendingMessageContent.Component | null;
|
|
42
|
-
SendingMessageInfoBox?: typeof SendingMessageInfoBox.Component | null;
|
|
43
|
-
SendingMessageText?: typeof SendingMessageText.Component | null;
|
|
44
|
-
ChatBody?: typeof ChatBody.Component | null;
|
|
45
|
-
ChatHeader?: typeof ChatHeader.Component | null;
|
|
46
|
-
ChatHeaderMembers?: typeof ChatHeaderMembers.Component | null;
|
|
47
|
-
ChatHeaderName?: typeof ChatHeaderName.Component | null;
|
|
48
|
-
ChatPanel?: typeof ChatPanel.Component | null;
|
|
49
|
-
ChatMembersButton?: typeof ChatMembersButton.Component | null;
|
|
50
|
-
InputBox?: typeof InputBox.Component | null;
|
|
51
|
-
InputFilesBox?: typeof InputFilesBox.Component | null;
|
|
52
|
-
InputSubmitButtonBox?: typeof InputSubmitButtonBox.Component | null;
|
|
53
|
-
InputTextBox?: typeof InputTextBox.Component | null;
|
|
54
|
-
SystemMessageBox?: typeof SystemMessageBox.Component | null;
|
|
55
|
-
SystemMessageRow?: typeof SystemMessageRow.Component | null;
|
|
56
|
-
CreateChatForm?: typeof CreateChatForm.Component | null;
|
|
57
|
-
CreateChatMemberInput?: typeof CreateChatMemberInput.Component | null;
|
|
58
|
-
CreateChatNameInput?: typeof CreateChatNameInput.Component | null;
|
|
59
|
-
CreateChatPanel?: typeof CreateChatPanel.Component | null;
|
|
60
|
-
MessageReadObserver?: typeof MessageReadObserver.Component | null;
|
|
61
|
-
Avatar?: typeof Avatar.Component | null;
|
|
62
|
-
AddChatButton?: typeof AddChatButton.Component | null;
|
|
63
|
-
ChatName?: typeof ChatName.Component | null;
|
|
64
|
-
Icon?: typeof Icon.Component | null;
|
|
65
|
-
}
|
|
66
|
-
export interface ChatifyProps {
|
|
67
|
-
className?: string;
|
|
68
|
-
style?: CSSProperties;
|
|
69
|
-
localizer?: Localizer;
|
|
70
|
-
customize?: ChatifyCustomizeValue;
|
|
71
|
-
}
|
|
72
|
-
export declare const Chatify: FC<ChatifyProps>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChatPanel } from './Chat';
|
|
3
|
+
import { ThreadPanel } from './Thread';
|
|
4
|
+
export declare const Chatify: {
|
|
5
|
+
Thread: typeof ThreadPanel;
|
|
6
|
+
ChatGroup: import("react").FC<import("./ChatGroup").ChatifyProps>;
|
|
7
|
+
Chat: typeof ChatPanel;
|
|
8
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ConversationHeader } from './ConversationHeader';
|
|
3
|
+
import { ConversationBody } from './ConversationBody';
|
|
4
|
+
import { ConversationName } from './ConversationName';
|
|
5
|
+
import { ConversationContextValue, ConversationValue } from './ConversationContext';
|
|
6
|
+
import { InputBoxCustomizeValue } from './InputBox';
|
|
7
|
+
import { ConversationActions } from './ConversationActions';
|
|
8
|
+
import { MessageCustomizeValue } from './Message';
|
|
9
|
+
import { SendingMessageCustomizeValue } from './SendingMessage';
|
|
10
|
+
import { SystemMessageCustomizeValue } from './SystemMessage';
|
|
11
|
+
import { CommonCustomizeValue } from '../common';
|
|
12
|
+
export interface ConversationProps extends Omit<ConversationContextValue, keyof ConversationValue> {
|
|
13
|
+
value: ConversationValue;
|
|
14
|
+
}
|
|
15
|
+
export interface ConversationCustomizeValue extends InputBoxCustomizeValue, MessageCustomizeValue, SendingMessageCustomizeValue, SystemMessageCustomizeValue, CommonCustomizeValue {
|
|
16
|
+
ConversationActions?: typeof ConversationActions.Component | null;
|
|
17
|
+
ConversationBody?: typeof ConversationBody.Component | null;
|
|
18
|
+
ConversationHeader?: typeof ConversationHeader.Component | null;
|
|
19
|
+
ConversationName?: typeof ConversationName.Component | null;
|
|
20
|
+
}
|
|
21
|
+
export declare const Conversation: import("../customize").Customizable<import("react").ComponentType<ConversationProps>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MessageBase, MessageBody } from '../../core';
|
|
3
|
+
export interface ConversationValue {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
active: boolean;
|
|
7
|
+
lastReadMessageId: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface ConversationContextValue extends ConversationValue {
|
|
10
|
+
messages?: MessageBase[];
|
|
11
|
+
hasMore?: boolean;
|
|
12
|
+
nextLoading: boolean;
|
|
13
|
+
noReadTracking?: boolean;
|
|
14
|
+
isReading: (id: string) => boolean;
|
|
15
|
+
onNext: () => void;
|
|
16
|
+
onSend: (message: MessageBody) => void;
|
|
17
|
+
onRead: (id: string) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const ConversationContext: React.Context<ConversationContextValue>;
|
|
20
|
+
export declare function useConversation(): ConversationContextValue;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export interface TextInputBoxProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
onSend: (value: string) => void;
|
|
6
|
+
inputRef?: RefObject<HTMLTextAreaElement>;
|
|
7
|
+
}
|
|
8
|
+
export declare const InputTextBox: import("../../customize").Customizable<import("react").ComponentType<TextInputBoxProps>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InputBox } from './InputBox';
|
|
2
|
+
import { InputFilesBox } from './InputFilesBox';
|
|
3
|
+
import { InputSubmitButtonBox } from './InputSubmitButtonBox';
|
|
4
|
+
import { InputTextBox } from './InputTextBox';
|
|
5
|
+
export * from './InputBox';
|
|
6
|
+
export * from './InputFilesBox';
|
|
7
|
+
export * from './InputSubmitButtonBox';
|
|
8
|
+
export * from './InputTextBox';
|
|
9
|
+
export interface InputBoxCustomizeValue {
|
|
10
|
+
InputBox?: typeof InputBox.Component | null;
|
|
11
|
+
InputTextBox?: typeof InputTextBox.Component | null;
|
|
12
|
+
InputFilesBox?: typeof InputFilesBox.Component | null;
|
|
13
|
+
InputSubmitButtonBox?: typeof InputSubmitButtonBox.Component | null;
|
|
14
|
+
}
|
|
@@ -3,4 +3,4 @@ import { MessageBoxProps } from './MessageBox';
|
|
|
3
3
|
export interface MessageRowProps extends MessageBoxProps {
|
|
4
4
|
containerRef?: Ref<HTMLDivElement>;
|
|
5
5
|
}
|
|
6
|
-
export declare const MessageRow: import("
|
|
6
|
+
export declare const MessageRow: import("../../customize").Customizable<import("react").ComponentType<MessageRowProps>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MessageAuthor } from './MessageAuthor';
|
|
2
|
+
import { MessageBox } from './MessageBox';
|
|
3
|
+
import { MessageContent } from './MessageContent';
|
|
4
|
+
import { MessageInfoBox } from './MessageInfoBox';
|
|
5
|
+
import { MessageRow } from './MessageRow';
|
|
6
|
+
import { MessageText } from './MessageText';
|
|
7
|
+
export * from './MessageAuthor';
|
|
8
|
+
export * from './MessageBox';
|
|
9
|
+
export * from './MessageContent';
|
|
10
|
+
export * from './MessageInfoBox';
|
|
11
|
+
export * from './MessageRow';
|
|
12
|
+
export * from './MessageText';
|
|
13
|
+
export interface MessageCustomizeValue {
|
|
14
|
+
MessageAuthor?: typeof MessageAuthor.Component | null;
|
|
15
|
+
MessageBox?: typeof MessageBox.Component | null;
|
|
16
|
+
MessageContent?: typeof MessageContent.Component | null;
|
|
17
|
+
MessageInfoBox?: typeof MessageInfoBox.Component | null;
|
|
18
|
+
MessageRow?: typeof MessageRow.Component | null;
|
|
19
|
+
MessageText?: typeof MessageText.Component | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NextMessagesObserver';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { MessageBoxProps } from '../Message';
|
|
3
|
+
export interface MessageReadObserverProps extends MessageBoxProps {
|
|
4
|
+
messageRef: RefObject<HTMLDivElement | null>;
|
|
5
|
+
}
|
|
6
|
+
export declare function MessageReadObserver(props: MessageReadObserverProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MessageReadObserver';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { File } from '../../../core';
|
|
3
|
+
export interface SendingMessageBoxProps {
|
|
4
|
+
text: string;
|
|
5
|
+
files: File[];
|
|
6
|
+
}
|
|
7
|
+
export declare const SendingMessageBox: import("../../customize").Customizable<import("react").ComponentType<SendingMessageBoxProps>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { SendingMessageBoxProps } from './SendingMessageBox';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const SendingMessageText: import("../../customize").Customizable<import("react").ComponentType<SendingMessageBoxProps>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SendingMessageBox } from './SendingMessageBox';
|
|
2
|
+
import { SendingMessageContent } from './SendingMessageContent';
|
|
3
|
+
import { SendingMessageInfoBox } from './SendingMessageInfoBox';
|
|
4
|
+
import { SendingMessageText } from './SendingMessageText';
|
|
5
|
+
export * from './SendingMessageBox';
|
|
6
|
+
export * from './SendingMessageContent';
|
|
7
|
+
export * from './SendingMessageInfoBox';
|
|
8
|
+
export * from './SendingMessageText';
|
|
9
|
+
export interface SendingMessageCustomizeValue {
|
|
10
|
+
SendingMessageBox?: typeof SendingMessageBox.Component | null;
|
|
11
|
+
SendingMessageContent?: typeof SendingMessageContent.Component | null;
|
|
12
|
+
SendingMessageInfoBox?: typeof SendingMessageInfoBox.Component | null;
|
|
13
|
+
SendingMessageText?: typeof SendingMessageText.Component | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MessageBase } from '../../../core';
|
|
3
|
+
export interface SystemMessageBoxProps {
|
|
4
|
+
message: MessageBase;
|
|
5
|
+
}
|
|
6
|
+
export declare const SystemMessageBox: import("../../customize").Customizable<import("react").ComponentType<SystemMessageBoxProps>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
import { Localizer } from '../../localizer';
|
|
3
|
+
import { MessageBase } from '../../../core';
|
|
4
|
+
export interface SystemMessageRowProps {
|
|
5
|
+
message: MessageBase;
|
|
6
|
+
containerRef?: Ref<HTMLDivElement>;
|
|
7
|
+
}
|
|
8
|
+
export declare function formatSystemMessage(localizer: Localizer, text: string): React.ReactNode;
|
|
9
|
+
export declare const SystemMessageRow: import("../../customize").Customizable<import("react").ComponentType<SystemMessageRowProps>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SystemMessageBox } from './SystemMessageBox';
|
|
2
|
+
import { SystemMessageRow } from './SystemMessageRow';
|
|
3
|
+
export * from './SystemMessageBox';
|
|
4
|
+
export * from './SystemMessageRow';
|
|
5
|
+
export interface SystemMessageCustomizeValue {
|
|
6
|
+
SystemMessageBox?: typeof SystemMessageBox.Component | null;
|
|
7
|
+
SystemMessageRow?: typeof SystemMessageRow.Component | null;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './InputBox';
|
|
2
|
+
export * from './Message';
|
|
3
|
+
export * from './NextObserver';
|
|
4
|
+
export * from './ReadObserver';
|
|
5
|
+
export * from './SendingMessage';
|
|
6
|
+
export * from './SystemMessage';
|
|
7
|
+
export * from './ConversationActions';
|
|
8
|
+
export * from './ConversationBody';
|
|
9
|
+
export * from './ConversationHeader';
|
|
10
|
+
export * from './ConversationName';
|
|
11
|
+
export * from './ConversationContext';
|
|
12
|
+
export * from './Conversation';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ThreadActions: import("../customize").Customizable<import("react").ComponentType<unknown>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ThreadContextValue {
|
|
3
|
+
id: string;
|
|
4
|
+
watch: boolean;
|
|
5
|
+
onWatch: (value: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ThreadContext: React.Context<ThreadContextValue>;
|
|
8
|
+
export declare function useThreadContext(): ThreadContextValue;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConversationCustomizeValue } from '../Conversation';
|
|
2
|
+
import { Localizer } from '../localizer';
|
|
3
|
+
import { ThreadActions } from './ThreadActions';
|
|
4
|
+
import { CommonCustomizeValue } from '../common';
|
|
5
|
+
export interface ThreadCustomizeValue extends ConversationCustomizeValue, CommonCustomizeValue {
|
|
6
|
+
ThreadActions?: typeof ThreadActions.Component | null;
|
|
7
|
+
}
|
|
8
|
+
export interface ThreadPanelProps {
|
|
9
|
+
threadId: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
customize?: ThreadCustomizeValue;
|
|
12
|
+
localizer?: Localizer;
|
|
13
|
+
}
|
|
14
|
+
export declare function ThreadPanel(props: ThreadPanelProps): import("react/jsx-runtime").JSX.Element | null;
|