react-native-chatbot-ai 0.1.19 → 0.1.22

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 (263) hide show
  1. package/lib/module/components/Drawer/DeleteSessionPopup.js +113 -0
  2. package/lib/module/components/Drawer/DeleteSessionPopup.js.map +1 -0
  3. package/lib/module/components/Drawer/DrawerContent.js +21 -8
  4. package/lib/module/components/Drawer/DrawerContent.js.map +1 -1
  5. package/lib/module/components/Drawer/RenameSessionPopup.js +121 -0
  6. package/lib/module/components/Drawer/RenameSessionPopup.js.map +1 -0
  7. package/lib/module/components/Drawer/SearchInput.js +10 -3
  8. package/lib/module/components/Drawer/SearchInput.js.map +1 -1
  9. package/lib/module/components/Drawer/SessionItem.js +36 -20
  10. package/lib/module/components/Drawer/SessionItem.js.map +1 -1
  11. package/lib/module/components/Drawer/SessionList.js +2 -5
  12. package/lib/module/components/Drawer/SessionList.js.map +1 -1
  13. package/lib/module/components/Drawer/SessionOptionsBottomSheet.js +129 -0
  14. package/lib/module/components/Drawer/SessionOptionsBottomSheet.js.map +1 -0
  15. package/lib/module/components/Drawer/ShareSessionPopup.js +132 -0
  16. package/lib/module/components/Drawer/ShareSessionPopup.js.map +1 -0
  17. package/lib/module/components/chat/ChatEmpty.js +15 -4
  18. package/lib/module/components/chat/ChatEmpty.js.map +1 -1
  19. package/lib/module/components/chat/ChatHeader.js +10 -4
  20. package/lib/module/components/chat/ChatHeader.js.map +1 -1
  21. package/lib/module/components/chat/ChatMessageList.js +75 -24
  22. package/lib/module/components/chat/ChatMessageList.js.map +1 -1
  23. package/lib/module/components/chat/SuggestionItem.js +2 -1
  24. package/lib/module/components/chat/SuggestionItem.js.map +1 -1
  25. package/lib/module/components/chat/footer/index.js +77 -15
  26. package/lib/module/components/chat/footer/index.js.map +1 -1
  27. package/lib/module/components/chat/footer/item/UploadImageItem.js +21 -1
  28. package/lib/module/components/chat/footer/item/UploadImageItem.js.map +1 -1
  29. package/lib/module/components/chat/index.js +7 -6
  30. package/lib/module/components/chat/index.js.map +1 -1
  31. package/lib/module/components/chat/item/ChatAIAnswerMessageItem.js +36 -5
  32. package/lib/module/components/chat/item/ChatAIAnswerMessageItem.js.map +1 -1
  33. package/lib/module/components/chat/item/DeeplinkItem.js +30 -2
  34. package/lib/module/components/chat/item/DeeplinkItem.js.map +1 -1
  35. package/lib/module/components/chat/item/MessageActionsBar.js +243 -0
  36. package/lib/module/components/chat/item/MessageActionsBar.js.map +1 -0
  37. package/lib/module/components/chat/item/actions/ActionButton.js +56 -0
  38. package/lib/module/components/chat/item/actions/ActionButton.js.map +1 -0
  39. package/lib/module/components/portal/BottomSheet.js +245 -0
  40. package/lib/module/components/portal/BottomSheet.js.map +1 -0
  41. package/lib/module/components/portal/Popup.js +278 -0
  42. package/lib/module/components/portal/Popup.js.map +1 -0
  43. package/lib/module/components/portal/index.js +11 -5
  44. package/lib/module/components/portal/index.js.map +1 -1
  45. package/lib/module/components/product/CardHorizontal.js +44 -7
  46. package/lib/module/components/product/CardHorizontal.js.map +1 -1
  47. package/lib/module/constants/events.js +33 -0
  48. package/lib/module/constants/events.js.map +1 -1
  49. package/lib/module/constants/index.js +5 -1
  50. package/lib/module/constants/index.js.map +1 -1
  51. package/lib/module/constants/query.js +5 -1
  52. package/lib/module/constants/query.js.map +1 -1
  53. package/lib/module/context/ChatContext.js +9 -3
  54. package/lib/module/context/ChatContext.js.map +1 -1
  55. package/lib/module/hooks/message/useSendMessage.js +21 -3
  56. package/lib/module/hooks/message/useSendMessage.js.map +1 -1
  57. package/lib/module/hooks/message/useStreamMessage.js +10 -3
  58. package/lib/module/hooks/message/useStreamMessage.js.map +1 -1
  59. package/lib/module/hooks/messageActions/index.js +13 -0
  60. package/lib/module/hooks/messageActions/index.js.map +1 -0
  61. package/lib/module/hooks/messageActions/useAudioPlayer.js +269 -0
  62. package/lib/module/hooks/messageActions/useAudioPlayer.js.map +1 -0
  63. package/lib/module/hooks/messageActions/useCopyToClipboard.js +38 -0
  64. package/lib/module/hooks/messageActions/useCopyToClipboard.js.map +1 -0
  65. package/lib/module/hooks/messageActions/useFeedback.js +93 -0
  66. package/lib/module/hooks/messageActions/useFeedback.js.map +1 -0
  67. package/lib/module/hooks/messageActions/useSendFeedback.js +24 -0
  68. package/lib/module/hooks/messageActions/useSendFeedback.js.map +1 -0
  69. package/lib/module/hooks/messageActions/useShareMessage.js +128 -0
  70. package/lib/module/hooks/messageActions/useShareMessage.js.map +1 -0
  71. package/lib/module/hooks/session/useDeleteSession.js +23 -0
  72. package/lib/module/hooks/session/useDeleteSession.js.map +1 -0
  73. package/lib/module/hooks/session/useRenameSession.js +28 -0
  74. package/lib/module/hooks/session/useRenameSession.js.map +1 -0
  75. package/lib/module/hooks/session/useSearchSessions.js +5 -1
  76. package/lib/module/hooks/session/useSearchSessions.js.map +1 -1
  77. package/lib/module/hooks/session/useShareSession.js +16 -0
  78. package/lib/module/hooks/session/useShareSession.js.map +1 -0
  79. package/lib/module/hooks/upload/useImageUpload.js +2 -1
  80. package/lib/module/hooks/upload/useImageUpload.js.map +1 -1
  81. package/lib/module/services/endpoints.js +6 -1
  82. package/lib/module/services/endpoints.js.map +1 -1
  83. package/lib/module/services/index.js +1 -0
  84. package/lib/module/services/index.js.map +1 -1
  85. package/lib/module/services/playbackService.js +22 -0
  86. package/lib/module/services/playbackService.js.map +1 -0
  87. package/lib/module/store/audioPlayer.js +75 -0
  88. package/lib/module/store/audioPlayer.js.map +1 -0
  89. package/lib/module/store/messageActions.js +160 -0
  90. package/lib/module/store/messageActions.js.map +1 -0
  91. package/lib/module/store/session.js +6 -3
  92. package/lib/module/store/session.js.map +1 -1
  93. package/lib/module/translation/index.js +21 -25
  94. package/lib/module/translation/index.js.map +1 -1
  95. package/lib/module/translation/resources/i18n.js +39 -0
  96. package/lib/module/translation/resources/i18n.js.map +1 -0
  97. package/lib/module/types/chat.js +12 -1
  98. package/lib/module/types/chat.js.map +1 -1
  99. package/lib/module/types/index.js +1 -0
  100. package/lib/module/types/index.js.map +1 -1
  101. package/lib/module/types/messageActions.js +56 -0
  102. package/lib/module/types/messageActions.js.map +1 -0
  103. package/lib/module/utils/textCleaner.js +67 -0
  104. package/lib/module/utils/textCleaner.js.map +1 -0
  105. package/lib/module/utils/ui.js +27 -1
  106. package/lib/module/utils/ui.js.map +1 -1
  107. package/lib/typescript/src/components/Drawer/DeleteSessionPopup.d.ts +3 -0
  108. package/lib/typescript/src/components/Drawer/DeleteSessionPopup.d.ts.map +1 -0
  109. package/lib/typescript/src/components/Drawer/DrawerContent.d.ts.map +1 -1
  110. package/lib/typescript/src/components/Drawer/RenameSessionPopup.d.ts +3 -0
  111. package/lib/typescript/src/components/Drawer/RenameSessionPopup.d.ts.map +1 -0
  112. package/lib/typescript/src/components/Drawer/SearchInput.d.ts.map +1 -1
  113. package/lib/typescript/src/components/Drawer/SessionItem.d.ts.map +1 -1
  114. package/lib/typescript/src/components/Drawer/SessionList.d.ts.map +1 -1
  115. package/lib/typescript/src/components/Drawer/SessionOptionsBottomSheet.d.ts +3 -0
  116. package/lib/typescript/src/components/Drawer/SessionOptionsBottomSheet.d.ts.map +1 -0
  117. package/lib/typescript/src/components/Drawer/ShareSessionPopup.d.ts +3 -0
  118. package/lib/typescript/src/components/Drawer/ShareSessionPopup.d.ts.map +1 -0
  119. package/lib/typescript/src/components/chat/ChatEmpty.d.ts.map +1 -1
  120. package/lib/typescript/src/components/chat/ChatHeader.d.ts.map +1 -1
  121. package/lib/typescript/src/components/chat/ChatMessageList.d.ts.map +1 -1
  122. package/lib/typescript/src/components/chat/SuggestionItem.d.ts +3 -2
  123. package/lib/typescript/src/components/chat/SuggestionItem.d.ts.map +1 -1
  124. package/lib/typescript/src/components/chat/footer/index.d.ts.map +1 -1
  125. package/lib/typescript/src/components/chat/footer/item/UploadImageItem.d.ts.map +1 -1
  126. package/lib/typescript/src/components/chat/index.d.ts.map +1 -1
  127. package/lib/typescript/src/components/chat/item/ChatAIAnswerMessageItem.d.ts.map +1 -1
  128. package/lib/typescript/src/components/chat/item/DeeplinkItem.d.ts +2 -1
  129. package/lib/typescript/src/components/chat/item/DeeplinkItem.d.ts.map +1 -1
  130. package/lib/typescript/src/components/chat/item/MessageActionsBar.d.ts +16 -0
  131. package/lib/typescript/src/components/chat/item/MessageActionsBar.d.ts.map +1 -0
  132. package/lib/typescript/src/components/chat/item/actions/ActionButton.d.ts +19 -0
  133. package/lib/typescript/src/components/chat/item/actions/ActionButton.d.ts.map +1 -0
  134. package/lib/typescript/src/components/portal/BottomSheet.d.ts +8 -0
  135. package/lib/typescript/src/components/portal/BottomSheet.d.ts.map +1 -0
  136. package/lib/typescript/src/components/portal/Popup.d.ts +4 -0
  137. package/lib/typescript/src/components/portal/Popup.d.ts.map +1 -0
  138. package/lib/typescript/src/components/portal/index.d.ts.map +1 -1
  139. package/lib/typescript/src/components/product/CardHorizontal.d.ts +3 -2
  140. package/lib/typescript/src/components/product/CardHorizontal.d.ts.map +1 -1
  141. package/lib/typescript/src/constants/events.d.ts +33 -0
  142. package/lib/typescript/src/constants/events.d.ts.map +1 -1
  143. package/lib/typescript/src/constants/index.d.ts +5 -1
  144. package/lib/typescript/src/constants/index.d.ts.map +1 -1
  145. package/lib/typescript/src/constants/query.d.ts +4 -0
  146. package/lib/typescript/src/constants/query.d.ts.map +1 -1
  147. package/lib/typescript/src/context/ChatContext.d.ts.map +1 -1
  148. package/lib/typescript/src/hooks/message/useSendMessage.d.ts +2 -2
  149. package/lib/typescript/src/hooks/message/useSendMessage.d.ts.map +1 -1
  150. package/lib/typescript/src/hooks/message/useStreamMessage.d.ts.map +1 -1
  151. package/lib/typescript/src/hooks/messageActions/index.d.ts +10 -0
  152. package/lib/typescript/src/hooks/messageActions/index.d.ts.map +1 -0
  153. package/lib/typescript/src/hooks/messageActions/useAudioPlayer.d.ts +14 -0
  154. package/lib/typescript/src/hooks/messageActions/useAudioPlayer.d.ts.map +1 -0
  155. package/lib/typescript/src/hooks/messageActions/useCopyToClipboard.d.ts +9 -0
  156. package/lib/typescript/src/hooks/messageActions/useCopyToClipboard.d.ts.map +1 -0
  157. package/lib/typescript/src/hooks/messageActions/useFeedback.d.ts +18 -0
  158. package/lib/typescript/src/hooks/messageActions/useFeedback.d.ts.map +1 -0
  159. package/lib/typescript/src/hooks/messageActions/useSendFeedback.d.ts +6 -0
  160. package/lib/typescript/src/hooks/messageActions/useSendFeedback.d.ts.map +1 -0
  161. package/lib/typescript/src/hooks/messageActions/useShareMessage.d.ts +12 -0
  162. package/lib/typescript/src/hooks/messageActions/useShareMessage.d.ts.map +1 -0
  163. package/lib/typescript/src/hooks/session/useDeleteSession.d.ts +2 -0
  164. package/lib/typescript/src/hooks/session/useDeleteSession.d.ts.map +1 -0
  165. package/lib/typescript/src/hooks/session/useRenameSession.d.ts +2 -0
  166. package/lib/typescript/src/hooks/session/useRenameSession.d.ts.map +1 -0
  167. package/lib/typescript/src/hooks/session/useSearchSessions.d.ts +1 -1
  168. package/lib/typescript/src/hooks/session/useSearchSessions.d.ts.map +1 -1
  169. package/lib/typescript/src/hooks/session/useShareSession.d.ts +2 -0
  170. package/lib/typescript/src/hooks/session/useShareSession.d.ts.map +1 -0
  171. package/lib/typescript/src/hooks/upload/useImageUpload.d.ts +1 -1
  172. package/lib/typescript/src/hooks/upload/useImageUpload.d.ts.map +1 -1
  173. package/lib/typescript/src/services/endpoints.d.ts +5 -0
  174. package/lib/typescript/src/services/endpoints.d.ts.map +1 -1
  175. package/lib/typescript/src/services/index.d.ts +1 -0
  176. package/lib/typescript/src/services/index.d.ts.map +1 -1
  177. package/lib/typescript/src/services/playbackService.d.ts +2 -0
  178. package/lib/typescript/src/services/playbackService.d.ts.map +1 -0
  179. package/lib/typescript/src/store/audioPlayer.d.ts +27 -0
  180. package/lib/typescript/src/store/audioPlayer.d.ts.map +1 -0
  181. package/lib/typescript/src/store/messageActions.d.ts +9 -0
  182. package/lib/typescript/src/store/messageActions.d.ts.map +1 -0
  183. package/lib/typescript/src/store/session.d.ts.map +1 -1
  184. package/lib/typescript/src/translation/index.d.ts +3 -4
  185. package/lib/typescript/src/translation/index.d.ts.map +1 -1
  186. package/lib/typescript/src/translation/resources/i18n.d.ts +5 -0
  187. package/lib/typescript/src/translation/resources/i18n.d.ts.map +1 -0
  188. package/lib/typescript/src/types/chat.d.ts +16 -1
  189. package/lib/typescript/src/types/chat.d.ts.map +1 -1
  190. package/lib/typescript/src/types/dto.d.ts +11 -0
  191. package/lib/typescript/src/types/dto.d.ts.map +1 -1
  192. package/lib/typescript/src/types/index.d.ts +1 -0
  193. package/lib/typescript/src/types/index.d.ts.map +1 -1
  194. package/lib/typescript/src/types/messageActions.d.ts +85 -0
  195. package/lib/typescript/src/types/messageActions.d.ts.map +1 -0
  196. package/lib/typescript/src/types/ui.d.ts +16 -1
  197. package/lib/typescript/src/types/ui.d.ts.map +1 -1
  198. package/lib/typescript/src/utils/textCleaner.d.ts +30 -0
  199. package/lib/typescript/src/utils/textCleaner.d.ts.map +1 -0
  200. package/lib/typescript/src/utils/ui.d.ts +12 -1
  201. package/lib/typescript/src/utils/ui.d.ts.map +1 -1
  202. package/package.json +6 -6
  203. package/src/components/Drawer/DeleteSessionPopup.tsx +121 -0
  204. package/src/components/Drawer/DrawerContent.tsx +23 -7
  205. package/src/components/Drawer/RenameSessionPopup.tsx +145 -0
  206. package/src/components/Drawer/SearchInput.tsx +11 -2
  207. package/src/components/Drawer/SessionItem.tsx +22 -8
  208. package/src/components/Drawer/SessionList.tsx +0 -2
  209. package/src/components/Drawer/SessionOptionsBottomSheet.tsx +138 -0
  210. package/src/components/Drawer/ShareSessionPopup.tsx +145 -0
  211. package/src/components/chat/ChatEmpty.tsx +15 -5
  212. package/src/components/chat/ChatHeader.tsx +9 -4
  213. package/src/components/chat/ChatMessageList.tsx +78 -18
  214. package/src/components/chat/SuggestionItem.tsx +4 -3
  215. package/src/components/chat/footer/index.tsx +95 -14
  216. package/src/components/chat/footer/item/UploadImageItem.tsx +21 -1
  217. package/src/components/chat/index.tsx +8 -11
  218. package/src/components/chat/item/ChatAIAnswerMessageItem.tsx +55 -6
  219. package/src/components/chat/item/DeeplinkItem.tsx +30 -2
  220. package/src/components/chat/item/MessageActionsBar.tsx +326 -0
  221. package/src/components/chat/item/actions/ActionButton.tsx +65 -0
  222. package/src/components/portal/BottomSheet.tsx +307 -0
  223. package/src/components/portal/Popup.tsx +345 -0
  224. package/src/components/portal/index.tsx +5 -1
  225. package/src/components/product/CardHorizontal.tsx +45 -10
  226. package/src/constants/events.ts +34 -0
  227. package/src/constants/index.ts +6 -1
  228. package/src/constants/query.ts +4 -0
  229. package/src/context/ChatContext.tsx +6 -0
  230. package/src/hooks/message/useSendMessage.ts +47 -4
  231. package/src/hooks/message/useStreamMessage.ts +15 -4
  232. package/src/hooks/messageActions/index.ts +10 -0
  233. package/src/hooks/messageActions/useAudioPlayer.ts +346 -0
  234. package/src/hooks/messageActions/useCopyToClipboard.ts +38 -0
  235. package/src/hooks/messageActions/useFeedback.ts +114 -0
  236. package/src/hooks/messageActions/useSendFeedback.ts +31 -0
  237. package/src/hooks/messageActions/useShareMessage.ts +146 -0
  238. package/src/hooks/session/useDeleteSession.ts +25 -0
  239. package/src/hooks/session/useRenameSession.ts +37 -0
  240. package/src/hooks/session/useSearchSessions.ts +6 -1
  241. package/src/hooks/session/useShareSession.ts +22 -0
  242. package/src/hooks/upload/useImageUpload.ts +6 -2
  243. package/src/ignore.d.ts +20 -1
  244. package/src/services/endpoints.ts +10 -0
  245. package/src/services/index.ts +1 -0
  246. package/src/services/playbackService.ts +22 -0
  247. package/src/store/audioPlayer.ts +112 -0
  248. package/src/store/messageActions.ts +161 -0
  249. package/src/store/session.ts +4 -2
  250. package/src/translation/index.ts +27 -19
  251. package/src/translation/resources/i18n.ts +45 -0
  252. package/src/types/chat.ts +21 -1
  253. package/src/types/dto.ts +14 -0
  254. package/src/types/index.ts +1 -0
  255. package/src/types/messageActions.ts +131 -0
  256. package/src/types/ui.ts +19 -1
  257. package/src/utils/textCleaner.ts +65 -0
  258. package/src/utils/ui.tsx +29 -2
  259. package/lib/module/translation/resources/vi.js +0 -12
  260. package/lib/module/translation/resources/vi.js.map +0 -1
  261. package/lib/typescript/src/translation/resources/vi.d.ts +0 -11
  262. package/lib/typescript/src/translation/resources/vi.d.ts.map +0 -1
  263. package/src/translation/resources/vi.ts +0 -10
@@ -1,11 +1,14 @@
1
1
  "use strict";
2
2
 
3
3
  import { create } from 'zustand';
4
+ import { SessionLogType } from "../types/chat.js";
4
5
  const useSessionStore = create(set => ({
5
6
  sessionId: undefined,
6
- setSessionId: sessionId => set({
7
- sessionId
8
- })
7
+ setSessionId: (sessionId, sessionLogType = SessionLogType.accessed) => set({
8
+ sessionId,
9
+ sessionLogType
10
+ }),
11
+ sessionLogType: SessionLogType.accessed
9
12
  }));
10
13
  export default useSessionStore;
11
14
  //# sourceMappingURL=session.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["create","useSessionStore","set","sessionId","undefined","setSessionId"],"sourceRoot":"../../../src","sources":["store/session.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,SAAS;AAGhC,MAAMC,eAAe,GAAGD,MAAM,CAAgBE,GAAG,KAAM;EACrDC,SAAS,EAAEC,SAAS;EACpBC,YAAY,EAAGF,SAAS,IAAKD,GAAG,CAAC;IAAEC;EAAU,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,eAAeF,eAAe","ignoreList":[]}
1
+ {"version":3,"names":["create","SessionLogType","useSessionStore","set","sessionId","undefined","setSessionId","sessionLogType","accessed"],"sourceRoot":"../../../src","sources":["store/session.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,SAAS;AAChC,SAASC,cAAc,QAAsB,kBAAe;AAE5D,MAAMC,eAAe,GAAGF,MAAM,CAAgBG,GAAG,KAAM;EACrDC,SAAS,EAAEC,SAAS;EACpBC,YAAY,EAAEA,CAACF,SAAS,EAAEG,cAAc,GAAGN,cAAc,CAACO,QAAQ,KAChEL,GAAG,CAAC;IAAEC,SAAS;IAAEG;EAAe,CAAC,CAAC;EACpCA,cAAc,EAAEN,cAAc,CAACO;AACjC,CAAC,CAAC,CAAC;AAEH,eAAeN,eAAe","ignoreList":[]}
@@ -1,28 +1,24 @@
1
1
  "use strict";
2
2
 
3
- import i18n from 'i18next';
4
- import { initReactI18next } from 'react-i18next';
5
- import vi from "./resources/vi.js";
6
- if (!i18n.isInitialized) {
7
- i18n.use(initReactI18next).init({
8
- resources: {
9
- vi: {
10
- chatbot: vi
11
- }
12
- },
13
- lng: 'vi',
14
- // default
15
- fallbackLng: 'vi',
16
- interpolation: {
17
- escapeValue: false
18
- },
19
- ns: ['chatbot'],
20
- defaultNS: 'chatbot'
21
- });
22
- }
23
-
24
- //@ts-ignore
25
- const trans = (...args) => i18n.t(...args);
26
- export { i18n };
27
- export default trans;
3
+ import i18n from "./resources/i18n.js";
4
+ export const replaceAll = (target, oldStr, newStr) => {
5
+ return typeof target === 'string' ? target?.replace(new RegExp(oldStr, 'g'), newStr) || newStr : '';
6
+ };
7
+ export const replaceMulti = (target, param) => {
8
+ if (typeof target !== 'string') {
9
+ return '';
10
+ }
11
+ let out = target;
12
+ for (const key in param) {
13
+ if (key) {
14
+ const textReplace = '{{' + key + '}}';
15
+ out = replaceAll(out, textReplace, String(param[key]));
16
+ }
17
+ }
18
+ return out;
19
+ };
20
+ export const trans = (key, params) => {
21
+ const text = i18n?.vi?.[key] || '';
22
+ return params ? replaceMulti(text, params) : text;
23
+ };
28
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["i18n","initReactI18next","vi","isInitialized","use","init","resources","chatbot","lng","fallbackLng","interpolation","escapeValue","ns","defaultNS","trans","args","t"],"sourceRoot":"../../../src","sources":["translation/index.ts"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,SAAS;AAC1B,SAASC,gBAAgB,QAAQ,eAAe;AAChD,OAAOC,EAAE,MAAM,mBAAgB;AAE/B,IAAI,CAACF,IAAI,CAACG,aAAa,EAAE;EACvBH,IAAI,CAACI,GAAG,CAACH,gBAAgB,CAAC,CAACI,IAAI,CAAC;IAC9BC,SAAS,EAAE;MACTJ,EAAE,EAAE;QAAEK,OAAO,EAAEL;MAAG;IACpB,CAAC;IACDM,GAAG,EAAE,IAAI;IAAE;IACXC,WAAW,EAAE,IAAI;IACjBC,aAAa,EAAE;MAAEC,WAAW,EAAE;IAAM,CAAC;IACrCC,EAAE,EAAE,CAAC,SAAS,CAAC;IACfC,SAAS,EAAE;EACb,CAAC,CAAC;AACJ;;AAEA;AACA,MAAMC,KAAK,GAAGA,CAAC,GAAGC,IAAI,KAAKf,IAAI,CAACgB,CAAC,CAAC,GAAGD,IAAI,CAAQ;AAEjD,SAASf,IAAI;AACb,eAAec,KAAK","ignoreList":[]}
1
+ {"version":3,"names":["i18n","replaceAll","target","oldStr","newStr","replace","RegExp","replaceMulti","param","out","key","textReplace","String","trans","params","text","vi"],"sourceRoot":"../../../src","sources":["translation/index.ts"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,qBAAkB;AAEnC,OAAO,MAAMC,UAAU,GAAGA,CACxBC,MAA0B,EAC1BC,MAAc,EACdC,MAAc,KACX;EACH,OAAO,OAAOF,MAAM,KAAK,QAAQ,GAC7BA,MAAM,EAAEG,OAAO,CAAC,IAAIC,MAAM,CAACH,MAAM,EAAE,GAAG,CAAC,EAAEC,MAAM,CAAC,IAAIA,MAAM,GAC1D,EAAE;AACR,CAAC;AAED,OAAO,MAAMG,YAAY,GAAGA,CAACL,MAA0B,EAAEM,KAAU,KAAK;EACtE,IAAI,OAAON,MAAM,KAAK,QAAQ,EAAE;IAC9B,OAAO,EAAE;EACX;EACA,IAAIO,GAAG,GAAGP,MAAM;EAChB,KAAK,MAAMQ,GAAG,IAAIF,KAAK,EAAE;IACvB,IAAIE,GAAG,EAAE;MACP,MAAMC,WAAW,GAAG,IAAI,GAAGD,GAAG,GAAG,IAAI;MACrCD,GAAG,GAAGR,UAAU,CAACQ,GAAG,EAAEE,WAAW,EAAEC,MAAM,CAACJ,KAAK,CAACE,GAAG,CAAC,CAAC,CAAC;IACxD;EACF;EACA,OAAOD,GAAG;AACZ,CAAC;AAED,OAAO,MAAMI,KAAK,GAAGA,CAACH,GAAW,EAAEI,MAA4B,KAAK;EAClE,MAAMC,IAAI,GAAGf,IAAI,EAAEgB,EAAE,GAAGN,GAAG,CAAC,IAAI,EAAE;EAClC,OAAOI,MAAM,GAAGP,YAAY,CAACQ,IAAI,EAAED,MAAM,CAAC,GAAGC,IAAI;AACnD,CAAC","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ const i18nKey = {
4
+ input_placeholder: 'Bạn muốn hỏi gì hôm nay?',
5
+ ai_answer_note: 'Lưu ý: Thông tin từ AI chỉ mang tính tham khảo, cần xác minh với chuyên gia hoặc nguồn uy tín.',
6
+ chat_empty_title: 'Bạn cần hỗ trợ gì hôm nay?',
7
+ chat_empty_description_1: 'Hãy đặt câu hỏi hoặc chia sẻ vấn đề của bạn!',
8
+ chat_empty_description_2: 'Những gợi ý dành cho bạn:',
9
+ photo_library: 'Thư viện ảnh',
10
+ camera: 'Chụp ảnh',
11
+ // Session options
12
+ session_options_title: 'Tuỳ chọn phiên chat',
13
+ session_rename: 'Đổi tên',
14
+ session_share: 'Chia sẻ',
15
+ session_delete: 'Xoá',
16
+ // Rename session
17
+ rename_session_title: 'Đổi tên phiên chat',
18
+ rename_session_placeholder: 'Nhập tên phiên chat',
19
+ rename_session_success: 'Đổi tên phiên chat thành công',
20
+ rename_session_cancel: 'Huỷ',
21
+ rename_session_confirm: 'Đổi tên',
22
+ // Share session
23
+ share_session_title: 'Chia sẻ phiên chat',
24
+ share_session_description: 'Để chia sẻ phiên chat "{sessionName}", vui lòng sao chép liên kết bên dưới và gửi đến người bạn muốn chia sẻ.',
25
+ share_session_link_label: 'Liên kết chia sẻ',
26
+ share_session_cancel: 'Huỷ',
27
+ share_session_confirm: 'Sao chép',
28
+ share_session_success: 'Đã sao chép liên kết của phiên chat. Vui lòng chia sẻ liên kết',
29
+ // Delete session
30
+ delete_session_title: 'Xoá phiên chat',
31
+ delete_session_description: 'Bạn có chắc chắn muốn xóa tất cả đoạn chat của phiên chat "{sessionName}"?',
32
+ delete_session_cancel: 'Không',
33
+ delete_session_confirm: 'Xoá',
34
+ delete_session_success: 'Đã xoá phiên chat thành công'
35
+ };
36
+ export default {
37
+ vi: i18nKey
38
+ };
39
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["i18nKey","input_placeholder","ai_answer_note","chat_empty_title","chat_empty_description_1","chat_empty_description_2","photo_library","camera","session_options_title","session_rename","session_share","session_delete","rename_session_title","rename_session_placeholder","rename_session_success","rename_session_cancel","rename_session_confirm","share_session_title","share_session_description","share_session_link_label","share_session_cancel","share_session_confirm","share_session_success","delete_session_title","delete_session_description","delete_session_cancel","delete_session_confirm","delete_session_success","vi"],"sourceRoot":"../../../../src","sources":["translation/resources/i18n.ts"],"mappings":";;AAAA,MAAMA,OAA+B,GAAG;EACtCC,iBAAiB,EAAE,0BAA0B;EAC7CC,cAAc,EACZ,gGAAgG;EAClGC,gBAAgB,EAAE,4BAA4B;EAC9CC,wBAAwB,EAAE,8CAA8C;EACxEC,wBAAwB,EAAE,2BAA2B;EACrDC,aAAa,EAAE,cAAc;EAC7BC,MAAM,EAAE,UAAU;EAElB;EACAC,qBAAqB,EAAE,qBAAqB;EAC5CC,cAAc,EAAE,SAAS;EACzBC,aAAa,EAAE,SAAS;EACxBC,cAAc,EAAE,KAAK;EAErB;EACAC,oBAAoB,EAAE,oBAAoB;EAC1CC,0BAA0B,EAAE,qBAAqB;EACjDC,sBAAsB,EAAE,+BAA+B;EACvDC,qBAAqB,EAAE,KAAK;EAC5BC,sBAAsB,EAAE,SAAS;EAEjC;EACAC,mBAAmB,EAAE,oBAAoB;EACzCC,yBAAyB,EACvB,+GAA+G;EACjHC,wBAAwB,EAAE,kBAAkB;EAC5CC,oBAAoB,EAAE,KAAK;EAC3BC,qBAAqB,EAAE,UAAU;EACjCC,qBAAqB,EACnB,gEAAgE;EAElE;EACAC,oBAAoB,EAAE,gBAAgB;EACtCC,0BAA0B,EACxB,4EAA4E;EAC9EC,qBAAqB,EAAE,OAAO;EAC9BC,sBAAsB,EAAE,KAAK;EAC7BC,sBAAsB,EAAE;AAC1B,CAAC;AAED,eAAe;EACbC,EAAE,EAAE5B;AACN,CAAC","ignoreList":[]}
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
2
 
3
- export {};
3
+ export let SessionLogType = /*#__PURE__*/function (SessionLogType) {
4
+ SessionLogType["accessed"] = "accessed";
5
+ SessionLogType["newChatBtn"] = "new_chat_btn";
6
+ SessionLogType["oldChat"] = "oldchat";
7
+ return SessionLogType;
8
+ }({});
9
+ export let SendActionLogType = /*#__PURE__*/function (SendActionLogType) {
10
+ SendActionLogType["sendBtn"] = "send_btn";
11
+ SendActionLogType["promptSuggestion"] = "prompt_suggestion";
12
+ SendActionLogType["retry"] = "retry";
13
+ return SendActionLogType;
14
+ }({});
4
15
  //# sourceMappingURL=chat.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/chat.ts"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":["SessionLogType","SendActionLogType"],"sourceRoot":"../../../src","sources":["types/chat.ts"],"mappings":";;AAiCA,WAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAM1B,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
@@ -4,4 +4,5 @@ export * from "./common.js";
4
4
  export * from "./dto.js";
5
5
  export * from "./chat.js";
6
6
  export * from "./ui.js";
7
+ export * from "./messageActions.js";
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;AAAA,cAAc,aAAU;AACxB,cAAc,UAAO;AACrB,cAAc,WAAQ;AACtB,cAAc,SAAM","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;AAAA,cAAc,aAAU;AACxB,cAAc,UAAO;AACrB,cAAc,WAAQ;AACtB,cAAc,SAAM;AACpB,cAAc,qBAAkB","ignoreList":[]}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Message Actions Types
5
+ * Type definitions for message action features (Like, Dislike, Audio, Copy, Export PDF, Share)
6
+ */
7
+
8
+ // Feedback Types
9
+ export let FeedbackType = /*#__PURE__*/function (FeedbackType) {
10
+ FeedbackType["like"] = "LIKE";
11
+ FeedbackType["dislike"] = "DISLIKE";
12
+ return FeedbackType;
13
+ }({});
14
+ export let LikeReason = /*#__PURE__*/function (LikeReason) {
15
+ LikeReason["suitable_product"] = "\u0110\u1EC1 xu\u1EA5t s\u1EA3n ph\u1EA9m ph\xF9 h\u1EE3p";
16
+ LikeReason["easy_explanation"] = "Gi\u1EA3i th\xEDch d\u1EC5 hi\u1EC3u";
17
+ LikeReason["accurate_info"] = "Th\xF4ng tin ch\xEDnh x\xE1c, h\u1EEFu \xEDch";
18
+ LikeReason["complete_answer"] = "Tr\u1EA3 l\u1EDDi \u0111\u1EA7y \u0111\u1EE7 c\xE2u h\u1ECFi, y\xEAu c\u1EA7u";
19
+ return LikeReason;
20
+ }({});
21
+ export let DislikeReason = /*#__PURE__*/function (DislikeReason) {
22
+ DislikeReason["wrong_suggestion"] = "Ch\u01B0a \u0111\u1EC1 xu\u1EA5t \u0111\xFAng nhu c\u1EA7u";
23
+ DislikeReason["hard_explanation"] = "Gi\u1EA3i th\xEDch kh\xF3 hi\u1EC3u";
24
+ DislikeReason["inaccurate_info"] = "Th\xF4ng tin ch\u01B0a ch\xEDnh x\xE1c, \u0111\u1EA7y \u0111\u1EE7";
25
+ DislikeReason["irrelevant_answer"] = "Tr\u1EA3 l\u1EDDi kh\xF4ng li\xEAn quan";
26
+ DislikeReason["want_different_answer"] = "T\xF4i mu\u1ED1n nh\u1EADn c\xE2u tr\u1EA3 l\u1EDDi kh\xE1c";
27
+ return DislikeReason;
28
+ }({});
29
+ // Audio Types
30
+ export let AudioState = /*#__PURE__*/function (AudioState) {
31
+ AudioState["idle"] = "idle";
32
+ AudioState["loading"] = "loading";
33
+ AudioState["playing"] = "playing";
34
+ return AudioState;
35
+ }({});
36
+ // Export Types
37
+ export let ExportState = /*#__PURE__*/function (ExportState) {
38
+ ExportState["idle"] = "idle";
39
+ ExportState["loading"] = "loading";
40
+ ExportState["success"] = "success";
41
+ ExportState["error"] = "error";
42
+ return ExportState;
43
+ }({});
44
+ // Share Types
45
+ export let ShareState = /*#__PURE__*/function (ShareState) {
46
+ ShareState["idle"] = "idle";
47
+ ShareState["loading"] = "loading";
48
+ ShareState["success"] = "success";
49
+ ShareState["error"] = "error";
50
+ return ShareState;
51
+ }({});
52
+
53
+ // Store State Interface
54
+
55
+ // Store Actions Interface
56
+ //# sourceMappingURL=messageActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FeedbackType","LikeReason","DislikeReason","AudioState","ExportState","ShareState"],"sourceRoot":"../../../src","sources":["types/messageActions.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA;AACA,WAAYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAKxB,WAAYC,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAOtB,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAezB;AACA,WAAYC,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAYtB;AACA,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAcvB;AACA,WAAYC,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;;AActB;;AAiBA","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Text Cleaning Utilities
5
+ * Utilities for cleaning markdown, truncating text, and validating content
6
+ */
7
+
8
+ /**
9
+ * Remove markdown formatting from text for cleaner copy/share
10
+ * @param text - Text with markdown formatting
11
+ * @returns Clean text without markdown
12
+ */
13
+ export const cleanMarkdown = text => {
14
+ return text.replace(/\*\*(.*?)\*\*/g, '$1') // Bold
15
+ .replace(/\*(.*?)\*/g, '$1') // Italic
16
+ .replace(/`(.*?)`/g, '$1') // Inline code
17
+ .replace(/\[(.*?)\]\(.*?\)/g, '$1') // Links
18
+ .replace(/<!--.*?-->/g, '') // HTML comments
19
+ .replace(/^#{1,6}\s+/gm, '') // Headers
20
+ .replace(/^>\s+/gm, '') // Blockquotes
21
+ .replace(/^[-*+]\s+/gm, '') // List items
22
+ .trim();
23
+ };
24
+
25
+ /**
26
+ * Truncate text to specified length with suffix
27
+ * @param text - Text to truncate
28
+ * @param maxLength - Maximum length
29
+ * @param suffix - Suffix to add (default: '...')
30
+ * @returns Truncated text
31
+ */
32
+ export const truncateText = (text, maxLength, suffix = '...') => {
33
+ if (text.length <= maxLength) return text;
34
+ return text.substring(0, maxLength - suffix.length) + suffix;
35
+ };
36
+
37
+ /**
38
+ * Validate text content
39
+ * @param text - Text to validate
40
+ * @param minLength - Minimum length (default: 1)
41
+ * @param maxLength - Maximum length (default: 100000)
42
+ * @returns Validation result with error message if invalid
43
+ */
44
+ export const validateContent = (text, minLength = 1, maxLength = 100000) => {
45
+ if (!text || text.trim().length === 0) {
46
+ return {
47
+ valid: false,
48
+ error: 'Nội dung trống'
49
+ };
50
+ }
51
+ if (text.length < minLength) {
52
+ return {
53
+ valid: false,
54
+ error: 'Nội dung quá ngắn'
55
+ };
56
+ }
57
+ if (text.length > maxLength) {
58
+ return {
59
+ valid: false,
60
+ error: 'Nội dung quá dài'
61
+ };
62
+ }
63
+ return {
64
+ valid: true
65
+ };
66
+ };
67
+ //# sourceMappingURL=textCleaner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["cleanMarkdown","text","replace","trim","truncateText","maxLength","suffix","length","substring","validateContent","minLength","valid","error"],"sourceRoot":"../../../src","sources":["utils/textCleaner.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,aAAa,GAAIC,IAAY,IAAa;EACrD,OAAOA,IAAI,CACRC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;EAAA,CAChCA,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;EAAA,CAC5BA,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;EAAA,CAC1BA,OAAO,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;EAAA,CACnCA,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;EAAA,CAC3BA,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;EAAA,CAC5BA,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;EAAA,CACvBA,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;EAAA,CAC3BC,IAAI,CAAC,CAAC;AACX,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAGA,CAC1BH,IAAY,EACZI,SAAiB,EACjBC,MAAM,GAAG,KAAK,KACH;EACX,IAAIL,IAAI,CAACM,MAAM,IAAIF,SAAS,EAAE,OAAOJ,IAAI;EACzC,OAAOA,IAAI,CAACO,SAAS,CAAC,CAAC,EAAEH,SAAS,GAAGC,MAAM,CAACC,MAAM,CAAC,GAAGD,MAAM;AAC9D,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,eAAe,GAAGA,CAC7BR,IAAY,EACZS,SAAS,GAAG,CAAC,EACbL,SAAS,GAAG,MAAM,KACqB;EACvC,IAAI,CAACJ,IAAI,IAAIA,IAAI,CAACE,IAAI,CAAC,CAAC,CAACI,MAAM,KAAK,CAAC,EAAE;IACrC,OAAO;MAAEI,KAAK,EAAE,KAAK;MAAEC,KAAK,EAAE;IAAiB,CAAC;EAClD;EAEA,IAAIX,IAAI,CAACM,MAAM,GAAGG,SAAS,EAAE;IAC3B,OAAO;MAAEC,KAAK,EAAE,KAAK;MAAEC,KAAK,EAAE;IAAoB,CAAC;EACrD;EAEA,IAAIX,IAAI,CAACM,MAAM,GAAGF,SAAS,EAAE;IAC3B,OAAO;MAAEM,KAAK,EAAE,KAAK;MAAEC,KAAK,EAAE;IAAmB,CAAC;EACpD;EAEA,OAAO;IAAED,KAAK,EAAE;EAAK,CAAC;AACxB,CAAC","ignoreList":[]}
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-ignore
4
4
 
5
- import { toastRef } from "../constants/index.js";
5
+ import { bottomSheetRef, popupRef, toastRef } from "../constants/index.js";
6
6
  // @ts-ignore
7
7
 
8
8
  class UIUtils {
@@ -21,6 +21,32 @@ class UIUtils {
21
21
  stretch: true
22
22
  });
23
23
  return msg;
24
+ },
25
+ showSuccess: message => {
26
+ toastRef.current?.open({
27
+ title: message,
28
+ theme: 'success',
29
+ stretch: true
30
+ });
31
+ }
32
+ };
33
+ bottomSheet = {
34
+ open: params => {
35
+ bottomSheetRef.current?.open(params);
36
+ },
37
+ dismiss: () => {
38
+ bottomSheetRef.current?.dismiss();
39
+ }
40
+ };
41
+ popup = {
42
+ open: params => {
43
+ popupRef.current?.open(params);
44
+ },
45
+ dismiss: () => {
46
+ popupRef.current?.dismiss();
47
+ },
48
+ dismissAll: () => {
49
+ popupRef.current?.dismissAll();
24
50
  }
25
51
  };
26
52
  }
@@ -1 +1 @@
1
- {"version":3,"names":["toastRef","UIUtils","toast","open","params","current","dismiss","showError","error","withToast","msg","message","response","data","title","theme","stretch"],"sourceRoot":"../../../src","sources":["utils/ui.tsx"],"mappings":";;AAAA;;AAEA,SAASA,QAAQ,QAAQ,uBAAc;AACvC;;AAGA,MAAMC,OAAO,CAAC;EACZC,KAAK,GAAG;IACNC,IAAI,EAEFC,MAAyE,IACtE;MACHJ,QAAQ,CAACK,OAAO,EAAEF,IAAI,CAACC,MAAM,CAAC;IAChC,CAAC;IACDE,OAAO,EAAEA,CAAA,KAAM;MACbN,QAAQ,CAACK,OAAO,EAAEC,OAAO,CAAC,CAAC;IAC7B,CAAC;IACDC,SAAS,EAAEA,CAACC,KAAU,EAAEC,SAAS,GAAG,IAAI,KAAK;MAC3C,MAAMC,GAAG,GACPF,KAAK,EAAEG,OAAO,IACdH,KAAK,EAAEI,QAAQ,EAAED,OAAO,IACxBH,KAAK,EAAEK,IAAI,EAAEF,OAAO,IACpBH,KAAK,EAAEI,QAAQ,EAAEC,IAAI,EAAEF,OAAO,IAC9B,iCAAiC;MACnCF,SAAS,IACPT,QAAQ,CAACK,OAAO,EAAEF,IAAI,CAAC;QAAEW,KAAK,EAAEJ,GAAG;QAAEK,KAAK,EAAE,QAAQ;QAAEC,OAAO,EAAE;MAAK,CAAC,CAAC;MACxE,OAAON,GAAG;IACZ;EACF,CAAC;AACH;AAEA,eAAe,IAAIT,OAAO,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["bottomSheetRef","popupRef","toastRef","UIUtils","toast","open","params","current","dismiss","showError","error","withToast","msg","message","response","data","title","theme","stretch","showSuccess","bottomSheet","popup","dismissAll"],"sourceRoot":"../../../src","sources":["utils/ui.tsx"],"mappings":";;AAAA;;AAEA,SAASA,cAAc,EAAEC,QAAQ,EAAEC,QAAQ,QAAQ,uBAAc;AACjE;;AAIA,MAAMC,OAAO,CAAC;EACZC,KAAK,GAAG;IACNC,IAAI,EAEFC,MAAyE,IACtE;MACHJ,QAAQ,CAACK,OAAO,EAAEF,IAAI,CAACC,MAAM,CAAC;IAChC,CAAC;IACDE,OAAO,EAAEA,CAAA,KAAM;MACbN,QAAQ,CAACK,OAAO,EAAEC,OAAO,CAAC,CAAC;IAC7B,CAAC;IACDC,SAAS,EAAEA,CAACC,KAAU,EAAEC,SAAS,GAAG,IAAI,KAAK;MAC3C,MAAMC,GAAG,GACPF,KAAK,EAAEG,OAAO,IACdH,KAAK,EAAEI,QAAQ,EAAED,OAAO,IACxBH,KAAK,EAAEK,IAAI,EAAEF,OAAO,IACpBH,KAAK,EAAEI,QAAQ,EAAEC,IAAI,EAAEF,OAAO,IAC9B,iCAAiC;MACnCF,SAAS,IACPT,QAAQ,CAACK,OAAO,EAAEF,IAAI,CAAC;QAAEW,KAAK,EAAEJ,GAAG;QAAEK,KAAK,EAAE,QAAQ;QAAEC,OAAO,EAAE;MAAK,CAAC,CAAC;MACxE,OAAON,GAAG;IACZ,CAAC;IACDO,WAAW,EAAGN,OAAe,IAAK;MAChCX,QAAQ,CAACK,OAAO,EAAEF,IAAI,CAAC;QACrBW,KAAK,EAAEH,OAAO;QACdI,KAAK,EAAE,SAAS;QAChBC,OAAO,EAAE;MACX,CAAC,CAAC;IACJ;EACF,CAAC;EACDE,WAAW,GAAG;IACZf,IAAI,EAAGC,MAAgC,IAAK;MAC1CN,cAAc,CAACO,OAAO,EAAEF,IAAI,CAACC,MAAM,CAAC;IACtC,CAAC;IACDE,OAAO,EAAEA,CAAA,KAAM;MACbR,cAAc,CAACO,OAAO,EAAEC,OAAO,CAAC,CAAC;IACnC;EACF,CAAC;EACDa,KAAK,GAAG;IACNhB,IAAI,EAAGC,MAAmB,IAAK;MAC7BL,QAAQ,CAACM,OAAO,EAAEF,IAAI,CAACC,MAAM,CAAC;IAChC,CAAC;IACDE,OAAO,EAAEA,CAAA,KAAM;MACbP,QAAQ,CAACM,OAAO,EAAEC,OAAO,CAAC,CAAC;IAC7B,CAAC;IACDc,UAAU,EAAEA,CAAA,KAAM;MAChBrB,QAAQ,CAACM,OAAO,EAAEe,UAAU,CAAC,CAAC;IAChC;EACF,CAAC;AACH;AAEA,eAAe,IAAInB,OAAO,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import { SessionSearchItem } from '../../types/dto';
2
+ export declare const openDeleteSessionPopup: (session: SessionSearchItem, logGA?: (event: string, params?: any) => void) => void;
3
+ //# sourceMappingURL=DeleteSessionPopup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteSessionPopup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/DeleteSessionPopup.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAyDpD,eAAO,MAAM,sBAAsB,GACjC,SAAS,iBAAiB,EAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,SAiD9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DrawerContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/DrawerContent.tsx"],"names":[],"mappings":"AAYA,QAAA,MAAM,aAAa,+CAwElB,CAAC;AASF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"DrawerContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/DrawerContent.tsx"],"names":[],"mappings":"AAcA,QAAA,MAAM,aAAa,+CAqFlB,CAAC;AAUF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { SessionSearchItem } from '../../types/dto';
2
+ export declare const openRenameSessionPopup: (session: SessionSearchItem) => void;
3
+ //# sourceMappingURL=RenameSessionPopup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenameSessionPopup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/RenameSessionPopup.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAgHpD,eAAO,MAAM,sBAAsB,GAAI,SAAS,iBAAiB,SAYhE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/SearchInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,QAAA,MAAM,WAAW,wDAgBf,CAAC;AAWH,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/SearchInput.tsx"],"names":[],"mappings":"AAMA,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,QAAA,MAAM,WAAW,wDAuBf,CAAC;AAWH,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SessionItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/SessionItem.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,UAAU,gBAAgB;IACxB,IAAI,EAAE,iBAAiB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC5C;AAED,QAAA,MAAM,WAAW,wDAyBf,CAAC;AAyBH,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"SessionItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/SessionItem.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD,UAAU,gBAAgB;IACxB,IAAI,EAAE,iBAAiB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC5C;AAED,QAAA,MAAM,WAAW,wDAqCf,CAAC;AAyBH,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SessionList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/SessionList.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOpD,UAAU,gBAAgB;IACxB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,WAAW,wDAsChB,CAAC;AAWF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"SessionList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/SessionList.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOpD,UAAU,gBAAgB;IACxB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,WAAW,wDAoChB,CAAC;AAWF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { SessionSearchItem } from '../../types/dto';
2
+ export declare const openSessionOptionsBottomSheet: (session: SessionSearchItem, closeDrawer?: () => void, logGA?: (event: string, params?: any) => void) => void;
3
+ //# sourceMappingURL=SessionOptionsBottomSheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionOptionsBottomSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/SessionOptionsBottomSheet.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AA4BpD,eAAO,MAAM,6BAA6B,GACxC,SAAS,iBAAiB,EAC1B,cAAc,MAAM,IAAI,EACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,SA2E9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { SessionSearchItem } from '../../types/dto';
2
+ export declare const openShareSessionPopup: (session: SessionSearchItem) => void;
3
+ //# sourceMappingURL=ShareSessionPopup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShareSessionPopup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drawer/ShareSessionPopup.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAkFpD,eAAO,MAAM,qBAAqB,GAAI,SAAS,iBAAiB,SAqC/D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/ChatEmpty.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,SAAS,+CAwCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ChatEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/ChatEmpty.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,SAAS,+CAgDd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/ChatHeader.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,UAAU,+CAyCtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/ChatHeader.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,UAAU,+CA4CtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMessageList.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/ChatMessageList.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAQhD,UAAU,qBAAqB;IAC7B,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;CAC9B;AACD,QAAA,MAAM,eAAe,GAAI,iBAAsB,qBAAqB,4CA6CnE,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"ChatMessageList.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/ChatMessageList.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD,UAAU,qBAAqB;IAC7B,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;CAC9B;AAED,QAAA,MAAM,eAAe,GAAI,iBAAsB,qBAAqB,4CAyFnE,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { ISuggestionItem } from '../../types/dto';
2
2
  interface SuggestionItemProps {
3
3
  item: ISuggestionItem;
4
- onPressItem: (item: ISuggestionItem) => void;
4
+ index: number;
5
+ onPressItem: (item: ISuggestionItem, index: number) => void;
5
6
  }
6
- declare const SuggestionItem: ({ item, onPressItem }: SuggestionItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const SuggestionItem: ({ item, index, onPressItem }: SuggestionItemProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export default SuggestionItem;
8
9
  //# sourceMappingURL=SuggestionItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SuggestionItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/SuggestionItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAYlD,UAAU,mBAAmB;IAC3B,IAAI,EAAE,eAAe,CAAC;IACtB,WAAW,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;CAC9C;AAED,QAAA,MAAM,cAAc,GAAI,uBAAuB,mBAAmB,4CAyEjE,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"SuggestionItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/SuggestionItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAYlD,UAAU,mBAAmB;IAC3B,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7D;AAED,QAAA,MAAM,cAAc,GAAI,8BAA8B,mBAAmB,4CAyExE,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/footer/index.tsx"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAG5D,OAAO,EAAE,sBAAsB,EAAS,MAAM,gCAAgC,CAAC;AAE/E,OAAO,EAEL,YAAY,EAGb,MAAM,gBAAgB,CAAC;AAKxB,MAAM,WAAW,WAAY,SAAQ,KAAK;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,UAAW,SAAQ,sBAAsB;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;AAMlD,UAAU,gBAAgB;IACxB,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED,QAAA,MAAM,UAAU,GAAI,iBAAiB,gBAAgB,4CAwVpD,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/footer/index.tsx"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAG5D,OAAO,EAAE,sBAAsB,EAAS,MAAM,gCAAgC,CAAC;AAE/E,OAAO,EAEL,YAAY,EAIb,MAAM,gBAAgB,CAAC;AAQxB,MAAM,WAAW,WAAY,SAAQ,KAAK;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,UAAW,SAAQ,sBAAsB;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;AAOlD,UAAU,gBAAgB;IACxB,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED,QAAA,MAAM,UAAU,GAAI,iBAAiB,gBAAgB,4CAmapD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UploadImageItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/chat/footer/item/UploadImageItem.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAKjC,UAAU,KAAK;IACb,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CACxC;AAED,QAAA,MAAM,eAAe,GAAI,+BAA+B,KAAK,4CAwC5D,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"UploadImageItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/chat/footer/item/UploadImageItem.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAQjC,UAAU,KAAK;IACb,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CACxC;AAED,QAAA,MAAM,eAAe,GAAI,+BAA+B,KAAK,4CAyD5D,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/index.tsx"],"names":[],"mappings":"AAYA,QAAA,MAAM,SAAS,+CAiBd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/index.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,SAAS,+CAkBd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatAIAnswerMessageItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/item/ChatAIAnswerMessageItem.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAiB9C,UAAU,4BAA4B;IACpC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAID,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAyF1D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,YA0CtD;AAmMD,QAAA,MAAM,uBAAuB,GAAI,mBAG9B,4BAA4B,4CAsE9B,CAAC;AACF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"ChatAIAnswerMessageItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/item/ChatAIAnswerMessageItem.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAmB9C,UAAU,4BAA4B;IACpC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAID,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAyF1D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,YA0CtD;AA8MD,QAAA,MAAM,uBAAuB,GAAI,mBAG9B,4BAA4B,4CA0G9B,CAAC;AACF,eAAe,uBAAuB,CAAC"}
@@ -1,8 +1,9 @@
1
1
  interface DeeplinkItemProps {
2
2
  children?: React.ReactNode;
3
3
  href?: string;
4
+ messageId?: string;
4
5
  }
5
6
  export declare function parseDeepLinkHref(href: string): Record<string, string> | null;
6
- declare const DeeplinkItem: ({ children, href }: DeeplinkItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const DeeplinkItem: ({ children, href, messageId }: DeeplinkItemProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export default DeeplinkItem;
8
9
  //# sourceMappingURL=DeeplinkItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeeplinkItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/item/DeeplinkItem.tsx"],"names":[],"mappings":"AAIA,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAiB7E;AAED,QAAA,MAAM,YAAY,GAAI,oBAAoB,iBAAiB,4CA2C1D,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"DeeplinkItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/item/DeeplinkItem.tsx"],"names":[],"mappings":"AAMA,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAiB7E;AAED,QAAA,MAAM,YAAY,GAAI,+BAA+B,iBAAiB,4CAoErE,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * MessageActionsBar Component
3
+ * Main container that orchestrates all action buttons (Like, Dislike, Audio, Copy, Share)
4
+ */
5
+ import React from 'react';
6
+ import type { IMessageItem } from '../../../types/dto';
7
+ interface MessageActionsBarProps {
8
+ messageId: string;
9
+ messageContent: string;
10
+ isVisible: boolean;
11
+ productImages?: string[];
12
+ message?: IMessageItem;
13
+ }
14
+ declare const _default: React.MemoExoticComponent<({ messageId, messageContent, isVisible, productImages, message, }: MessageActionsBarProps) => import("react/jsx-runtime").JSX.Element | null>;
15
+ export default _default;
16
+ //# sourceMappingURL=MessageActionsBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageActionsBar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/item/MessageActionsBar.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAuC,MAAM,OAAO,CAAC;AA+B5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIvD,UAAU,sBAAsB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;sHAQE,sBAAsB;AAuOzB,wBAA6C"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * ActionButton Component
3
+ * Reusable button component for all message action types
4
+ */
5
+ import React from 'react';
6
+ interface ActionButtonProps {
7
+ icon: string;
8
+ iconSize?: number;
9
+ iconColor?: string;
10
+ isActive?: boolean;
11
+ isLoading?: boolean;
12
+ disabled?: boolean;
13
+ onPress: () => void;
14
+ testID?: string;
15
+ accessibilityLabel?: string;
16
+ }
17
+ declare const _default: React.MemoExoticComponent<({ icon, iconSize, iconColor, isActive, isLoading, disabled, onPress, testID, accessibilityLabel, }: ActionButtonProps) => import("react/jsx-runtime").JSX.Element>;
18
+ export default _default;
19
+ //# sourceMappingURL=ActionButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/chat/item/actions/ActionButton.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;uJAYE,iBAAiB;AAoBpB,wBAAwC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { WithBottomSheetProps } from '../../types';
3
+ export declare const useBottomSheetBackHandler: (bottomSheetRef: React.RefObject<any>) => {
4
+ handleSheetPositionChange: any;
5
+ };
6
+ declare const _default: React.NamedExoticComponent<React.RefAttributes<WithBottomSheetProps>>;
7
+ export default _default;
8
+ //# sourceMappingURL=BottomSheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/portal/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAUN,MAAM,OAAO,CAAC;AAoBf,OAAO,EAA4B,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAY7E,eAAO,MAAM,yBAAyB,GACpC,gBAAgB,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC;;CA0BrC,CAAC;;AAyNF,wBAAiC"}
@@ -0,0 +1,4 @@
1
+ import { WithPopupProps } from '../../types';
2
+ declare const _default: import("react").NamedExoticComponent<import("react").RefAttributes<WithPopupProps>>;
3
+ export default _default;
4
+ //# sourceMappingURL=Popup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../../../src/components/portal/Popup.tsx"],"names":[],"mappings":"AA8CA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;;AA0O7C,wBAA2B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/portal/index.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,MAAM,oFAMV,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/portal/index.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM,oFAQV,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,6 +1,7 @@
1
1
  interface IProductHorizontalCardProps {
2
2
  productId?: string;
3
+ messageId?: string;
3
4
  }
4
- declare const ProducHorizontalCard: (props: IProductHorizontalCardProps) => import("react/jsx-runtime").JSX.Element;
5
- export default ProducHorizontalCard;
5
+ declare const ProductHorizontalCard: (props: IProductHorizontalCardProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default ProductHorizontalCard;
6
7
  //# sourceMappingURL=CardHorizontal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardHorizontal.d.ts","sourceRoot":"","sources":["../../../../../src/components/product/CardHorizontal.tsx"],"names":[],"mappings":"AAoBA,UAAU,2BAA2B;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,oBAAoB,GAAI,OAAO,2BAA2B,4CAsS/D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"CardHorizontal.d.ts","sourceRoot":"","sources":["../../../../../src/components/product/CardHorizontal.tsx"],"names":[],"mappings":"AAsBA,UAAU,2BAA2B;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,qBAAqB,GAAI,OAAO,2BAA2B,4CAsUhE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}