@droppii-org/chat-mobile 0.2.4 → 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 (161) hide show
  1. package/lib/module/config/feature-flags.js +38 -0
  2. package/lib/module/config/feature-flags.js.map +1 -0
  3. package/lib/module/hooks/query-keys.js +4 -0
  4. package/lib/module/hooks/query-keys.js.map +1 -1
  5. package/lib/module/hooks/useChatMessages.js +45 -0
  6. package/lib/module/hooks/useChatMessages.js.map +1 -1
  7. package/lib/module/hooks/useLinkPreview/useFetchUrlMetadata.js +17 -0
  8. package/lib/module/hooks/useLinkPreview/useFetchUrlMetadata.js.map +1 -0
  9. package/lib/module/hooks/useLinkPreview/useLinkPreview.js +34 -0
  10. package/lib/module/hooks/useLinkPreview/useLinkPreview.js.map +1 -0
  11. package/lib/module/index.js.map +1 -1
  12. package/lib/module/screens/chat-detail/ChatComposer.js +18 -2
  13. package/lib/module/screens/chat-detail/ChatComposer.js.map +1 -1
  14. package/lib/module/screens/chat-detail/ChatDetail.js +110 -20
  15. package/lib/module/screens/chat-detail/ChatDetail.js.map +1 -1
  16. package/lib/module/screens/chat-detail/ChatLinkPreview.js +79 -0
  17. package/lib/module/screens/chat-detail/ChatLinkPreview.js.map +1 -0
  18. package/lib/module/screens/chat-detail/ChatList.js +2 -0
  19. package/lib/module/screens/chat-detail/ChatList.js.map +1 -1
  20. package/lib/module/screens/chat-detail/ChatListLegend.js +352 -0
  21. package/lib/module/screens/chat-detail/ChatListLegend.js.map +1 -0
  22. package/lib/module/screens/chat-detail/ChatQuickActions.js +12 -2
  23. package/lib/module/screens/chat-detail/ChatQuickActions.js.map +1 -1
  24. package/lib/module/screens/chat-detail/conversationHeader.utils.js +31 -0
  25. package/lib/module/screens/chat-detail/conversationHeader.utils.js.map +1 -0
  26. package/lib/module/screens/chat-detail/index.js +1 -0
  27. package/lib/module/screens/chat-detail/index.js.map +1 -1
  28. package/lib/module/screens/chat-detail/legend/LegendChatDay.js +57 -0
  29. package/lib/module/screens/chat-detail/legend/LegendChatDay.js.map +1 -0
  30. package/lib/module/screens/chat-detail/legend/LegendChatLoadEarlier.js +21 -0
  31. package/lib/module/screens/chat-detail/legend/LegendChatLoadEarlier.js.map +1 -0
  32. package/lib/module/screens/chat-detail/legend/LegendChatMessage.js +47 -0
  33. package/lib/module/screens/chat-detail/legend/LegendChatMessage.js.map +1 -0
  34. package/lib/module/screens/chat-detail/legend/LegendChatScrollToBottom.js +58 -0
  35. package/lib/module/screens/chat-detail/legend/LegendChatScrollToBottom.js.map +1 -0
  36. package/lib/module/screens/chat-detail/legend/message-types.js +122 -0
  37. package/lib/module/screens/chat-detail/legend/message-types.js.map +1 -0
  38. package/lib/module/screens/chat-detail/messages/ChatMessageBubble.js.map +1 -1
  39. package/lib/module/services/apis.js +1 -1
  40. package/lib/module/services/apis.js.map +1 -1
  41. package/lib/module/services/endpoints.js +8 -0
  42. package/lib/module/services/endpoints.js.map +1 -0
  43. package/lib/module/types/common.js +2 -0
  44. package/lib/module/types/common.js.map +1 -0
  45. package/lib/module/utils/legendListMessage.js +80 -0
  46. package/lib/module/utils/legendListMessage.js.map +1 -0
  47. package/lib/module/utils/url.js +7 -0
  48. package/lib/module/utils/url.js.map +1 -0
  49. package/lib/typescript/src/components/Avatar/Avatar.d.ts +1 -1
  50. package/lib/typescript/src/components/Avatar/Avatar.d.ts.map +1 -1
  51. package/lib/typescript/src/components/Avatar/AvatarBadge.d.ts +1 -1
  52. package/lib/typescript/src/components/Avatar/AvatarBadge.d.ts.map +1 -1
  53. package/lib/typescript/src/components/Avatar/DoubleAvatar.d.ts +1 -1
  54. package/lib/typescript/src/components/Avatar/DoubleAvatar.d.ts.map +1 -1
  55. package/lib/typescript/src/components/Avatar/SingleAvatar.d.ts +1 -1
  56. package/lib/typescript/src/components/Avatar/SingleAvatar.d.ts.map +1 -1
  57. package/lib/typescript/src/components/ThreadCard/AvatarSection.d.ts +1 -1
  58. package/lib/typescript/src/components/ThreadCard/AvatarSection.d.ts.map +1 -1
  59. package/lib/typescript/src/components/ThreadCard/NamePrefixIcon.d.ts +1 -1
  60. package/lib/typescript/src/components/ThreadCard/NamePrefixIcon.d.ts.map +1 -1
  61. package/lib/typescript/src/components/ThreadCard/ThreadCard.d.ts +1 -1
  62. package/lib/typescript/src/components/ThreadCard/ThreadCard.d.ts.map +1 -1
  63. package/lib/typescript/src/components/ThreadCard/UnreadBadge.d.ts +1 -1
  64. package/lib/typescript/src/components/ThreadCard/UnreadBadge.d.ts.map +1 -1
  65. package/lib/typescript/src/config/feature-flags.d.ts +12 -0
  66. package/lib/typescript/src/config/feature-flags.d.ts.map +1 -0
  67. package/lib/typescript/src/context/ChatContext.d.ts +1 -1
  68. package/lib/typescript/src/context/ChatContext.d.ts.map +1 -1
  69. package/lib/typescript/src/hooks/query-keys.d.ts +4 -0
  70. package/lib/typescript/src/hooks/query-keys.d.ts.map +1 -1
  71. package/lib/typescript/src/hooks/useChatMessages.d.ts +3 -0
  72. package/lib/typescript/src/hooks/useChatMessages.d.ts.map +1 -1
  73. package/lib/typescript/src/hooks/useLinkPreview/useFetchUrlMetadata.d.ts +3 -0
  74. package/lib/typescript/src/hooks/useLinkPreview/useFetchUrlMetadata.d.ts.map +1 -0
  75. package/lib/typescript/src/hooks/useLinkPreview/useLinkPreview.d.ts +7 -0
  76. package/lib/typescript/src/hooks/useLinkPreview/useLinkPreview.d.ts.map +1 -0
  77. package/lib/typescript/src/index.d.ts +1 -1
  78. package/lib/typescript/src/index.d.ts.map +1 -1
  79. package/lib/typescript/src/screens/chat-detail/ChatAttachmentPanel.d.ts +1 -1
  80. package/lib/typescript/src/screens/chat-detail/ChatAttachmentPanel.d.ts.map +1 -1
  81. package/lib/typescript/src/screens/chat-detail/ChatComposer.d.ts +1 -1
  82. package/lib/typescript/src/screens/chat-detail/ChatComposer.d.ts.map +1 -1
  83. package/lib/typescript/src/screens/chat-detail/ChatDay.d.ts +1 -1
  84. package/lib/typescript/src/screens/chat-detail/ChatDay.d.ts.map +1 -1
  85. package/lib/typescript/src/screens/chat-detail/ChatDetail.d.ts +1 -1
  86. package/lib/typescript/src/screens/chat-detail/ChatDetail.d.ts.map +1 -1
  87. package/lib/typescript/src/screens/chat-detail/ChatDetailHeader.d.ts +1 -1
  88. package/lib/typescript/src/screens/chat-detail/ChatDetailHeader.d.ts.map +1 -1
  89. package/lib/typescript/src/screens/chat-detail/ChatLinkPreview.d.ts +9 -0
  90. package/lib/typescript/src/screens/chat-detail/ChatLinkPreview.d.ts.map +1 -0
  91. package/lib/typescript/src/screens/chat-detail/ChatList.d.ts +1 -1
  92. package/lib/typescript/src/screens/chat-detail/ChatList.d.ts.map +1 -1
  93. package/lib/typescript/src/screens/chat-detail/ChatListLegend.d.ts +3 -0
  94. package/lib/typescript/src/screens/chat-detail/ChatListLegend.d.ts.map +1 -0
  95. package/lib/typescript/src/screens/chat-detail/ChatLoadEarlier.d.ts +1 -1
  96. package/lib/typescript/src/screens/chat-detail/ChatLoadEarlier.d.ts.map +1 -1
  97. package/lib/typescript/src/screens/chat-detail/ChatQuickActions.d.ts +1 -1
  98. package/lib/typescript/src/screens/chat-detail/ChatQuickActions.d.ts.map +1 -1
  99. package/lib/typescript/src/screens/chat-detail/ChatScrollToBottom.d.ts +1 -1
  100. package/lib/typescript/src/screens/chat-detail/ChatScrollToBottom.d.ts.map +1 -1
  101. package/lib/typescript/src/screens/chat-detail/ChatTextBubble.d.ts +1 -1
  102. package/lib/typescript/src/screens/chat-detail/ChatTextBubble.d.ts.map +1 -1
  103. package/lib/typescript/src/screens/chat-detail/conversationHeader.utils.d.ts +6 -0
  104. package/lib/typescript/src/screens/chat-detail/conversationHeader.utils.d.ts.map +1 -0
  105. package/lib/typescript/src/screens/chat-detail/index.d.ts +2 -1
  106. package/lib/typescript/src/screens/chat-detail/index.d.ts.map +1 -1
  107. package/lib/typescript/src/screens/chat-detail/legend/LegendChatDay.d.ts +6 -0
  108. package/lib/typescript/src/screens/chat-detail/legend/LegendChatDay.d.ts.map +1 -0
  109. package/lib/typescript/src/screens/chat-detail/legend/LegendChatLoadEarlier.d.ts +6 -0
  110. package/lib/typescript/src/screens/chat-detail/legend/LegendChatLoadEarlier.d.ts.map +1 -0
  111. package/lib/typescript/src/screens/chat-detail/legend/LegendChatMessage.d.ts +15 -0
  112. package/lib/typescript/src/screens/chat-detail/legend/LegendChatMessage.d.ts.map +1 -0
  113. package/lib/typescript/src/screens/chat-detail/legend/LegendChatScrollToBottom.d.ts +6 -0
  114. package/lib/typescript/src/screens/chat-detail/legend/LegendChatScrollToBottom.d.ts.map +1 -0
  115. package/lib/typescript/src/screens/chat-detail/legend/message-types.d.ts +12 -0
  116. package/lib/typescript/src/screens/chat-detail/legend/message-types.d.ts.map +1 -0
  117. package/lib/typescript/src/screens/chat-detail/messages/ChatMessageBubble.d.ts +1 -1
  118. package/lib/typescript/src/screens/chat-detail/messages/ChatMessageBubble.d.ts.map +1 -1
  119. package/lib/typescript/src/screens/chat-detail/types.d.ts +30 -3
  120. package/lib/typescript/src/screens/chat-detail/types.d.ts.map +1 -1
  121. package/lib/typescript/src/screens/inbox/Inbox.d.ts +1 -1
  122. package/lib/typescript/src/screens/inbox/Inbox.d.ts.map +1 -1
  123. package/lib/typescript/src/screens/inbox/MessagesTab.d.ts +1 -1
  124. package/lib/typescript/src/screens/inbox/MessagesTab.d.ts.map +1 -1
  125. package/lib/typescript/src/services/apis.d.ts +1 -0
  126. package/lib/typescript/src/services/apis.d.ts.map +1 -1
  127. package/lib/typescript/src/services/endpoints.d.ts +6 -0
  128. package/lib/typescript/src/services/endpoints.d.ts.map +1 -0
  129. package/lib/typescript/src/types/common.d.ts +6 -0
  130. package/lib/typescript/src/types/common.d.ts.map +1 -0
  131. package/lib/typescript/src/utils/legendListMessage.d.ts +25 -0
  132. package/lib/typescript/src/utils/legendListMessage.d.ts.map +1 -0
  133. package/lib/typescript/src/utils/url.d.ts +2 -0
  134. package/lib/typescript/src/utils/url.d.ts.map +1 -0
  135. package/package.json +4 -2
  136. package/src/config/feature-flags.ts +49 -0
  137. package/src/hooks/query-keys.ts +5 -0
  138. package/src/hooks/useChatMessages.ts +60 -0
  139. package/src/hooks/useLinkPreview/useFetchUrlMetadata.ts +18 -0
  140. package/src/hooks/useLinkPreview/useLinkPreview.ts +30 -0
  141. package/src/index.tsx +1 -0
  142. package/src/screens/chat-detail/ChatComposer.tsx +21 -0
  143. package/src/screens/chat-detail/ChatDetail.tsx +154 -28
  144. package/src/screens/chat-detail/ChatLinkPreview.tsx +86 -0
  145. package/src/screens/chat-detail/ChatList.tsx +3 -0
  146. package/src/screens/chat-detail/ChatListLegend.tsx +404 -0
  147. package/src/screens/chat-detail/ChatQuickActions.tsx +19 -2
  148. package/src/screens/chat-detail/conversationHeader.utils.ts +52 -0
  149. package/src/screens/chat-detail/index.ts +7 -0
  150. package/src/screens/chat-detail/legend/LegendChatDay.tsx +70 -0
  151. package/src/screens/chat-detail/legend/LegendChatLoadEarlier.tsx +21 -0
  152. package/src/screens/chat-detail/legend/LegendChatMessage.tsx +66 -0
  153. package/src/screens/chat-detail/legend/LegendChatScrollToBottom.tsx +56 -0
  154. package/src/screens/chat-detail/legend/message-types.tsx +149 -0
  155. package/src/screens/chat-detail/messages/ChatMessageBubble.tsx +0 -1
  156. package/src/screens/chat-detail/types.ts +43 -3
  157. package/src/services/apis.ts +1 -1
  158. package/src/services/endpoints.ts +5 -0
  159. package/src/types/common.ts +5 -0
  160. package/src/utils/legendListMessage.ts +102 -0
  161. package/src/utils/url.ts +5 -0
@@ -0,0 +1,12 @@
1
+ export interface FeatureFlags {
2
+ USE_LEGEND_LIST_CHAT: boolean;
3
+ CHAT_LIST_VARIANT: 'gifted' | 'legend';
4
+ ENABLE_PERFORMANCE_METRICS: boolean;
5
+ METRICS_SAMPLE_RATE: number;
6
+ }
7
+ export declare const getFeatureFlag: <K extends keyof FeatureFlags>(flag: K) => FeatureFlags[K];
8
+ export declare const setFeatureFlag: <K extends keyof FeatureFlags>(flag: K, value: FeatureFlags[K]) => void;
9
+ export declare const resetFlags: () => void;
10
+ export declare const onFlagsChange: (callback: () => void) => () => void;
11
+ export declare const getAllFlags: () => FeatureFlags;
12
+ //# sourceMappingURL=feature-flags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../src/config/feature-flags.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACvC,0BAA0B,EAAE,OAAO,CAAC;IACpC,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAWD,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,YAAY,EACzD,MAAM,CAAC,KACN,YAAY,CAAC,CAAC,CAEhB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,YAAY,EACzD,MAAM,CAAC,EACP,OAAO,YAAY,CAAC,CAAC,CAAC,SAIvB,CAAC;AAEF,eAAO,MAAM,UAAU,YAGtB,CAAC;AAIF,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,IAAI,eAKjD,CAAC;AAMF,eAAO,MAAM,WAAW,QAAO,YAA8B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ChatContextType, ChatProviderProps } from '../types/chat';
2
2
  export declare const ChatContext: import("react").Context<ChatContextType>;
3
3
  export declare const useChatContext: () => ChatContextType;
4
- export declare const ChatProvider: ({ enabled, ...props }: ChatProviderProps) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode>> | import("react/jsx-runtime").JSX.Element;
4
+ export declare const ChatProvider: ({ enabled, ...props }: ChatProviderProps) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode>> | import("react").JSX.Element;
5
5
  //# sourceMappingURL=ChatContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../../../src/context/ChatContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAExE,eAAO,MAAM,WAAW,0CAEvB,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,eAMjC,CAAC;AAQF,eAAO,MAAM,YAAY,GAAI,uBAAuB,iBAAiB,sUACR,CAAC"}
1
+ {"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../../../src/context/ChatContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAExE,eAAO,MAAM,WAAW,0CAEvB,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,eAMjC,CAAC;AAQF,eAAO,MAAM,YAAY,GAAI,uBAAuB,iBAAiB,0TACR,CAAC"}
@@ -1,3 +1,7 @@
1
+ export declare const commonQueryKeys: {
2
+ all: readonly ["common"];
3
+ urlMetadata: (url: string) => readonly ["list", string];
4
+ };
1
5
  export declare const conversationQueryKeys: {
2
6
  all: readonly ["conversations"];
3
7
  lists: () => readonly ["conversations", "list"];
@@ -1 +1 @@
1
- {"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../../../../src/hooks/query-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;4BAGR,MAAM;;6BAGL,MAAM;CAEhC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC"}
1
+ {"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../../../../src/hooks/query-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;uBAEP,MAAM;CAC1B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;4BAGR,MAAM;;6BAGL,MAAM;CAEhC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC"}
@@ -10,8 +10,11 @@ export declare function useChatMessages({ conversationId, enabled, pageSize, }:
10
10
  isLoading: boolean;
11
11
  isLoadingEarlier: boolean;
12
12
  hasMoreEarlier: boolean;
13
+ isLoadingNewer: boolean;
14
+ hasMoreNewer: boolean;
13
15
  error: Error;
14
16
  onLoadEarlier: () => Promise<void>;
17
+ onLoadNewer: () => Promise<void>;
15
18
  sendTextMessage: (text: string) => Promise<void>;
16
19
  refresh: () => Promise<void>;
17
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useChatMessages.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useChatMessages.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AASlD,KAAK,sBAAsB,GAAG;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,cAAc,EACd,OAAc,EACd,QAAa,GACd,EAAE,sBAAsB;;;;;;;;4BAmI0B,MAAM;;EA0ExD"}
1
+ {"version":3,"file":"useChatMessages.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useChatMessages.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AASlD,KAAK,sBAAsB,GAAG;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,cAAc,EACd,OAAc,EACd,QAAa,GACd,EAAE,sBAAsB;;;;;;;;;;;4BA4L0B,MAAM;;EA6ExD"}
@@ -0,0 +1,3 @@
1
+ import type { IUrlMetadata } from '../../types/common';
2
+ export declare const useFetchUrlMetadata: (url?: string) => import("@tanstack/react-query").UseQueryResult<NoInfer<IUrlMetadata>, Error>;
3
+ //# sourceMappingURL=useFetchUrlMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFetchUrlMetadata.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useLinkPreview/useFetchUrlMetadata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,iFAU5C,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare function useLinkPreview(value: string | undefined): {
2
+ isVisible: boolean;
3
+ metadata: import("../../types/common").IUrlMetadata;
4
+ isLoading: boolean;
5
+ dismiss: () => void;
6
+ };
7
+ //# sourceMappingURL=useLinkPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLinkPreview.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useLinkPreview/useLinkPreview.ts"],"names":[],"mappings":"AAIA,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS;;;;;EAyBvD"}
@@ -9,7 +9,7 @@ export { Avatar } from './components/Avatar';
9
9
  export { ThreadCard } from './components/ThreadCard';
10
10
  export { Inbox } from './screens/inbox';
11
11
  export { ChatDetail, ChatDetailHeader, ChatList, ChatComposer, ChatQuickActions, ChatAttachmentPanel, DEFAULT_Chat_QUICK_ACTIONS, DEFAULT_ATTACHMENT_ACTIONS, } from './screens/chat-detail';
12
- export type { DChatActionItem, DChatActionIconProvider, DChatQuickAction, DChatAttachmentAction, ChatDetailProps, ChatDetailHeaderProps, ChatListProps, ChatComposerProps, ChatQuickActionsProps, ChatAttachmentPanelProps, } from './screens/chat-detail';
12
+ export type { DChatActionItem, DChatActionIconProvider, DChatQuickAction, DChatAttachmentAction, ChatDetailProps, ChatDetailHeaderProps, ChatListProps, ChatComposerProps, ChatQuickActionsProps, ChatQuickActionsRenderParams, ChatAttachmentPanelProps, } from './screens/chat-detail';
13
13
  export type { DGiftedChatMessage } from './utils/giftedChatMessage';
14
14
  export { mapOpenIMMessageToGiftedChat, mapOpenIMMessagesToGiftedChat, } from './utils/giftedChatMessage';
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ChatAttachmentPanelProps } from './types';
2
- export declare const ChatAttachmentPanel: import("react").MemoExoticComponent<({ actions, columns, onActionPress, renderAction, }: ChatAttachmentPanelProps) => import("react/jsx-runtime").JSX.Element>;
2
+ export declare const ChatAttachmentPanel: import("react").MemoExoticComponent<({ actions, columns, onActionPress, renderAction, }: ChatAttachmentPanelProps) => import("react").JSX.Element>;
3
3
  //# sourceMappingURL=ChatAttachmentPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatAttachmentPanel.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatAttachmentPanel.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAyB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAmD/E,eAAO,MAAM,mBAAmB,2FAM3B,wBAAwB,6CAkD5B,CAAC"}
1
+ {"version":3,"file":"ChatAttachmentPanel.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatAttachmentPanel.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAyB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAmD/E,eAAO,MAAM,mBAAmB,2FAM3B,wBAAwB,iCAkD5B,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ChatComposerProps } from './types';
2
- export declare const ChatComposer: import("react").MemoExoticComponent<({ value, placeholder, onChangeText, onSend, onPressAttach, onPressEmoji, quickActions, attachmentActions, onQuickActionPress, onAttachmentAction, renderQuickAction, renderAttachmentAction, attachmentColumns, }: ChatComposerProps) => import("react/jsx-runtime").JSX.Element>;
2
+ export declare const ChatComposer: import("react").MemoExoticComponent<({ value, placeholder, onChangeText, onSend, onPressAttach, onPressEmoji, showQuickActions, quickActions, attachmentActions, onQuickActionPress, onAttachmentAction, renderQuickAction, renderQuickActions, renderAttachmentAction, attachmentColumns, }: ChatComposerProps) => import("react").JSX.Element>;
3
3
  //# sourceMappingURL=ChatComposer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatComposer.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatComposer.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAajD,eAAO,MAAM,YAAY,0PAepB,iBAAiB,6CA2UrB,CAAC"}
1
+ {"version":3,"file":"ChatComposer.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat-detail/ChatComposer.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAcjD,eAAO,MAAM,YAAY,gSAiBpB,iBAAiB,iCA4VrB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { DayProps } from 'react-native-gifted-chat';
2
- export declare const ChatDay: import("react").MemoExoticComponent<({ createdAt, containerStyle, wrapperStyle }: DayProps) => import("react/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, chatCategory, applicationType, 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":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,QAAA,MAAM,UAAU,+gBAmCX,eAAe,6CAwEnB,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, chatType, chatCategory, applicationType, 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":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,QAAA,MAAM,gBAAgB,qNAejB,qBAAqB,6CAkHzB,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"}
@@ -28,10 +28,16 @@ export interface ChatDetailHeaderProps {
28
28
  onPressMenu?: () => void;
29
29
  onPressAvatar?: () => void;
30
30
  }
31
+ export interface ChatQuickActionsRenderParams {
32
+ actions: DChatQuickAction[];
33
+ onActionPress: (action: DChatQuickAction) => void;
34
+ }
31
35
  export interface ChatQuickActionsProps {
36
+ visible?: boolean;
32
37
  actions?: DChatQuickAction[];
33
38
  onActionPress?: (action: DChatQuickAction) => void;
34
39
  renderAction?: (action: DChatQuickAction, onPress: () => void) => ReactNode;
40
+ renderQuickActions?: (params: ChatQuickActionsRenderParams) => ReactNode;
35
41
  }
36
42
  export interface ChatAttachmentPanelProps {
37
43
  actions?: DChatAttachmentAction[];
@@ -46,11 +52,13 @@ export interface ChatComposerProps {
46
52
  onSend?: () => void;
47
53
  onPressAttach?: () => void;
48
54
  onPressEmoji?: () => void;
55
+ showQuickActions?: boolean;
49
56
  quickActions?: DChatQuickAction[];
50
57
  attachmentActions?: DChatAttachmentAction[];
51
58
  onQuickActionPress?: (action: DChatQuickAction) => void;
52
59
  onAttachmentAction?: (action: DChatAttachmentAction) => void;
53
60
  renderQuickAction?: ChatQuickActionsProps['renderAction'];
61
+ renderQuickActions?: ChatQuickActionsProps['renderQuickActions'];
54
62
  renderAttachmentAction?: ChatAttachmentPanelProps['renderAction'];
55
63
  attachmentColumns?: number;
56
64
  }
@@ -62,16 +70,34 @@ export interface ChatListProps {
62
70
  isLoading?: boolean;
63
71
  isLoadingEarlier?: boolean;
64
72
  hasMoreEarlier?: boolean;
73
+ onLoadNewer?: () => void;
74
+ isLoadingNewer?: boolean;
75
+ hasMoreNewer?: boolean;
65
76
  }
66
- export interface ChatDetailProps extends ChatDetailHeaderProps {
67
- messages?: DMessageItem[];
68
- 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;
69
89
  renderChat?: (item: DMessageItem) => ReactNode;
90
+ showQuickActions?: boolean;
91
+ showAttachmentActions?: boolean;
70
92
  onLoadEarlier?: () => void;
71
93
  isLoading?: boolean;
72
94
  isLoadingEarlier?: boolean;
73
95
  hasMoreEarlier?: boolean;
96
+ onLoadNewer?: () => void;
97
+ isLoadingNewer?: boolean;
98
+ hasMoreNewer?: boolean;
74
99
  quickActions?: DChatQuickAction[];
100
+ getQuickActions?: (conversation: DConversationItem) => DChatQuickAction[] | undefined;
75
101
  attachmentActions?: DChatAttachmentAction[];
76
102
  inputValue?: string;
77
103
  inputPlaceholder?: string;
@@ -82,6 +108,7 @@ export interface ChatDetailProps extends ChatDetailHeaderProps {
82
108
  onQuickActionPress?: (action: DChatQuickAction) => void;
83
109
  onAttachmentAction?: (action: DChatAttachmentAction) => void;
84
110
  renderQuickAction?: ChatQuickActionsProps['renderAction'];
111
+ renderQuickActions?: ChatQuickActionsProps['renderQuickActions'];
85
112
  renderAttachmentAction?: ChatAttachmentPanelProps['renderAction'];
86
113
  attachmentColumns?: number;
87
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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAExE,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,GAAG,YAAY,CAAC;AAE9E,MAAM,WAAW,eAAe;IAC9B,EAAE,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AClE,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,O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S: {
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