@droppii-org/chat-mobile 0.2.4 → 0.2.7
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/lib/module/components/ThreadCard/AvatarSection.js +4 -4
- package/lib/module/components/ThreadCard/AvatarSection.js.map +1 -1
- package/lib/module/components/ThreadCard/NamePrefixIcon.js +13 -16
- package/lib/module/components/ThreadCard/NamePrefixIcon.js.map +1 -1
- package/lib/module/components/ThreadCard/ThreadCard.js +13 -33
- package/lib/module/components/ThreadCard/ThreadCard.js.map +1 -1
- package/lib/module/config/feature-flags.js +38 -0
- package/lib/module/config/feature-flags.js.map +1 -0
- package/lib/module/context/ChatContext.js +7 -6
- package/lib/module/context/ChatContext.js.map +1 -1
- package/lib/module/hooks/message/useSendMessage.js +101 -0
- package/lib/module/hooks/message/useSendMessage.js.map +1 -0
- package/lib/module/hooks/query-keys.js +4 -0
- package/lib/module/hooks/query-keys.js.map +1 -1
- package/lib/module/hooks/useChatMessages.js +54 -91
- package/lib/module/hooks/useChatMessages.js.map +1 -1
- package/lib/module/hooks/useConversationList.js +29 -17
- package/lib/module/hooks/useConversationList.js.map +1 -1
- package/lib/module/hooks/useLinkPreview/useFetchUrlMetadata.js +17 -0
- package/lib/module/hooks/useLinkPreview/useFetchUrlMetadata.js.map +1 -0
- package/lib/module/hooks/useLinkPreview/useLinkPreview.js +35 -0
- package/lib/module/hooks/useLinkPreview/useLinkPreview.js.map +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/screens/chat-detail/ChatComposer.js +20 -4
- package/lib/module/screens/chat-detail/ChatComposer.js.map +1 -1
- package/lib/module/screens/chat-detail/ChatDetail.js +116 -22
- package/lib/module/screens/chat-detail/ChatDetail.js.map +1 -1
- package/lib/module/screens/chat-detail/ChatDetailHeader.js +5 -8
- package/lib/module/screens/chat-detail/ChatDetailHeader.js.map +1 -1
- package/lib/module/screens/chat-detail/ChatLinkPreview.js +79 -0
- package/lib/module/screens/chat-detail/ChatLinkPreview.js.map +1 -0
- package/lib/module/screens/chat-detail/ChatList.js +2 -0
- package/lib/module/screens/chat-detail/ChatList.js.map +1 -1
- package/lib/module/screens/chat-detail/ChatListLegend.js +350 -0
- package/lib/module/screens/chat-detail/ChatListLegend.js.map +1 -0
- package/lib/module/screens/chat-detail/ChatQuickActions.js +12 -2
- package/lib/module/screens/chat-detail/ChatQuickActions.js.map +1 -1
- package/lib/module/screens/chat-detail/conversationHeader.utils.js +29 -0
- package/lib/module/screens/chat-detail/conversationHeader.utils.js.map +1 -0
- package/lib/module/screens/chat-detail/index.js +1 -0
- package/lib/module/screens/chat-detail/index.js.map +1 -1
- package/lib/module/screens/chat-detail/legend/LegendChatDay.js +57 -0
- package/lib/module/screens/chat-detail/legend/LegendChatDay.js.map +1 -0
- package/lib/module/screens/chat-detail/legend/LegendChatLoadEarlier.js +21 -0
- package/lib/module/screens/chat-detail/legend/LegendChatLoadEarlier.js.map +1 -0
- package/lib/module/screens/chat-detail/legend/LegendChatMessage.js +34 -0
- package/lib/module/screens/chat-detail/legend/LegendChatMessage.js.map +1 -0
- package/lib/module/screens/chat-detail/legend/LegendChatScrollToBottom.js +58 -0
- package/lib/module/screens/chat-detail/legend/LegendChatScrollToBottom.js.map +1 -0
- package/lib/module/screens/chat-detail/legend/message-types.js +244 -0
- package/lib/module/screens/chat-detail/legend/message-types.js.map +1 -0
- package/lib/module/screens/chat-detail/messages/ChatMessageBubble.js.map +1 -1
- package/lib/module/services/apis.js +1 -1
- package/lib/module/services/apis.js.map +1 -1
- package/lib/module/services/endpoints.js +8 -0
- package/lib/module/services/endpoints.js.map +1 -0
- package/lib/module/store/conversation.js +1 -1
- package/lib/module/store/conversation.js.map +1 -1
- package/lib/module/store/message.js +45 -0
- package/lib/module/store/message.js.map +1 -0
- package/lib/module/translation/resources/i18n.js +7 -1
- package/lib/module/translation/resources/i18n.js.map +1 -1
- package/lib/module/types/chat.js +2 -7
- package/lib/module/types/chat.js.map +1 -1
- package/lib/module/types/common.js +2 -0
- package/lib/module/types/common.js.map +1 -0
- package/lib/module/utils/conversation.js +34 -13
- package/lib/module/utils/conversation.js.map +1 -1
- package/lib/module/utils/legendListMessage.js +77 -0
- package/lib/module/utils/legendListMessage.js.map +1 -0
- package/lib/module/utils/message.js +5 -8
- package/lib/module/utils/message.js.map +1 -1
- package/lib/module/utils/url.js +7 -0
- package/lib/module/utils/url.js.map +1 -0
- package/lib/typescript/src/components/Avatar/Avatar.d.ts +1 -1
- package/lib/typescript/src/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/src/components/Avatar/AvatarBadge.d.ts +1 -1
- package/lib/typescript/src/components/Avatar/AvatarBadge.d.ts.map +1 -1
- package/lib/typescript/src/components/Avatar/DoubleAvatar.d.ts +1 -1
- package/lib/typescript/src/components/Avatar/DoubleAvatar.d.ts.map +1 -1
- package/lib/typescript/src/components/Avatar/SingleAvatar.d.ts +1 -1
- package/lib/typescript/src/components/Avatar/SingleAvatar.d.ts.map +1 -1
- package/lib/typescript/src/components/ThreadCard/AvatarSection.d.ts +2 -2
- package/lib/typescript/src/components/ThreadCard/AvatarSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ThreadCard/NamePrefixIcon.d.ts +3 -4
- package/lib/typescript/src/components/ThreadCard/NamePrefixIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/ThreadCard/ThreadCard.d.ts +1 -1
- package/lib/typescript/src/components/ThreadCard/ThreadCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ThreadCard/UnreadBadge.d.ts +1 -1
- package/lib/typescript/src/components/ThreadCard/UnreadBadge.d.ts.map +1 -1
- package/lib/typescript/src/config/feature-flags.d.ts +12 -0
- package/lib/typescript/src/config/feature-flags.d.ts.map +1 -0
- package/lib/typescript/src/context/ChatContext.d.ts +1 -1
- package/lib/typescript/src/context/ChatContext.d.ts.map +1 -1
- package/lib/typescript/src/hooks/message/useSendMessage.d.ts +12 -0
- package/lib/typescript/src/hooks/message/useSendMessage.d.ts.map +1 -0
- package/lib/typescript/src/hooks/query-keys.d.ts +4 -0
- package/lib/typescript/src/hooks/query-keys.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useChatMessages.d.ts +3 -1
- package/lib/typescript/src/hooks/useChatMessages.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useConversationList.d.ts +2 -1
- package/lib/typescript/src/hooks/useConversationList.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useLinkPreview/useFetchUrlMetadata.d.ts +3 -0
- package/lib/typescript/src/hooks/useLinkPreview/useFetchUrlMetadata.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useLinkPreview/useLinkPreview.d.ts +7 -0
- package/lib/typescript/src/hooks/useLinkPreview/useLinkPreview.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatAttachmentPanel.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatAttachmentPanel.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatComposer.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatComposer.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatDay.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatDay.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatDetail.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatDetail.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatDetailHeader.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatDetailHeader.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatLinkPreview.d.ts +9 -0
- package/lib/typescript/src/screens/chat-detail/ChatLinkPreview.d.ts.map +1 -0
- package/lib/typescript/src/screens/chat-detail/ChatList.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatList.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatListLegend.d.ts +3 -0
- package/lib/typescript/src/screens/chat-detail/ChatListLegend.d.ts.map +1 -0
- package/lib/typescript/src/screens/chat-detail/ChatLoadEarlier.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatLoadEarlier.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatQuickActions.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatQuickActions.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatScrollToBottom.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatScrollToBottom.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatTextBubble.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatTextBubble.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/conversationHeader.utils.d.ts +6 -0
- package/lib/typescript/src/screens/chat-detail/conversationHeader.utils.d.ts.map +1 -0
- package/lib/typescript/src/screens/chat-detail/index.d.ts +2 -1
- package/lib/typescript/src/screens/chat-detail/index.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatDay.d.ts +6 -0
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatDay.d.ts.map +1 -0
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatLoadEarlier.d.ts +6 -0
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatLoadEarlier.d.ts.map +1 -0
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatMessage.d.ts +13 -0
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatMessage.d.ts.map +1 -0
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatScrollToBottom.d.ts +6 -0
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatScrollToBottom.d.ts.map +1 -0
- package/lib/typescript/src/screens/chat-detail/legend/message-types.d.ts +13 -0
- package/lib/typescript/src/screens/chat-detail/legend/message-types.d.ts.map +1 -0
- package/lib/typescript/src/screens/chat-detail/messages/ChatMessageBubble.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/messages/ChatMessageBubble.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/types.d.ts +33 -7
- package/lib/typescript/src/screens/chat-detail/types.d.ts.map +1 -1
- package/lib/typescript/src/screens/inbox/Inbox.d.ts +1 -1
- package/lib/typescript/src/screens/inbox/Inbox.d.ts.map +1 -1
- package/lib/typescript/src/screens/inbox/MessagesTab.d.ts +1 -1
- package/lib/typescript/src/screens/inbox/MessagesTab.d.ts.map +1 -1
- package/lib/typescript/src/services/apis.d.ts +1 -0
- package/lib/typescript/src/services/apis.d.ts.map +1 -1
- package/lib/typescript/src/services/endpoints.d.ts +6 -0
- package/lib/typescript/src/services/endpoints.d.ts.map +1 -0
- package/lib/typescript/src/store/message.d.ts +3 -0
- package/lib/typescript/src/store/message.d.ts.map +1 -0
- package/lib/typescript/src/translation/resources/i18n.d.ts.map +1 -1
- package/lib/typescript/src/types/chat.d.ts +28 -27
- package/lib/typescript/src/types/chat.d.ts.map +1 -1
- package/lib/typescript/src/types/common.d.ts +7 -0
- package/lib/typescript/src/types/common.d.ts.map +1 -0
- package/lib/typescript/src/utils/conversation.d.ts +3 -2
- package/lib/typescript/src/utils/conversation.d.ts.map +1 -1
- package/lib/typescript/src/utils/legendListMessage.d.ts +23 -0
- package/lib/typescript/src/utils/legendListMessage.d.ts.map +1 -0
- package/lib/typescript/src/utils/message.d.ts.map +1 -1
- package/lib/typescript/src/utils/url.d.ts +2 -0
- package/lib/typescript/src/utils/url.d.ts.map +1 -0
- package/package.json +5 -3
- package/src/components/ThreadCard/AvatarSection.tsx +5 -8
- package/src/components/ThreadCard/NamePrefixIcon.tsx +27 -38
- package/src/components/ThreadCard/ThreadCard.tsx +16 -30
- package/src/config/feature-flags.ts +49 -0
- package/src/context/ChatContext.tsx +12 -4
- package/src/hooks/message/useSendMessage.ts +136 -0
- package/src/hooks/query-keys.ts +5 -0
- package/src/hooks/useChatMessages.ts +90 -118
- package/src/hooks/useConversationList.ts +34 -16
- package/src/hooks/useLinkPreview/useFetchUrlMetadata.ts +18 -0
- package/src/hooks/useLinkPreview/useLinkPreview.ts +31 -0
- package/src/index.tsx +1 -0
- package/src/screens/chat-detail/ChatComposer.tsx +23 -2
- package/src/screens/chat-detail/ChatDetail.tsx +163 -30
- package/src/screens/chat-detail/ChatDetailHeader.tsx +4 -10
- package/src/screens/chat-detail/ChatLinkPreview.tsx +86 -0
- package/src/screens/chat-detail/ChatList.tsx +3 -0
- package/src/screens/chat-detail/ChatListLegend.tsx +403 -0
- package/src/screens/chat-detail/ChatQuickActions.tsx +19 -2
- package/src/screens/chat-detail/conversationHeader.utils.ts +49 -0
- package/src/screens/chat-detail/index.ts +7 -0
- package/src/screens/chat-detail/legend/LegendChatDay.tsx +70 -0
- package/src/screens/chat-detail/legend/LegendChatLoadEarlier.tsx +21 -0
- package/src/screens/chat-detail/legend/LegendChatMessage.tsx +48 -0
- package/src/screens/chat-detail/legend/LegendChatScrollToBottom.tsx +56 -0
- package/src/screens/chat-detail/legend/message-types.tsx +304 -0
- package/src/screens/chat-detail/messages/ChatMessageBubble.tsx +0 -1
- package/src/screens/chat-detail/types.ts +45 -7
- package/src/services/apis.ts +1 -1
- package/src/services/endpoints.ts +5 -0
- package/src/store/conversation.ts +1 -1
- package/src/store/message.ts +44 -0
- package/src/translation/resources/i18n.ts +6 -0
- package/src/types/chat.ts +31 -30
- package/src/types/common.ts +6 -0
- package/src/utils/conversation.ts +44 -17
- package/src/utils/legendListMessage.ts +97 -0
- package/src/utils/message.ts +10 -12
- package/src/utils/url.ts +5 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { MessageType } from '@droppii/openim-rn-client-sdk';
|
|
4
|
+
/**
|
|
5
|
+
* Extract message text based on content type
|
|
6
|
+
*/
|
|
7
|
+
export const getMessageText = message => {
|
|
8
|
+
switch (message.contentType) {
|
|
9
|
+
case MessageType.TextMessage:
|
|
10
|
+
return message.textElem?.content ?? message.content;
|
|
11
|
+
case MessageType.AtTextMessage:
|
|
12
|
+
return message.atTextElem?.text ?? message.content;
|
|
13
|
+
case MessageType.QuoteMessage:
|
|
14
|
+
return message.quoteElem?.text ?? message.content;
|
|
15
|
+
case MessageType.PictureMessage:
|
|
16
|
+
return '';
|
|
17
|
+
case MessageType.VoiceMessage:
|
|
18
|
+
return message.soundElem?.sourceUrl ? '' : '[Tin nhắn thoại]';
|
|
19
|
+
case MessageType.VideoMessage:
|
|
20
|
+
return message.videoElem?.videoUrl ? '' : '[Video]';
|
|
21
|
+
case MessageType.FileMessage:
|
|
22
|
+
return message.fileElem?.fileName ?? message.content;
|
|
23
|
+
case MessageType.CardMessage:
|
|
24
|
+
return message.cardElem?.nickname ?? message.content;
|
|
25
|
+
case MessageType.LocationMessage:
|
|
26
|
+
return message.locationElem?.description ?? message.content;
|
|
27
|
+
case MessageType.CustomMessage:
|
|
28
|
+
return message.customElem?.description ?? message.content;
|
|
29
|
+
case MessageType.FaceMessage:
|
|
30
|
+
return '[Sticker]';
|
|
31
|
+
default:
|
|
32
|
+
if (message.notificationElem?.detail) {
|
|
33
|
+
return message.notificationElem.detail;
|
|
34
|
+
}
|
|
35
|
+
return message.content || '';
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Precompute all message rendering data in single pass O(n)
|
|
40
|
+
* Eliminates redundant Date creation and type resolution during render
|
|
41
|
+
*
|
|
42
|
+
* Returns: Map of messageId -> {dayStart, messageType, createdAt}
|
|
43
|
+
*/
|
|
44
|
+
export const precomputeLegendListData = messages => {
|
|
45
|
+
const dataMap = new Map();
|
|
46
|
+
let lastDay = null;
|
|
47
|
+
messages.forEach((message, index) => {
|
|
48
|
+
// Get message ID - use timestamp as fallback for newly sent messages
|
|
49
|
+
const messageId = message.clientMsgID || message.serverMsgID || `temp-${message.sendTime || message.createTime}-${index}`;
|
|
50
|
+
const createdAt = message.sendTime || message.createTime;
|
|
51
|
+
const day = new Date(createdAt).getDate();
|
|
52
|
+
dataMap.set(messageId, {
|
|
53
|
+
messageId,
|
|
54
|
+
dayStart: lastDay !== day,
|
|
55
|
+
createdAt
|
|
56
|
+
});
|
|
57
|
+
lastDay = day;
|
|
58
|
+
});
|
|
59
|
+
return dataMap;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Legacy: Use precomputeLegendListData instead
|
|
64
|
+
* Kept for backward compatibility
|
|
65
|
+
*/
|
|
66
|
+
export const computeDayStarts = messages => {
|
|
67
|
+
const dayStartMap = new Map();
|
|
68
|
+
let lastDay = null;
|
|
69
|
+
messages.forEach(message => {
|
|
70
|
+
const day = new Date(message.sendTime || message.createTime).getDate();
|
|
71
|
+
const messageId = message.clientMsgID || message.serverMsgID || '';
|
|
72
|
+
dayStartMap.set(messageId, lastDay !== day);
|
|
73
|
+
lastDay = day;
|
|
74
|
+
});
|
|
75
|
+
return dayStartMap;
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=legendListMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MessageType","getMessageText","message","contentType","TextMessage","textElem","content","AtTextMessage","atTextElem","text","QuoteMessage","quoteElem","PictureMessage","VoiceMessage","soundElem","sourceUrl","VideoMessage","videoElem","videoUrl","FileMessage","fileElem","fileName","CardMessage","cardElem","nickname","LocationMessage","locationElem","description","CustomMessage","customElem","FaceMessage","notificationElem","detail","precomputeLegendListData","messages","dataMap","Map","lastDay","forEach","index","messageId","clientMsgID","serverMsgID","sendTime","createTime","createdAt","day","Date","getDate","set","dayStart","computeDayStarts","dayStartMap"],"sourceRoot":"../../../src","sources":["utils/legendListMessage.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,+BAA+B;AAG3D;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAIC,OAAqB,IAAa;EAC/D,QAAQA,OAAO,CAACC,WAAW;IACzB,KAAKH,WAAW,CAACI,WAAW;MAC1B,OAAO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,CAAC;EAEF,OAAOM,WAAW;AACpB,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { SessionType } from '@droppii/openim-rn-client-sdk';
|
|
4
|
-
import { DChatType } from "../types/chat.js";
|
|
3
|
+
import { PeerType, SessionType } from '@droppii/openim-rn-client-sdk';
|
|
5
4
|
import { getConversationID } from "./conversation.js";
|
|
6
5
|
const getMessageTime = message => message.sendTime || message.createTime || 0;
|
|
7
6
|
const getMessageKey = message => message.clientMsgID || message.serverMsgID;
|
|
@@ -72,11 +71,9 @@ export const getReceiverId = conversation => {
|
|
|
72
71
|
groupID: '',
|
|
73
72
|
recvID: ''
|
|
74
73
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
const groupID = isBot ? conversation.conversationId?.slice(3) // Remove sg_
|
|
79
|
-
: conversation.groupID;
|
|
74
|
+
if (conversation.peerType === PeerType.Group) {
|
|
75
|
+
// Group conversation: groupID is embedded after the "sg_" prefix
|
|
76
|
+
const groupID = conversation.groupID || conversation.conversationID.slice(3);
|
|
80
77
|
return {
|
|
81
78
|
groupID: groupID ?? '',
|
|
82
79
|
recvID: ''
|
|
@@ -84,7 +81,7 @@ export const getReceiverId = conversation => {
|
|
|
84
81
|
}
|
|
85
82
|
return {
|
|
86
83
|
groupID: '',
|
|
87
|
-
recvID: conversation.
|
|
84
|
+
recvID: conversation.userID ?? ''
|
|
88
85
|
};
|
|
89
86
|
};
|
|
90
87
|
//# sourceMappingURL=message.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["PeerType","SessionType","getConversationID","getMessageTime","message","sendTime","createTime","getMessageKey","clientMsgID","serverMsgID","mergeMessages","current","incoming","map","Map","key","set","Array","from","values","sort","a","b","normalizeCreatedMessage","normalized","JSON","parse","Error","resolveHistoryLastMinSeq","history","fallbackMessage","lastMinSeq","seq","getHistoryPaginationAnchor","messages","length","oldest","reduce","prev","curr","hasNewHistoryMessages","currentKeys","Set","filter","Boolean","some","has","belongsToConversation","conversationId","sessionType","Single","forwardId","sendID","recvID","reverseId","Group","groupID","getReceiverId","conversation","peerType","conversationID","slice","userID"],"sourceRoot":"../../../src","sources":["utils/message.ts"],"mappings":";;AAAA,SACEA,QAAQ,EACRC,WAAW,QAEN,+BAA+B;AAEtC,SAASC,iBAAiB,QAAQ,mBAAgB;AAElD,MAAMC,cAAc,GAAIC,OAAqB,IAC3CA,OAAO,CAACC,QAAQ,IAAID,OAAO,CAACE,UAAU,IAAI,CAAC;AAE7C,MAAMC,aAAa,GAAIH,OAAqB,IAC1CA,OAAO,CAACI,WAAW,IAAIJ,OAAO,CAACK,WAAW;AAE5C,OAAO,MAAMC,aAAa,GAAGA,CAC3BC,OAAuB,EACvBC,QAAwB,KACL;EACnB,MAAMC,GAAG,GAAG,IAAIC,GAAG,CAAuB,CAAC;EAE3C,KAAK,MAAMV,OAAO,IAAI,CAAC,GAAGO,OAAO,EAAE,GAAGC,QAAQ,CAAC,EAAE;IAC/C,MAAMG,GAAG,GAAGR,aAAa,CAACH,OAAO,CAAC;IAClC,IAAIW,GAAG,EAAE;MACPF,GAAG,CAACG,GAAG,CAACD,GAAG,EAAEX,OAAO,CAAC;IACvB;EACF;EAEA,OAAOa,KAAK,CAACC,IAAI,CAACL,GAAG,CAACM,MAAM,CAAC,CAAC,CAAC,CAACC,IAAI,CAClC,CAACC,CAAC,EAAEC,CAAC,KAAKnB,cAAc,CAACkB,CAAC,CAAC,GAAGlB,cAAc,CAACmB,CAAC,CAChD,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,uBAAuB,GAClCnB,OAA6B,IACb;EAChB,IAAIoB,UAAmB,GAAGpB,OAAO;EAEjC,OAAO,OAAOoB,UAAU,KAAK,QAAQ,EAAE;IACrCA,UAAU,GAAGC,IAAI,CAACC,KAAK,CAACF,UAAU,CAAC;EACrC;EAEA,IAAIA,UAA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"../../../src","sources":["utils/url.ts"],"mappings":";;AAAA,MAAMA,SAAS,GAAG,+CAA+C;AAEjE,OAAO,SAASC,WAAWA,CAACC,IAAY,EAAY;EAClD,OAAOA,IAAI,CAACC,KAAK,CAACH,SAAS,CAAC,IAAI,EAAE;AACpC","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AvatarProps } from './Avatar.types';
|
|
2
|
-
declare const Avatar: import("react").MemoExoticComponent<({ source, size, type, secondarySource, badge, fullName, borderColor, borderWidth, placeholderColor, onPress, }: AvatarProps) => import("react
|
|
2
|
+
declare const Avatar: import("react").MemoExoticComponent<({ source, size, type, secondarySource, badge, fullName, borderColor, borderWidth, placeholderColor, onPress, }: AvatarProps) => import("react").JSX.Element>;
|
|
3
3
|
export default Avatar;
|
|
4
4
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,QAAA,MAAM,MAAM,uJAYP,WAAW,
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,QAAA,MAAM,MAAM,uJAYP,WAAW,iCAmEf,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -2,6 +2,6 @@ interface AvatarBadgeProps {
|
|
|
2
2
|
variant?: 'bot' | 'support' | 'mall' | 'custom';
|
|
3
3
|
size: number;
|
|
4
4
|
}
|
|
5
|
-
export declare const AvatarBadge: import("react").MemoExoticComponent<({ variant, size: _size }: AvatarBadgeProps) => import("react
|
|
5
|
+
export declare const AvatarBadge: import("react").MemoExoticComponent<({ variant, size: _size }: AvatarBadgeProps) => import("react").JSX.Element>;
|
|
6
6
|
export {};
|
|
7
7
|
//# sourceMappingURL=AvatarBadge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarBadge.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/AvatarBadge.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;IAChD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,WAAW,iEACK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"AvatarBadge.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/AvatarBadge.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;IAChD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,WAAW,iEACK,gBAAgB,iCAK5C,CAAC"}
|
|
@@ -8,6 +8,6 @@ interface DoubleAvatarProps {
|
|
|
8
8
|
primaryFullName?: string;
|
|
9
9
|
secondaryFullName?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const DoubleAvatar: import("react").MemoExoticComponent<({ primarySource, secondarySource, size, borderColor, borderWidth, placeholderColor, primaryFullName, secondaryFullName, }: DoubleAvatarProps) => import("react
|
|
11
|
+
export declare const DoubleAvatar: import("react").MemoExoticComponent<({ primarySource, secondarySource, size, borderColor, borderWidth, placeholderColor, primaryFullName, secondaryFullName, }: DoubleAvatarProps) => import("react").JSX.Element>;
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=DoubleAvatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoubleAvatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/DoubleAvatar.tsx"],"names":[],"mappings":"AAKA,UAAU,iBAAiB;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY,kKAUpB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"DoubleAvatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/DoubleAvatar.tsx"],"names":[],"mappings":"AAKA,UAAU,iBAAiB;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY,kKAUpB,iBAAiB,iCA6CrB,CAAC"}
|
|
@@ -8,6 +8,6 @@ interface SingleAvatarProps extends Omit<KAvatarProps, 'size' | 'uri'> {
|
|
|
8
8
|
backgroundColor?: string;
|
|
9
9
|
fullName?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const SingleAvatar: import("react").MemoExoticComponent<({ source, size, borderColor, borderWidth, placeholderColor, backgroundColor, fullName, }: SingleAvatarProps) => import("react
|
|
11
|
+
export declare const SingleAvatar: import("react").MemoExoticComponent<({ source, size, borderColor, borderWidth, placeholderColor, backgroundColor, fullName, }: SingleAvatarProps) => import("react").JSX.Element>;
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=SingleAvatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleAvatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/SingleAvatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,UAAU,iBAAkB,SAAQ,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAiBD,eAAO,MAAM,YAAY,iIASpB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SingleAvatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/SingleAvatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,UAAU,iBAAkB,SAAQ,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAiBD,eAAO,MAAM,YAAY,iIASpB,iBAAiB,iCA4CrB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DConversationItem } from '../../types/chat';
|
|
2
|
-
interface AvatarSectionProps extends Partial<Pick<DConversationItem, '
|
|
2
|
+
interface AvatarSectionProps extends Partial<Pick<DConversationItem, 'peerType' | 'applicationType'>> {
|
|
3
3
|
avatar: string | null;
|
|
4
4
|
fullName: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const AvatarSection: import("react").MemoExoticComponent<({ avatar, fullName,
|
|
6
|
+
export declare const AvatarSection: import("react").MemoExoticComponent<({ avatar, fullName, peerType, applicationType }: AvatarSectionProps) => import("react").JSX.Element>;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=AvatarSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/ThreadCard/AvatarSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AvatarSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/ThreadCard/AvatarSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,UAAU,kBAAmB,SAAQ,OAAO,CAC1C,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,iBAAiB,CAAC,CACxD;IACC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,wFAC0B,kBAAkB,iCAuBrE,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PeerType } from '@droppii/openim-rn-client-sdk';
|
|
2
2
|
interface NamePrefixIconProps {
|
|
3
|
-
|
|
4
|
-
chatType?: DChatType;
|
|
3
|
+
peerType?: PeerType | string;
|
|
5
4
|
}
|
|
6
|
-
export declare const NamePrefixIcon: import("react").MemoExoticComponent<({
|
|
5
|
+
export declare const NamePrefixIcon: import("react").MemoExoticComponent<({ peerType }: NamePrefixIconProps) => import("react").JSX.Element>;
|
|
7
6
|
export {};
|
|
8
7
|
//# sourceMappingURL=NamePrefixIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamePrefixIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/ThreadCard/NamePrefixIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NamePrefixIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/ThreadCard/NamePrefixIcon.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AASzD,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,cAAc,qDAAuB,mBAAmB,iCA0BnE,CAAC"}
|
|
@@ -6,6 +6,6 @@ interface ThreadCardProps {
|
|
|
6
6
|
event: GestureResponderEvent;
|
|
7
7
|
}) => void;
|
|
8
8
|
}
|
|
9
|
-
declare const ThreadCard: import("react").MemoExoticComponent<({ item, onPress }: ThreadCardProps) => import("react
|
|
9
|
+
declare const ThreadCard: import("react").MemoExoticComponent<({ item, onPress }: ThreadCardProps) => import("react").JSX.Element>;
|
|
10
10
|
export default ThreadCard;
|
|
11
11
|
//# sourceMappingURL=ThreadCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreadCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/ThreadCard/ThreadCard.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"ThreadCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/ThreadCard/ThreadCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAQ1D,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,qBAAqB,CAAA;KAAE,KAAK,IAAI,CAAC;CAC5E;AAED,QAAA,MAAM,UAAU,0DAA4B,eAAe,iCAgHzD,CAAC;AAIH,eAAe,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface UnreadBadgeProps {
|
|
2
2
|
count: number;
|
|
3
3
|
}
|
|
4
|
-
export declare const UnreadBadge: import("react").MemoExoticComponent<({ count }: UnreadBadgeProps) => import("react
|
|
4
|
+
export declare const UnreadBadge: import("react").MemoExoticComponent<({ count }: UnreadBadgeProps) => import("react").JSX.Element>;
|
|
5
5
|
export {};
|
|
6
6
|
//# sourceMappingURL=UnreadBadge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnreadBadge.d.ts","sourceRoot":"","sources":["../../../../../src/components/ThreadCard/UnreadBadge.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,WAAW,kDAAoB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"UnreadBadge.d.ts","sourceRoot":"","sources":["../../../../../src/components/ThreadCard/UnreadBadge.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,WAAW,kDAAoB,gBAAgB,iCAY1D,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface FeatureFlags {
|
|
2
|
+
USE_LEGEND_LIST_CHAT: boolean;
|
|
3
|
+
CHAT_LIST_VARIANT: 'gifted' | 'legend';
|
|
4
|
+
ENABLE_PERFORMANCE_METRICS: boolean;
|
|
5
|
+
METRICS_SAMPLE_RATE: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const getFeatureFlag: <K extends keyof FeatureFlags>(flag: K) => FeatureFlags[K];
|
|
8
|
+
export declare const setFeatureFlag: <K extends keyof FeatureFlags>(flag: K, value: FeatureFlags[K]) => void;
|
|
9
|
+
export declare const resetFlags: () => void;
|
|
10
|
+
export declare const onFlagsChange: (callback: () => void) => () => void;
|
|
11
|
+
export declare const getAllFlags: () => FeatureFlags;
|
|
12
|
+
//# sourceMappingURL=feature-flags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../src/config/feature-flags.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACvC,0BAA0B,EAAE,OAAO,CAAC;IACpC,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAWD,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,YAAY,EACzD,MAAM,CAAC,KACN,YAAY,CAAC,CAAC,CAEhB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,YAAY,EACzD,MAAM,CAAC,EACP,OAAO,YAAY,CAAC,CAAC,CAAC,SAIvB,CAAC;AAEF,eAAO,MAAM,UAAU,YAGtB,CAAC;AAIF,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,IAAI,eAKjD,CAAC;AAMF,eAAO,MAAM,WAAW,QAAO,YAA8B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChatContextType, ChatProviderProps } from '../types/chat';
|
|
2
2
|
export declare const ChatContext: import("react").Context<ChatContextType>;
|
|
3
3
|
export declare const useChatContext: () => ChatContextType;
|
|
4
|
-
export declare const ChatProvider: ({
|
|
4
|
+
export declare const ChatProvider: ({ ...props }: ChatProviderProps) => import("react").JSX.Element;
|
|
5
5
|
//# sourceMappingURL=ChatContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../../../src/context/ChatContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAExE,eAAO,MAAM,WAAW,0CAEvB,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,eAMjC,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../../../src/context/ChatContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAExE,eAAO,MAAM,WAAW,0CAEvB,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,eAMjC,CAAC;AAeF,eAAO,MAAM,YAAY,GAAI,cAAc,iBAAiB,gCAE3D,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { UploadFileItem } from 'react-native-fs';
|
|
2
|
+
import type { IUrlMetadata } from '../../types/common';
|
|
3
|
+
export declare const useSendMessage: () => {
|
|
4
|
+
sendMessage: ({ plainText, files, urlMetadata, }: {
|
|
5
|
+
plainText?: string;
|
|
6
|
+
files?: UploadFileItem[];
|
|
7
|
+
urlMetadata?: IUrlMetadata;
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
export declare const createTextMessage: (text: string) => Promise<any>;
|
|
11
|
+
export declare const createUrlTextMessage: (text: string, urls: string[]) => Promise<any>;
|
|
12
|
+
//# sourceMappingURL=useSendMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSendMessage.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/message/useSendMessage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAatD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,eAAO,MAAM,cAAc;sDASpB;QACD,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;QACzB,WAAW,CAAC,EAAE,YAAY,CAAC;KAC5B;CAoDJ,CAAC;AAyBF,eAAO,MAAM,iBAAiB,GAAU,MAAM,MAAM,iBAanD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAU,MAAM,MAAM,EAAE,MAAM,MAAM,EAAE,iBActE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../../../../src/hooks/query-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;4BAGR,MAAM;;6BAGL,MAAM;CAEhC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../../../../src/hooks/query-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;uBAEP,MAAM;CAC1B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;4BAGR,MAAM;;6BAGL,MAAM;CAEhC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC"}
|
|
@@ -10,9 +10,11 @@ export declare function useChatMessages({ conversationId, enabled, pageSize, }:
|
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
isLoadingEarlier: boolean;
|
|
12
12
|
hasMoreEarlier: boolean;
|
|
13
|
+
isLoadingNewer: boolean;
|
|
14
|
+
hasMoreNewer: boolean;
|
|
13
15
|
error: Error;
|
|
14
16
|
onLoadEarlier: () => Promise<void>;
|
|
15
|
-
|
|
17
|
+
onLoadNewer: () => Promise<void>;
|
|
16
18
|
refresh: () => Promise<void>;
|
|
17
19
|
};
|
|
18
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChatMessages.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useChatMessages.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"useChatMessages.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useChatMessages.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAQlD,KAAK,sBAAsB,GAAG;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,cAAc,EACd,OAAc,EACd,QAAa,GACd,EAAE,sBAAsB;;;;;;;;;;;;EAkLxB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { DConversationItem } from '../types/chat';
|
|
1
2
|
type Params = {
|
|
2
3
|
applicationType: string;
|
|
3
4
|
page: number;
|
|
4
5
|
enabled?: boolean;
|
|
5
6
|
};
|
|
6
|
-
export declare function useConversationList({ applicationType, page, enabled, }: Params): import("@tanstack/react-query").UseQueryResult<NoInfer<
|
|
7
|
+
export declare function useConversationList({ applicationType, page, enabled, }: Params): import("@tanstack/react-query").UseQueryResult<NoInfer<DConversationItem[]>, Error>;
|
|
7
8
|
export {};
|
|
8
9
|
//# sourceMappingURL=useConversationList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConversationList.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConversationList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useConversationList.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConversationList.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,eAAe,CAAC;AAErE,KAAK,MAAM,GAAG;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAyBF,wBAAgB,mBAAmB,CAAC,EAClC,eAAe,EACf,IAAQ,EACR,OAAc,GACf,EAAE,MAAM,uFAgCR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFetchUrlMetadata.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useLinkPreview/useFetchUrlMetadata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,iFAU5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLinkPreview.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useLinkPreview/useLinkPreview.ts"],"names":[],"mappings":"AAIA,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS;;;;;EA0BvD"}
|
|
@@ -9,7 +9,7 @@ export { Avatar } from './components/Avatar';
|
|
|
9
9
|
export { ThreadCard } from './components/ThreadCard';
|
|
10
10
|
export { Inbox } from './screens/inbox';
|
|
11
11
|
export { ChatDetail, ChatDetailHeader, ChatList, ChatComposer, ChatQuickActions, ChatAttachmentPanel, DEFAULT_Chat_QUICK_ACTIONS, DEFAULT_ATTACHMENT_ACTIONS, } from './screens/chat-detail';
|
|
12
|
-
export type { DChatActionItem, DChatActionIconProvider, DChatQuickAction, DChatAttachmentAction, ChatDetailProps, ChatDetailHeaderProps, ChatListProps, ChatComposerProps, ChatQuickActionsProps, ChatAttachmentPanelProps, } from './screens/chat-detail';
|
|
12
|
+
export type { DChatActionItem, DChatActionIconProvider, DChatQuickAction, DChatAttachmentAction, ChatDetailProps, ChatDetailHeaderProps, ChatListProps, ChatComposerProps, ChatQuickActionsProps, ChatQuickActionsRenderParams, ChatAttachmentPanelProps, } from './screens/chat-detail';
|
|
13
13
|
export type { DGiftedChatMessage } from './utils/giftedChatMessage';
|
|
14
14
|
export { mapOpenIMMessageToGiftedChat, mapOpenIMMessagesToGiftedChat, } from './utils/giftedChatMessage';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChatAttachmentPanelProps } from './types';
|
|
2
|
-
export declare const ChatAttachmentPanel: import("react").MemoExoticComponent<({ actions, columns, onActionPress, renderAction, }: ChatAttachmentPanelProps) => import("react
|
|
2
|
+
export declare const ChatAttachmentPanel: import("react").MemoExoticComponent<({ actions, columns, onActionPress, renderAction, }: ChatAttachmentPanelProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=ChatAttachmentPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatAttachmentPanel.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatAttachmentPanel.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAyB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAmD/E,eAAO,MAAM,mBAAmB,2FAM3B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"ChatAttachmentPanel.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatAttachmentPanel.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAyB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAmD/E,eAAO,MAAM,mBAAmB,2FAM3B,wBAAwB,iCAkD5B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChatComposerProps } from './types';
|
|
2
|
-
export declare const ChatComposer: import("react").MemoExoticComponent<({ value, placeholder, onChangeText, onSend, onPressAttach, onPressEmoji, quickActions, attachmentActions, onQuickActionPress, onAttachmentAction, renderQuickAction, renderAttachmentAction, attachmentColumns, }: ChatComposerProps) => import("react
|
|
2
|
+
export declare const ChatComposer: import("react").MemoExoticComponent<({ value, placeholder, onChangeText, onSend, onPressAttach, onPressEmoji, showQuickActions, quickActions, attachmentActions, onQuickActionPress, onAttachmentAction, renderQuickAction, renderQuickActions, renderAttachmentAction, attachmentColumns, }: ChatComposerProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=ChatComposer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatComposer.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatComposer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatComposer.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatComposer.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAcjD,eAAO,MAAM,YAAY,gSAiBpB,iBAAiB,iCA4VrB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DayProps } from 'react-native-gifted-chat';
|
|
2
|
-
export declare const ChatDay: import("react").MemoExoticComponent<({ createdAt, containerStyle, wrapperStyle }: DayProps) => import("react
|
|
2
|
+
export declare const ChatDay: import("react").MemoExoticComponent<({ createdAt, containerStyle, wrapperStyle }: DayProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=ChatDay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatDay.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AA+CzD,eAAO,MAAM,OAAO,oFAC4B,QAAQ,
|
|
1
|
+
{"version":3,"file":"ChatDay.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AA+CzD,eAAO,MAAM,OAAO,oFAC4B,QAAQ,iCAoBvD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ChatDetailProps } from './types';
|
|
2
|
-
declare const ChatDetail: import("react").MemoExoticComponent<({ title, subtitle, avatarUri, avatarFullName,
|
|
2
|
+
declare const ChatDetail: import("react").MemoExoticComponent<({ conversationId, enabled, title, subtitle, avatarUri, avatarFullName, peerType, applicationType, showAddMember, getSubtitle, onBack, onPressSearch, onPressAddMember, onPressMenu, onPressAvatar, renderChat, showQuickActions, showAttachmentActions, quickActions, getQuickActions, inputValue, inputPlaceholder, onChangeInput, onPressAttach, onPressEmoji, attachmentActions, onQuickActionPress, onAttachmentAction, renderQuickAction, renderQuickActions, renderAttachmentAction, attachmentColumns, }: ChatDetailProps) => import("react").JSX.Element>;
|
|
3
3
|
export default ChatDetail;
|
|
4
4
|
//# sourceMappingURL=ChatDetail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatDetail.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDetail.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatDetail.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDetail.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI/C,QAAA,MAAM,UAAU,whBAkCX,eAAe,iCA6LnB,CAAC;AAUF,eAAe,UAAU,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ChatDetailHeaderProps } from './types';
|
|
2
|
-
declare const ChatDetailHeader: import("react").MemoExoticComponent<({ title, subtitle, avatarUri, avatarFullName,
|
|
2
|
+
declare const ChatDetailHeader: import("react").MemoExoticComponent<({ title, subtitle, avatarUri, avatarFullName, peerType, applicationType, showAddMember, onBack, onPressSearch, onPressAddMember, onPressMenu, onPressAvatar, }: ChatDetailHeaderProps) => import("react").JSX.Element>;
|
|
3
3
|
export default ChatDetailHeader;
|
|
4
4
|
//# sourceMappingURL=ChatDetailHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatDetailHeader.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDetailHeader.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ChatDetailHeader.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDetailHeader.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,QAAA,MAAM,gBAAgB,uMAcjB,qBAAqB,iCA6GzB,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IUrlMetadata } from '../../types/common';
|
|
2
|
+
interface ChatLinkPreviewProps {
|
|
3
|
+
metadata?: IUrlMetadata;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
onDismiss?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ChatLinkPreview: import("react").MemoExoticComponent<({ metadata, isLoading, onDismiss }: ChatLinkPreviewProps) => import("react").JSX.Element>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ChatLinkPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatLinkPreview.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatLinkPreview.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAID,eAAO,MAAM,eAAe,2EACW,oBAAoB,iCAiC1D,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChatListProps } from './types';
|
|
2
|
-
export declare const ChatList: import("react").MemoExoticComponent<({ messages, currentUserId, renderChat, onLoadEarlier, isLoading, isLoadingEarlier, hasMoreEarlier, }: ChatListProps) => import("react
|
|
2
|
+
export declare const ChatList: import("react").MemoExoticComponent<({ messages, currentUserId, renderChat, onLoadEarlier, isLoading, isLoadingEarlier, hasMoreEarlier, }: ChatListProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=ChatList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatList.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatList.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatList.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAM7C,eAAO,MAAM,QAAQ,6IAWhB,aAAa,iCAsHjB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ChatListProps } from './types';
|
|
2
|
+
export declare const ChatListLegend: import("react").MemoExoticComponent<({ messages, currentUserId, renderChat, onLoadEarlier, isLoading, isLoadingEarlier, hasMoreEarlier, onLoadNewer, isLoadingNewer, hasMoreNewer, }: ChatListProps) => import("react").JSX.Element>;
|
|
3
|
+
//# sourceMappingURL=ChatListLegend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatListLegend.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatListLegend.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAM7C,eAAO,MAAM,cAAc,wLAYtB,aAAa,iCAsTjB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { LoadEarlierMessagesProps } from 'react-native-gifted-chat';
|
|
2
|
-
export declare const ChatLoadEarlier: import("react").MemoExoticComponent<({ isLoading }: LoadEarlierMessagesProps) => import("react
|
|
2
|
+
export declare const ChatLoadEarlier: import("react").MemoExoticComponent<({ isLoading }: LoadEarlierMessagesProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=ChatLoadEarlier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatLoadEarlier.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatLoadEarlier.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,eAAO,MAAM,eAAe,sDACF,wBAAwB,
|
|
1
|
+
{"version":3,"file":"ChatLoadEarlier.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatLoadEarlier.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,eAAO,MAAM,eAAe,sDACF,wBAAwB,iCAWjD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChatQuickActionsProps } from './types';
|
|
2
|
-
export declare const ChatQuickActions: import("react").MemoExoticComponent<({ actions, onActionPress, renderAction }: ChatQuickActionsProps) => import("react
|
|
2
|
+
export declare const ChatQuickActions: import("react").MemoExoticComponent<({ visible, actions, onActionPress, renderAction, renderQuickActions, }: ChatQuickActionsProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=ChatQuickActions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatQuickActions.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatQuickActions.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAoB,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAoDvE,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ChatQuickActions.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatQuickActions.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAoB,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAoDvE,eAAO,MAAM,gBAAgB,+GAOxB,qBAAqB,iCA+CzB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ChatScrollToBottom: import("react").MemoExoticComponent<() => import("react
|
|
1
|
+
export declare const ChatScrollToBottom: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
|
|
2
2
|
//# sourceMappingURL=ChatScrollToBottom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatScrollToBottom.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatScrollToBottom.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ChatScrollToBottom.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatScrollToBottom.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,wEAE7B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChatMessageBubbleProps } from './messages/types';
|
|
2
|
-
export declare const ChatTextBubble: import("react").MemoExoticComponent<({ message, position }: ChatMessageBubbleProps) => import("react
|
|
2
|
+
export declare const ChatTextBubble: import("react").MemoExoticComponent<({ message, position }: ChatMessageBubbleProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=ChatTextBubble.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatTextBubble.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatTextBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAgB/D,eAAO,MAAM,cAAc,8DACD,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ChatTextBubble.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatTextBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAgB/D,eAAO,MAAM,cAAc,8DACD,sBAAsB,iCAiC/C,CAAC"}
|