@droppii-org/chat-mobile 0.2.11 → 0.2.13
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 +2 -3
- package/lib/module/components/ThreadCard/AvatarSection.js.map +1 -1
- package/lib/module/components/flows/inputButtons/index.js +77 -0
- package/lib/module/components/flows/inputButtons/index.js.map +1 -0
- package/lib/module/components/messages/linkMessage/index.js +35 -7
- package/lib/module/components/messages/linkMessage/index.js.map +1 -1
- package/lib/module/config/api-endpoints.js +1 -0
- package/lib/module/config/api-endpoints.js.map +1 -1
- package/lib/module/context/ChatDetailContext.js +57 -0
- package/lib/module/context/ChatDetailContext.js.map +1 -0
- package/lib/module/hooks/flows/useCurrentConversationFlow.js +9 -0
- package/lib/module/hooks/flows/useCurrentConversationFlow.js.map +1 -0
- package/lib/module/hooks/flows/useFlow.js +57 -0
- package/lib/module/hooks/flows/useFlow.js.map +1 -0
- package/lib/module/hooks/message/useSendMessage.js +4 -2
- package/lib/module/hooks/message/useSendMessage.js.map +1 -1
- package/lib/module/hooks/query-keys.js +4 -1
- package/lib/module/hooks/query-keys.js.map +1 -1
- package/lib/module/hooks/useConversationList.js +1 -1
- package/lib/module/hooks/useConversationList.js.map +1 -1
- package/lib/module/hooks/useLinkPreview/useFetchUrlMetadata.js +6 -4
- package/lib/module/hooks/useLinkPreview/useFetchUrlMetadata.js.map +1 -1
- package/lib/module/hooks/useLinkPreview/useLinkPreview.js +2 -2
- package/lib/module/hooks/useLinkPreview/useLinkPreview.js.map +1 -1
- package/lib/module/screens/chat-detail/ChatComposer.js +41 -3
- package/lib/module/screens/chat-detail/ChatComposer.js.map +1 -1
- package/lib/module/screens/chat-detail/ChatDetail.js +65 -60
- package/lib/module/screens/chat-detail/ChatDetail.js.map +1 -1
- package/lib/module/screens/chat-detail/ChatListLegend.js +45 -10
- package/lib/module/screens/chat-detail/ChatListLegend.js.map +1 -1
- package/lib/module/screens/chat-detail/ChatQuickActions.js +12 -3
- package/lib/module/screens/chat-detail/ChatQuickActions.js.map +1 -1
- package/lib/module/screens/chat-detail/conversationHeader.utils.js +1 -1
- package/lib/module/screens/chat-detail/conversationHeader.utils.js.map +1 -1
- package/lib/module/screens/chat-detail/legend/LegendChatMessage.js +6 -1
- package/lib/module/screens/chat-detail/legend/LegendChatMessage.js.map +1 -1
- package/lib/module/screens/inbox/Inbox.js +1 -3
- package/lib/module/screens/inbox/Inbox.js.map +1 -1
- package/lib/module/screens/inbox/MessagesTab.js +2 -1
- package/lib/module/screens/inbox/MessagesTab.js.map +1 -1
- package/lib/module/services/endpoints.js +4 -1
- package/lib/module/services/endpoints.js.map +1 -1
- package/lib/module/translation/resources/i18n.js +3 -1
- package/lib/module/translation/resources/i18n.js.map +1 -1
- package/lib/module/types/chat.js.map +1 -1
- package/lib/module/types/flows.js +17 -0
- package/lib/module/types/flows.js.map +1 -0
- package/lib/module/utils/flows.js +11 -0
- package/lib/module/utils/flows.js.map +1 -0
- package/lib/module/utils/url.js +12 -1
- package/lib/module/utils/url.js.map +1 -1
- package/lib/typescript/src/components/ThreadCard/AvatarSection.d.ts +1 -1
- package/lib/typescript/src/components/ThreadCard/AvatarSection.d.ts.map +1 -1
- package/lib/typescript/src/components/flows/inputButtons/index.d.ts +9 -0
- package/lib/typescript/src/components/flows/inputButtons/index.d.ts.map +1 -0
- package/lib/typescript/src/components/messages/linkMessage/index.d.ts +2 -1
- package/lib/typescript/src/components/messages/linkMessage/index.d.ts.map +1 -1
- package/lib/typescript/src/config/api-endpoints.d.ts +1 -0
- package/lib/typescript/src/config/api-endpoints.d.ts.map +1 -1
- package/lib/typescript/src/context/ChatDetailContext.d.ts +5 -0
- package/lib/typescript/src/context/ChatDetailContext.d.ts.map +1 -0
- package/lib/typescript/src/hooks/flows/useCurrentConversationFlow.d.ts +3 -0
- package/lib/typescript/src/hooks/flows/useCurrentConversationFlow.d.ts.map +1 -0
- package/lib/typescript/src/hooks/flows/useFlow.d.ts +4 -0
- package/lib/typescript/src/hooks/flows/useFlow.d.ts.map +1 -0
- package/lib/typescript/src/hooks/message/useSendMessage.d.ts +3 -1
- package/lib/typescript/src/hooks/message/useSendMessage.d.ts.map +1 -1
- package/lib/typescript/src/hooks/query-keys.d.ts +3 -0
- package/lib/typescript/src/hooks/query-keys.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useConversationList.d.ts +2 -2
- package/lib/typescript/src/hooks/useConversationList.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useLinkPreview/useFetchUrlMetadata.d.ts +6 -2
- package/lib/typescript/src/hooks/useLinkPreview/useFetchUrlMetadata.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useLinkPreview/useLinkPreview.d.ts +6 -1
- package/lib/typescript/src/hooks/useLinkPreview/useLinkPreview.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.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/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/ChatListLegend.d.ts +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatListLegend.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatQuickActions.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/conversationHeader.utils.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatMessage.d.ts +2 -1
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatMessage.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/types.d.ts +5 -10
- package/lib/typescript/src/screens/chat-detail/types.d.ts.map +1 -1
- package/lib/typescript/src/screens/inbox/Inbox.d.ts +1 -2
- package/lib/typescript/src/screens/inbox/Inbox.d.ts.map +1 -1
- package/lib/typescript/src/screens/inbox/MessagesTab.d.ts +1 -2
- package/lib/typescript/src/screens/inbox/MessagesTab.d.ts.map +1 -1
- package/lib/typescript/src/services/endpoints.d.ts +3 -0
- package/lib/typescript/src/services/endpoints.d.ts.map +1 -1
- package/lib/typescript/src/translation/resources/i18n.d.ts.map +1 -1
- package/lib/typescript/src/types/chat.d.ts +11 -1
- package/lib/typescript/src/types/chat.d.ts.map +1 -1
- package/lib/typescript/src/types/flows.d.ts +82 -0
- package/lib/typescript/src/types/flows.d.ts.map +1 -0
- package/lib/typescript/src/utils/flows.d.ts +4 -0
- package/lib/typescript/src/utils/flows.d.ts.map +1 -0
- package/lib/typescript/src/utils/url.d.ts.map +1 -1
- package/package.json +6 -4
- package/src/components/ThreadCard/AvatarSection.tsx +2 -2
- package/src/components/flows/inputButtons/index.tsx +105 -0
- package/src/components/messages/linkMessage/index.tsx +48 -8
- package/src/config/api-endpoints.ts +2 -0
- package/src/context/ChatDetailContext.tsx +85 -0
- package/src/hooks/flows/useCurrentConversationFlow.ts +11 -0
- package/src/hooks/flows/useFlow.ts +63 -0
- package/src/hooks/message/useSendMessage.ts +4 -0
- package/src/hooks/query-keys.ts +6 -0
- package/src/hooks/useConversationList.ts +15 -7
- package/src/hooks/useLinkPreview/useFetchUrlMetadata.ts +7 -3
- package/src/hooks/useLinkPreview/useLinkPreview.ts +2 -2
- package/src/index.tsx +1 -0
- package/src/screens/chat-detail/ChatComposer.tsx +41 -2
- package/src/screens/chat-detail/ChatDetail.tsx +81 -74
- package/src/screens/chat-detail/ChatListLegend.tsx +57 -3
- package/src/screens/chat-detail/ChatQuickActions.tsx +10 -3
- package/src/screens/chat-detail/conversationHeader.utils.ts +1 -4
- package/src/screens/chat-detail/legend/LegendChatMessage.tsx +7 -0
- package/src/screens/chat-detail/types.ts +9 -10
- package/src/screens/inbox/Inbox.tsx +3 -15
- package/src/screens/inbox/MessagesTab.tsx +48 -49
- package/src/services/endpoints.ts +6 -0
- package/src/translation/resources/i18n.ts +2 -0
- package/src/types/chat.ts +16 -1
- package/src/types/flows.ts +102 -0
- package/src/utils/flows.ts +18 -0
- package/src/utils/url.ts +30 -1
|
@@ -18,7 +18,7 @@ export const getConversationSubtitle = conversation => {
|
|
|
18
18
|
const unreadLabel = (conversation.unreadCount ?? 0) > 0 ? `${conversation.unreadCount} tin nhắn mới` : 'Không có tin mới';
|
|
19
19
|
return `20 thành viên • ${unreadLabel}`;
|
|
20
20
|
}
|
|
21
|
-
if (conversation.peerType === PeerType.Customer
|
|
21
|
+
if (conversation.peerType === PeerType.Customer) {
|
|
22
22
|
return '338,5K Đã bán • 4,2K Theo dõi';
|
|
23
23
|
}
|
|
24
24
|
return 'Nhấn để xem thông tin';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PeerType","getConversationTitle","conversation","showName","getConversationAvatarUri","faceURL","getConversationSubtitle","undefined","peerType","Group","unreadLabel","unreadCount","Customer","
|
|
1
|
+
{"version":3,"names":["PeerType","getConversationTitle","conversation","showName","getConversationAvatarUri","faceURL","getConversationSubtitle","undefined","peerType","Group","unreadLabel","unreadCount","Customer","shouldShowAddMember"],"sourceRoot":"../../../../src","sources":["screens/chat-detail/conversationHeader.utils.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,+BAA+B;AAGxD,OAAO,MAAMC,oBAAoB,GAC/BC,YAAgC,IACrB;EACX,IAAI,CAACA,YAAY,EAAE;IACjB,OAAO,UAAU;EACnB;EAEA,OAAOA,YAAY,CAACC,QAAQ,IAAI,UAAU;AAC5C,CAAC;AAED,OAAO,MAAMC,wBAAwB,GACnCF,YAAgC,IACd;EAClB,OAAOA,YAAY,EAAEG,OAAO,IAAI,IAAI;AACtC,CAAC;AAED,OAAO,MAAMC,uBAAuB,GAClCJ,YAAgC,IACT;EACvB,IAAI,CAACA,YAAY,EAAE;IACjB,OAAOK,SAAS;EAClB;EAEA,IAAIL,YAAY,CAACM,QAAQ,KAAKR,QAAQ,CAACS,KAAK,EAAE;IAC5C,MAAMC,WAAW,GACf,CAACR,YAAY,CAACS,WAAW,IAAI,CAAC,IAAI,CAAC,GAC/B,GAAGT,YAAY,CAACS,WAAW,eAAe,GAC1C,kBAAkB;IACxB,OAAO,mBAAmBD,WAAW,EAAE;EACzC;EAEA,IAAIR,YAAY,CAACM,QAAQ,KAAKR,QAAQ,CAACY,QAAQ,EAAE;IAC/C,OAAO,+BAA+B;EACxC;EAEA,OAAO,uBAAuB;AAChC,CAAC;AAED,OAAO,MAAMC,mBAAmB,GAC9BX,YAAgC,IACpB;EACZ,OAAOA,YAAY,EAAEM,QAAQ,KAAKR,QAAQ,CAACS,KAAK;AAClD,CAAC","ignoreList":[]}
|
|
@@ -31,13 +31,15 @@ export const LegendChatMessage = /*#__PURE__*/memo(({
|
|
|
31
31
|
message,
|
|
32
32
|
isOutgoing,
|
|
33
33
|
createdAtTime,
|
|
34
|
-
onMediaPress
|
|
34
|
+
onMediaPress,
|
|
35
|
+
onPressUrl
|
|
35
36
|
}) => {
|
|
36
37
|
const MessageComponent = messageComponentMap[message?.contentType] ?? TextMessage;
|
|
37
38
|
|
|
38
39
|
// Only pass onMediaPress to components that use it
|
|
39
40
|
const mediaTypes = [MessageType.PictureMessage, MessageType.VideoMessage, MERGED_MESSAGE_TYPE];
|
|
40
41
|
const hasMediaPress = mediaTypes.includes(message?.contentType) && onMediaPress;
|
|
42
|
+
const hasUrlPress = onPressUrl && message?.contentType === MessageType.UrlTextMessage;
|
|
41
43
|
const props = {
|
|
42
44
|
message,
|
|
43
45
|
isOutgoing,
|
|
@@ -46,6 +48,9 @@ export const LegendChatMessage = /*#__PURE__*/memo(({
|
|
|
46
48
|
if (hasMediaPress) {
|
|
47
49
|
props.onMediaPress = onMediaPress;
|
|
48
50
|
}
|
|
51
|
+
if (hasUrlPress) {
|
|
52
|
+
props.onPressUrl = onPressUrl;
|
|
53
|
+
}
|
|
49
54
|
return /*#__PURE__*/_jsx(MessageComponent, {
|
|
50
55
|
...props
|
|
51
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","MessageType","TextMessage","ImageMessage","VideoMessage","FileMessage","LinkMessage","MergedMessage","jsx","_jsx","MERGED_MESSAGE_TYPE","messageComponentMap","AtTextMessage","QuoteMessage","UrlTextMessage","PictureMessage","LegendChatMessage","message","isOutgoing","createdAtTime","onMediaPress","MessageComponent","contentType","mediaTypes","hasMediaPress","includes","props","displayName"],"sourceRoot":"../../../../../src","sources":["screens/chat-detail/legend/LegendChatMessage.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,WAAW,QAAQ,+BAA+B;AAG3D,SAASC,WAAW,QAAQ,mDAA0C;AACtE,SAASC,YAAY,QAAQ,oDAA2C;AACxE,SAASC,YAAY,QAAQ,oDAA2C;AACxE,SAASC,WAAW,QAAQ,mDAA0C;AACtE,SAASC,WAAW,QAAQ,mDAA0C;AACtE,SAASC,aAAa,QAAQ,qDAA4C;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["memo","MessageType","TextMessage","ImageMessage","VideoMessage","FileMessage","LinkMessage","MergedMessage","jsx","_jsx","MERGED_MESSAGE_TYPE","messageComponentMap","AtTextMessage","QuoteMessage","UrlTextMessage","PictureMessage","LegendChatMessage","message","isOutgoing","createdAtTime","onMediaPress","onPressUrl","MessageComponent","contentType","mediaTypes","hasMediaPress","includes","hasUrlPress","props","displayName"],"sourceRoot":"../../../../../src","sources":["screens/chat-detail/legend/LegendChatMessage.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,WAAW,QAAQ,+BAA+B;AAG3D,SAASC,WAAW,QAAQ,mDAA0C;AACtE,SAASC,YAAY,QAAQ,oDAA2C;AACxE,SAASC,YAAY,QAAQ,oDAA2C;AACxE,SAASC,WAAW,QAAQ,mDAA0C;AACtE,SAASC,WAAW,QAAQ,mDAA0C;AACtE,SAASC,aAAa,QAAQ,qD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GAAKM;EAAK,CAAG,CAAC;AACxC,CACF,CAAC;AAEDZ,iBAAiB,CAACa,WAAW,GAAG,mBAAmB","ignoreList":[]}
|
|
@@ -7,7 +7,6 @@ import { KContainer, KImage, KLabel, KColors } from '@droppii/libs';
|
|
|
7
7
|
import { MessagesTab } from "./MessagesTab.js";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
const Inbox = /*#__PURE__*/memo(({
|
|
10
|
-
applicationType,
|
|
11
10
|
onPressThread,
|
|
12
11
|
onPressSearch,
|
|
13
12
|
onPressEdit,
|
|
@@ -23,12 +22,11 @@ const Inbox = /*#__PURE__*/memo(({
|
|
|
23
22
|
}) => {
|
|
24
23
|
if (route.key === 'messages') {
|
|
25
24
|
return /*#__PURE__*/_jsx(MessagesTab, {
|
|
26
|
-
applicationType: applicationType,
|
|
27
25
|
onPressThread: onPressThread
|
|
28
26
|
});
|
|
29
27
|
}
|
|
30
28
|
return null;
|
|
31
|
-
}, [
|
|
29
|
+
}, [onPressThread]);
|
|
32
30
|
const renderTabBar = useCallback(props => /*#__PURE__*/_jsxs(KContainer.View, {
|
|
33
31
|
row: true,
|
|
34
32
|
alignItems: "center",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useCallback","useState","StyleSheet","TabView","KContainer","KImage","KLabel","KColors","MessagesTab","jsx","_jsx","jsxs","_jsxs","Inbox","
|
|
1
|
+
{"version":3,"names":["memo","useCallback","useState","StyleSheet","TabView","KContainer","KImage","KLabel","KColors","MessagesTab","jsx","_jsx","jsxs","_jsxs","Inbox","onPressThread","onPressSearch","onPressEdit","onPressGroup","index","setIndex","routes","key","title","renderScene","route","renderTabBar","props","View","row","alignItems","style","styles","tabBar","children","flex","navigationState","map","i","isActive","Touchable","onPress","paddingV","marginR","tabItem","activeOpacity","Text","typo","color","palette","primary","w400","gray","w500","activeIndicator","actionGroup","padding","VectorIcons","name","provider","size","Page","edges","onIndexChange","swipeEnabled","length","displayName","create","borderBottomWidth","borderBottomColor","w100","paddingHorizontal","position","paddingTop","paddingBottom","bottom","left","right","height","borderRadius","backgroundColor","gap"],"sourceRoot":"../../../../src","sources":["screens/inbox/Inbox.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,OAAO,QAAQ,uBAAuB;AAC/C,SAASC,UAAU,EAAEC,MAAM,EAAEC,MAAM,EAAEC,OAAO,QAAQ,eAAe;AACnE,SAASC,WAAW,QAAQ,kBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAW5C,MAAMC,KAAK,gBAAGd,IAAI,CAChB,CAAC;EAAEe,aAAa;EAAEC,aAAa;EAAEC,WAAW;EAAEC;AAAyB,CAAC,KAAK;EAC3E,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGlB,QAAQ,CAAC,CAAC,CAAC;EACrC,MAAM,CAACmB,MAAM,CAAC,GAAGnB,QAAQ,CAAa,CACpC;IAAEoB,GAAG,EAAE,UAAU;IAAEC,KAAK,EAAE;EAAW,CAAC,CACvC,CAAC;EAEF,MAAMC,WAAW,GAAGvB,WAAW,CAC7B,CAAC;IAAEwB;EAA2B,CAAC,KAAK;IAClC,IAAIA,KAAK,CAACH,GAAG,KAAK,UAAU,EAAE;MAC5B,oBAAOX,IAAA,CAACF,WAAW;QAACM,aAAa,EAAEA;MAAc,CAAE,CAAC;IACtD;IACA,OAAO,IAAI;EACb,CAAC,EACD,CAACA,aAAa,CAChB,CAAC;EAED,MAAMW,YAAY,GAAGzB,WAAW,CAC7B0B,KAAiE,iBAChEd,KAAA,CAACR,UAAU,CAACuB,IAAI;IAACC,GAAG;IAACC,UAAU,EAAC,QAAQ;IAACC,KAAK,EAAEC,MAAM,CAACC,MAAO;IAAAC,QAAA,gBAE5DvB,IAAA,CAACN,UAAU,CAACuB,I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AE,CACjC;EAAC,CACa,CAAC;AAEtB,CACF,CAAC;AAEDnD,KAAK,CAACoD,WAAW,GAAG,OAAO;AAE3B,eAAepD,KAAK;AAEpB,MAAMkB,MAAM,GAAG7B,UAAU,CAACgE,MAAM,CAAC;EAC/BlC,MAAM,EAAE;IACNmC,iBAAiB,EAAE,GAAG;IACtBC,iBAAiB,EAAE7D,OAAO,CAACyC,OAAO,CAACG,IAAI,CAACkB,IAAI;IAC5CC,iBAAiB,EAAE;EACrB,CAAC;EACD3B,OAAO,EAAE;IACP4B,QAAQ,EAAE,UAAU;IACpBC,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE;EACjB,CAAC;EACDpB,eAAe,EAAE;IACfkB,QAAQ,EAAE,UAAU;IACpBG,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE,CAAC;IACfC,eAAe,EAAExE,OAAO,CAACyC,OAAO,CAACC,OAAO,CAACC;EAC3C,CAAC;EACDI,WAAW,EAAE;IACX0B,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -6,6 +6,7 @@ import { KContainer, KDivider, KLabel, KColors } from '@droppii/libs';
|
|
|
6
6
|
import { useConversationList } from "../../hooks/useConversationList.js";
|
|
7
7
|
import { ThreadCard } from "../../components/ThreadCard/index.js";
|
|
8
8
|
import { useConversationStore } from "../../store/index.js";
|
|
9
|
+
import { useChatContext } from "../../context/index.js";
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
const Separator = () => /*#__PURE__*/_jsx(KDivider, {
|
|
11
12
|
type: "line",
|
|
@@ -13,10 +14,10 @@ const Separator = () => /*#__PURE__*/_jsx(KDivider, {
|
|
|
13
14
|
});
|
|
14
15
|
const keyExtractor = item => item;
|
|
15
16
|
export const MessagesTab = /*#__PURE__*/memo(({
|
|
16
|
-
applicationType,
|
|
17
17
|
onPressThread
|
|
18
18
|
}) => {
|
|
19
19
|
const data = useConversationStore(state => state.list);
|
|
20
|
+
const applicationType = useChatContext().applicationType;
|
|
20
21
|
const {
|
|
21
22
|
isLoading,
|
|
22
23
|
refetch,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useCallback","ActivityIndicator","KContainer","KDivider","KLabel","KColors","useConversationList","ThreadCard","useConversationStore","jsx","_jsx","Separator","type","size","keyExtractor","item","MessagesTab","
|
|
1
|
+
{"version":3,"names":["memo","useCallback","ActivityIndicator","KContainer","KDivider","KLabel","KColors","useConversationList","ThreadCard","useConversationStore","useChatContext","jsx","_jsx","Separator","type","size","keyExtractor","item","MessagesTab","onPressThread","data","state","list","applicationType","isLoading","refetch","isRefetching","page","handleThreadPress","params","renderItem","onPress","LoadingComponent","View","center","flex","paddingV","children","color","palette","primary","w400","EmptyComponent","Text","typo","gray","length","FlatList","ItemSeparatorComponent","ListEmptyComponent","refreshing","onRefresh","showsVerticalScrollIndicator","displayName"],"sourceRoot":"../../../../src","sources":["screens/inbox/MessagesTab.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,WAAW,QAAQ,OAAO;AACzC,SAAqCC,iBAAiB,QAAQ,cAAc;AAC5E,SAASC,UAAU,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,OAAO,QAAQ,eAAe;AACrE,SAASC,mBAAmB,QAAQ,oCAAiC;AACrE,SAASC,UAAU,QAAQ,sCAA6B;AACxD,SAASC,oBAAoB,QAAQ,sBAAa;AAClD,SAASC,cAAc,QAAQ,wBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAM/C,MAAMC,SAAS,GAAGA,CAAA,kBAAMD,IAAA,CAACR,QAAQ;EAACU,IAAI,EAAC,MAAM;EAACC,IAAI,EAAC;AAAU,CAAE,CAAC;AAChE,MAAMC,YAAY,GAAIC,IAAY,IAAKA,IAAI;AAE3C,OAAO,MAAMC,WAAW,gBAAGlB,IAAI,CAAC,CAAC;EAAEm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Ib,SAAS,IAAIJ,IAAI,CAAC0B,MAAM,KAAK,CAAC,EAAE;IAClC,OAAOd,gBAAgB;EACzB;EAEA,oBACEpB,IAAA,CAACT,UAAU,CAAC4C,QAAQ;IAClB3B,IAAI,EAAEA,IAAK;IACXU,UAAU,EAAEA,UAAW;IACvBd,YAAY,EAAEA,YAAa;IAC3BgC,sBAAsB,EAAEnC,SAAU;IAClCoC,kBAAkB,EAAEP,cAAe;IACnCQ,UAAU,EAAExB,YAAa;IACzByB,SAAS,EAAE1B,OAAQ;IACnB2B,4BAA4B,EAAE;EAAM,CACrC,CAAC;AAEN,CAAC,CAAC;AAEFlC,WAAW,CAACmC,WAAW,GAAG,aAAa","ignoreList":[]}
|
|
@@ -13,7 +13,10 @@ export const ENDPOINTS = {
|
|
|
13
13
|
chatService: {
|
|
14
14
|
get urlMetadata() {
|
|
15
15
|
return getApiEndpoint('urlMetadata');
|
|
16
|
-
}
|
|
16
|
+
},
|
|
17
|
+
conversationFlow: id => `${getApiEndpoint('conversationFlow')}/${id}`,
|
|
18
|
+
resetConversationFlow: id => `${getApiEndpoint('conversationFlow')}/${id}/bot-flows/reset`,
|
|
19
|
+
runConversationFlow: id => `${getApiEndpoint('conversationFlow')}/${id}/bot-flows/run`
|
|
17
20
|
},
|
|
18
21
|
uploaderService: {
|
|
19
22
|
get uploadImage() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getApiEndpoint","setApiEndpoint","getAllApiEndpoints","ENDPOINTS","chatService","urlMetadata","uploaderService","uploadImage"],"sourceRoot":"../../../src","sources":["services/endpoints.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,SACEA,cAAc,EACdC,cAAc,EACdC,kBAAkB,QACb,4BAAyB;;AAEhC;AACA,OAAO,MAAMC,SAAS,GAAG;EACvBC,WAAW,EAAE;IACX,IAAIC,WAAWA,CAAA,EAAG;MAChB,OAAOL,cAAc,CAAC,aAAa,CAAC;IACtC;
|
|
1
|
+
{"version":3,"names":["getApiEndpoint","setApiEndpoint","getAllApiEndpoints","ENDPOINTS","chatService","urlMetadata","conversationFlow","id","resetConversationFlow","runConversationFlow","uploaderService","uploadImage"],"sourceRoot":"../../../src","sources":["services/endpoints.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,SACEA,cAAc,EACdC,cAAc,EACdC,kBAAkB,QACb,4BAAyB;;AAEhC;AACA,OAAO,MAAMC,SAAS,GAAG;EACvBC,WAAW,EAAE;IACX,IAAIC,WAAWA,CAAA,EAAG;MAChB,OAAOL,cAAc,CAAC,aAAa,CAAC;IACtC,CAAC;IACDM,gBAAgB,EAAGC,EAAU,IAC3B,GAAGP,cAAc,CAAC,kBAAkB,CAAC,IAAIO,EAAE,EAAE;IAC/CC,qBAAqB,EAAGD,EAAU,IAChC,GAAGP,cAAc,CAAC,kBAAkB,CAAC,IAAIO,EAAE,kBAAkB;IAC/DE,mBAAmB,EAAGF,EAAU,IAC9B,GAAGP,cAAc,CAAC,kBAAkB,CAAC,IAAIO,EAAE;EAC/C,CAAC;EACDG,eAAe,EAAE;IACf,IAAIC,WAAWA,CAAA,EAAG;MAChB,OAAOX,cAAc,CAAC,aAAa,CAAC;IACtC;EACF;AACF,CAAC;;AAED;AACA,SAASA,cAAc,EAAEC,cAAc,EAAEC,kBAAkB","ignoreList":[]}
|
|
@@ -22,7 +22,9 @@ const i18nKey = {
|
|
|
22
22
|
'msg_type_video': '[Video]',
|
|
23
23
|
'msg_type_file': '[File đính kèm]',
|
|
24
24
|
'msg_type_link': '[Liên kết]',
|
|
25
|
-
'msg_type_revoke': 'Đã thu hồi tin nhắn'
|
|
25
|
+
'msg_type_revoke': 'Đã thu hồi tin nhắn',
|
|
26
|
+
'start': 'Bắt đầu',
|
|
27
|
+
'restart': 'Bắt đầu lại'
|
|
26
28
|
};
|
|
27
29
|
export default {
|
|
28
30
|
vi: i18nKey
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["i18nKey","vi"],"sourceRoot":"../../../../src","sources":["translation/resources/i18n.ts"],"mappings":";;AAAA,MAAMA,OAA+B,GAAG;EACtC,0BAA0B,EAAE,gBAAgB;EAC5C,2BAA2B,EAAE,YAAY;EACzC,oBAAoB,EAAE,eAAe;EACrC,sBAAsB,EAAE,yBAAyB;EACjD,iBAAiB,EAAE,YAAY;EAC/B,0BAA0B,EAAE,aAAa;EACzC,6BAA6B,EAAE,kCAAkC;EACjE,eAAe,EAAE,SAAS;EAC1B,gBAAgB,EAAE,YAAY;EAC9B,iBAAiB,EAAE,SAAS;EAC5B,WAAW,EAAE,KAAK;EAClB,YAAY,EAAE,SAAS;EACvB,2BAA2B,EAAE,6BAA6B;EAC1D,mBAAmB,EAAE,kBAAkB;EACvC,yBAAyB,EAAE,kBAAkB;EAC7C,qBAAqB,EAAE,0BAA0B;EACjD,gBAAgB,EAAE,YAAY;EAC9B,gBAAgB,EAAE,kBAAkB;EACpC,gBAAgB,EAAE,SAAS;EAC3B,eAAe,EAAE,iBAAiB;EAClC,eAAe,EAAE,YAAY;EAC7B,iBAAiB,EAAE;
|
|
1
|
+
{"version":3,"names":["i18nKey","vi"],"sourceRoot":"../../../../src","sources":["translation/resources/i18n.ts"],"mappings":";;AAAA,MAAMA,OAA+B,GAAG;EACtC,0BAA0B,EAAE,gBAAgB;EAC5C,2BAA2B,EAAE,YAAY;EACzC,oBAAoB,EAAE,eAAe;EACrC,sBAAsB,EAAE,yBAAyB;EACjD,iBAAiB,EAAE,YAAY;EAC/B,0BAA0B,EAAE,aAAa;EACzC,6BAA6B,EAAE,kCAAkC;EACjE,eAAe,EAAE,SAAS;EAC1B,gBAAgB,EAAE,YAAY;EAC9B,iBAAiB,EAAE,SAAS;EAC5B,WAAW,EAAE,KAAK;EAClB,YAAY,EAAE,SAAS;EACvB,2BAA2B,EAAE,6BAA6B;EAC1D,mBAAmB,EAAE,kBAAkB;EACvC,yBAAyB,EAAE,kBAAkB;EAC7C,qBAAqB,EAAE,0BAA0B;EACjD,gBAAgB,EAAE,YAAY;EAC9B,gBAAgB,EAAE,kBAAkB;EACpC,gBAAgB,EAAE,SAAS;EAC3B,eAAe,EAAE,iBAAiB;EAClC,eAAe,EAAE,YAAY;EAC7B,iBAAiB,EAAE,qBAAqB;EACxC,OAAO,EAAE,SAAS;EAClB,SAAS,EAAE;AACb,CAAC;AAED,eAAe;EACbC,EAAE,EAAED;AACN,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EventProvider","ga","appsflyer","netcore","DChatApplicationType","DChatCategory","DMemberRole"],"sourceRoot":"../../../src","sources":["types/chat.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["EventProvider","ga","appsflyer","netcore","DChatApplicationType","DChatCategory","DMemberRole"],"sourceRoot":"../../../src","sources":["types/chat.ts"],"mappings":";;AAaA,OAAO,MAAMA,aAAa,GAAG;EAC3BC,EAAE,EAAE,IAAI;EACRC,SAAS,EAAE,WAAW;EACtBC,OAAO,EAAE;AACX,CAAU;AAkBV,WAAYC,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA;AAKhC,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAQzB,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/** START NODE TYPE */
|
|
4
|
+
export const NodeTypes = {
|
|
5
|
+
BubbleText: 'bubble-text',
|
|
6
|
+
BubbleImage: 'bubble-image',
|
|
7
|
+
InputText: 'input-text',
|
|
8
|
+
InputButtons: 'input-buttons',
|
|
9
|
+
LogicCsTeam: 'logic-cs-team'
|
|
10
|
+
};
|
|
11
|
+
export const ReactFlowsNodeTypes = {
|
|
12
|
+
Group: 'group',
|
|
13
|
+
Start: 'start'
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** END NODE TYPE */
|
|
17
|
+
//# sourceMappingURL=flows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NodeTypes","BubbleText","BubbleImage","InputText","InputButtons","LogicCsTeam","ReactFlowsNodeTypes","Group","Start"],"sourceRoot":"../../../src","sources":["types/flows.ts"],"mappings":";;AAGA;AACA,OAAO,MAAMA,SAAS,GAAG;EACvBC,UAAU,EAAE,aAAa;EACzBC,WAAW,EAAE,cAAc;EAC3BC,SAAS,EAAE,YAAY;EACvBC,YAAY,EAAE,eAAe;EAC7BC,WAAW,EAAE;AACf,CAAU;AAIV,OAAO,MAAMC,mBAAmB,GAAG;EACjCC,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE;AACT,CAAU;;AA0DV","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { NodeTypes } from "../types/flows.js";
|
|
4
|
+
export const getFlowInputButtonsNode = step => {
|
|
5
|
+
if (!step) return null;
|
|
6
|
+
const childrenNode = step?.data?.children || [];
|
|
7
|
+
const inputButtonsNode = childrenNode?.find(f => f.type === NodeTypes.InputButtons);
|
|
8
|
+
return inputButtonsNode;
|
|
9
|
+
};
|
|
10
|
+
export const DEFAULT_BUTTON_ID = 'default-item-button';
|
|
11
|
+
//# sourceMappingURL=flows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NodeTypes","getFlowInputButtonsNode","step","childrenNode","data","children","inputButtonsNode","find","f","type","InputButtons","DEFAULT_BUTTON_ID"],"sourceRoot":"../../../src","sources":["utils/flows.ts"],"mappings":";;AAAA,SACEA,SAAS,QAGJ,mBAAgB;AAEvB,OAAO,MAAMC,uBAAuB,GAClCC,IAAmC,IAChC;EACH,IAAI,CAACA,IAAI,EAAE,OAAO,IAAI;EACtB,MAAMC,YAAY,GAAGD,IAAI,EAAEE,IAAI,EAAEC,QAAQ,IAAI,EAAE;EAC/C,MAAMC,gBAAgB,GAAGH,YAAY,EAAEI,IAAI,CACxCC,CAAC,IAAKA,CAAC,CAACC,IAAI,KAAKT,SAAS,CAACU,YAC9B,CAAgC;EAChC,OAAOJ,gBAAgB;AACzB,CAAC;AAED,OAAO,MAAMK,iBAAiB,GAAG,qBAAqB","ignoreList":[]}
|
package/lib/module/utils/url.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// Generic TLDs
|
|
4
|
+
const GENERIC_TLDS = 'com|net|org|edu|gov|mil|int|biz|info|name|pro|mobi|travel|jobs|museum|coop|aero';
|
|
5
|
+
|
|
6
|
+
// New gTLDs (popular tech/startup)
|
|
7
|
+
const NEW_TLDS = 'io|app|dev|ai|co|me|tv|cc|gg|ly|fm|im|link|click|page|live|site|web|xyz|' + 'tech|digital|online|store|shop|cloud|media|news|blog|studio|agency|' + 'design|finance|health|legal|academy|solutions|ventures|capital|group';
|
|
8
|
+
|
|
9
|
+
// Country codes (Vietnam + Southeast Asia + popular worldwide)
|
|
10
|
+
const CC_TLDS = 'vn|jp|kr|cn|sg|th|ph|id|my|tw|hk|' + 'uk|us|ca|au|de|fr|it|es|nl|ru|br|in|' + 'ac|ad|ae|am|at|az|ba|be|bg|bh|bn|by|bz|' + 'ch|cl|cz|dk|dz|ec|ee|eg|es|eu|fi|ga|ge|' + 'gr|gt|hr|hu|ie|il|iq|ir|is|jo|ke|kh|kw|' + 'kz|la|lb|li|lk|lt|lu|lv|ma|mc|md|mk|mm|' + 'mn|mo|mt|mx|mz|na|ng|no|np|nz|om|pa|pe|' + 'pk|pl|pt|qa|ro|rs|sa|se|sk|sl|sr|sv|sy|' + 'tn|to|tr|tt|ua|ug|uy|uz|va|vc|ve|vu|ws|za|zm|zw';
|
|
11
|
+
const TLD_LIST = `${GENERIC_TLDS}|${NEW_TLDS}|${CC_TLDS}`;
|
|
12
|
+
|
|
13
|
+
// Matches: https://... | http://... | www.... | bare domain with known TLD (t.me, droppii.com)
|
|
14
|
+
const URL_REGEX = new RegExp(`\\b(?:https?:\\/\\/|www\\.)[^\\s<>"']*[^\\s<>"',.!?()[\\]{}]` + `|\\b[a-zA-Z0-9][\\w-]*(?:\\.[a-zA-Z0-9][\\w-]*)*\\.(?:${TLD_LIST})(?:[/?#][^\\s<>"']*[^\\s<>"',.!?()[\\]{}])?(?=\\s|$|[,!?()\\[\\]{}"'])`, 'g');
|
|
4
15
|
export function extractUrls(text) {
|
|
5
16
|
return text.match(URL_REGEX) ?? [];
|
|
6
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["URL_REGEX","extractUrls","text","match"],"sourceRoot":"../../../src","sources":["utils/url.ts"],"mappings":";;AAAA,MAAMA,SAAS,GAAG,
|
|
1
|
+
{"version":3,"names":["GENERIC_TLDS","NEW_TLDS","CC_TLDS","TLD_LIST","URL_REGEX","RegExp","extractUrls","text","match"],"sourceRoot":"../../../src","sources":["utils/url.ts"],"mappings":";;AAAA;AACA,MAAMA,YAAY,GAChB,iFAAiF;;AAEnF;AACA,MAAMC,QAAQ,GACZ,0EAA0E,GAC1E,qEAAqE,GACrE,sEAAsE;;AAExE;AACA,MAAMC,OAAO,GACX,mCAAmC,GACnC,sCAAsC,GACtC,yCAAyC,GACzC,yCAAyC,GACzC,yCAAyC,GACzC,yCAAyC,GACzC,yCAAyC,GACzC,yCAAyC,GACzC,iDAAiD;AAEnD,MAAMC,QAAQ,GAAG,GAAGH,YAAY,IAAIC,QAAQ,IAAIC,OAAO,EAAE;;AAEzD;AACA,MAAME,SAAS,GAAG,IAAIC,MAAM,CAC1B,8DAA8D,GAC5D,yDAAyDF,QAAQ,yEAAyE,EAC5I,GACF,CAAC;AAED,OAAO,SAASG,WAAWA,CAACC,IAAY,EAAY;EAClD,OAAOA,IAAI,CAACC,KAAK,CAACJ,SAAS,CAAC,IAAI,EAAE;AACpC","ignoreList":[]}
|
|
@@ -3,6 +3,6 @@ interface AvatarSectionProps extends Partial<Pick<DConversationItem, 'peerType'
|
|
|
3
3
|
avatar: string | null;
|
|
4
4
|
fullName: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const AvatarSection: import("react").MemoExoticComponent<({ avatar, fullName, peerType
|
|
6
|
+
export declare const AvatarSection: import("react").MemoExoticComponent<({ avatar, fullName, peerType }: 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":"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,
|
|
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,uEACS,kBAAkB,iCAuBpD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GroupChild, IRunConversationFlowPayload } from '../../../types/flows';
|
|
2
|
+
interface IInputButtonFlow {
|
|
3
|
+
nodeData: GroupChild<'input-buttons'> | null;
|
|
4
|
+
onResetFlow: () => void;
|
|
5
|
+
onRunFlow: (payload: IRunConversationFlowPayload) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const InputButtonFlow: import("react").MemoExoticComponent<(props: IInputButtonFlow) => import("react").JSX.Element>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/flows/inputButtons/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,UAAU,EAEV,2BAA2B,EAC5B,MAAM,sBAAsB,CAAC;AAI9B,UAAU,gBAAgB;IACxB,QAAQ,EAAE,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;IAC7C,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,eAAe,8CAAgB,gBAAgB,iCAsD1D,CAAC"}
|
|
@@ -3,7 +3,8 @@ interface BaseLegendMessageProps {
|
|
|
3
3
|
message: DMessageItem;
|
|
4
4
|
isOutgoing: boolean;
|
|
5
5
|
createdAtTime: number;
|
|
6
|
+
onPressUrl?: (url: string) => void;
|
|
6
7
|
}
|
|
7
|
-
export declare const LinkMessage: import("react").MemoExoticComponent<({ message, isOutgoing, createdAtTime }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
8
|
+
export declare const LinkMessage: import("react").MemoExoticComponent<({ message, isOutgoing, createdAtTime, onPressUrl, }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
8
9
|
export {};
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/linkMessage/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKxD,UAAU,sBAAsB;IAC9B,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/linkMessage/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKxD,UAAU,sBAAsB;IAC9B,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AA2DD,eAAO,MAAM,WAAW,4FAMnB,sBAAsB,iCA+E1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-endpoints.d.ts","sourceRoot":"","sources":["../../../../src/config/api-endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,YAAY;IAE3B,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"api-endpoints.d.ts","sourceRoot":"","sources":["../../../../src/config/api-endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,YAAY;IAE3B,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IAEzB,WAAW,EAAE,MAAM,CAAC;CACrB;AAUD;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,YAAY,EACzD,KAAK,CAAC,KACL,YAAY,CAAC,CAAC,CAEhB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,YAAY,EACzD,KAAK,CAAC,EACN,OAAO,YAAY,CAAC,CAAC,CAAC,SAGvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,cAAc,OAAO,CAAC,YAAY,CAAC,SAKrE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,YAE7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAO,YAEpC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ChatDetailContextType, ChatDetailProviderProps } from '../types/chat';
|
|
2
|
+
export declare const ChatDetailContext: import("react").Context<ChatDetailContextType>;
|
|
3
|
+
export declare const useChatDetailContext: () => ChatDetailContextType;
|
|
4
|
+
export declare const ChatDetailProvider: ({ children }: ChatDetailProviderProps) => import("react").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=ChatDetailContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatDetailContext.d.ts","sourceRoot":"","sources":["../../../../src/context/ChatDetailContext.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,eAAe,CAAC;AAMvB,eAAO,MAAM,iBAAiB,gDAK5B,CAAC;AAEH,eAAO,MAAM,oBAAoB,QAAO,qBAQvC,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,cAAc,uBAAuB,gCAkDvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCurrentConversationFlow.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/flows/useCurrentConversationFlow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,eAAO,MAAM,4BAA4B,GAAU,gBAAgB,MAAM,+BAKxE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IConversationFlow, IRunConversationFlowPayload, IRunConversationFlowResponse } from '../../types/flows';
|
|
2
|
+
export declare const useResetFlow: () => import("@tanstack/react-query").UseMutationResult<IConversationFlow, Error, void, unknown>;
|
|
3
|
+
export declare const useRunFlow: () => import("@tanstack/react-query").UseMutationResult<IRunConversationFlowResponse, Error, IRunConversationFlowPayload, unknown>;
|
|
4
|
+
//# sourceMappingURL=useFlow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFlow.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/flows/useFlow.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,mBAAmB,CAAC;AAI3B,eAAO,MAAM,YAAY,kGAuBxB,CAAC;AAEF,eAAO,MAAM,UAAU,oIAuBtB,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { UploadFileItem } from 'react-native-fs';
|
|
2
2
|
import type { IUrlMetadata } from '../../types/common';
|
|
3
|
+
import type { IRunConversationFlowPayload } from '../../types/flows';
|
|
3
4
|
export declare const useSendMessage: () => {
|
|
4
|
-
sendMessage: ({ plainText, files, urlMetadata, }: {
|
|
5
|
+
sendMessage: ({ plainText, files, urlMetadata, flow, }: {
|
|
5
6
|
plainText?: string;
|
|
6
7
|
files?: UploadFileItem[];
|
|
7
8
|
urlMetadata?: IUrlMetadata;
|
|
9
|
+
flow?: IRunConversationFlowPayload;
|
|
8
10
|
}) => Promise<void>;
|
|
9
11
|
};
|
|
10
12
|
export declare const createTextMessage: (text: string) => Promise<any>;
|
|
@@ -1 +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;
|
|
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;AACvD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErE,eAAO,MAAM,cAAc;4DAUpB;QACD,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;QACzB,WAAW,CAAC,EAAE,YAAY,CAAC;QAC3B,IAAI,CAAC,EAAE,2BAA2B,CAAC;KACpC;CA4DJ,CAAC;AAyBF,eAAO,MAAM,iBAAiB,GAAU,MAAM,MAAM,iBAanD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAU,MAAM,MAAM,EAAE,MAAM,MAAM,EAAE,iBActE,CAAC"}
|
|
@@ -8,6 +8,9 @@ export declare const conversationQueryKeys: {
|
|
|
8
8
|
list: (applicationType: string) => readonly ["conversations", "list", string];
|
|
9
9
|
details: () => readonly ["conversations", "detail"];
|
|
10
10
|
detail: (conversationId: string) => readonly ["conversations", "detail", string];
|
|
11
|
+
flow: (conversationId: string) => string[];
|
|
12
|
+
resetFlow: (conversationId: string) => string[];
|
|
13
|
+
runFlow: (conversationId: string) => string[];
|
|
11
14
|
};
|
|
12
15
|
export type ConversationQueryKeys = typeof conversationQueryKeys;
|
|
13
16
|
//# sourceMappingURL=query-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;2BAER,MAAM;gCACD,MAAM;8BAIR,MAAM;CACjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConversationList.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConversationList.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useConversationList.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConversationList.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,eAAe,CAAC;AAEvB,KAAK,MAAM,GAAG;IACZ,eAAe,EAAE,oBAAoB,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AA8BF,wBAAgB,mBAAmB,CAAC,EAClC,eAAe,EACf,IAAQ,EACR,OAAc,GACf,EAAE,MAAM,uFA+BR"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const useFetchUrlMetadata: (url?: string) => import("@tanstack/react-query").UseQueryResult<NoInfer<{
|
|
2
|
+
url: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
image?: string;
|
|
6
|
+
}>, Error>;
|
|
3
7
|
//# sourceMappingURL=useFetchUrlMetadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchUrlMetadata.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useLinkPreview/useFetchUrlMetadata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFetchUrlMetadata.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useLinkPreview/useFetchUrlMetadata.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM;;;;;UAc5C,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export declare function useLinkPreview(value: string | undefined): {
|
|
2
2
|
isVisible: boolean;
|
|
3
|
-
metadata:
|
|
3
|
+
metadata: {
|
|
4
|
+
url: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
image?: string;
|
|
8
|
+
};
|
|
4
9
|
isLoading: boolean;
|
|
5
10
|
dismiss: () => void;
|
|
6
11
|
};
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -25,4 +25,5 @@ export { ChatDetail, ChatDetailHeader, ChatComposer, ChatQuickActions, ChatAttac
|
|
|
25
25
|
export type { DChatActionItem, DChatActionIconProvider, DChatQuickAction, DChatAttachmentAction, ChatDetailProps, ChatDetailHeaderProps, ChatListProps, ChatComposerProps, ChatQuickActionsProps, ChatQuickActionsRenderParams, ChatAttachmentPanelProps, } from './screens/chat-detail';
|
|
26
26
|
export type { DGiftedChatMessage } from './utils/giftedChatMessage';
|
|
27
27
|
export { mapOpenIMMessageToGiftedChat, mapOpenIMMessagesToGiftedChat, } from './utils/giftedChatMessage';
|
|
28
|
+
export type { PeerType } from '@droppii/openim-rn-client-sdk';
|
|
28
29
|
//# sourceMappingURL=index.d.ts.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O,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,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;AACnC,YAAY,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChatComposerProps } from './types';
|
|
2
|
-
export declare const ChatComposer: import("react").MemoExoticComponent<({ value, placeholder, onChangeText, onSend, onMessageSent, onPressEmoji: _onPressEmoji, showQuickActions, quickActions, attachmentActions, onQuickActionPress, onAttachmentAction, renderQuickAction, renderQuickActions, renderAttachmentAction, attachmentColumns, }: ChatComposerProps) => import("react").JSX.Element>;
|
|
2
|
+
export declare const ChatComposer: import("react").MemoExoticComponent<({ value, placeholder, onChangeText, onSend, onMessageSent, onPressEmoji: _onPressEmoji, showQuickActions, quickActions, attachmentActions, onQuickActionPress, onAttachmentAction, renderQuickAction, renderQuickActions, renderAttachmentAction, attachmentColumns, isEmptyMessage, }: 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":"AAmBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatComposer.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatComposer.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAajD,eAAO,MAAM,YAAY,+TAkBpB,iBAAiB,iCA2VrB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ChatDetailProps } from './types';
|
|
2
|
-
declare const ChatDetail: import("react").MemoExoticComponent<({ conversationId, enabled, title, subtitle, avatarUri, avatarFullName, peerType, applicationType, showAddMember, getSubtitle, onBack, onPressSearch, onPressAddMember, onPressMenu, onPressAvatar, renderChat, showQuickActions, quickActions,
|
|
2
|
+
declare const ChatDetail: import("react").MemoExoticComponent<({ conversationId, enabled, title, subtitle, avatarUri, avatarFullName, peerType, applicationType, showAddMember, getSubtitle, onBack, onPressSearch, onPressAddMember, onPressMenu, onPressAvatar, renderChat, showQuickActions, quickActions, inputPlaceholder, onChangeInput, onPressAttach, onPressEmoji, attachmentActions, onQuickActionPress, onAttachmentAction, renderQuickAction, renderQuickActions, renderAttachmentAction, attachmentColumns, onPressUrl, }: 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":"AA0BA,OAAO,KAAK,EACV,eAAe,EAGhB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatDetail.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDetail.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EACV,eAAe,EAGhB,MAAM,SAAS,CAAC;AAMjB,QAAA,MAAM,UAAU,gfAgCX,eAAe,iCAkPnB,CAAC;AAUF,eAAe,UAAU,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChatListProps } from './types';
|
|
2
|
-
export declare const ChatListLegend: import("react").MemoExoticComponent<({ messages, currentUserId, renderChat, onLoadEarlier, isLoading, isLoadingEarlier, hasMoreEarlier, onLoadNewer, isLoadingNewer, hasMoreNewer, onMediaPress, }: ChatListProps) => import("react").JSX.Element>;
|
|
2
|
+
export declare const ChatListLegend: import("react").MemoExoticComponent<({ messages, currentUserId, renderChat, onLoadEarlier, isLoading, isLoadingEarlier, hasMoreEarlier, onLoadNewer, isLoadingNewer, hasMoreNewer, onMediaPress, onPressUrl, }: ChatListProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=ChatListLegend.d.ts.map
|
|
@@ -1 +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;
|
|
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;AAW7C,eAAO,MAAM,cAAc,kNActB,aAAa,iCAmWjB,CAAC"}
|
|
@@ -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;
|
|
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;AAqDvE,eAAO,MAAM,gBAAgB,+GAOxB,qBAAqB,iCAqDzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationHeader.utils.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/conversationHeader.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,eAAO,MAAM,oBAAoB,GAC/B,eAAe,iBAAiB,KAC/B,MAMF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,eAAe,iBAAiB,KAC/B,MAAM,GAAG,IAEX,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,eAAe,iBAAiB,KAC/B,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"conversationHeader.utils.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/conversationHeader.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,eAAO,MAAM,oBAAoB,GAC/B,eAAe,iBAAiB,KAC/B,MAMF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,eAAe,iBAAiB,KAC/B,MAAM,GAAG,IAEX,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,eAAe,iBAAiB,KAC/B,MAAM,GAAG,SAkBX,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,eAAe,iBAAiB,KAC/B,OAEF,CAAC"}
|
|
@@ -5,11 +5,12 @@ interface LegendChatMessageProps {
|
|
|
5
5
|
isOutgoing: boolean;
|
|
6
6
|
createdAtTime: number;
|
|
7
7
|
onMediaPress?: (items: MediaItem[], index?: number) => void;
|
|
8
|
+
onPressUrl?: (url: string) => void;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* Dispatcher component - renders the appropriate message component
|
|
11
12
|
* based on message type. Extensible for new message types.
|
|
12
13
|
*/
|
|
13
|
-
export declare const LegendChatMessage: import("react").MemoExoticComponent<({ message, isOutgoing, createdAtTime, onMediaPress, }: LegendChatMessageProps) => import("react").JSX.Element>;
|
|
14
|
+
export declare const LegendChatMessage: import("react").MemoExoticComponent<({ message, isOutgoing, createdAtTime, onMediaPress, onPressUrl, }: LegendChatMessageProps) => import("react").JSX.Element>;
|
|
14
15
|
export {};
|
|
15
16
|
//# sourceMappingURL=LegendChatMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/screens/chat-detail/legend/LegendChatMessage.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAQ/D,UAAU,sBAAsB;IAC9B,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/screens/chat-detail/legend/LegendChatMessage.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAQ/D,UAAU,sBAAsB;IAC9B,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAgBD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,0GAOzB,sBAAsB,iCA8B1B,CAAC"}
|