@droppii-org/chat-mobile 0.2.79 → 0.2.81
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/messages/BubbleTail.js +31 -0
- package/lib/module/components/messages/BubbleTail.js.map +1 -0
- package/lib/module/components/messages/BubbleTailRow.js +46 -0
- package/lib/module/components/messages/BubbleTailRow.js.map +1 -0
- package/lib/module/components/messages/bubbleTail.utils.js +19 -0
- package/lib/module/components/messages/bubbleTail.utils.js.map +1 -0
- package/lib/module/components/messages/fileMessage/index.js +72 -65
- package/lib/module/components/messages/fileMessage/index.js.map +1 -1
- package/lib/module/components/messages/imageMessage/index.js +23 -17
- package/lib/module/components/messages/imageMessage/index.js.map +1 -1
- package/lib/module/components/messages/linkMessage/index.js +11 -23
- package/lib/module/components/messages/linkMessage/index.js.map +1 -1
- package/lib/module/components/messages/mergedMessage/index.js +14 -7
- package/lib/module/components/messages/mergedMessage/index.js.map +1 -1
- package/lib/module/components/messages/quotedMessage/index.js +11 -23
- package/lib/module/components/messages/quotedMessage/index.js.map +1 -1
- package/lib/module/components/messages/revokedMessage/index.js +14 -7
- package/lib/module/components/messages/revokedMessage/index.js.map +1 -1
- package/lib/module/components/messages/stickerMessage/index.js +13 -7
- package/lib/module/components/messages/stickerMessage/index.js.map +1 -1
- package/lib/module/components/messages/textMessage/index.js +11 -26
- package/lib/module/components/messages/textMessage/index.js.map +1 -1
- package/lib/module/components/messages/types.js.map +1 -1
- package/lib/module/components/messages/videoMessage/index.js +16 -8
- package/lib/module/components/messages/videoMessage/index.js.map +1 -1
- package/lib/module/config/api-endpoints.js +2 -1
- package/lib/module/config/api-endpoints.js.map +1 -1
- package/lib/module/hooks/contacts/useSearchContacts.js +50 -0
- package/lib/module/hooks/contacts/useSearchContacts.js.map +1 -0
- package/lib/module/hooks/groups/useDismissGroup.js +2 -1
- package/lib/module/hooks/groups/useDismissGroup.js.map +1 -1
- package/lib/module/hooks/query-keys.js +4 -0
- package/lib/module/hooks/query-keys.js.map +1 -1
- package/lib/module/screens/SearchConversation/ContactResultItem.js +119 -0
- package/lib/module/screens/SearchConversation/ContactResultItem.js.map +1 -0
- package/lib/module/screens/SearchConversation/SearchAllResult.js +26 -20
- package/lib/module/screens/SearchConversation/SearchAllResult.js.map +1 -1
- package/lib/module/screens/SearchConversation/SearchCommunityResult.js +79 -0
- package/lib/module/screens/SearchConversation/SearchCommunityResult.js.map +1 -0
- package/lib/module/screens/SearchConversation/SearchContactsResult.js +117 -0
- package/lib/module/screens/SearchConversation/SearchContactsResult.js.map +1 -0
- package/lib/module/screens/SearchConversation/SearchEmpty.js +2 -0
- package/lib/module/screens/SearchConversation/SearchEmpty.js.map +1 -1
- package/lib/module/screens/SearchConversation/SearchMessagesResult.js +1 -8
- package/lib/module/screens/SearchConversation/SearchMessagesResult.js.map +1 -1
- package/lib/module/screens/SearchConversation/SearchResultItem.js +2 -0
- package/lib/module/screens/SearchConversation/SearchResultItem.js.map +1 -1
- package/lib/module/screens/SearchConversation/TabResult.js +24 -7
- package/lib/module/screens/SearchConversation/TabResult.js.map +1 -1
- package/lib/module/screens/SearchConversation/index.js +6 -2
- package/lib/module/screens/SearchConversation/index.js.map +1 -1
- package/lib/module/screens/SearchConversation/types.js +1 -0
- package/lib/module/screens/SearchConversation/types.js.map +1 -1
- package/lib/module/screens/chat-detail/ChatListLegend.js +71 -21
- package/lib/module/screens/chat-detail/ChatListLegend.js.map +1 -1
- package/lib/module/screens/chat-detail/legend/LegendChatDay.js +8 -2
- package/lib/module/screens/chat-detail/legend/LegendChatDay.js.map +1 -1
- package/lib/module/screens/chat-detail/legend/LegendChatMessage.js +38 -13
- package/lib/module/screens/chat-detail/legend/LegendChatMessage.js.map +1 -1
- package/lib/module/screens/chat-detail/messageToolbox/MessageToolboxWrapper.js +11 -1
- package/lib/module/screens/chat-detail/messageToolbox/MessageToolboxWrapper.js.map +1 -1
- package/lib/module/services/endpoints.js +2 -1
- package/lib/module/services/endpoints.js.map +1 -1
- package/lib/module/translation/resources/i18n.js +6 -0
- package/lib/module/translation/resources/i18n.js.map +1 -1
- package/lib/module/types/chat.js +8 -0
- package/lib/module/types/chat.js.map +1 -1
- package/lib/module/utils/dateTimeUtils.js +10 -0
- package/lib/module/utils/dateTimeUtils.js.map +1 -1
- package/lib/module/utils/highlightSearch.js +6 -2
- package/lib/module/utils/highlightSearch.js.map +1 -1
- package/lib/module/utils/legendListMessage.js +86 -12
- package/lib/module/utils/legendListMessage.js.map +1 -1
- package/lib/module/utils/message.js +19 -1
- package/lib/module/utils/message.js.map +1 -1
- package/lib/module/utils/messageUtils.js +16 -2
- package/lib/module/utils/messageUtils.js.map +1 -1
- package/lib/typescript/src/components/messages/BubbleTail.d.ts +13 -0
- package/lib/typescript/src/components/messages/BubbleTail.d.ts.map +1 -0
- package/lib/typescript/src/components/messages/BubbleTailRow.d.ts +25 -0
- package/lib/typescript/src/components/messages/BubbleTailRow.d.ts.map +1 -0
- package/lib/typescript/src/components/messages/bubbleTail.utils.d.ts +11 -0
- package/lib/typescript/src/components/messages/bubbleTail.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/messages/fileMessage/index.d.ts +1 -1
- package/lib/typescript/src/components/messages/fileMessage/index.d.ts.map +1 -1
- package/lib/typescript/src/components/messages/imageMessage/index.d.ts +1 -1
- package/lib/typescript/src/components/messages/imageMessage/index.d.ts.map +1 -1
- package/lib/typescript/src/components/messages/linkMessage/index.d.ts +1 -1
- package/lib/typescript/src/components/messages/linkMessage/index.d.ts.map +1 -1
- package/lib/typescript/src/components/messages/mergedMessage/index.d.ts +1 -1
- package/lib/typescript/src/components/messages/mergedMessage/index.d.ts.map +1 -1
- package/lib/typescript/src/components/messages/quotedMessage/index.d.ts.map +1 -1
- package/lib/typescript/src/components/messages/revokedMessage/index.d.ts +1 -1
- package/lib/typescript/src/components/messages/revokedMessage/index.d.ts.map +1 -1
- package/lib/typescript/src/components/messages/stickerMessage/index.d.ts +1 -1
- package/lib/typescript/src/components/messages/stickerMessage/index.d.ts.map +1 -1
- package/lib/typescript/src/components/messages/textMessage/index.d.ts +1 -1
- package/lib/typescript/src/components/messages/textMessage/index.d.ts.map +1 -1
- package/lib/typescript/src/components/messages/types.d.ts +3 -0
- package/lib/typescript/src/components/messages/types.d.ts.map +1 -1
- package/lib/typescript/src/components/messages/videoMessage/index.d.ts +1 -1
- package/lib/typescript/src/components/messages/videoMessage/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/hooks/contacts/useSearchContacts.d.ts +221 -0
- package/lib/typescript/src/hooks/contacts/useSearchContacts.d.ts.map +1 -0
- package/lib/typescript/src/hooks/groups/useDismissGroup.d.ts.map +1 -1
- 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/screens/SearchConversation/ContactResultItem.d.ts +9 -0
- package/lib/typescript/src/screens/SearchConversation/ContactResultItem.d.ts.map +1 -0
- package/lib/typescript/src/screens/SearchConversation/SearchAllResult.d.ts +3 -2
- package/lib/typescript/src/screens/SearchConversation/SearchAllResult.d.ts.map +1 -1
- package/lib/typescript/src/screens/SearchConversation/SearchCommunityResult.d.ts +7 -0
- package/lib/typescript/src/screens/SearchConversation/SearchCommunityResult.d.ts.map +1 -0
- package/lib/typescript/src/screens/SearchConversation/SearchContactsResult.d.ts +8 -0
- package/lib/typescript/src/screens/SearchConversation/SearchContactsResult.d.ts.map +1 -0
- package/lib/typescript/src/screens/SearchConversation/SearchEmpty.d.ts.map +1 -1
- package/lib/typescript/src/screens/SearchConversation/SearchMessagesResult.d.ts.map +1 -1
- package/lib/typescript/src/screens/SearchConversation/SearchResultItem.d.ts.map +1 -1
- package/lib/typescript/src/screens/SearchConversation/TabResult.d.ts +4 -2
- package/lib/typescript/src/screens/SearchConversation/TabResult.d.ts.map +1 -1
- package/lib/typescript/src/screens/SearchConversation/index.d.ts +4 -2
- package/lib/typescript/src/screens/SearchConversation/index.d.ts.map +1 -1
- package/lib/typescript/src/screens/SearchConversation/types.d.ts +2 -1
- package/lib/typescript/src/screens/SearchConversation/types.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/ChatListLegend.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatDay.d.ts +6 -1
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatDay.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatMessage.d.ts +14 -1
- package/lib/typescript/src/screens/chat-detail/legend/LegendChatMessage.d.ts.map +1 -1
- package/lib/typescript/src/screens/chat-detail/messageToolbox/MessageToolboxWrapper.d.ts.map +1 -1
- package/lib/typescript/src/services/endpoints.d.ts +1 -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 +27 -0
- package/lib/typescript/src/types/chat.d.ts.map +1 -1
- package/lib/typescript/src/utils/dateTimeUtils.d.ts +2 -0
- package/lib/typescript/src/utils/dateTimeUtils.d.ts.map +1 -1
- package/lib/typescript/src/utils/highlightSearch.d.ts.map +1 -1
- package/lib/typescript/src/utils/legendListMessage.d.ts +19 -4
- package/lib/typescript/src/utils/legendListMessage.d.ts.map +1 -1
- package/lib/typescript/src/utils/message.d.ts +17 -0
- package/lib/typescript/src/utils/message.d.ts.map +1 -1
- package/lib/typescript/src/utils/messageUtils.d.ts +1 -0
- package/lib/typescript/src/utils/messageUtils.d.ts.map +1 -1
- package/package.json +3 -1
- package/src/build-ignore.d.ts +2 -0
- package/src/components/messages/BubbleTail.tsx +35 -0
- package/src/components/messages/BubbleTailRow.tsx +64 -0
- package/src/components/messages/bubbleTail.utils.ts +21 -0
- package/src/components/messages/fileMessage/index.tsx +90 -83
- package/src/components/messages/imageMessage/index.tsx +26 -23
- package/src/components/messages/linkMessage/index.tsx +6 -18
- package/src/components/messages/mergedMessage/index.tsx +27 -15
- package/src/components/messages/quotedMessage/index.tsx +7 -19
- package/src/components/messages/revokedMessage/index.tsx +23 -14
- package/src/components/messages/stickerMessage/index.tsx +16 -11
- package/src/components/messages/textMessage/index.tsx +6 -22
- package/src/components/messages/types.ts +3 -0
- package/src/components/messages/videoMessage/index.tsx +13 -10
- package/src/config/api-endpoints.ts +2 -0
- package/src/hooks/contacts/useSearchContacts.ts +66 -0
- package/src/hooks/groups/useDismissGroup.tsx +1 -0
- package/src/hooks/query-keys.ts +6 -0
- package/src/screens/SearchConversation/ContactResultItem.tsx +128 -0
- package/src/screens/SearchConversation/SearchAllResult.tsx +38 -24
- package/src/screens/SearchConversation/SearchCommunityResult.tsx +96 -0
- package/src/screens/SearchConversation/SearchContactsResult.tsx +155 -0
- package/src/screens/SearchConversation/SearchEmpty.tsx +2 -0
- package/src/screens/SearchConversation/SearchMessagesResult.tsx +1 -6
- package/src/screens/SearchConversation/SearchResultItem.tsx +6 -1
- package/src/screens/SearchConversation/TabResult.tsx +40 -5
- package/src/screens/SearchConversation/index.tsx +10 -2
- package/src/screens/SearchConversation/types.tsx +1 -0
- package/src/screens/chat-detail/ChatListLegend.tsx +97 -28
- package/src/screens/chat-detail/legend/LegendChatDay.tsx +25 -15
- package/src/screens/chat-detail/legend/LegendChatMessage.tsx +62 -12
- package/src/screens/chat-detail/messageToolbox/MessageToolboxWrapper.tsx +22 -4
- package/src/services/endpoints.ts +1 -0
- package/src/translation/resources/i18n.ts +6 -0
- package/src/types/chat.ts +30 -0
- package/src/utils/dateTimeUtils.ts +15 -0
- package/src/utils/highlightSearch.ts +12 -2
- package/src/utils/legendListMessage.ts +123 -14
- package/src/utils/message.ts +19 -1
- package/src/utils/messageUtils.ts +23 -9
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const TAIL_WIDTH = 4;
|
|
2
|
+
export interface BubbleTailProps {
|
|
3
|
+
/**
|
|
4
|
+
* Solid bubble colour. The export carries fill-opacity 0.1, but
|
|
5
|
+
* CHAT_BUBBLE_COLORS is already flattened — reusing the translucent fill here
|
|
6
|
+
* would render the tail a different shade from the bubble it joins.
|
|
7
|
+
*/
|
|
8
|
+
color: string;
|
|
9
|
+
/** Side of the bubble the tail hangs off. */
|
|
10
|
+
side: 'left' | 'right';
|
|
11
|
+
}
|
|
12
|
+
export declare const BubbleTail: import("react").MemoExoticComponent<({ color, side }: BubbleTailProps) => import("react").JSX.Element>;
|
|
13
|
+
//# sourceMappingURL=BubbleTail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BubbleTail.d.ts","sourceRoot":"","sources":["../../../../../src/components/messages/BubbleTail.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,IAAI,CAAC;AAQ5B,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,wDAA0B,eAAe,iCAU9D,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import type { GroupPosition } from '../../utils/legendListMessage';
|
|
3
|
+
export type BubbleTailRowProps = PropsWithChildren<{
|
|
4
|
+
isOutgoing: boolean;
|
|
5
|
+
groupPosition?: GroupPosition;
|
|
6
|
+
/**
|
|
7
|
+
* Set false for media bubbles, which carry no tail but still need the gutter
|
|
8
|
+
* so they line up with the text bubbles around them.
|
|
9
|
+
*/
|
|
10
|
+
withTail?: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* Places the tail beside the bubble that closes a cluster.
|
|
14
|
+
*
|
|
15
|
+
* The gutter on the tail side is always TAIL_WIDTH wide, whether or not it
|
|
16
|
+
* actually holds a tail. That keeps every bubble in a cluster starting at the
|
|
17
|
+
* same offset while leaving the row's own padding intact — the tail occupies
|
|
18
|
+
* reserved space rather than overhanging into the margin.
|
|
19
|
+
*
|
|
20
|
+
* The tail is a real sibling rather than an absolutely positioned overlay: it
|
|
21
|
+
* sits outside the bubble's edge, and `overflow: visible` is unreliable on
|
|
22
|
+
* Android for views carrying elevation — which the neighbouring pin badge does.
|
|
23
|
+
*/
|
|
24
|
+
export declare const BubbleTailRow: import("react").MemoExoticComponent<({ isOutgoing, groupPosition, withTail, children, }: BubbleTailRowProps) => import("react").JSX.Element>;
|
|
25
|
+
//# sourceMappingURL=BubbleTailRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BubbleTailRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/messages/BubbleTailRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAMrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;IACjD,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,2FAMrB,kBAAkB,iCAqBtB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
import type { GroupPosition } from '../../utils/legendListMessage';
|
|
3
|
+
/** Only the message closing a cluster carries a tail. */
|
|
4
|
+
export declare const hasBubbleTail: (position?: GroupPosition) => boolean;
|
|
5
|
+
/**
|
|
6
|
+
* The corner the tail hangs off must be square, otherwise the tail's straight
|
|
7
|
+
* 18px edge meets the bubble's rounded corner and leaves a visible notch.
|
|
8
|
+
* Every other corner keeps its normal radius.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getTailCornerStyle: (isOutgoing: boolean, position?: GroupPosition) => ViewStyle | undefined;
|
|
11
|
+
//# sourceMappingURL=bubbleTail.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bubbleTail.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/messages/bubbleTail.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE,yDAAyD;AACzD,eAAO,MAAM,aAAa,GAAI,WAAW,aAAa,KAAG,OACb,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,YAAY,OAAO,EACnB,WAAW,aAAa,KACvB,SAAS,GAAG,SAKd,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BaseLegendMessageProps } from '../types';
|
|
2
|
-
export declare const FileMessage: import("react").MemoExoticComponent<({ message, isOutgoing }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
2
|
+
export declare const FileMessage: import("react").MemoExoticComponent<({ message, isOutgoing, groupPosition }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/fileMessage/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/fileMessage/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAQvD,eAAO,MAAM,WAAW,+EACmB,sBAAsB,iCAuIhE,CAAC"}
|
|
@@ -11,5 +11,5 @@ export declare const resolveImageDisplayDims: (message: unknown, windowWidth: nu
|
|
|
11
11
|
width: number;
|
|
12
12
|
height: number;
|
|
13
13
|
};
|
|
14
|
-
export declare const ImageMessage: import("react").MemoExoticComponent<({ message, onMediaPress }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
14
|
+
export declare const ImageMessage: import("react").MemoExoticComponent<({ message, isOutgoing, onMediaPress }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/imageMessage/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/imageMessage/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAgCvD;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAClC,SAAS,OAAO,EAChB,aAAa,MAAM,KAClB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAuBjC,CAAC;AAEF,eAAO,MAAM,YAAY,8EACiB,sBAAsB,iCAoF/D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseLegendMessageProps } from '../types';
|
|
2
|
-
export declare const LinkMessage: import("react").MemoExoticComponent<({ message, isOutgoing,
|
|
2
|
+
export declare const LinkMessage: import("react").MemoExoticComponent<({ message, isOutgoing, onPressUrl, isHighlighted, groupPosition, }: BaseLegendMessageProps & {
|
|
3
3
|
onPressUrl?: (url: string) => void;
|
|
4
4
|
}) => import("react").JSX.Element>;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/linkMessage/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/linkMessage/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAmDvD,eAAO,MAAM,WAAW,2GAOnB,sBAAsB,GAAG;IAAE,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,iCAsEnE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BaseLegendMessageProps } from '../types';
|
|
2
|
-
export declare const MergedMessage: import("react").MemoExoticComponent<({ message, isOutgoing, onMediaPress }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
2
|
+
export declare const MergedMessage: import("react").MemoExoticComponent<({ message, isOutgoing, onMediaPress, groupPosition, }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/mergedMessage/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/mergedMessage/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AACvD,eAAO,MAAM,aAAa,8FAMrB,sBAAsB,iCAkC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/quotedMessage/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/quotedMessage/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAsBvD,UAAU,kBAAmB,SAAQ,sBAAsB;CAAG;AAE9D,QAAA,MAAM,aAAa,8CAAgB,kBAAkB,iCAyGnD,CAAC;AAIH,eAAe,aAAa,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BaseLegendMessageProps } from '../types';
|
|
2
|
-
export declare const RevokedMessage: import("react").MemoExoticComponent<({ isOutgoing }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
2
|
+
export declare const RevokedMessage: import("react").MemoExoticComponent<({ isOutgoing, groupPosition }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/revokedMessage/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/revokedMessage/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD,eAAO,MAAM,cAAc,sEACO,sBAAsB,iCAmBvD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BaseLegendMessageProps } from '../types';
|
|
2
2
|
export declare const STICKER_SIZE = 120;
|
|
3
|
-
export declare const StickerMessage: import("react").MemoExoticComponent<({ message }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
3
|
+
export declare const StickerMessage: import("react").MemoExoticComponent<({ message, isOutgoing }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/stickerMessage/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/stickerMessage/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAKvD,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,cAAc,gEACC,sBAAsB,iCAajD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BaseLegendMessageProps } from '../types';
|
|
2
|
-
export declare const TextMessage: import("react").MemoExoticComponent<({ message, isOutgoing,
|
|
2
|
+
export declare const TextMessage: import("react").MemoExoticComponent<({ message, isOutgoing, isHighlighted, groupPosition, }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/textMessage/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/textMessage/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AACvD,eAAO,MAAM,WAAW,+FAMnB,sBAAsB,iCA0B1B,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { MediaItem } from '../../hooks/useMediaViewer';
|
|
2
2
|
import type { MessageItem } from '@droppii/openim-rn-client-sdk';
|
|
3
|
+
import type { GroupPosition } from '../../utils/legendListMessage';
|
|
3
4
|
export interface BaseLegendMessageProps {
|
|
4
5
|
message: MessageItem;
|
|
5
6
|
isOutgoing: boolean;
|
|
6
7
|
createdAtTime: number;
|
|
7
8
|
isHighlighted?: boolean;
|
|
9
|
+
/** Position within its same-sender cluster — drives the bubble tail. */
|
|
10
|
+
groupPosition?: GroupPosition;
|
|
8
11
|
onMediaPress?: (items: MediaItem[], index?: number) => void;
|
|
9
12
|
}
|
|
10
13
|
export declare const formatMessageTime: (createdAt: number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/messages/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/messages/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wEAAwE;IACxE,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,WAWlD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BaseLegendMessageProps } from '../types';
|
|
2
|
-
export declare const VideoMessage: import("react").MemoExoticComponent<({ message, onMediaPress }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
2
|
+
export declare const VideoMessage: import("react").MemoExoticComponent<({ message, isOutgoing, onMediaPress }: BaseLegendMessageProps) => import("react").JSX.Element>;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/videoMessage/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/messages/videoMessage/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAQvD,eAAO,MAAM,YAAY,8EACiB,sBAAsB,iCAsE/D,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;IACpB,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB;
|
|
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,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAkBD;;;;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,221 @@
|
|
|
1
|
+
import type { ContactCategory, DChatApplicationType, IContactSearchItem } from '../../types/chat';
|
|
2
|
+
import type { BaseResponse } from '../../types/auth';
|
|
3
|
+
interface IUseSearchContactsProps {
|
|
4
|
+
query: string;
|
|
5
|
+
applicationType: DChatApplicationType;
|
|
6
|
+
type?: ContactCategory;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const useSearchContacts: ({ query, applicationType, type, pageSize, }: IUseSearchContactsProps) => {
|
|
10
|
+
error: Error;
|
|
11
|
+
isError: true;
|
|
12
|
+
isPending: false;
|
|
13
|
+
isLoading: false;
|
|
14
|
+
isLoadingError: false;
|
|
15
|
+
isRefetchError: true;
|
|
16
|
+
isSuccess: false;
|
|
17
|
+
isPlaceholderData: false;
|
|
18
|
+
status: "error";
|
|
19
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
20
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
21
|
+
hasNextPage: boolean;
|
|
22
|
+
hasPreviousPage: boolean;
|
|
23
|
+
isFetchNextPageError: boolean;
|
|
24
|
+
isFetchingNextPage: boolean;
|
|
25
|
+
isFetchPreviousPageError: boolean;
|
|
26
|
+
isFetchingPreviousPage: boolean;
|
|
27
|
+
dataUpdatedAt: number;
|
|
28
|
+
errorUpdatedAt: number;
|
|
29
|
+
failureCount: number;
|
|
30
|
+
failureReason: Error;
|
|
31
|
+
errorUpdateCount: number;
|
|
32
|
+
isFetched: boolean;
|
|
33
|
+
isFetchedAfterMount: boolean;
|
|
34
|
+
isFetching: boolean;
|
|
35
|
+
isInitialLoading: boolean;
|
|
36
|
+
isPaused: boolean;
|
|
37
|
+
isRefetching: boolean;
|
|
38
|
+
isStale: boolean;
|
|
39
|
+
isEnabled: boolean;
|
|
40
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
41
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
42
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>>;
|
|
43
|
+
dataFlatten: IContactSearchItem[];
|
|
44
|
+
} | {
|
|
45
|
+
error: null;
|
|
46
|
+
isError: false;
|
|
47
|
+
isPending: false;
|
|
48
|
+
isLoading: false;
|
|
49
|
+
isLoadingError: false;
|
|
50
|
+
isRefetchError: false;
|
|
51
|
+
isFetchNextPageError: false;
|
|
52
|
+
isFetchPreviousPageError: false;
|
|
53
|
+
isSuccess: true;
|
|
54
|
+
isPlaceholderData: false;
|
|
55
|
+
status: "success";
|
|
56
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
57
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
58
|
+
hasNextPage: boolean;
|
|
59
|
+
hasPreviousPage: boolean;
|
|
60
|
+
isFetchingNextPage: boolean;
|
|
61
|
+
isFetchingPreviousPage: boolean;
|
|
62
|
+
dataUpdatedAt: number;
|
|
63
|
+
errorUpdatedAt: number;
|
|
64
|
+
failureCount: number;
|
|
65
|
+
failureReason: Error;
|
|
66
|
+
errorUpdateCount: number;
|
|
67
|
+
isFetched: boolean;
|
|
68
|
+
isFetchedAfterMount: boolean;
|
|
69
|
+
isFetching: boolean;
|
|
70
|
+
isInitialLoading: boolean;
|
|
71
|
+
isPaused: boolean;
|
|
72
|
+
isRefetching: boolean;
|
|
73
|
+
isStale: boolean;
|
|
74
|
+
isEnabled: boolean;
|
|
75
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
76
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
77
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>>;
|
|
78
|
+
dataFlatten: IContactSearchItem[];
|
|
79
|
+
} | {
|
|
80
|
+
error: Error;
|
|
81
|
+
isError: true;
|
|
82
|
+
isPending: false;
|
|
83
|
+
isLoading: false;
|
|
84
|
+
isLoadingError: true;
|
|
85
|
+
isRefetchError: false;
|
|
86
|
+
isFetchNextPageError: false;
|
|
87
|
+
isFetchPreviousPageError: false;
|
|
88
|
+
isSuccess: false;
|
|
89
|
+
isPlaceholderData: false;
|
|
90
|
+
status: "error";
|
|
91
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
92
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
93
|
+
hasNextPage: boolean;
|
|
94
|
+
hasPreviousPage: boolean;
|
|
95
|
+
isFetchingNextPage: boolean;
|
|
96
|
+
isFetchingPreviousPage: boolean;
|
|
97
|
+
dataUpdatedAt: number;
|
|
98
|
+
errorUpdatedAt: number;
|
|
99
|
+
failureCount: number;
|
|
100
|
+
failureReason: Error;
|
|
101
|
+
errorUpdateCount: number;
|
|
102
|
+
isFetched: boolean;
|
|
103
|
+
isFetchedAfterMount: boolean;
|
|
104
|
+
isFetching: boolean;
|
|
105
|
+
isInitialLoading: boolean;
|
|
106
|
+
isPaused: boolean;
|
|
107
|
+
isRefetching: boolean;
|
|
108
|
+
isStale: boolean;
|
|
109
|
+
isEnabled: boolean;
|
|
110
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
111
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
112
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>>;
|
|
113
|
+
dataFlatten: IContactSearchItem[];
|
|
114
|
+
} | {
|
|
115
|
+
error: null;
|
|
116
|
+
isError: false;
|
|
117
|
+
isPending: true;
|
|
118
|
+
isLoading: true;
|
|
119
|
+
isLoadingError: false;
|
|
120
|
+
isRefetchError: false;
|
|
121
|
+
isFetchNextPageError: false;
|
|
122
|
+
isFetchPreviousPageError: false;
|
|
123
|
+
isSuccess: false;
|
|
124
|
+
isPlaceholderData: false;
|
|
125
|
+
status: "pending";
|
|
126
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
127
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
128
|
+
hasNextPage: boolean;
|
|
129
|
+
hasPreviousPage: boolean;
|
|
130
|
+
isFetchingNextPage: boolean;
|
|
131
|
+
isFetchingPreviousPage: boolean;
|
|
132
|
+
dataUpdatedAt: number;
|
|
133
|
+
errorUpdatedAt: number;
|
|
134
|
+
failureCount: number;
|
|
135
|
+
failureReason: Error;
|
|
136
|
+
errorUpdateCount: number;
|
|
137
|
+
isFetched: boolean;
|
|
138
|
+
isFetchedAfterMount: boolean;
|
|
139
|
+
isFetching: boolean;
|
|
140
|
+
isInitialLoading: boolean;
|
|
141
|
+
isPaused: boolean;
|
|
142
|
+
isRefetching: boolean;
|
|
143
|
+
isStale: boolean;
|
|
144
|
+
isEnabled: boolean;
|
|
145
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
146
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
147
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>>;
|
|
148
|
+
dataFlatten: IContactSearchItem[];
|
|
149
|
+
} | {
|
|
150
|
+
error: null;
|
|
151
|
+
isError: false;
|
|
152
|
+
isPending: true;
|
|
153
|
+
isLoadingError: false;
|
|
154
|
+
isRefetchError: false;
|
|
155
|
+
isFetchNextPageError: false;
|
|
156
|
+
isFetchPreviousPageError: false;
|
|
157
|
+
isSuccess: false;
|
|
158
|
+
isPlaceholderData: false;
|
|
159
|
+
status: "pending";
|
|
160
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
161
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
162
|
+
hasNextPage: boolean;
|
|
163
|
+
hasPreviousPage: boolean;
|
|
164
|
+
isFetchingNextPage: boolean;
|
|
165
|
+
isFetchingPreviousPage: boolean;
|
|
166
|
+
dataUpdatedAt: number;
|
|
167
|
+
errorUpdatedAt: number;
|
|
168
|
+
failureCount: number;
|
|
169
|
+
failureReason: Error;
|
|
170
|
+
errorUpdateCount: number;
|
|
171
|
+
isFetched: boolean;
|
|
172
|
+
isFetchedAfterMount: boolean;
|
|
173
|
+
isFetching: boolean;
|
|
174
|
+
isLoading: boolean;
|
|
175
|
+
isInitialLoading: boolean;
|
|
176
|
+
isPaused: boolean;
|
|
177
|
+
isRefetching: boolean;
|
|
178
|
+
isStale: boolean;
|
|
179
|
+
isEnabled: boolean;
|
|
180
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
181
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
182
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>>;
|
|
183
|
+
dataFlatten: IContactSearchItem[];
|
|
184
|
+
} | {
|
|
185
|
+
isError: false;
|
|
186
|
+
error: null;
|
|
187
|
+
isPending: false;
|
|
188
|
+
isLoading: false;
|
|
189
|
+
isLoadingError: false;
|
|
190
|
+
isRefetchError: false;
|
|
191
|
+
isSuccess: true;
|
|
192
|
+
isPlaceholderData: true;
|
|
193
|
+
isFetchNextPageError: false;
|
|
194
|
+
isFetchPreviousPageError: false;
|
|
195
|
+
status: "success";
|
|
196
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
197
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
198
|
+
hasNextPage: boolean;
|
|
199
|
+
hasPreviousPage: boolean;
|
|
200
|
+
isFetchingNextPage: boolean;
|
|
201
|
+
isFetchingPreviousPage: boolean;
|
|
202
|
+
dataUpdatedAt: number;
|
|
203
|
+
errorUpdatedAt: number;
|
|
204
|
+
failureCount: number;
|
|
205
|
+
failureReason: Error;
|
|
206
|
+
errorUpdateCount: number;
|
|
207
|
+
isFetched: boolean;
|
|
208
|
+
isFetchedAfterMount: boolean;
|
|
209
|
+
isFetching: boolean;
|
|
210
|
+
isInitialLoading: boolean;
|
|
211
|
+
isPaused: boolean;
|
|
212
|
+
isRefetching: boolean;
|
|
213
|
+
isStale: boolean;
|
|
214
|
+
isEnabled: boolean;
|
|
215
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>, Error>>;
|
|
216
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
217
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<BaseResponse<IContactSearchItem[]>, unknown>>;
|
|
218
|
+
dataFlatten: IContactSearchItem[];
|
|
219
|
+
};
|
|
220
|
+
export {};
|
|
221
|
+
//# sourceMappingURL=useSearchContacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSearchContacts.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/contacts/useSearchContacts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAEnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,oBAAoB,CAAC;IACtC,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,GAAI,6CAK/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDismissGroup.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/groups/useDismissGroup.tsx"],"names":[],"mappings":"AAMA,UAAU,oBAAoB;IAC5B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AACD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,EAAE,oBAAoB;
|
|
1
|
+
{"version":3,"file":"useDismissGroup.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/groups/useDismissGroup.tsx"],"names":[],"mappings":"AAMA,UAAU,oBAAoB;IAC5B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AACD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,EAAE,oBAAoB;6BA2C9C,MAAM;EA4B1B"}
|
|
@@ -40,6 +40,10 @@ export declare const messageQueryKeys: {
|
|
|
40
40
|
all: readonly ["messages"];
|
|
41
41
|
search: (query: string, conversationId?: string) => readonly ["messages", "search", string, string];
|
|
42
42
|
};
|
|
43
|
+
export declare const contactQueryKeys: {
|
|
44
|
+
all: readonly ["contacts"];
|
|
45
|
+
search: (query: string, type?: string) => readonly ["contacts", "search", string, string];
|
|
46
|
+
};
|
|
43
47
|
export declare const groupQueryKeys: {
|
|
44
48
|
all: readonly ["groups"];
|
|
45
49
|
public: () => readonly ["groups", "public"];
|
|
@@ -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;0BAET,MAAM;yCACS,MAAM;2BAEpB,MAAM;mCACE,MAAM;gCAIT,MAAM;8BAIR,MAAM;mCACD,MAAM;2BAId,MAAM;iCACA,MAAM;4BACX,MAAM;sBACZ,MAAM;yBACH,MAAM;CAC5B,CAAC;AAEF,eAAO,MAAM,cAAc;;oBAET,MAAM,EAAE;CACzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB;;;6BAGF,MAAM;;CAGhC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;qBAEjB,MAAM,eAAe,MAAM;CAE7C,CAAC;AAEF,eAAO,MAAM,gBAAgB;;oBAEX,MAAM,mBAAmB,MAAM;CAEhD,CAAC;AAEF,eAAO,MAAM,cAAc;;;4BAGD,MAAM;;;CAI/B,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;0BAET,MAAM;yCACS,MAAM;2BAEpB,MAAM;mCACE,MAAM;gCAIT,MAAM;8BAIR,MAAM;mCACD,MAAM;2BAId,MAAM;iCACA,MAAM;4BACX,MAAM;sBACZ,MAAM;yBACH,MAAM;CAC5B,CAAC;AAEF,eAAO,MAAM,cAAc;;oBAET,MAAM,EAAE;CACzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB;;;6BAGF,MAAM;;CAGhC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;qBAEjB,MAAM,eAAe,MAAM;CAE7C,CAAC;AAEF,eAAO,MAAM,gBAAgB;;oBAEX,MAAM,mBAAmB,MAAM;CAEhD,CAAC;AAEF,eAAO,MAAM,gBAAgB;;oBAEX,MAAM,SAAS,MAAM;CAEtC,CAAC;AAEF,eAAO,MAAM,cAAc;;;4BAGD,MAAM;;;CAI/B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type IContactSearchItem } from '../../types/chat';
|
|
2
|
+
interface IContactResultItemProps {
|
|
3
|
+
item: IContactSearchItem;
|
|
4
|
+
onPressSearchContact?: (item: IContactSearchItem) => void;
|
|
5
|
+
searchTerm?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const ContactResultItem: import("react").MemoExoticComponent<(props: IContactResultItemProps) => import("react").JSX.Element>;
|
|
8
|
+
export default ContactResultItem;
|
|
9
|
+
//# sourceMappingURL=ContactResultItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactResultItem.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/ContactResultItem.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAmB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAiB5E,UAAU,uBAAuB;IAC/B,IAAI,EAAE,kBAAkB,CAAC;IACzB,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,iBAAiB,8CAAgB,uBAAuB,iCAsF5D,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SearchConversationTabResultType } from './types';
|
|
2
|
-
import type { ISearchMessageItem } from '../../types/chat';
|
|
2
|
+
import type { IContactSearchItem, ISearchMessageItem } from '../../types/chat';
|
|
3
3
|
interface SearchAllResultProps {
|
|
4
4
|
searchTerm: string;
|
|
5
5
|
handleChangeTab: (key: SearchConversationTabResultType) => void;
|
|
6
6
|
onPressItem?: (item: ISearchMessageItem) => void;
|
|
7
|
+
onPressSearchContact?: (item: IContactSearchItem) => void;
|
|
7
8
|
}
|
|
8
|
-
declare const SearchAllResult: import("react").MemoExoticComponent<({ searchTerm, handleChangeTab, onPressItem }: SearchAllResultProps) => import("react").JSX.Element>;
|
|
9
|
+
declare const SearchAllResult: import("react").MemoExoticComponent<({ searchTerm, handleChangeTab, onPressItem, onPressSearchContact, }: SearchAllResultProps) => import("react").JSX.Element>;
|
|
9
10
|
export default SearchAllResult;
|
|
10
11
|
//# sourceMappingURL=SearchAllResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchAllResult.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/SearchAllResult.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchAllResult.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/SearchAllResult.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAO/E,UAAU,oBAAoB;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,CAAC,GAAG,EAAE,+BAA+B,KAAK,IAAI,CAAC;IAChE,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC3D;AAUD,QAAA,MAAM,eAAe,4GAMhB,oBAAoB,iCAwHxB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface ISearchCommunityResultProps {
|
|
2
|
+
searchTerm: string;
|
|
3
|
+
onPressGroup?: (groupId: string) => void;
|
|
4
|
+
}
|
|
5
|
+
declare const SearchCommunityResult: import("react").MemoExoticComponent<({ searchTerm, onPressGroup }: ISearchCommunityResultProps) => import("react").JSX.Element>;
|
|
6
|
+
export default SearchCommunityResult;
|
|
7
|
+
//# sourceMappingURL=SearchCommunityResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchCommunityResult.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/SearchCommunityResult.tsx"],"names":[],"mappings":"AAUA,UAAU,2BAA2B;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAID,QAAA,MAAM,qBAAqB,qEACM,2BAA2B,iCAqE3D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IContactSearchItem } from '../../types/chat';
|
|
2
|
+
interface ISearchContactsResultProps {
|
|
3
|
+
searchTerm: string;
|
|
4
|
+
onPressSearchContact?: (item: IContactSearchItem) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const SearchContactsResult: import("react").MemoExoticComponent<({ searchTerm, onPressSearchContact }: ISearchContactsResultProps) => import("react").JSX.Element>;
|
|
7
|
+
export default SearchContactsResult;
|
|
8
|
+
//# sourceMappingURL=SearchContactsResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchContactsResult.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/SearchContactsResult.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAmB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAM5E,UAAU,0BAA0B;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC3D;AAyBD,QAAA,MAAM,oBAAoB,6EACe,0BAA0B,iCA6FlE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/SearchEmpty.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE1D,KAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,+BAA+B,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,WAAW,mEACO,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SearchEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/SearchEmpty.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE1D,KAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,+BAA+B,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,WAAW,mEACO,gBAAgB,iCA+B9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchMessagesResult.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/SearchMessagesResult.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,UAAU,0BAA0B;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAClD;AACD,QAAA,MAAM,oBAAoB,oEACM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"SearchMessagesResult.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/SearchMessagesResult.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,UAAU,0BAA0B;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAClD;AACD,QAAA,MAAM,oBAAoB,oEACM,0BAA0B,iCAkEzD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchResultItem.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/SearchResultItem.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAc1D,UAAU,sBAAsB;IAC9B,IAAI,EAAE,kBAAkB,CAAC;IACzB,aAAa,EAAE,+BAA+B,CAAC;IAC/C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,QAAA,MAAM,gBAAgB,8CAAgB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"SearchResultItem.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/SearchResultItem.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAc1D,UAAU,sBAAsB;IAC9B,IAAI,EAAE,kBAAkB,CAAC;IACzB,aAAa,EAAE,+BAA+B,CAAC;IAC/C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,QAAA,MAAM,gBAAgB,8CAAgB,sBAAsB,iCA6G1D,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { ISearchMessageItem } from '../../types/chat';
|
|
1
|
+
import type { IContactSearchItem, ISearchMessageItem } from '../../types/chat';
|
|
2
2
|
interface ISearchConversationTabResultProps {
|
|
3
3
|
searchTerm: string;
|
|
4
4
|
onPressItem?: (item: ISearchMessageItem) => void;
|
|
5
|
+
onPressSearchContact?: (item: IContactSearchItem) => void;
|
|
6
|
+
onPressGroup?: (groupId: string) => void;
|
|
5
7
|
}
|
|
6
|
-
declare const SearchConversationTabResult: import("react").MemoExoticComponent<({ searchTerm, onPressItem }: ISearchConversationTabResultProps) => import("react").JSX.Element>;
|
|
8
|
+
declare const SearchConversationTabResult: import("react").MemoExoticComponent<({ searchTerm, onPressItem, onPressSearchContact, onPressGroup, }: ISearchConversationTabResultProps) => import("react").JSX.Element>;
|
|
7
9
|
export default SearchConversationTabResult;
|
|
8
10
|
//# sourceMappingURL=TabResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabResult.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/TabResult.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabResult.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/TabResult.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI/E,UAAU,iCAAiC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC1D,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AA6CD,QAAA,MAAM,2BAA2B,yGAM5B,iCAAiC,iCA2ErC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { ISearchMessageItem } from '../../types/chat';
|
|
1
|
+
import type { IContactSearchItem, ISearchMessageItem } from '../../types/chat';
|
|
2
2
|
interface SearchConversationScreenProps {
|
|
3
3
|
onPressItem?: (item: ISearchMessageItem) => void;
|
|
4
|
+
onPressSearchContact?: (item: IContactSearchItem) => void;
|
|
5
|
+
onPressGroup?: (groupId: string) => void;
|
|
4
6
|
}
|
|
5
|
-
declare const SearchConversationScreen: import("react").MemoExoticComponent<({ onPressItem }: SearchConversationScreenProps) => import("react").JSX.Element>;
|
|
7
|
+
declare const SearchConversationScreen: import("react").MemoExoticComponent<({ onPressItem, onPressSearchContact, onPressGroup, }: SearchConversationScreenProps) => import("react").JSX.Element>;
|
|
6
8
|
export default SearchConversationScreen;
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,UAAU,6BAA6B;IACrC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC1D,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AACD,QAAA,MAAM,wBAAwB,6FAKzB,6BAA6B,iCAyDjC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/types.tsx"],"names":[],"mappings":"AAAA,oBAAY,+BAA+B;IACzC,GAAG,QAAQ;IACX,aAAa,kBAAkB;IAC/B,QAAQ,aAAa;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SearchConversation/types.tsx"],"names":[],"mappings":"AAAA,oBAAY,+BAA+B;IACzC,GAAG,QAAQ;IACX,aAAa,kBAAkB;IAC/B,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB"}
|