@droppii-org/chat-mobile 0.2.3 → 0.2.6

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.
Files changed (167) hide show
  1. package/lib/module/components/ThreadCard/NamePrefixIcon.js +2 -3
  2. package/lib/module/components/ThreadCard/NamePrefixIcon.js.map +1 -1
  3. package/lib/module/config/feature-flags.js +38 -0
  4. package/lib/module/config/feature-flags.js.map +1 -0
  5. package/lib/module/hooks/query-keys.js +4 -0
  6. package/lib/module/hooks/query-keys.js.map +1 -1
  7. package/lib/module/hooks/useChatMessages.js +45 -0
  8. package/lib/module/hooks/useChatMessages.js.map +1 -1
  9. package/lib/module/hooks/useLinkPreview/useFetchUrlMetadata.js +17 -0
  10. package/lib/module/hooks/useLinkPreview/useFetchUrlMetadata.js.map +1 -0
  11. package/lib/module/hooks/useLinkPreview/useLinkPreview.js +34 -0
  12. package/lib/module/hooks/useLinkPreview/useLinkPreview.js.map +1 -0
  13. package/lib/module/index.js.map +1 -1
  14. package/lib/module/screens/chat-detail/ChatComposer.js +24 -7
  15. package/lib/module/screens/chat-detail/ChatComposer.js.map +1 -1
  16. package/lib/module/screens/chat-detail/ChatDetail.js +119 -19
  17. package/lib/module/screens/chat-detail/ChatDetail.js.map +1 -1
  18. package/lib/module/screens/chat-detail/ChatDetailHeader.js +43 -20
  19. package/lib/module/screens/chat-detail/ChatDetailHeader.js.map +1 -1
  20. package/lib/module/screens/chat-detail/ChatLinkPreview.js +79 -0
  21. package/lib/module/screens/chat-detail/ChatLinkPreview.js.map +1 -0
  22. package/lib/module/screens/chat-detail/ChatList.js +2 -0
  23. package/lib/module/screens/chat-detail/ChatList.js.map +1 -1
  24. package/lib/module/screens/chat-detail/ChatListLegend.js +352 -0
  25. package/lib/module/screens/chat-detail/ChatListLegend.js.map +1 -0
  26. package/lib/module/screens/chat-detail/ChatQuickActions.js +12 -2
  27. package/lib/module/screens/chat-detail/ChatQuickActions.js.map +1 -1
  28. package/lib/module/screens/chat-detail/conversationHeader.utils.js +31 -0
  29. package/lib/module/screens/chat-detail/conversationHeader.utils.js.map +1 -0
  30. package/lib/module/screens/chat-detail/index.js +1 -0
  31. package/lib/module/screens/chat-detail/index.js.map +1 -1
  32. package/lib/module/screens/chat-detail/legend/LegendChatDay.js +57 -0
  33. package/lib/module/screens/chat-detail/legend/LegendChatDay.js.map +1 -0
  34. package/lib/module/screens/chat-detail/legend/LegendChatLoadEarlier.js +21 -0
  35. package/lib/module/screens/chat-detail/legend/LegendChatLoadEarlier.js.map +1 -0
  36. package/lib/module/screens/chat-detail/legend/LegendChatMessage.js +47 -0
  37. package/lib/module/screens/chat-detail/legend/LegendChatMessage.js.map +1 -0
  38. package/lib/module/screens/chat-detail/legend/LegendChatScrollToBottom.js +58 -0
  39. package/lib/module/screens/chat-detail/legend/LegendChatScrollToBottom.js.map +1 -0
  40. package/lib/module/screens/chat-detail/legend/message-types.js +122 -0
  41. package/lib/module/screens/chat-detail/legend/message-types.js.map +1 -0
  42. package/lib/module/screens/chat-detail/messages/ChatMessageBubble.js.map +1 -1
  43. package/lib/module/services/apis.js +1 -1
  44. package/lib/module/services/apis.js.map +1 -1
  45. package/lib/module/services/endpoints.js +8 -0
  46. package/lib/module/services/endpoints.js.map +1 -0
  47. package/lib/module/types/common.js +2 -0
  48. package/lib/module/types/common.js.map +1 -0
  49. package/lib/module/utils/legendListMessage.js +80 -0
  50. package/lib/module/utils/legendListMessage.js.map +1 -0
  51. package/lib/module/utils/url.js +7 -0
  52. package/lib/module/utils/url.js.map +1 -0
  53. package/lib/typescript/src/components/Avatar/Avatar.d.ts +1 -1
  54. package/lib/typescript/src/components/Avatar/Avatar.d.ts.map +1 -1
  55. package/lib/typescript/src/components/Avatar/AvatarBadge.d.ts +1 -1
  56. package/lib/typescript/src/components/Avatar/AvatarBadge.d.ts.map +1 -1
  57. package/lib/typescript/src/components/Avatar/DoubleAvatar.d.ts +1 -1
  58. package/lib/typescript/src/components/Avatar/DoubleAvatar.d.ts.map +1 -1
  59. package/lib/typescript/src/components/Avatar/SingleAvatar.d.ts +1 -1
  60. package/lib/typescript/src/components/Avatar/SingleAvatar.d.ts.map +1 -1
  61. package/lib/typescript/src/components/ThreadCard/AvatarSection.d.ts +1 -1
  62. package/lib/typescript/src/components/ThreadCard/AvatarSection.d.ts.map +1 -1
  63. package/lib/typescript/src/components/ThreadCard/NamePrefixIcon.d.ts +1 -1
  64. package/lib/typescript/src/components/ThreadCard/NamePrefixIcon.d.ts.map +1 -1
  65. package/lib/typescript/src/components/ThreadCard/ThreadCard.d.ts +1 -1
  66. package/lib/typescript/src/components/ThreadCard/ThreadCard.d.ts.map +1 -1
  67. package/lib/typescript/src/components/ThreadCard/UnreadBadge.d.ts +1 -1
  68. package/lib/typescript/src/components/ThreadCard/UnreadBadge.d.ts.map +1 -1
  69. package/lib/typescript/src/config/feature-flags.d.ts +12 -0
  70. package/lib/typescript/src/config/feature-flags.d.ts.map +1 -0
  71. package/lib/typescript/src/context/ChatContext.d.ts +1 -1
  72. package/lib/typescript/src/context/ChatContext.d.ts.map +1 -1
  73. package/lib/typescript/src/hooks/query-keys.d.ts +4 -0
  74. package/lib/typescript/src/hooks/query-keys.d.ts.map +1 -1
  75. package/lib/typescript/src/hooks/useChatMessages.d.ts +3 -0
  76. package/lib/typescript/src/hooks/useChatMessages.d.ts.map +1 -1
  77. package/lib/typescript/src/hooks/useLinkPreview/useFetchUrlMetadata.d.ts +3 -0
  78. package/lib/typescript/src/hooks/useLinkPreview/useFetchUrlMetadata.d.ts.map +1 -0
  79. package/lib/typescript/src/hooks/useLinkPreview/useLinkPreview.d.ts +7 -0
  80. package/lib/typescript/src/hooks/useLinkPreview/useLinkPreview.d.ts.map +1 -0
  81. package/lib/typescript/src/index.d.ts +1 -1
  82. package/lib/typescript/src/index.d.ts.map +1 -1
  83. package/lib/typescript/src/screens/chat-detail/ChatAttachmentPanel.d.ts +1 -1
  84. package/lib/typescript/src/screens/chat-detail/ChatAttachmentPanel.d.ts.map +1 -1
  85. package/lib/typescript/src/screens/chat-detail/ChatComposer.d.ts +1 -1
  86. package/lib/typescript/src/screens/chat-detail/ChatComposer.d.ts.map +1 -1
  87. package/lib/typescript/src/screens/chat-detail/ChatDay.d.ts +1 -1
  88. package/lib/typescript/src/screens/chat-detail/ChatDay.d.ts.map +1 -1
  89. package/lib/typescript/src/screens/chat-detail/ChatDetail.d.ts +1 -1
  90. package/lib/typescript/src/screens/chat-detail/ChatDetail.d.ts.map +1 -1
  91. package/lib/typescript/src/screens/chat-detail/ChatDetailHeader.d.ts +1 -1
  92. package/lib/typescript/src/screens/chat-detail/ChatDetailHeader.d.ts.map +1 -1
  93. package/lib/typescript/src/screens/chat-detail/ChatLinkPreview.d.ts +9 -0
  94. package/lib/typescript/src/screens/chat-detail/ChatLinkPreview.d.ts.map +1 -0
  95. package/lib/typescript/src/screens/chat-detail/ChatList.d.ts +1 -1
  96. package/lib/typescript/src/screens/chat-detail/ChatList.d.ts.map +1 -1
  97. package/lib/typescript/src/screens/chat-detail/ChatListLegend.d.ts +3 -0
  98. package/lib/typescript/src/screens/chat-detail/ChatListLegend.d.ts.map +1 -0
  99. package/lib/typescript/src/screens/chat-detail/ChatLoadEarlier.d.ts +1 -1
  100. package/lib/typescript/src/screens/chat-detail/ChatLoadEarlier.d.ts.map +1 -1
  101. package/lib/typescript/src/screens/chat-detail/ChatQuickActions.d.ts +1 -1
  102. package/lib/typescript/src/screens/chat-detail/ChatQuickActions.d.ts.map +1 -1
  103. package/lib/typescript/src/screens/chat-detail/ChatScrollToBottom.d.ts +1 -1
  104. package/lib/typescript/src/screens/chat-detail/ChatScrollToBottom.d.ts.map +1 -1
  105. package/lib/typescript/src/screens/chat-detail/ChatTextBubble.d.ts +1 -1
  106. package/lib/typescript/src/screens/chat-detail/ChatTextBubble.d.ts.map +1 -1
  107. package/lib/typescript/src/screens/chat-detail/conversationHeader.utils.d.ts +6 -0
  108. package/lib/typescript/src/screens/chat-detail/conversationHeader.utils.d.ts.map +1 -0
  109. package/lib/typescript/src/screens/chat-detail/index.d.ts +2 -1
  110. package/lib/typescript/src/screens/chat-detail/index.d.ts.map +1 -1
  111. package/lib/typescript/src/screens/chat-detail/legend/LegendChatDay.d.ts +6 -0
  112. package/lib/typescript/src/screens/chat-detail/legend/LegendChatDay.d.ts.map +1 -0
  113. package/lib/typescript/src/screens/chat-detail/legend/LegendChatLoadEarlier.d.ts +6 -0
  114. package/lib/typescript/src/screens/chat-detail/legend/LegendChatLoadEarlier.d.ts.map +1 -0
  115. package/lib/typescript/src/screens/chat-detail/legend/LegendChatMessage.d.ts +15 -0
  116. package/lib/typescript/src/screens/chat-detail/legend/LegendChatMessage.d.ts.map +1 -0
  117. package/lib/typescript/src/screens/chat-detail/legend/LegendChatScrollToBottom.d.ts +6 -0
  118. package/lib/typescript/src/screens/chat-detail/legend/LegendChatScrollToBottom.d.ts.map +1 -0
  119. package/lib/typescript/src/screens/chat-detail/legend/message-types.d.ts +12 -0
  120. package/lib/typescript/src/screens/chat-detail/legend/message-types.d.ts.map +1 -0
  121. package/lib/typescript/src/screens/chat-detail/messages/ChatMessageBubble.d.ts +1 -1
  122. package/lib/typescript/src/screens/chat-detail/messages/ChatMessageBubble.d.ts.map +1 -1
  123. package/lib/typescript/src/screens/chat-detail/types.d.ts +34 -5
  124. package/lib/typescript/src/screens/chat-detail/types.d.ts.map +1 -1
  125. package/lib/typescript/src/screens/inbox/Inbox.d.ts +1 -1
  126. package/lib/typescript/src/screens/inbox/Inbox.d.ts.map +1 -1
  127. package/lib/typescript/src/screens/inbox/MessagesTab.d.ts +1 -1
  128. package/lib/typescript/src/screens/inbox/MessagesTab.d.ts.map +1 -1
  129. package/lib/typescript/src/services/apis.d.ts +1 -0
  130. package/lib/typescript/src/services/apis.d.ts.map +1 -1
  131. package/lib/typescript/src/services/endpoints.d.ts +6 -0
  132. package/lib/typescript/src/services/endpoints.d.ts.map +1 -0
  133. package/lib/typescript/src/types/common.d.ts +6 -0
  134. package/lib/typescript/src/types/common.d.ts.map +1 -0
  135. package/lib/typescript/src/utils/legendListMessage.d.ts +25 -0
  136. package/lib/typescript/src/utils/legendListMessage.d.ts.map +1 -0
  137. package/lib/typescript/src/utils/url.d.ts +2 -0
  138. package/lib/typescript/src/utils/url.d.ts.map +1 -0
  139. package/package.json +4 -2
  140. package/src/components/ThreadCard/NamePrefixIcon.tsx +2 -3
  141. package/src/config/feature-flags.ts +49 -0
  142. package/src/hooks/query-keys.ts +5 -0
  143. package/src/hooks/useChatMessages.ts +60 -0
  144. package/src/hooks/useLinkPreview/useFetchUrlMetadata.ts +18 -0
  145. package/src/hooks/useLinkPreview/useLinkPreview.ts +30 -0
  146. package/src/index.tsx +1 -0
  147. package/src/screens/chat-detail/ChatComposer.tsx +30 -9
  148. package/src/screens/chat-detail/ChatDetail.tsx +163 -27
  149. package/src/screens/chat-detail/ChatDetailHeader.tsx +58 -26
  150. package/src/screens/chat-detail/ChatLinkPreview.tsx +86 -0
  151. package/src/screens/chat-detail/ChatList.tsx +3 -0
  152. package/src/screens/chat-detail/ChatListLegend.tsx +404 -0
  153. package/src/screens/chat-detail/ChatQuickActions.tsx +19 -2
  154. package/src/screens/chat-detail/conversationHeader.utils.ts +52 -0
  155. package/src/screens/chat-detail/index.ts +7 -0
  156. package/src/screens/chat-detail/legend/LegendChatDay.tsx +70 -0
  157. package/src/screens/chat-detail/legend/LegendChatLoadEarlier.tsx +21 -0
  158. package/src/screens/chat-detail/legend/LegendChatMessage.tsx +66 -0
  159. package/src/screens/chat-detail/legend/LegendChatScrollToBottom.tsx +56 -0
  160. package/src/screens/chat-detail/legend/message-types.tsx +149 -0
  161. package/src/screens/chat-detail/messages/ChatMessageBubble.tsx +0 -1
  162. package/src/screens/chat-detail/types.ts +47 -5
  163. package/src/services/apis.ts +1 -1
  164. package/src/services/endpoints.ts +5 -0
  165. package/src/types/common.ts +5 -0
  166. package/src/utils/legendListMessage.ts +102 -0
  167. package/src/utils/url.ts +5 -0
@@ -1,3 +1,3 @@
1
1
  import type { DayProps } from 'react-native-gifted-chat';
2
- export declare const ChatDay: import("react").MemoExoticComponent<({ createdAt, containerStyle, wrapperStyle }: DayProps) => import("react/jsx-runtime").JSX.Element>;
2
+ export declare const ChatDay: import("react").MemoExoticComponent<({ createdAt, containerStyle, wrapperStyle }: DayProps) => import("react").JSX.Element>;
3
3
  //# sourceMappingURL=ChatDay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatDay.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AA+CzD,eAAO,MAAM,OAAO,oFAC4B,QAAQ,6CAoBvD,CAAC"}
1
+ {"version":3,"file":"ChatDay.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AA+CzD,eAAO,MAAM,OAAO,oFAC4B,QAAQ,iCAoBvD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { ChatDetailProps } from './types';
2
- declare const ChatDetail: import("react").MemoExoticComponent<({ title, subtitle, avatarUri, avatarFullName, chatType, showAddMember, onBack, onPressSearch, onPressAddMember, onPressMenu, onPressAvatar, messages, currentUserId, renderChat, onLoadEarlier, isLoading, isLoadingEarlier, hasMoreEarlier, quickActions, inputValue, inputPlaceholder, onChangeInput, onSend, onPressAttach, onPressEmoji, attachmentActions, onQuickActionPress, onAttachmentAction, renderQuickAction, renderAttachmentAction, attachmentColumns, }: ChatDetailProps) => import("react/jsx-runtime").JSX.Element>;
2
+ declare const ChatDetail: import("react").MemoExoticComponent<({ conversationId, enabled, title, subtitle, avatarUri, avatarFullName, chatType, chatCategory, applicationType, showAddMember, getSubtitle, onBack, onPressSearch, onPressAddMember, onPressMenu, onPressAvatar, renderChat, showQuickActions, showAttachmentActions, quickActions, getQuickActions, inputValue, inputPlaceholder, onChangeInput, onPressAttach, onPressEmoji, attachmentActions, onQuickActionPress, onAttachmentAction, renderQuickAction, renderQuickActions, renderAttachmentAction, attachmentColumns, }: ChatDetailProps) => import("react").JSX.Element>;
3
3
  export default ChatDetail;
4
4
  //# sourceMappingURL=ChatDetail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatDetail.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDetail.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,QAAA,MAAM,UAAU,gfAiCX,eAAe,6CAiEnB,CAAC;AAUF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"ChatDetail.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDetail.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,QAAA,MAAM,UAAU,siBAmCX,eAAe,iCAuLnB,CAAC;AAUF,eAAe,UAAU,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { ChatDetailHeaderProps } from './types';
2
- declare const ChatDetailHeader: import("react").MemoExoticComponent<({ title, subtitle, avatarUri, avatarFullName, showAddMember, onBack, onPressSearch, onPressAddMember, onPressMenu, onPressAvatar, }: ChatDetailHeaderProps) => import("react/jsx-runtime").JSX.Element>;
2
+ declare const ChatDetailHeader: import("react").MemoExoticComponent<({ title, subtitle, avatarUri, avatarFullName, chatType, chatCategory, applicationType, showAddMember, onBack, onPressSearch, onPressAddMember, onPressMenu, onPressAvatar, }: ChatDetailHeaderProps) => import("react").JSX.Element>;
3
3
  export default ChatDetailHeader;
4
4
  //# sourceMappingURL=ChatDetailHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatDetailHeader.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDetailHeader.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,QAAA,MAAM,gBAAgB,4KAYjB,qBAAqB,6CAsFzB,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ChatDetailHeader.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatDetailHeader.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,QAAA,MAAM,gBAAgB,qNAejB,qBAAqB,iCAkHzB,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { IUrlMetadata } from '../../types/common';
2
+ interface ChatLinkPreviewProps {
3
+ metadata?: IUrlMetadata;
4
+ isLoading?: boolean;
5
+ onDismiss?: () => void;
6
+ }
7
+ export declare const ChatLinkPreview: import("react").MemoExoticComponent<({ metadata, isLoading, onDismiss }: ChatLinkPreviewProps) => import("react").JSX.Element>;
8
+ export {};
9
+ //# sourceMappingURL=ChatLinkPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatLinkPreview.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatLinkPreview.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAID,eAAO,MAAM,eAAe,2EACW,oBAAoB,iCAiC1D,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ChatListProps } from './types';
2
- export declare const ChatList: import("react").MemoExoticComponent<({ messages, currentUserId, renderChat, onLoadEarlier, isLoading, isLoadingEarlier, hasMoreEarlier, }: ChatListProps) => import("react/jsx-runtime").JSX.Element>;
2
+ export declare const ChatList: import("react").MemoExoticComponent<({ messages, currentUserId, renderChat, onLoadEarlier, isLoading, isLoadingEarlier, hasMoreEarlier, }: ChatListProps) => import("react").JSX.Element>;
3
3
  //# sourceMappingURL=ChatList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatList.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatList.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAM7C,eAAO,MAAM,QAAQ,6IAShB,aAAa,6CAsHjB,CAAC"}
1
+ {"version":3,"file":"ChatList.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatList.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAM7C,eAAO,MAAM,QAAQ,6IAWhB,aAAa,iCAsHjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ChatListProps } from './types';
2
+ export declare const ChatListLegend: import("react").MemoExoticComponent<({ messages, currentUserId, renderChat, onLoadEarlier, isLoading, isLoadingEarlier, hasMoreEarlier, onLoadNewer, isLoadingNewer, hasMoreNewer, }: ChatListProps) => import("react").JSX.Element>;
3
+ //# sourceMappingURL=ChatListLegend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatListLegend.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatListLegend.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAM7C,eAAO,MAAM,cAAc,wLAYtB,aAAa,iCAuTjB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { LoadEarlierMessagesProps } from 'react-native-gifted-chat';
2
- export declare const ChatLoadEarlier: import("react").MemoExoticComponent<({ isLoading }: LoadEarlierMessagesProps) => import("react/jsx-runtime").JSX.Element>;
2
+ export declare const ChatLoadEarlier: import("react").MemoExoticComponent<({ isLoading }: LoadEarlierMessagesProps) => import("react").JSX.Element>;
3
3
  //# sourceMappingURL=ChatLoadEarlier.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatLoadEarlier.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatLoadEarlier.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,eAAO,MAAM,eAAe,sDACF,wBAAwB,6CAWjD,CAAC"}
1
+ {"version":3,"file":"ChatLoadEarlier.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatLoadEarlier.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,eAAO,MAAM,eAAe,sDACF,wBAAwB,iCAWjD,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ChatQuickActionsProps } from './types';
2
- export declare const ChatQuickActions: import("react").MemoExoticComponent<({ actions, onActionPress, renderAction }: ChatQuickActionsProps) => import("react/jsx-runtime").JSX.Element>;
2
+ export declare const ChatQuickActions: import("react").MemoExoticComponent<({ visible, actions, onActionPress, renderAction, renderQuickActions, }: ChatQuickActionsProps) => import("react").JSX.Element>;
3
3
  //# sourceMappingURL=ChatQuickActions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatQuickActions.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatQuickActions.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAoB,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAoDvE,eAAO,MAAM,gBAAgB,iFACgB,qBAAqB,6CAoCjE,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;AAoDvE,eAAO,MAAM,gBAAgB,+GAOxB,qBAAqB,iCA+CzB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const ChatScrollToBottom: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
1
+ export declare const ChatScrollToBottom: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
2
2
  //# sourceMappingURL=ChatScrollToBottom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatScrollToBottom.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatScrollToBottom.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,oFAE7B,CAAC"}
1
+ {"version":3,"file":"ChatScrollToBottom.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatScrollToBottom.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,wEAE7B,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ChatMessageBubbleProps } from './messages/types';
2
- export declare const ChatTextBubble: import("react").MemoExoticComponent<({ message, position }: ChatMessageBubbleProps) => import("react/jsx-runtime").JSX.Element>;
2
+ export declare const ChatTextBubble: import("react").MemoExoticComponent<({ message, position }: ChatMessageBubbleProps) => import("react").JSX.Element>;
3
3
  //# sourceMappingURL=ChatTextBubble.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatTextBubble.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatTextBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAgB/D,eAAO,MAAM,cAAc,8DACD,sBAAsB,6CAiC/C,CAAC"}
1
+ {"version":3,"file":"ChatTextBubble.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatTextBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAgB/D,eAAO,MAAM,cAAc,8DACD,sBAAsB,iCAiC/C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { DConversationItem } from '../../types/chat';
2
+ export declare const getConversationTitle: (conversation?: DConversationItem) => string;
3
+ export declare const getConversationAvatarUri: (conversation?: DConversationItem) => string | null;
4
+ export declare const getConversationSubtitle: (conversation?: DConversationItem) => string | undefined;
5
+ export declare const shouldShowAddMember: (conversation?: DConversationItem) => boolean;
6
+ //# sourceMappingURL=conversationHeader.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversationHeader.utils.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/conversationHeader.utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,eAAO,MAAM,oBAAoB,GAC/B,eAAe,iBAAiB,KAC/B,MAWF,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,SAmBX,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,eAAe,iBAAiB,KAC/B,OAEF,CAAC"}
@@ -5,7 +5,8 @@ export { ChatComposer } from './ChatComposer';
5
5
  export { ChatQuickActions } from './ChatQuickActions';
6
6
  export { ChatAttachmentPanel } from './ChatAttachmentPanel';
7
7
  export { DEFAULT_Chat_QUICK_ACTIONS, DEFAULT_ATTACHMENT_ACTIONS, DEFAULT_ATTACHMENT_PANEL_HEIGHT, } from './constants';
8
- export type { DChatActionItem, DChatActionIconProvider, DChatQuickAction, DChatAttachmentAction, ChatDetailProps, ChatDetailHeaderProps, ChatListProps, ChatComposerProps, ChatQuickActionsProps, ChatAttachmentPanelProps, } from './types';
8
+ export { getConversationTitle, getConversationAvatarUri, getConversationSubtitle, shouldShowAddMember, } from './conversationHeader.utils';
9
+ export type { DChatActionItem, DChatActionIconProvider, DChatQuickAction, DChatAttachmentAction, ChatDetailProps, ChatDetailHeaderProps, ChatListProps, ChatComposerProps, ChatQuickActionsProps, ChatQuickActionsRenderParams, ChatAttachmentPanelProps, } from './types';
9
10
  export type { DGiftedChatMessage } from '../../utils/giftedChatMessage';
10
11
  export { DChatMessageType, CUSTOM_MESSAGE_DATA_TYPE, } from '../../types/message';
11
12
  export type { ChatMessageBubbleProps } from './messages/types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AACpC,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,SAAS,CAAC;AACjB,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,6 @@
1
+ interface LegendChatDayProps {
2
+ createdAt: number;
3
+ }
4
+ export declare const LegendChatDay: import("react").MemoExoticComponent<({ createdAt }: LegendChatDayProps) => import("react").JSX.Element>;
5
+ export {};
6
+ //# sourceMappingURL=LegendChatDay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendChatDay.d.ts","sourceRoot":"","sources":["../../../../../../src/screens/chat-detail/legend/LegendChatDay.tsx"],"names":[],"mappings":"AA8CA,UAAU,kBAAkB;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,sDAAwB,kBAAkB,iCAiBlE,CAAC"}
@@ -0,0 +1,6 @@
1
+ interface LegendChatLoadEarlierProps {
2
+ isLoading?: boolean;
3
+ }
4
+ export declare const LegendChatLoadEarlier: import("react").MemoExoticComponent<({ isLoading }: LegendChatLoadEarlierProps) => import("react").JSX.Element>;
5
+ export {};
6
+ //# sourceMappingURL=LegendChatLoadEarlier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendChatLoadEarlier.d.ts","sourceRoot":"","sources":["../../../../../../src/screens/chat-detail/legend/LegendChatLoadEarlier.tsx"],"names":[],"mappings":"AAIA,UAAU,0BAA0B;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,sDACR,0BAA0B,iCASnD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { DMessageItem } from '../../../types/chat';
2
+ import type { DChatMessageType } from '../../../types/message';
3
+ interface LegendChatMessageProps {
4
+ message: DMessageItem;
5
+ messageType: DChatMessageType;
6
+ isOutgoing: boolean;
7
+ createdAtTime: number;
8
+ }
9
+ /**
10
+ * Dispatcher component - renders the appropriate message component
11
+ * based on message type. Extensible for new message types.
12
+ */
13
+ export declare const LegendChatMessage: import("react").MemoExoticComponent<({ message, messageType, isOutgoing, createdAtTime, }: LegendChatMessageProps) => import("react").JSX.Element>;
14
+ export {};
15
+ //# sourceMappingURL=LegendChatMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/screens/chat-detail/legend/LegendChatMessage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAS/D,UAAU,sBAAsB;IAC9B,OAAO,EAAE,YAAY,CAAC;IACtB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAeD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,6FAMzB,sBAAsB,iCAsB1B,CAAC"}
@@ -0,0 +1,6 @@
1
+ interface LegendChatScrollToBottomProps {
2
+ listRef: React.RefObject<any>;
3
+ }
4
+ export declare const LegendChatScrollToBottom: import("react").MemoExoticComponent<({ listRef }: LegendChatScrollToBottomProps) => import("react").JSX.Element>;
5
+ export {};
6
+ //# sourceMappingURL=LegendChatScrollToBottom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendChatScrollToBottom.d.ts","sourceRoot":"","sources":["../../../../../../src/screens/chat-detail/legend/LegendChatScrollToBottom.tsx"],"names":[],"mappings":"AAIA,UAAU,6BAA6B;IACrC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CAC/B;AAED,eAAO,MAAM,wBAAwB,oDACrB,6BAA6B,iCAiB5C,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { DMessageItem } from '../../../types/chat';
2
+ interface BaseLegendMessageProps {
3
+ message: DMessageItem;
4
+ isOutgoing: boolean;
5
+ createdAtTime: number;
6
+ }
7
+ export declare const LegendTextMessage: import("react").MemoExoticComponent<({ message, isOutgoing, createdAtTime }: BaseLegendMessageProps) => import("react").JSX.Element>;
8
+ export declare const LegendImageMessage: import("react").MemoExoticComponent<({ isOutgoing }: BaseLegendMessageProps) => import("react").JSX.Element>;
9
+ export declare const LegendVideoMessage: import("react").MemoExoticComponent<({ isOutgoing }: BaseLegendMessageProps) => import("react").JSX.Element>;
10
+ export declare const LegendFileMessage: import("react").MemoExoticComponent<({ message, isOutgoing }: BaseLegendMessageProps) => import("react").JSX.Element>;
11
+ export {};
12
+ //# sourceMappingURL=message-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-types.d.ts","sourceRoot":"","sources":["../../../../../../src/screens/chat-detail/legend/message-types.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIxD,UAAU,sBAAsB;IAC9B,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAgBD,eAAO,MAAM,iBAAiB,+EACa,sBAAsB,iCAiChE,CAAC;AAKF,eAAO,MAAM,kBAAkB,uDACZ,sBAAsB,iCAgBxC,CAAC;AAKF,eAAO,MAAM,kBAAkB,uDACZ,sBAAsB,iCAgBxC,CAAC;AAKF,eAAO,MAAM,iBAAiB,gEACF,sBAAsB,iCAkBjD,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ChatMessageBubbleProps } from './types';
2
- export declare const ChatMessageBubble: import("react").MemoExoticComponent<({ message, position }: ChatMessageBubbleProps) => import("react/jsx-runtime").JSX.Element>;
2
+ export declare const ChatMessageBubble: import("react").MemoExoticComponent<({ message, position }: ChatMessageBubbleProps) => import("react").JSX.Element>;
3
3
  //# sourceMappingURL=ChatMessageBubble.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMessageBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/screens/chat-detail/messages/ChatMessageBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,SAAS,CAAC;AAQ3E,eAAO,MAAM,iBAAiB,8DACJ,sBAAsB,6CAS/C,CAAC"}
1
+ {"version":3,"file":"ChatMessageBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/screens/chat-detail/messages/ChatMessageBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,SAAS,CAAC;AAQ3E,eAAO,MAAM,iBAAiB,8DACJ,sBAAsB,iCAQ/C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { DChatType } from '../../types/chat';
3
- import type { DMessageItem } from '../../types/chat';
2
+ import type { DChatType, DChatCategory } from '../../types/chat';
3
+ import type { DConversationItem, DMessageItem } from '../../types/chat';
4
4
  export type DChatActionIconProvider = 'MaterialCommunityIcons' | 'DroppiiNew';
5
5
  export interface DChatActionItem {
6
6
  id: string;
@@ -19,6 +19,8 @@ export interface ChatDetailHeaderProps {
19
19
  avatarUri?: string | null;
20
20
  avatarFullName?: string;
21
21
  chatType?: DChatType;
22
+ chatCategory?: DChatCategory;
23
+ applicationType?: DConversationItem['applicationType'];
22
24
  showAddMember?: boolean;
23
25
  onBack?: () => void;
24
26
  onPressSearch?: () => void;
@@ -26,10 +28,16 @@ export interface ChatDetailHeaderProps {
26
28
  onPressMenu?: () => void;
27
29
  onPressAvatar?: () => void;
28
30
  }
31
+ export interface ChatQuickActionsRenderParams {
32
+ actions: DChatQuickAction[];
33
+ onActionPress: (action: DChatQuickAction) => void;
34
+ }
29
35
  export interface ChatQuickActionsProps {
36
+ visible?: boolean;
30
37
  actions?: DChatQuickAction[];
31
38
  onActionPress?: (action: DChatQuickAction) => void;
32
39
  renderAction?: (action: DChatQuickAction, onPress: () => void) => ReactNode;
40
+ renderQuickActions?: (params: ChatQuickActionsRenderParams) => ReactNode;
33
41
  }
34
42
  export interface ChatAttachmentPanelProps {
35
43
  actions?: DChatAttachmentAction[];
@@ -44,11 +52,13 @@ export interface ChatComposerProps {
44
52
  onSend?: () => void;
45
53
  onPressAttach?: () => void;
46
54
  onPressEmoji?: () => void;
55
+ showQuickActions?: boolean;
47
56
  quickActions?: DChatQuickAction[];
48
57
  attachmentActions?: DChatAttachmentAction[];
49
58
  onQuickActionPress?: (action: DChatQuickAction) => void;
50
59
  onAttachmentAction?: (action: DChatAttachmentAction) => void;
51
60
  renderQuickAction?: ChatQuickActionsProps['renderAction'];
61
+ renderQuickActions?: ChatQuickActionsProps['renderQuickActions'];
52
62
  renderAttachmentAction?: ChatAttachmentPanelProps['renderAction'];
53
63
  attachmentColumns?: number;
54
64
  }
@@ -60,16 +70,34 @@ export interface ChatListProps {
60
70
  isLoading?: boolean;
61
71
  isLoadingEarlier?: boolean;
62
72
  hasMoreEarlier?: boolean;
73
+ onLoadNewer?: () => void;
74
+ isLoadingNewer?: boolean;
75
+ hasMoreNewer?: boolean;
63
76
  }
64
- export interface ChatDetailProps extends ChatDetailHeaderProps {
65
- messages?: DMessageItem[];
66
- currentUserId?: string;
77
+ export interface ChatDetailProps extends Omit<ChatDetailHeaderProps, 'title' | 'subtitle' | 'avatarUri' | 'avatarFullName' | 'chatType' | 'chatCategory' | 'applicationType' | 'showAddMember'> {
78
+ conversationId: string;
79
+ enabled?: boolean;
80
+ title?: string;
81
+ subtitle?: string;
82
+ avatarUri?: string | null;
83
+ avatarFullName?: string;
84
+ chatType?: DChatType;
85
+ chatCategory?: DChatCategory;
86
+ applicationType?: DConversationItem['applicationType'];
87
+ showAddMember?: boolean;
88
+ getSubtitle?: (conversation: DConversationItem) => string | undefined;
67
89
  renderChat?: (item: DMessageItem) => ReactNode;
90
+ showQuickActions?: boolean;
91
+ showAttachmentActions?: boolean;
68
92
  onLoadEarlier?: () => void;
69
93
  isLoading?: boolean;
70
94
  isLoadingEarlier?: boolean;
71
95
  hasMoreEarlier?: boolean;
96
+ onLoadNewer?: () => void;
97
+ isLoadingNewer?: boolean;
98
+ hasMoreNewer?: boolean;
72
99
  quickActions?: DChatQuickAction[];
100
+ getQuickActions?: (conversation: DConversationItem) => DChatQuickAction[] | undefined;
73
101
  attachmentActions?: DChatAttachmentAction[];
74
102
  inputValue?: string;
75
103
  inputPlaceholder?: string;
@@ -80,6 +108,7 @@ export interface ChatDetailProps extends ChatDetailHeaderProps {
80
108
  onQuickActionPress?: (action: DChatQuickAction) => void;
81
109
  onAttachmentAction?: (action: DChatAttachmentAction) => void;
82
110
  renderQuickAction?: ChatQuickActionsProps['renderAction'];
111
+ renderQuickActions?: ChatQuickActionsProps['renderQuickActions'];
83
112
  renderAttachmentAction?: ChatAttachmentPanelProps['renderAction'];
84
113
  attachmentColumns?: number;
85
114
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,GAAG,YAAY,CAAC;AAE9E,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC/C,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC;AAEpD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,IAAI,C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AAkB,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACxD,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC7D,iBAAiB,CAAC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;IAC1D,kBAAkB,CAAC,EAAE,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;IACjE,sBAAsB,CAAC,EAAE,wBAAwB,CAAC,cAAc,CAAC,CAAC;IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
@@ -5,6 +5,6 @@ interface InboxProps {
5
5
  onPressEdit?: () => void;
6
6
  onPressGroup?: () => void;
7
7
  }
8
- declare const Inbox: import("react").MemoExoticComponent<({ applicationType, onPressThread, onPressSearch, onPressEdit, onPressGroup, }: InboxProps) => import("react/jsx-runtime").JSX.Element>;
8
+ declare const Inbox: import("react").MemoExoticComponent<({ applicationType, onPressThread, onPressSearch, onPressEdit, onPressGroup, }: InboxProps) => import("react").JSX.Element>;
9
9
  export default Inbox;
10
10
  //# sourceMappingURL=Inbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Inbox.d.ts","sourceRoot":"","sources":["../../../../../src/screens/inbox/Inbox.tsx"],"names":[],"mappings":"AAMA,UAAU,UAAU;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAID,QAAA,MAAM,KAAK,sHAON,UAAU,6CA+Gd,CAAC;AAIF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Inbox.d.ts","sourceRoot":"","sources":["../../../../../src/screens/inbox/Inbox.tsx"],"names":[],"mappings":"AAMA,UAAU,UAAU;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAID,QAAA,MAAM,KAAK,sHAON,UAAU,iCA+Gd,CAAC;AAIF,eAAe,KAAK,CAAC"}
@@ -2,6 +2,6 @@ interface MessagesTabProps {
2
2
  applicationType: string;
3
3
  onPressThread?: (item: string) => void;
4
4
  }
5
- export declare const MessagesTab: import("react").MemoExoticComponent<({ applicationType, onPressThread }: MessagesTabProps) => import("react/jsx-runtime").JSX.Element>;
5
+ export declare const MessagesTab: import("react").MemoExoticComponent<({ applicationType, onPressThread }: MessagesTabProps) => import("react").JSX.Element>;
6
6
  export {};
7
7
  //# sourceMappingURL=MessagesTab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessagesTab.d.ts","sourceRoot":"","sources":["../../../../../src/screens/inbox/MessagesTab.tsx"],"names":[],"mappings":"AAOA,UAAU,gBAAgB;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAKD,eAAO,MAAM,WAAW,2EACe,gBAAgB,6CAqDtD,CAAC"}
1
+ {"version":3,"file":"MessagesTab.d.ts","sourceRoot":"","sources":["../../../../../src/screens/inbox/MessagesTab.tsx"],"names":[],"mappings":"AAOA,UAAU,gBAAgB;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAKD,eAAO,MAAM,WAAW,2EACe,gBAAgB,iCAqDtD,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { type AxiosInstance } from 'axios';
2
2
  import type { DConversationItem, DConversationQueryParams } from '../types/chat';
3
3
  import type { BaseResponse } from '../types/auth';
4
+ export declare let apiInstance: AxiosInstance | null;
4
5
  export declare namespace ChatAPI {
5
6
  function initApiInstance(api: AxiosInstance): void;
6
7
  const getLoginStatus: (operationID?: string) => Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"apis.d.ts","sourceRoot":"","sources":["../../../../src/services/apis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,iBAAiB,EACjB,wBAAwB,EACzB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,YAAY,EAA0B,MAAM,eAAe,CAAC;AAM1E,yBAAiB,OAAO,CAAC;IACvB,SAAgB,eAAe,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAExD;IAEM,MAAM,cAAc,GAAU,cAAc,MAAM,qBAExD,CAAC;IAEK,MAAM,KAAK,GAChB,UAAU,aAAa,EACvB,cAAc,MAAM,qBAerB,CAAC;IAEK,MAAM,MAAM,GAAU,cAAc,MAAM,qBAGhD,CAAC;IAEK,MAAM,OAAO,GAAU,cAAc,MAAM,GAAG,SAAS,kEAE7D,CAAC;IAEF,SAAsB,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,8CAWxE;CACF"}
1
+ {"version":3,"file":"apis.d.ts","sourceRoot":"","sources":["../../../../src/services/apis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,iBAAiB,EACjB,wBAAwB,EACzB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,YAAY,EAA0B,MAAM,eAAe,CAAC;AAI1E,eAAO,IAAI,WAAW,EAAE,aAAa,GAAG,IAAW,CAAC;AAEpD,yBAAiB,OAAO,CAAC;IACvB,SAAgB,eAAe,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAExD;IAEM,MAAM,cAAc,GAAU,cAAc,MAAM,qBAExD,CAAC;IAEK,MAAM,KAAK,GAChB,UAAU,aAAa,EACvB,cAAc,MAAM,qBAerB,CAAC;IAEK,MAAM,MAAM,GAAU,cAAc,MAAM,qBAGhD,CAAC;IAEK,MAAM,OAAO,GAAU,cAAc,MAAM,GAAG,SAAS,kEAE7D,CAAC;IAEF,SAAsB,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,8CAWxE;CACF"}
@@ -0,0 +1,6 @@
1
+ export declare const ENDPOINTS: {
2
+ chatService: {
3
+ urlMetadata: string;
4
+ };
5
+ };
6
+ //# sourceMappingURL=endpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../src/services/endpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;CAIrB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface IUrlMetadata {
2
+ title?: string;
3
+ description?: string;
4
+ image?: string;
5
+ }
6
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/types/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,25 @@
1
+ import type { DMessageItem } from '../types/chat';
2
+ import type { DChatMessageType } from '../types/message';
3
+ /**
4
+ * Extract message text based on content type
5
+ */
6
+ export declare const getMessageText: (message: DMessageItem) => string;
7
+ export interface PrecomputedMessageData {
8
+ messageId: string;
9
+ dayStart: boolean;
10
+ messageType: DChatMessageType;
11
+ createdAt: number;
12
+ }
13
+ /**
14
+ * Precompute all message rendering data in single pass O(n)
15
+ * Eliminates redundant Date creation and type resolution during render
16
+ *
17
+ * Returns: Map of messageId -> {dayStart, messageType, createdAt}
18
+ */
19
+ export declare const precomputeLegendListData: (messages: DMessageItem[]) => Map<string, PrecomputedMessageData>;
20
+ /**
21
+ * Legacy: Use precomputeLegendListData instead
22
+ * Kept for backward compatibility
23
+ */
24
+ export declare const computeDayStarts: (messages: DMessageItem[]) => Map<string, boolean>;
25
+ //# sourceMappingURL=legendListMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legendListMessage.d.ts","sourceRoot":"","sources":["../../../../src/utils/legendListMessage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,YAAY,KAAG,MA8BtD,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,YAAY,EAAE,KACvB,GAAG,CAAC,MAAM,EAAE,sBAAsB,CA0BpC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,YAAY,EAAE,KACvB,GAAG,CAAC,MAAM,EAAE,OAAO,CAYrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function extractFirstUrl(text: string): string | undefined;
2
+ //# sourceMappingURL=url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../src/utils/url.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@droppii-org/chat-mobile",
3
- "version": "0.2.3",
3
+ "version": "0.2.6",
4
4
  "description": "Droppii chat mobile",
5
5
  "keywords": [
6
6
  "react-native",
@@ -67,11 +67,13 @@
67
67
  "build:web": "vite build"
68
68
  },
69
69
  "dependencies": {
70
- "@droppii/openim-rn-client-sdk": "git+ssh://git@github.com/droppii/open-im-sdk-reactnative.git#v1.0.0-rc5",
70
+ "@droppii/openim-rn-client-sdk": "git+ssh://git@github.com/droppii/open-im-sdk-reactnative.git#v1.0.0-rc7",
71
+ "@legendapp/list": "^3.0.6",
71
72
  "axios": "^1.16.1",
72
73
  "lodash": "^4.18.1",
73
74
  "react-native-fs": "^2.20.0",
74
75
  "react-native-gifted-chat": "^3.3.3",
76
+ "react-native-permissions": "^5.6.0",
75
77
  "react-native-tab-view": "^4.3.1"
76
78
  },
77
79
  "devDependencies": {
@@ -42,10 +42,9 @@ export const NamePrefixIcon = memo(
42
42
  return (
43
43
  <KContainer.View marginR="0.25rem">
44
44
  <KImage.VectorIcons
45
- name="account-multiple-outline"
46
- provider="MaterialCommunityIcons"
45
+ name="user-two-b"
47
46
  size={14}
48
- color={KColors.palette.gray.w500}
47
+ color={KColors.black}
49
48
  />
50
49
  </KContainer.View>
51
50
  );
@@ -0,0 +1,49 @@
1
+ export interface FeatureFlags {
2
+ USE_LEGEND_LIST_CHAT: boolean;
3
+ CHAT_LIST_VARIANT: 'gifted' | 'legend';
4
+ ENABLE_PERFORMANCE_METRICS: boolean;
5
+ METRICS_SAMPLE_RATE: number;
6
+ }
7
+
8
+ const DEFAULT_FLAGS: FeatureFlags = {
9
+ USE_LEGEND_LIST_CHAT: false,
10
+ CHAT_LIST_VARIANT: 'legend',
11
+ ENABLE_PERFORMANCE_METRICS: true,
12
+ METRICS_SAMPLE_RATE: 1.0,
13
+ };
14
+
15
+ let flags: FeatureFlags = { ...DEFAULT_FLAGS };
16
+
17
+ export const getFeatureFlag = <K extends keyof FeatureFlags>(
18
+ flag: K
19
+ ): FeatureFlags[K] => {
20
+ return flags[flag];
21
+ };
22
+
23
+ export const setFeatureFlag = <K extends keyof FeatureFlags>(
24
+ flag: K,
25
+ value: FeatureFlags[K]
26
+ ) => {
27
+ flags[flag] = value;
28
+ notifyListeners();
29
+ };
30
+
31
+ export const resetFlags = () => {
32
+ flags = { ...DEFAULT_FLAGS };
33
+ notifyListeners();
34
+ };
35
+
36
+ const listeners = new Set<() => void>();
37
+
38
+ export const onFlagsChange = (callback: () => void) => {
39
+ listeners.add(callback);
40
+ return () => {
41
+ listeners.delete(callback);
42
+ };
43
+ };
44
+
45
+ const notifyListeners = () => {
46
+ listeners.forEach((cb) => cb());
47
+ };
48
+
49
+ export const getAllFlags = (): FeatureFlags => ({ ...flags });
@@ -1,3 +1,8 @@
1
+ export const commonQueryKeys = {
2
+ all: ['common'] as const,
3
+ urlMetadata: (url: string) => ['list', url] as const,
4
+ };
5
+
1
6
  export const conversationQueryKeys = {
2
7
  all: ['conversations'] as const,
3
8
  lists: () => [...conversationQueryKeys.all, 'list'] as const,