@droppii-org/chat-sdk 0.1.72 → 0.1.74
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/components/conversation-detail/ConversationDetailInput.d.ts.map +1 -1
- package/dist/components/conversation-detail/ConversationDetailInput.js +6 -2
- package/dist/components/conversation-detail/PinnedMessageBar.d.ts.map +1 -1
- package/dist/components/conversation-detail/PinnedMessageBar.js +23 -20
- package/dist/components/conversation-detail/PinnedMessageItem.d.ts.map +1 -1
- package/dist/components/conversation-detail/PinnedMessageItem.js +1 -5
- package/dist/hooks/conversation/useBotMainMenu.d.ts +0 -1
- package/dist/hooks/conversation/useBotMainMenu.d.ts.map +1 -1
- package/dist/hooks/conversation/useBotMainMenu.js +0 -10
- package/dist/hooks/conversation/useSwitchToCsTeam.d.ts +6 -1
- package/dist/hooks/conversation/useSwitchToCsTeam.d.ts.map +1 -1
- package/dist/hooks/conversation/useSwitchToCsTeam.js +9 -4
- package/dist/hooks/message/useMessage.d.ts.map +1 -1
- package/dist/hooks/message/useMessage.js +21 -5
- package/dist/index.d.ts +5 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/services/query.d.ts +0 -1
- package/dist/services/query.d.ts.map +1 -1
- package/dist/services/query.js +0 -1
- package/dist/styles/global.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +127 -126
- package/dist/assets/svg/cannedResponse.d.ts +0 -7
- package/dist/assets/svg/cannedResponse.d.ts.map +0 -1
- package/dist/assets/svg/cannedResponse.js +0 -3
- package/dist/assets/svg/cannedResponse.tsx +0 -48
- package/dist/assets/svg/expand.d.ts +0 -7
- package/dist/assets/svg/expand.d.ts.map +0 -1
- package/dist/assets/svg/expand.js +0 -2
- package/dist/assets/svg/expand.tsx +0 -44
- package/dist/components/biz-inbox/BizInboxHeader.d.ts +0 -3
- package/dist/components/biz-inbox/BizInboxHeader.d.ts.map +0 -1
- package/dist/components/biz-inbox/BizInboxHeader.js +0 -8
- package/dist/components/biz-inbox/BizThreadAvatar.d.ts +0 -11
- package/dist/components/biz-inbox/BizThreadAvatar.d.ts.map +0 -1
- package/dist/components/biz-inbox/BizThreadAvatar.js +0 -12
- package/dist/components/biz-inbox/BizThreadCard.d.ts +0 -8
- package/dist/components/biz-inbox/BizThreadCard.d.ts.map +0 -1
- package/dist/components/biz-inbox/BizThreadCard.js +0 -30
- package/dist/components/biz-inbox/BizThreadList.d.ts +0 -12
- package/dist/components/biz-inbox/BizThreadList.d.ts.map +0 -1
- package/dist/components/biz-inbox/BizThreadList.js +0 -36
- package/dist/components/biz-inbox/BizThreadTitle.d.ts +0 -10
- package/dist/components/biz-inbox/BizThreadTitle.d.ts.map +0 -1
- package/dist/components/biz-inbox/BizThreadTitle.js +0 -10
- package/dist/components/biz-inbox/index.d.ts +0 -10
- package/dist/components/biz-inbox/index.d.ts.map +0 -1
- package/dist/components/biz-inbox/index.js +0 -5
- package/dist/components/biz-thread-detail/BizAttachmentPreview.d.ts +0 -9
- package/dist/components/biz-thread-detail/BizAttachmentPreview.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizAttachmentPreview.js +0 -70
- package/dist/components/biz-thread-detail/BizImagePreview.d.ts +0 -9
- package/dist/components/biz-thread-detail/BizImagePreview.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizImagePreview.js +0 -39
- package/dist/components/biz-thread-detail/BizImageViewer.d.ts +0 -8
- package/dist/components/biz-thread-detail/BizImageViewer.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizImageViewer.js +0 -35
- package/dist/components/biz-thread-detail/BizLinkInputPreview.d.ts +0 -7
- package/dist/components/biz-thread-detail/BizLinkInputPreview.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizLinkInputPreview.js +0 -16
- package/dist/components/biz-thread-detail/BizLinkMessageCard.d.ts +0 -7
- package/dist/components/biz-thread-detail/BizLinkMessageCard.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizLinkMessageCard.js +0 -17
- package/dist/components/biz-thread-detail/BizLinkTextContent.d.ts +0 -6
- package/dist/components/biz-thread-detail/BizLinkTextContent.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizLinkTextContent.js +0 -11
- package/dist/components/biz-thread-detail/BizMessageBubble.d.ts +0 -11
- package/dist/components/biz-thread-detail/BizMessageBubble.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizMessageBubble.js +0 -15
- package/dist/components/biz-thread-detail/BizMessageContent.d.ts +0 -7
- package/dist/components/biz-thread-detail/BizMessageContent.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizMessageContent.js +0 -125
- package/dist/components/biz-thread-detail/BizMessageList.d.ts +0 -7
- package/dist/components/biz-thread-detail/BizMessageList.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizMessageList.js +0 -35
- package/dist/components/biz-thread-detail/BizMoreOptionItem.d.ts +0 -8
- package/dist/components/biz-thread-detail/BizMoreOptionItem.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizMoreOptionItem.js +0 -19
- package/dist/components/biz-thread-detail/BizMoreOptionPanel.d.ts +0 -10
- package/dist/components/biz-thread-detail/BizMoreOptionPanel.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizMoreOptionPanel.js +0 -20
- package/dist/components/biz-thread-detail/BizThreadDetailHeader.d.ts +0 -8
- package/dist/components/biz-thread-detail/BizThreadDetailHeader.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizThreadDetailHeader.js +0 -19
- package/dist/components/biz-thread-detail/BizThreadDetailInput.d.ts +0 -8
- package/dist/components/biz-thread-detail/BizThreadDetailInput.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizThreadDetailInput.js +0 -251
- package/dist/components/biz-thread-detail/BizVideoViewer.d.ts +0 -8
- package/dist/components/biz-thread-detail/BizVideoViewer.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/BizVideoViewer.js +0 -103
- package/dist/components/biz-thread-detail/bot/BotButtonMessage.d.ts +0 -10
- package/dist/components/biz-thread-detail/bot/BotButtonMessage.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/bot/BotButtonMessage.js +0 -30
- package/dist/components/biz-thread-detail/bot/BotFlowContext.d.ts +0 -10
- package/dist/components/biz-thread-detail/bot/BotFlowContext.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/bot/BotFlowContext.js +0 -11
- package/dist/components/biz-thread-detail/bot/BotStartButton.d.ts +0 -8
- package/dist/components/biz-thread-detail/bot/BotStartButton.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/bot/BotStartButton.js +0 -11
- package/dist/components/biz-thread-detail/bot/index.d.ts +0 -5
- package/dist/components/biz-thread-detail/bot/index.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/bot/index.js +0 -2
- package/dist/components/biz-thread-detail/index.d.ts +0 -10
- package/dist/components/biz-thread-detail/index.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/index.js +0 -5
- package/dist/components/biz-thread-detail/item/BizMessageItem.d.ts +0 -9
- package/dist/components/biz-thread-detail/item/BizMessageItem.d.ts.map +0 -1
- package/dist/components/biz-thread-detail/item/BizMessageItem.js +0 -27
- package/dist/components/bizInbox/BizCommunityTabPlaceholder.d.ts +0 -3
- package/dist/components/bizInbox/BizCommunityTabPlaceholder.d.ts.map +0 -1
- package/dist/components/bizInbox/BizCommunityTabPlaceholder.js +0 -10
- package/dist/components/bizInbox/BizContactListSkeleton.d.ts +0 -6
- package/dist/components/bizInbox/BizContactListSkeleton.d.ts.map +0 -1
- package/dist/components/bizInbox/BizContactListSkeleton.js +0 -8
- package/dist/components/bizInbox/BizCreateGroupButton.d.ts +0 -7
- package/dist/components/bizInbox/BizCreateGroupButton.d.ts.map +0 -1
- package/dist/components/bizInbox/BizCreateGroupButton.js +0 -11
- package/dist/components/bizInbox/BizInboxHeader.d.ts +0 -3
- package/dist/components/bizInbox/BizInboxHeader.d.ts.map +0 -1
- package/dist/components/bizInbox/BizInboxHeader.js +0 -8
- package/dist/components/bizInbox/BizInboxTabs.d.ts +0 -8
- package/dist/components/bizInbox/BizInboxTabs.d.ts.map +0 -1
- package/dist/components/bizInbox/BizInboxTabs.js +0 -27
- package/dist/components/bizInbox/BizSearchInput.d.ts +0 -9
- package/dist/components/bizInbox/BizSearchInput.d.ts.map +0 -1
- package/dist/components/bizInbox/BizSearchInput.js +0 -24
- package/dist/components/bizInbox/BizThreadAvatar.d.ts +0 -10
- package/dist/components/bizInbox/BizThreadAvatar.d.ts.map +0 -1
- package/dist/components/bizInbox/BizThreadAvatar.js +0 -8
- package/dist/components/bizInbox/BizThreadCard.d.ts +0 -8
- package/dist/components/bizInbox/BizThreadCard.d.ts.map +0 -1
- package/dist/components/bizInbox/BizThreadCard.js +0 -25
- package/dist/components/bizInbox/BizThreadList.d.ts +0 -11
- package/dist/components/bizInbox/BizThreadList.d.ts.map +0 -1
- package/dist/components/bizInbox/BizThreadList.js +0 -35
- package/dist/components/bizInbox/BizThreadTitle.d.ts +0 -8
- package/dist/components/bizInbox/BizThreadTitle.d.ts.map +0 -1
- package/dist/components/bizInbox/BizThreadTitle.js +0 -6
- package/dist/components/bizInbox/index.d.ts +0 -10
- package/dist/components/bizInbox/index.d.ts.map +0 -1
- package/dist/components/bizInbox/index.js +0 -5
- package/dist/components/bizInbox/states/BizThreadListEmpty.d.ts +0 -7
- package/dist/components/bizInbox/states/BizThreadListEmpty.d.ts.map +0 -1
- package/dist/components/bizInbox/states/BizThreadListEmpty.js +0 -15
- package/dist/components/bizInbox/states/BizThreadListError.d.ts +0 -6
- package/dist/components/bizInbox/states/BizThreadListError.d.ts.map +0 -1
- package/dist/components/bizInbox/states/BizThreadListError.js +0 -11
- package/dist/components/bizInbox/states/BizThreadListLoading.d.ts +0 -6
- package/dist/components/bizInbox/states/BizThreadListLoading.d.ts.map +0 -1
- package/dist/components/bizInbox/states/BizThreadListLoading.js +0 -8
- package/dist/components/bizThreadDetail/BizMessageBubble.d.ts +0 -10
- package/dist/components/bizThreadDetail/BizMessageBubble.d.ts.map +0 -1
- package/dist/components/bizThreadDetail/BizMessageBubble.js +0 -15
- package/dist/components/bizThreadDetail/BizMessageList.d.ts +0 -3
- package/dist/components/bizThreadDetail/BizMessageList.d.ts.map +0 -1
- package/dist/components/bizThreadDetail/BizMessageList.js +0 -28
- package/dist/components/bizThreadDetail/BizThreadDetailHeader.d.ts +0 -8
- package/dist/components/bizThreadDetail/BizThreadDetailHeader.d.ts.map +0 -1
- package/dist/components/bizThreadDetail/BizThreadDetailHeader.js +0 -18
- package/dist/components/bizThreadDetail/BizThreadDetailInput.d.ts +0 -8
- package/dist/components/bizThreadDetail/BizThreadDetailInput.d.ts.map +0 -1
- package/dist/components/bizThreadDetail/BizThreadDetailInput.js +0 -147
- package/dist/components/bizThreadDetail/index.d.ts +0 -8
- package/dist/components/bizThreadDetail/index.d.ts.map +0 -1
- package/dist/components/bizThreadDetail/index.js +0 -4
- package/dist/components/bizThreadDetail/item/BizMessageItem.d.ts +0 -8
- package/dist/components/bizThreadDetail/item/BizMessageItem.d.ts.map +0 -1
- package/dist/components/bizThreadDetail/item/BizMessageItem.js +0 -20
- package/dist/components/cannedResponse/CannedResponseBody.d.ts +0 -8
- package/dist/components/cannedResponse/CannedResponseBody.d.ts.map +0 -1
- package/dist/components/cannedResponse/CannedResponseBody.js +0 -109
- package/dist/components/cannedResponse/CannedResponseFooter.d.ts +0 -6
- package/dist/components/cannedResponse/CannedResponseFooter.d.ts.map +0 -1
- package/dist/components/cannedResponse/CannedResponseFooter.js +0 -8
- package/dist/components/cannedResponse/CannedResponseHeader.d.ts +0 -8
- package/dist/components/cannedResponse/CannedResponseHeader.d.ts.map +0 -1
- package/dist/components/cannedResponse/CannedResponseHeader.js +0 -11
- package/dist/components/cannedResponse/index.d.ts +0 -8
- package/dist/components/cannedResponse/index.d.ts.map +0 -1
- package/dist/components/cannedResponse/index.js +0 -34
- package/dist/components/cannedResponse/team/TeamItem.d.ts +0 -11
- package/dist/components/cannedResponse/team/TeamItem.d.ts.map +0 -1
- package/dist/components/cannedResponse/team/TeamItem.js +0 -31
- package/dist/components/chatBubble/ChatBubble.d.ts +0 -6
- package/dist/components/chatBubble/ChatBubble.d.ts.map +0 -1
- package/dist/components/chatBubble/ChatBubble.js +0 -35
- package/dist/components/mediaCollection/FileCollection.d.ts +0 -3
- package/dist/components/mediaCollection/FileCollection.d.ts.map +0 -1
- package/dist/components/mediaCollection/FileCollection.js +0 -53
- package/dist/components/mediaCollection/ImageCollection.d.ts +0 -3
- package/dist/components/mediaCollection/ImageCollection.d.ts.map +0 -1
- package/dist/components/mediaCollection/ImageCollection.js +0 -52
- package/dist/components/mediaCollection/LinkCollection.d.ts +0 -5
- package/dist/components/mediaCollection/LinkCollection.d.ts.map +0 -1
- package/dist/components/mediaCollection/LinkCollection.js +0 -92
- package/dist/components/mediaCollection/VideoCollection.d.ts +0 -3
- package/dist/components/mediaCollection/VideoCollection.d.ts.map +0 -1
- package/dist/components/mediaCollection/VideoCollection.js +0 -51
- package/dist/components/mediaCollection/index.d.ts +0 -9
- package/dist/components/mediaCollection/index.d.ts.map +0 -1
- package/dist/components/mediaCollection/index.js +0 -57
- package/dist/components/message/footer/QuotedMessage.d.ts +0 -2
- package/dist/components/message/footer/QuotedMessage.d.ts.map +0 -1
- package/dist/components/message/footer/QuotedMessage.js +0 -24
- package/dist/components/richTextEditor/RichTextEditor.d.ts +0 -12
- package/dist/components/richTextEditor/RichTextEditor.d.ts.map +0 -1
- package/dist/components/richTextEditor/RichTextEditor.js +0 -62
- package/dist/components/searchConversation/SearchAll.d.ts +0 -8
- package/dist/components/searchConversation/SearchAll.d.ts.map +0 -1
- package/dist/components/searchConversation/SearchAll.js +0 -37
- package/dist/components/searchConversation/SearchConversationAsMessages.d.ts +0 -6
- package/dist/components/searchConversation/SearchConversationAsMessages.d.ts.map +0 -1
- package/dist/components/searchConversation/SearchConversationAsMessages.js +0 -23
- package/dist/components/searchConversation/SearchConversationAsUsers.d.ts +0 -6
- package/dist/components/searchConversation/SearchConversationAsUsers.d.ts.map +0 -1
- package/dist/components/searchConversation/SearchConversationAsUsers.js +0 -21
- package/dist/components/searchConversation/SearchConversationMyInbox.d.ts +0 -6
- package/dist/components/searchConversation/SearchConversationMyInbox.d.ts.map +0 -1
- package/dist/components/searchConversation/SearchConversationMyInbox.js +0 -24
- package/dist/components/searchConversation/SearchDrawer.d.ts +0 -3
- package/dist/components/searchConversation/SearchDrawer.d.ts.map +0 -1
- package/dist/components/searchConversation/SearchDrawer.js +0 -33
- package/dist/components/searchConversation/SearchMessageOnCurrentConversation.d.ts +0 -7
- package/dist/components/searchConversation/SearchMessageOnCurrentConversation.d.ts.map +0 -1
- package/dist/components/searchConversation/SearchMessageOnCurrentConversation.js +0 -28
- package/dist/components/searchConversation/index.d.ts +0 -12
- package/dist/components/searchConversation/index.d.ts.map +0 -1
- package/dist/components/searchConversation/index.js +0 -46
- package/dist/components/searchConversation/item/SearchItemAsMessage.d.ts +0 -12
- package/dist/components/searchConversation/item/SearchItemAsMessage.d.ts.map +0 -1
- package/dist/components/searchConversation/item/SearchItemAsMessage.js +0 -72
- package/dist/components/searchConversation/item/SearchItemAsUser.d.ts +0 -8
- package/dist/components/searchConversation/item/SearchItemAsUser.d.ts.map +0 -1
- package/dist/components/searchConversation/item/SearchItemAsUser.js +0 -25
- package/dist/constants/bizInbox.d.ts +0 -37
- package/dist/constants/bizInbox.d.ts.map +0 -1
- package/dist/constants/bizInbox.js +0 -35
- package/dist/constants/bizMoreOption.d.ts +0 -9
- package/dist/constants/bizMoreOption.d.ts.map +0 -1
- package/dist/constants/bizMoreOption.js +0 -37
- package/dist/hooks/biz/index.d.ts +0 -8
- package/dist/hooks/biz/index.d.ts.map +0 -1
- package/dist/hooks/biz/index.js +0 -5
- package/dist/hooks/biz/useBizActiveConversation.d.ts +0 -3
- package/dist/hooks/biz/useBizActiveConversation.d.ts.map +0 -1
- package/dist/hooks/biz/useBizActiveConversation.js +0 -38
- package/dist/hooks/biz/useBizConversationList.d.ts +0 -15
- package/dist/hooks/biz/useBizConversationList.d.ts.map +0 -1
- package/dist/hooks/biz/useBizConversationList.js +0 -48
- package/dist/hooks/biz/useBizConversationListItems.d.ts +0 -8
- package/dist/hooks/biz/useBizConversationListItems.d.ts.map +0 -1
- package/dist/hooks/biz/useBizConversationListItems.js +0 -14
- package/dist/hooks/biz/useBizGlobalEvent.d.ts +0 -2
- package/dist/hooks/biz/useBizGlobalEvent.d.ts.map +0 -1
- package/dist/hooks/biz/useBizGlobalEvent.js +0 -72
- package/dist/hooks/biz/useBizSendMessage.d.ts +0 -4
- package/dist/hooks/biz/useBizSendMessage.d.ts.map +0 -1
- package/dist/hooks/biz/useBizSendMessage.js +0 -70
- package/dist/hooks/biz/useBotFlow.d.ts +0 -17
- package/dist/hooks/biz/useBotFlow.d.ts.map +0 -1
- package/dist/hooks/biz/useBotFlow.js +0 -127
- package/dist/hooks/biz/useConversationDetail.d.ts +0 -3
- package/dist/hooks/biz/useConversationDetail.d.ts.map +0 -1
- package/dist/hooks/biz/useConversationDetail.js +0 -18
- package/dist/hooks/biz/useCreateBizConversation.d.ts +0 -8
- package/dist/hooks/biz/useCreateBizConversation.d.ts.map +0 -1
- package/dist/hooks/biz/useCreateBizConversation.js +0 -15
- package/dist/hooks/biz/useResetBotFlow.d.ts +0 -3
- package/dist/hooks/biz/useResetBotFlow.d.ts.map +0 -1
- package/dist/hooks/biz/useResetBotFlow.js +0 -14
- package/dist/hooks/biz/useRunBotFlow.d.ts +0 -7
- package/dist/hooks/biz/useRunBotFlow.d.ts.map +0 -1
- package/dist/hooks/biz/useRunBotFlow.js +0 -14
- package/dist/hooks/cannedResponse/useFetchCannedCategories.d.ts +0 -3
- package/dist/hooks/cannedResponse/useFetchCannedCategories.d.ts.map +0 -1
- package/dist/hooks/cannedResponse/useFetchCannedCategories.js +0 -13
- package/dist/hooks/cannedResponse/useFetchCannedResponse.d.ts +0 -219
- package/dist/hooks/cannedResponse/useFetchCannedResponse.d.ts.map +0 -1
- package/dist/hooks/cannedResponse/useFetchCannedResponse.js +0 -55
- package/dist/hooks/common/useFetchExternalLink.d.ts +0 -2
- package/dist/hooks/common/useFetchExternalLink.d.ts.map +0 -1
- package/dist/hooks/common/useFetchExternalLink.js +0 -18
- package/dist/hooks/common/useIsSdkMessageReady.d.ts +0 -2
- package/dist/hooks/common/useIsSdkMessageReady.d.ts.map +0 -1
- package/dist/hooks/common/useIsSdkMessageReady.js +0 -7
- package/dist/hooks/conversation/useConversationPreview.d.ts +0 -12
- package/dist/hooks/conversation/useConversationPreview.d.ts.map +0 -1
- package/dist/hooks/conversation/useConversationPreview.js +0 -22
- package/dist/hooks/message/useSendCustomMessage.d.ts +0 -7
- package/dist/hooks/message/useSendCustomMessage.d.ts.map +0 -1
- package/dist/hooks/message/useSendCustomMessage.js +0 -5
- package/dist/locales/en/bizInbox.json +0 -41
- package/dist/locales/vi/biz-inbox.json +0 -39
- package/dist/locales/vi/bizInbox.json +0 -19
- package/dist/screens/biz-message/index.d.ts +0 -8
- package/dist/screens/biz-message/index.d.ts.map +0 -1
- package/dist/screens/biz-message/index.js +0 -30
- package/dist/screens/biz-thread-detail/index.d.ts +0 -9
- package/dist/screens/biz-thread-detail/index.d.ts.map +0 -1
- package/dist/screens/biz-thread-detail/index.js +0 -50
- package/dist/screens/bizMessage/index.d.ts +0 -9
- package/dist/screens/bizMessage/index.d.ts.map +0 -1
- package/dist/screens/bizMessage/index.js +0 -55
- package/dist/screens/bizThreadDetail/index.d.ts +0 -9
- package/dist/screens/bizThreadDetail/index.d.ts.map +0 -1
- package/dist/screens/bizThreadDetail/index.js +0 -36
- package/dist/screens/chatBubble/index.d.ts +0 -7
- package/dist/screens/chatBubble/index.d.ts.map +0 -1
- package/dist/screens/chatBubble/index.js +0 -41
- package/dist/screens/deskMessage/index.d.ts +0 -6
- package/dist/screens/deskMessage/index.d.ts.map +0 -1
- package/dist/screens/deskMessage/index.js +0 -17
- package/dist/services/biz/conversationService.d.ts +0 -3
- package/dist/services/biz/conversationService.d.ts.map +0 -1
- package/dist/services/biz/conversationService.js +0 -10
- package/dist/store/bizConversation.d.ts +0 -18
- package/dist/store/bizConversation.d.ts.map +0 -1
- package/dist/store/bizConversation.js +0 -35
- package/dist/store/bizMessageDraft.d.ts +0 -9
- package/dist/store/bizMessageDraft.d.ts.map +0 -1
- package/dist/store/bizMessageDraft.js +0 -35
- package/dist/store/pinnedMessage.d.ts +0 -4
- package/dist/store/pinnedMessage.d.ts.map +0 -1
- package/dist/store/pinnedMessage.js +0 -17
- package/dist/types/biz.d.ts +0 -128
- package/dist/types/biz.d.ts.map +0 -1
- package/dist/types/biz.js +0 -34
- package/dist/utils/bizConversation.d.ts +0 -15
- package/dist/utils/bizConversation.d.ts.map +0 -1
- package/dist/utils/bizConversation.js +0 -96
- package/dist/utils/bizLink.d.ts +0 -13
- package/dist/utils/bizLink.d.ts.map +0 -1
- package/dist/utils/bizLink.js +0 -77
- package/dist/utils/bizMessage.d.ts +0 -15
- package/dist/utils/bizMessage.d.ts.map +0 -1
- package/dist/utils/bizMessage.js +0 -93
- package/dist/utils/messageEx.d.ts +0 -5
- package/dist/utils/messageEx.d.ts.map +0 -1
- package/dist/utils/messageEx.js +0 -11
- package/dist/utils/openBizLink.d.ts +0 -3
- package/dist/utils/openBizLink.d.ts.map +0 -1
- package/dist/utils/openBizLink.js +0 -19
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface SearchMessageOnCurrentConversationProps {
|
|
2
|
-
searchTerm: string;
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
}
|
|
5
|
-
declare const SearchMessageOnCurrentConversation: (props: SearchMessageOnCurrentConversationProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default SearchMessageOnCurrentConversation;
|
|
7
|
-
//# sourceMappingURL=SearchMessageOnCurrentConversation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SearchMessageOnCurrentConversation.d.ts","sourceRoot":"","sources":["../../../src/components/searchConversation/SearchMessageOnCurrentConversation.tsx"],"names":[],"mappings":"AAQA,UAAU,uCAAuC;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AACD,QAAA,MAAM,kCAAkC,GACtC,OAAO,uCAAuC,4CAuD/C,CAAC;AAEF,eAAe,kCAAkC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Empty, Spin } from "antd";
|
|
3
|
-
import { useTranslation } from "react-i18next";
|
|
4
|
-
import { useSearchMessage } from "../../hooks/search/useSearchMessage";
|
|
5
|
-
import { MessageType } from "@openim/wasm-client-sdk";
|
|
6
|
-
import InfiniteScroll from "react-infinite-scroll-component";
|
|
7
|
-
import SearchItemAsMessage from "./item/SearchItemAsMessage";
|
|
8
|
-
import useConversationStore from "../../store/conversation";
|
|
9
|
-
const SearchMessageOnCurrentConversation = (props) => {
|
|
10
|
-
const { searchTerm = "" } = props;
|
|
11
|
-
const { t } = useTranslation();
|
|
12
|
-
const conversationData = useConversationStore((state) => state.conversationData);
|
|
13
|
-
const { dataFlatten, hasNextPage, fetchNextPage, isLoading } = useSearchMessage({
|
|
14
|
-
payload: {
|
|
15
|
-
searchTerm: searchTerm.trim(),
|
|
16
|
-
contentType: MessageType.TextMessage,
|
|
17
|
-
recvID: conversationData === null || conversationData === void 0 ? void 0 : conversationData.groupID,
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
if (searchTerm.trim() === "")
|
|
21
|
-
return _jsx(Empty, { description: t("no_search_text") });
|
|
22
|
-
if (dataFlatten.length === 0 && !isLoading)
|
|
23
|
-
return _jsx(Empty, { description: t("no_result") });
|
|
24
|
-
if (isLoading)
|
|
25
|
-
return (_jsx("div", { className: "flex items-center justify-center", children: _jsx(Spin, {}) }));
|
|
26
|
-
return (_jsx("div", { id: "scrollableCurrentConversationSearchMessages", className: "h-full overflow-auto", children: _jsx(InfiniteScroll, { dataLength: dataFlatten.length, next: fetchNextPage, hasMore: hasNextPage, loader: _jsx("div", { className: "flex items-center justify-center py-2", children: _jsx(Spin, {}) }), scrollableTarget: "scrollableCurrentConversationSearchMessages", children: dataFlatten.map((item) => (_jsx(SearchItemAsMessage, { message: item.chatLog, searchTerm: searchTerm, onClick: props === null || props === void 0 ? void 0 : props.onClose }))) }) }));
|
|
27
|
-
};
|
|
28
|
-
export default SearchMessageOnCurrentConversation;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum SearchConversationTabKey {
|
|
2
|
-
All = "all",
|
|
3
|
-
MyInbox = "myInbox",
|
|
4
|
-
Users = "users",
|
|
5
|
-
Messages = "messages"
|
|
6
|
-
}
|
|
7
|
-
interface SearchConversationProps {
|
|
8
|
-
searchTerm: string;
|
|
9
|
-
}
|
|
10
|
-
declare const SearchConversation: ({ searchTerm }: SearchConversationProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default SearchConversation;
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/searchConversation/index.tsx"],"names":[],"mappings":"AAUA,oBAAY,wBAAwB;IAClC,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAED,UAAU,uBAAuB;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,QAAA,MAAM,kBAAkB,GAAI,gBAAgB,uBAAuB,4CAgDlE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Tabs } from "antd";
|
|
4
|
-
import { useMemo, useState } from "react";
|
|
5
|
-
import { useTranslation } from "react-i18next";
|
|
6
|
-
import SearchConversationAll from "./SearchAll";
|
|
7
|
-
import SearchConversationMyInbox from "./SearchConversationMyInbox";
|
|
8
|
-
import SearchConversationAsUsers from "./SearchConversationAsUsers";
|
|
9
|
-
import SearchConversationAsMessages from "./SearchConversationAsMessages";
|
|
10
|
-
export var SearchConversationTabKey;
|
|
11
|
-
(function (SearchConversationTabKey) {
|
|
12
|
-
SearchConversationTabKey["All"] = "all";
|
|
13
|
-
SearchConversationTabKey["MyInbox"] = "myInbox";
|
|
14
|
-
SearchConversationTabKey["Users"] = "users";
|
|
15
|
-
SearchConversationTabKey["Messages"] = "messages";
|
|
16
|
-
})(SearchConversationTabKey || (SearchConversationTabKey = {}));
|
|
17
|
-
const SearchConversation = ({ searchTerm }) => {
|
|
18
|
-
const { t } = useTranslation();
|
|
19
|
-
const [activeKey, setActiveKey] = useState(SearchConversationTabKey.All);
|
|
20
|
-
const items = useMemo(() => {
|
|
21
|
-
return [
|
|
22
|
-
{
|
|
23
|
-
key: SearchConversationTabKey.All,
|
|
24
|
-
label: t("all"),
|
|
25
|
-
children: (_jsx(SearchConversationAll, { searchTerm: searchTerm, setActiveKey: setActiveKey })),
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
key: SearchConversationTabKey.MyInbox,
|
|
29
|
-
label: t("my_inbox_tab"),
|
|
30
|
-
children: _jsx(SearchConversationMyInbox, { searchTerm: searchTerm }),
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
key: SearchConversationTabKey.Users,
|
|
34
|
-
label: t("users"),
|
|
35
|
-
children: _jsx(SearchConversationAsUsers, { searchTerm: searchTerm }),
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
key: SearchConversationTabKey.Messages,
|
|
39
|
-
label: t("messages"),
|
|
40
|
-
children: _jsx(SearchConversationAsMessages, { searchTerm: searchTerm }),
|
|
41
|
-
},
|
|
42
|
-
];
|
|
43
|
-
}, [t, searchTerm]);
|
|
44
|
-
return (_jsx("div", { className: "h-full", children: _jsx(Tabs, { defaultActiveKey: SearchConversationTabKey.All, items: items, className: "h-full", activeKey: activeKey, onChange: (key) => setActiveKey(key), destroyOnHidden: true }) }));
|
|
45
|
-
};
|
|
46
|
-
export default SearchConversation;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MessageItem } from "@openim/wasm-client-sdk";
|
|
2
|
-
interface SearchItemAsMessageProps {
|
|
3
|
-
message: MessageItem & {
|
|
4
|
-
isRevoked?: boolean;
|
|
5
|
-
};
|
|
6
|
-
searchTerm: string;
|
|
7
|
-
displayTag?: string;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const SearchItemAsMessage: (props: SearchItemAsMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default SearchItemAsMessage;
|
|
12
|
-
//# sourceMappingURL=SearchItemAsMessage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SearchItemAsMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/searchConversation/item/SearchItemAsMessage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAA4B,MAAM,yBAAyB,CAAC;AAehF,UAAU,wBAAwB;IAChC,OAAO,EAAE,WAAW,GAAG;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,mBAAmB,GAAI,OAAO,wBAAwB,4CAuG3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { SessionType } from "@openim/wasm-client-sdk";
|
|
4
|
-
import { Avatar } from "antd";
|
|
5
|
-
import { formatTimestamp, highlightSearch, sanitizeHtml, } from "../../../utils/common";
|
|
6
|
-
import { DChatSDK } from "../../../constants/sdk";
|
|
7
|
-
import { useChatContext } from "../../../context/ChatContext";
|
|
8
|
-
import { message as antdMessage } from "antd";
|
|
9
|
-
import { useTranslation } from "react-i18next";
|
|
10
|
-
import useConversationStore from "../../../store/conversation";
|
|
11
|
-
import { useMemo } from "react";
|
|
12
|
-
import useAuthStore from "../../../store/auth";
|
|
13
|
-
const SearchItemAsMessage = (props) => {
|
|
14
|
-
var _a;
|
|
15
|
-
const { t } = useTranslation();
|
|
16
|
-
const { message, searchTerm = "", displayTag, onClick } = props;
|
|
17
|
-
const { user } = useChatContext();
|
|
18
|
-
const isCrm = useAuthStore((state) => state.isCrm);
|
|
19
|
-
const conversationData = useConversationStore((state) => state.conversationData);
|
|
20
|
-
const useConversationDisplay = useMemo(() => {
|
|
21
|
-
if (isCrm)
|
|
22
|
-
return true;
|
|
23
|
-
return (user === null || user === void 0 ? void 0 : user.userID) === (message === null || message === void 0 ? void 0 : message.sendID);
|
|
24
|
-
}, [conversationData === null || conversationData === void 0 ? void 0 : conversationData.ex, message === null || message === void 0 ? void 0 : message.sendID, isCrm]);
|
|
25
|
-
const onPressItem = async () => {
|
|
26
|
-
const { data } = await DChatSDK.getOneConversation({
|
|
27
|
-
sourceID: message.sessionType === SessionType.Group
|
|
28
|
-
? message.groupID
|
|
29
|
-
: (user === null || user === void 0 ? void 0 : user.userID) !== message.sendID
|
|
30
|
-
? message.sendID
|
|
31
|
-
: message.recvID,
|
|
32
|
-
sessionType: message.sessionType,
|
|
33
|
-
});
|
|
34
|
-
if (!data) {
|
|
35
|
-
return antdMessage.error(t("err_get_conversation"));
|
|
36
|
-
}
|
|
37
|
-
useConversationStore
|
|
38
|
-
.getState()
|
|
39
|
-
.setConversationData(data, message.clientMsgID);
|
|
40
|
-
useConversationStore
|
|
41
|
-
.getState()
|
|
42
|
-
.setSelectedConversationId(data.conversationID);
|
|
43
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
44
|
-
};
|
|
45
|
-
let msgContent = "";
|
|
46
|
-
try {
|
|
47
|
-
msgContent =
|
|
48
|
-
(message === null || message === void 0 ? void 0 : message.isRevoked) === true
|
|
49
|
-
? t("revoked")
|
|
50
|
-
: ((_a = JSON.parse((message === null || message === void 0 ? void 0 : message.content) || "{}")) === null || _a === void 0 ? void 0 : _a.content) || "";
|
|
51
|
-
}
|
|
52
|
-
catch (error) {
|
|
53
|
-
console.error("Failed to parse message content", error);
|
|
54
|
-
if (typeof (message === null || message === void 0 ? void 0 : message.content) === "string") {
|
|
55
|
-
msgContent = message === null || message === void 0 ? void 0 : message.content;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return (_jsxs("div", { className: "py-3 px-2 flex items-center gap-3 hover:bg-gray-100 hover:rounded-sm cursor-pointer border-b mx-1", onClick: onPressItem, children: [_jsx("div", { children: _jsx(Avatar, { size: "large", src: useConversationDisplay
|
|
59
|
-
? message.senderFaceUrl
|
|
60
|
-
: conversationData === null || conversationData === void 0 ? void 0 : conversationData.faceURL, alt: useConversationDisplay
|
|
61
|
-
? message.senderNickname
|
|
62
|
-
: conversationData === null || conversationData === void 0 ? void 0 : conversationData.showName, children: useConversationDisplay
|
|
63
|
-
? message.senderNickname.charAt(0).toUpperCase()
|
|
64
|
-
: conversationData === null || conversationData === void 0 ? void 0 : conversationData.showName.charAt(0).toUpperCase() }) }), _jsxs("div", { className: "flex flex-col flex-1 min-w-0 gap-1", children: [_jsxs("div", { className: "flex flex-1 items-center justify-between", children: [_jsx("span", { className: "text-sm flex-1 font-semibold truncate", children: useConversationDisplay
|
|
65
|
-
? message.senderNickname
|
|
66
|
-
: conversationData === null || conversationData === void 0 ? void 0 : conversationData.showName }), _jsx("span", { className: "text-xs text-gray-500", children: formatTimestamp(message.sendTime, {
|
|
67
|
-
hasTime: true,
|
|
68
|
-
}) })] }), _jsxs("div", { className: "flex flex-col flex-1 min-w-0 gap-1", children: [_jsx("span", { className: "text-xs flex-1 text-gray-500 truncate", dangerouslySetInnerHTML: {
|
|
69
|
-
__html: sanitizeHtml(highlightSearch(msgContent, searchTerm)),
|
|
70
|
-
} }), displayTag && (_jsx("span", { className: "text-[10px] text-blue-600 bg-blue-50 px-1.5 py-0.5 rounded w-fit truncate", children: displayTag }))] })] })] }, message.clientMsgID));
|
|
71
|
-
};
|
|
72
|
-
export default SearchItemAsMessage;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ISessionByStatus } from "../../../store/type";
|
|
2
|
-
interface SearchItemAsUserProps {
|
|
3
|
-
session: ISessionByStatus;
|
|
4
|
-
searchTerm: string;
|
|
5
|
-
}
|
|
6
|
-
declare const SearchItemAsUser: (props: SearchItemAsUserProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default SearchItemAsUser;
|
|
8
|
-
//# sourceMappingURL=SearchItemAsUser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SearchItemAsUser.d.ts","sourceRoot":"","sources":["../../../../src/components/searchConversation/item/SearchItemAsUser.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKhD,UAAU,qBAAqB;IAC7B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,gBAAgB,GAAI,OAAO,qBAAqB,4CAyCrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Avatar, message } from "antd";
|
|
4
|
-
import { highlightSearch, sanitizeHtml } from "../../../utils/common";
|
|
5
|
-
import useConversationStore from "../../../store/conversation";
|
|
6
|
-
import { useTranslation } from "react-i18next";
|
|
7
|
-
const SearchItemAsUser = (props) => {
|
|
8
|
-
var _a, _b, _c, _d, _e, _f;
|
|
9
|
-
const { session, searchTerm = "" } = props;
|
|
10
|
-
const { t } = useTranslation();
|
|
11
|
-
const ownerName = `${(_a = session.owner) === null || _a === void 0 ? void 0 : _a.fullName}${((_b = session.owner) === null || _b === void 0 ? void 0 : _b.username) ? ` (${(_c = session.owner) === null || _c === void 0 ? void 0 : _c.username})` : ""}`;
|
|
12
|
-
const onPressItem = async () => {
|
|
13
|
-
if (!(session === null || session === void 0 ? void 0 : session.conversation)) {
|
|
14
|
-
return message.error(t("err_get_conversation"));
|
|
15
|
-
}
|
|
16
|
-
useConversationStore.getState().setConversationData(session.conversation);
|
|
17
|
-
useConversationStore
|
|
18
|
-
.getState()
|
|
19
|
-
.setSelectedConversationId(session.conversationId);
|
|
20
|
-
};
|
|
21
|
-
return (_jsxs("div", { className: "py-3 px-2 flex items-center gap-3 hover:bg-gray-100 hover:rounded-sm cursor-pointer border-b mx-1", onClick: onPressItem, children: [_jsx(Avatar, { size: "large", src: (_d = session.owner) === null || _d === void 0 ? void 0 : _d.avatar, alt: (_e = session.owner) === null || _e === void 0 ? void 0 : _e.username, children: (_f = session.owner) === null || _f === void 0 ? void 0 : _f.fullName.charAt(0).toUpperCase() }), _jsx("div", { className: "flex flex-col flex-1 min-w-0", children: _jsx("p", { className: "text-sm font-semibold truncate", dangerouslySetInnerHTML: {
|
|
22
|
-
__html: sanitizeHtml(highlightSearch(ownerName, searchTerm)),
|
|
23
|
-
} }) })] }, session.id));
|
|
24
|
-
};
|
|
25
|
-
export default SearchItemAsUser;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare const BIZ_INBOX_TABS: {
|
|
2
|
-
readonly MESSAGES: "messages";
|
|
3
|
-
readonly COMMUNITY: "community";
|
|
4
|
-
};
|
|
5
|
-
export type BizInboxTabKey = (typeof BIZ_INBOX_TABS)[keyof typeof BIZ_INBOX_TABS];
|
|
6
|
-
export declare const BIZ_INBOX_DEFAULTS: {
|
|
7
|
-
readonly PAGE_SIZE: 20;
|
|
8
|
-
readonly SEARCH_DEBOUNCE_MS: 300;
|
|
9
|
-
readonly TAB_SWITCH_DEBOUNCE_MS: 0;
|
|
10
|
-
readonly QUERY_STALE_MS: 30000;
|
|
11
|
-
readonly CONTACT_LIST_SKELETON_COUNT: 6;
|
|
12
|
-
readonly THREAD_LIST_SKELETON_COUNT: 8;
|
|
13
|
-
};
|
|
14
|
-
export declare const BIZ_INBOX_PAGINATION: {
|
|
15
|
-
readonly FIRST_PAGE: 1;
|
|
16
|
-
readonly INFINITE_SCROLL_THRESHOLD: 5;
|
|
17
|
-
};
|
|
18
|
-
export declare const BIZ_INBOX_QUERY_TAGS: {
|
|
19
|
-
readonly CONVERSATION_LIST: "biz-inbox-conversation-list";
|
|
20
|
-
};
|
|
21
|
-
export declare const BIZ_INBOX_TEST_IDS: {
|
|
22
|
-
readonly ROOT: "biz-inbox-root";
|
|
23
|
-
readonly HEADER: "biz-inbox-header";
|
|
24
|
-
readonly TAB_MESSAGES: "biz-inbox-tab-messages";
|
|
25
|
-
readonly TAB_COMMUNITY: "biz-inbox-tab-community";
|
|
26
|
-
readonly SEARCH_INPUT: "biz-inbox-search-input";
|
|
27
|
-
readonly CREATE_GROUP_BUTTON: "biz-inbox-create-group";
|
|
28
|
-
readonly THREAD_LIST: "biz-inbox-thread-list";
|
|
29
|
-
readonly THREAD_CARD: "biz-inbox-thread-card";
|
|
30
|
-
readonly CONTACT_LIST_SKELETON: "biz-inbox-contact-list-skeleton";
|
|
31
|
-
readonly STATE_LOADING: "biz-inbox-state-loading";
|
|
32
|
-
readonly STATE_EMPTY: "biz-inbox-state-empty";
|
|
33
|
-
readonly STATE_ERROR: "biz-inbox-state-error";
|
|
34
|
-
readonly COMMUNITY_PLACEHOLDER: "biz-inbox-community-placeholder";
|
|
35
|
-
};
|
|
36
|
-
export declare const THREAD_CARD_ESTIMATED_HEIGHT = 72;
|
|
37
|
-
//# sourceMappingURL=bizInbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bizInbox.d.ts","sourceRoot":"","sources":["../../src/constants/bizInbox.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,cAAc,GACxB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,kBAAkB;;;;;;;CAOrB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;CAEvB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;CAcrB,CAAC;AAEX,eAAO,MAAM,4BAA4B,KAAK,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export const BIZ_INBOX_TABS = {
|
|
2
|
-
MESSAGES: "messages",
|
|
3
|
-
COMMUNITY: "community",
|
|
4
|
-
};
|
|
5
|
-
export const BIZ_INBOX_DEFAULTS = {
|
|
6
|
-
PAGE_SIZE: 20,
|
|
7
|
-
SEARCH_DEBOUNCE_MS: 300,
|
|
8
|
-
TAB_SWITCH_DEBOUNCE_MS: 0,
|
|
9
|
-
QUERY_STALE_MS: 30000,
|
|
10
|
-
CONTACT_LIST_SKELETON_COUNT: 6,
|
|
11
|
-
THREAD_LIST_SKELETON_COUNT: 8,
|
|
12
|
-
};
|
|
13
|
-
export const BIZ_INBOX_PAGINATION = {
|
|
14
|
-
FIRST_PAGE: 1,
|
|
15
|
-
INFINITE_SCROLL_THRESHOLD: 5,
|
|
16
|
-
};
|
|
17
|
-
export const BIZ_INBOX_QUERY_TAGS = {
|
|
18
|
-
CONVERSATION_LIST: "biz-inbox-conversation-list",
|
|
19
|
-
};
|
|
20
|
-
export const BIZ_INBOX_TEST_IDS = {
|
|
21
|
-
ROOT: "biz-inbox-root",
|
|
22
|
-
HEADER: "biz-inbox-header",
|
|
23
|
-
TAB_MESSAGES: "biz-inbox-tab-messages",
|
|
24
|
-
TAB_COMMUNITY: "biz-inbox-tab-community",
|
|
25
|
-
SEARCH_INPUT: "biz-inbox-search-input",
|
|
26
|
-
CREATE_GROUP_BUTTON: "biz-inbox-create-group",
|
|
27
|
-
THREAD_LIST: "biz-inbox-thread-list",
|
|
28
|
-
THREAD_CARD: "biz-inbox-thread-card",
|
|
29
|
-
CONTACT_LIST_SKELETON: "biz-inbox-contact-list-skeleton",
|
|
30
|
-
STATE_LOADING: "biz-inbox-state-loading",
|
|
31
|
-
STATE_EMPTY: "biz-inbox-state-empty",
|
|
32
|
-
STATE_ERROR: "biz-inbox-state-error",
|
|
33
|
-
COMMUNITY_PLACEHOLDER: "biz-inbox-community-placeholder",
|
|
34
|
-
};
|
|
35
|
-
export const THREAD_CARD_ESTIMATED_HEIGHT = 72;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface BizMoreOptionConfig {
|
|
2
|
-
icon: string;
|
|
3
|
-
labelKey: string;
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const DEFAULT_BIZ_MORE_OPTIONS: BizMoreOptionConfig[];
|
|
7
|
-
export declare function createBizMoreOptions(extraOptions?: BizMoreOptionConfig[]): BizMoreOptionConfig[];
|
|
8
|
-
export declare const BIZ_MORE_OPTIONS: BizMoreOptionConfig[];
|
|
9
|
-
//# sourceMappingURL=bizMoreOption.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bizMoreOption.d.ts","sourceRoot":"","sources":["../../src/constants/bizMoreOption.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,wBAAwB,EAAE,mBAAmB,EAgBzD,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,YAAY,GAAE,mBAAmB,EAAO,GACvC,mBAAmB,EAAE,CAEvB;AAED,eAAO,MAAM,gBAAgB,EAAE,mBAAmB,EAgBhD,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_BIZ_MORE_OPTIONS = [
|
|
2
|
-
{
|
|
3
|
-
icon: "image-02-o",
|
|
4
|
-
labelKey: "thread_detail.more_option.media",
|
|
5
|
-
enabled: true,
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
icon: "camera-o",
|
|
9
|
-
labelKey: "thread_detail.more_option.camera",
|
|
10
|
-
enabled: false,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
icon: "paperclip-o",
|
|
14
|
-
labelKey: "thread_detail.more_option.document",
|
|
15
|
-
enabled: true,
|
|
16
|
-
},
|
|
17
|
-
];
|
|
18
|
-
export function createBizMoreOptions(extraOptions = []) {
|
|
19
|
-
return [...DEFAULT_BIZ_MORE_OPTIONS, ...extraOptions];
|
|
20
|
-
}
|
|
21
|
-
export const BIZ_MORE_OPTIONS = createBizMoreOptions([
|
|
22
|
-
{
|
|
23
|
-
icon: "receipt-o",
|
|
24
|
-
labelKey: "thread_detail.more_option.order",
|
|
25
|
-
enabled: false,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
icon: "shopping-basket-o",
|
|
29
|
-
labelKey: "thread_detail.more_option.product",
|
|
30
|
-
enabled: false,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
icon: "calendar-active-o",
|
|
34
|
-
labelKey: "thread_detail.more_option.appointment",
|
|
35
|
-
enabled: false,
|
|
36
|
-
},
|
|
37
|
-
]);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { useBizConversationList } from "./useBizConversationList";
|
|
2
|
-
export { useBizConversationListItems } from "./useBizConversationListItems";
|
|
3
|
-
export { useCreateBizConversation } from "./useCreateBizConversation";
|
|
4
|
-
export { useBizGlobalEvent } from "./useBizGlobalEvent";
|
|
5
|
-
export { useBizActiveConversation } from "./useBizActiveConversation";
|
|
6
|
-
export type { BizConversationListItem } from "./useBizConversationListItems";
|
|
7
|
-
export type { CreateBizConversationInput } from "./useCreateBizConversation";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/biz/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,YAAY,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC"}
|
package/dist/hooks/biz/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { useBizConversationList } from "./useBizConversationList";
|
|
2
|
-
export { useBizConversationListItems } from "./useBizConversationListItems";
|
|
3
|
-
export { useCreateBizConversation } from "./useCreateBizConversation";
|
|
4
|
-
export { useBizGlobalEvent } from "./useBizGlobalEvent";
|
|
5
|
-
export { useBizActiveConversation } from "./useBizActiveConversation";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBizActiveConversation.d.ts","sourceRoot":"","sources":["../../../src/hooks/biz/useBizActiveConversation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAE7E,eAAO,MAAM,wBAAwB,GACnC,mBAAmB,uBAAuB,EAAE,SAkD7C,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
2
|
-
import { useSearchParams } from "next/navigation";
|
|
3
|
-
import useBizConversationStore from "../../store/bizConversation";
|
|
4
|
-
import useConversationStore from "../../store/conversation";
|
|
5
|
-
import { buildBizSdkConversation } from "../../utils/bizConversation";
|
|
6
|
-
export const useBizActiveConversation = (conversationItems) => {
|
|
7
|
-
const searchParams = useSearchParams();
|
|
8
|
-
const threadId = searchParams.get("threadId");
|
|
9
|
-
const selectConversation = useBizConversationStore((state) => state.selectConversation);
|
|
10
|
-
const clearBizConversation = useBizConversationStore((state) => state.clearSelectedConversation);
|
|
11
|
-
const setSelectedConversationId = useConversationStore((state) => state.setSelectedConversationId);
|
|
12
|
-
const setConversationData = useConversationStore((state) => state.setConversationData);
|
|
13
|
-
const clearSdkConversation = useConversationStore((state) => state.clearSelectedConversation);
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
if (!threadId) {
|
|
16
|
-
clearBizConversation();
|
|
17
|
-
clearSdkConversation();
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
setSelectedConversationId(threadId);
|
|
21
|
-
const matchedThread = conversationItems.find((item) => item.conversationId === threadId);
|
|
22
|
-
if (!matchedThread)
|
|
23
|
-
return;
|
|
24
|
-
const currentBizData = useBizConversationStore.getState().conversationData;
|
|
25
|
-
if ((currentBizData === null || currentBizData === void 0 ? void 0 : currentBizData.conversationId) !== threadId) {
|
|
26
|
-
selectConversation(matchedThread);
|
|
27
|
-
}
|
|
28
|
-
setConversationData(buildBizSdkConversation(matchedThread));
|
|
29
|
-
}, [
|
|
30
|
-
threadId,
|
|
31
|
-
conversationItems,
|
|
32
|
-
selectConversation,
|
|
33
|
-
clearBizConversation,
|
|
34
|
-
clearSdkConversation,
|
|
35
|
-
setSelectedConversationId,
|
|
36
|
-
setConversationData,
|
|
37
|
-
]);
|
|
38
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type BizConversationListItem } from "./useBizConversationListItems";
|
|
2
|
-
interface UseBizConversationListParams {
|
|
3
|
-
enabled: boolean;
|
|
4
|
-
pageSize?: number;
|
|
5
|
-
}
|
|
6
|
-
interface UseBizConversationListResult {
|
|
7
|
-
items: BizConversationListItem[];
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
isFetchingNextPage: boolean;
|
|
10
|
-
hasNextPage: boolean;
|
|
11
|
-
fetchNextPage: () => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const useBizConversationList: (params: UseBizConversationListParams) => UseBizConversationListResult;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=useBizConversationList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBizConversationList.d.ts","sourceRoot":"","sources":["../../../src/hooks/biz/useBizConversationList.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,+BAA+B,CAAC;AAEvC,UAAU,4BAA4B;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,4BAA4B;IACpC,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,sBAAsB,GACjC,QAAQ,4BAA4B,KACnC,4BA+CF,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { useInfiniteQuery } from "@tanstack/react-query";
|
|
2
|
-
import useAuthStore from "../../store/auth";
|
|
3
|
-
import { apiInstance } from "../../services/api";
|
|
4
|
-
import { ENDPOINTS } from "../../services/routes";
|
|
5
|
-
import { QUERY_KEYS } from "../../services/query";
|
|
6
|
-
import { PAGE_SIZE } from "../../constants";
|
|
7
|
-
import { DChatApplicationType } from "../../types/chat";
|
|
8
|
-
import { useBizConversationListItems, } from "./useBizConversationListItems";
|
|
9
|
-
export const useBizConversationList = (params) => {
|
|
10
|
-
var _a, _b, _c;
|
|
11
|
-
const applicationType = useAuthStore((state) => state.applicationType);
|
|
12
|
-
const pageSize = (_a = params.pageSize) !== null && _a !== void 0 ? _a : PAGE_SIZE.medium;
|
|
13
|
-
const isApplicationTypeValid = Object.values(DChatApplicationType).includes(applicationType);
|
|
14
|
-
const queryEnabled = params.enabled && isApplicationTypeValid;
|
|
15
|
-
const query = useInfiniteQuery({
|
|
16
|
-
queryKey: [QUERY_KEYS.GET_BIZ_CONVERSATIONS, applicationType, pageSize],
|
|
17
|
-
queryFn: async ({ pageParam }) => {
|
|
18
|
-
const res = await apiInstance.post(ENDPOINTS.chatService.getBizConversations, {
|
|
19
|
-
applicationType,
|
|
20
|
-
page: pageParam,
|
|
21
|
-
pageSize,
|
|
22
|
-
});
|
|
23
|
-
return res.data;
|
|
24
|
-
},
|
|
25
|
-
initialPageParam: 1,
|
|
26
|
-
enabled: queryEnabled,
|
|
27
|
-
getNextPageParam: (lastPage) => {
|
|
28
|
-
const pageable = lastPage.pageable;
|
|
29
|
-
if (!pageable)
|
|
30
|
-
return undefined;
|
|
31
|
-
const { pageNumber, totalPages } = pageable;
|
|
32
|
-
if (pageNumber >= totalPages)
|
|
33
|
-
return undefined;
|
|
34
|
-
return pageNumber + 1;
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
const apiItems = ((_c = (_b = query.data) === null || _b === void 0 ? void 0 : _b.pages) !== null && _c !== void 0 ? _c : []).flatMap((page) => page.data);
|
|
38
|
-
const items = useBizConversationListItems(apiItems);
|
|
39
|
-
return {
|
|
40
|
-
items,
|
|
41
|
-
isLoading: query.isLoading,
|
|
42
|
-
isFetchingNextPage: query.isFetchingNextPage,
|
|
43
|
-
hasNextPage: !!query.hasNextPage,
|
|
44
|
-
fetchNextPage: () => {
|
|
45
|
-
query.fetchNextPage();
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { BizConversationItem } from "../../types/biz";
|
|
2
|
-
export interface BizConversationListItem extends BizConversationItem {
|
|
3
|
-
latestMsg: string;
|
|
4
|
-
unreadCount: number;
|
|
5
|
-
latestMsgSendTime: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const useBizConversationListItems: (apiItems: BizConversationItem[]) => BizConversationListItem[];
|
|
8
|
-
//# sourceMappingURL=useBizConversationListItems.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBizConversationListItems.d.ts","sourceRoot":"","sources":["../../../src/hooks/biz/useBizConversationListItems.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvD,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,2BAA2B,GACtC,UAAU,mBAAmB,EAAE,KAC9B,uBAAuB,EA8BzB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
import useBizConversationStore from "../../store/bizConversation";
|
|
3
|
-
import { resolveBizLatestPreview } from "../../utils/bizMessage";
|
|
4
|
-
export const useBizConversationListItems = (apiItems) => {
|
|
5
|
-
const sdkConversations = useBizConversationStore((state) => state.sdkConversations);
|
|
6
|
-
const realtimeLatestConversationIds = useBizConversationStore((state) => state.realtimeLatestConversationIds);
|
|
7
|
-
return useMemo(() => apiItems.map((item) => {
|
|
8
|
-
var _a;
|
|
9
|
-
const sdkConversation = sdkConversations[item.conversationId];
|
|
10
|
-
const useRealtimeSdk = Boolean(realtimeLatestConversationIds[item.conversationId]);
|
|
11
|
-
const { latestMsg, latestMsgSendTime } = resolveBizLatestPreview(item.lastMessage, sdkConversation, useRealtimeSdk);
|
|
12
|
-
return Object.assign(Object.assign({}, item), { latestMsg, unreadCount: (_a = sdkConversation === null || sdkConversation === void 0 ? void 0 : sdkConversation.unreadCount) !== null && _a !== void 0 ? _a : 0, latestMsgSendTime });
|
|
13
|
-
}), [apiItems, sdkConversations, realtimeLatestConversationIds]);
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBizGlobalEvent.d.ts","sourceRoot":"","sources":["../../../src/hooks/biz/useBizGlobalEvent.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,iBAAiB,YA+D7B,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
2
|
-
import { CbEvents, } from "@openim/wasm-client-sdk";
|
|
3
|
-
import { DChatSDK } from "../../constants/sdk";
|
|
4
|
-
import { useChatContext } from "../../context/ChatContext";
|
|
5
|
-
import { ConnectStatus } from "../../types/chat";
|
|
6
|
-
import useAuthStore from "../../store/auth";
|
|
7
|
-
import useBizConversationStore from "../../store/bizConversation";
|
|
8
|
-
import { resolveBizConversationIdFromMessage } from "../../utils/bizConversation";
|
|
9
|
-
const CONVERSATION_SPLIT_COUNT = 500;
|
|
10
|
-
const fetchAllSdkConversations = async () => {
|
|
11
|
-
const conversations = [];
|
|
12
|
-
let offset = 0;
|
|
13
|
-
while (true) {
|
|
14
|
-
const { data } = await DChatSDK.getConversationListSplit({
|
|
15
|
-
offset,
|
|
16
|
-
count: CONVERSATION_SPLIT_COUNT,
|
|
17
|
-
});
|
|
18
|
-
conversations.push(...data);
|
|
19
|
-
if (data.length < CONVERSATION_SPLIT_COUNT)
|
|
20
|
-
break;
|
|
21
|
-
offset += data.length;
|
|
22
|
-
}
|
|
23
|
-
return conversations;
|
|
24
|
-
};
|
|
25
|
-
export const useBizGlobalEvent = () => {
|
|
26
|
-
const { connectStatus } = useChatContext();
|
|
27
|
-
const updateSdkConversations = useBizConversationStore((state) => state.updateSdkConversations);
|
|
28
|
-
const markRealtimeLatestConversation = useBizConversationStore((state) => state.markRealtimeLatestConversation);
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
const conversationChangeHandler = ({ data, }) => {
|
|
31
|
-
updateSdkConversations(data);
|
|
32
|
-
};
|
|
33
|
-
const newMessageHandler = ({ data }) => {
|
|
34
|
-
const currentUserId = useAuthStore.getState().userID;
|
|
35
|
-
if (!currentUserId)
|
|
36
|
-
return;
|
|
37
|
-
data === null || data === void 0 ? void 0 : data.forEach((message) => {
|
|
38
|
-
const conversationId = resolveBizConversationIdFromMessage(message, currentUserId);
|
|
39
|
-
if (conversationId) {
|
|
40
|
-
markRealtimeLatestConversation(conversationId);
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
DChatSDK.on(CbEvents.OnConversationChanged, conversationChangeHandler);
|
|
45
|
-
DChatSDK.on(CbEvents.OnRecvNewMessages, newMessageHandler);
|
|
46
|
-
return () => {
|
|
47
|
-
DChatSDK.off(CbEvents.OnConversationChanged, conversationChangeHandler);
|
|
48
|
-
DChatSDK.off(CbEvents.OnRecvNewMessages, newMessageHandler);
|
|
49
|
-
};
|
|
50
|
-
}, [updateSdkConversations, markRealtimeLatestConversation]);
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
if (connectStatus !== ConnectStatus.Connected)
|
|
53
|
-
return;
|
|
54
|
-
const bootstrapSdkConversations = async () => {
|
|
55
|
-
try {
|
|
56
|
-
const conversations = await fetchAllSdkConversations();
|
|
57
|
-
updateSdkConversations(conversations);
|
|
58
|
-
}
|
|
59
|
-
catch (error) {
|
|
60
|
-
console.error("bootstrapSdkConversations", error);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
const onSyncFinish = () => {
|
|
64
|
-
void bootstrapSdkConversations();
|
|
65
|
-
};
|
|
66
|
-
DChatSDK.on(CbEvents.OnSyncServerFinish, onSyncFinish);
|
|
67
|
-
void bootstrapSdkConversations();
|
|
68
|
-
return () => {
|
|
69
|
-
DChatSDK.off(CbEvents.OnSyncServerFinish, onSyncFinish);
|
|
70
|
-
};
|
|
71
|
-
}, [connectStatus, updateSdkConversations]);
|
|
72
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBizSendMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/biz/useBizSendMessage.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,iBAAiB;iCAQR,MAAM;CAsE3B,CAAC"}
|