@ethora/chat-component-rn 26.7.4 → 26.7.5

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 (288) hide show
  1. package/CHANGELOG.md +0 -54
  2. package/README.md +8 -31
  3. package/lib/commonjs/assets/icons.js +2 -7
  4. package/lib/commonjs/assets/icons.js.map +1 -1
  5. package/lib/commonjs/components/Header/HeaderRoomList.js +6 -20
  6. package/lib/commonjs/components/Header/HeaderRoomList.js.map +1 -1
  7. package/lib/commonjs/components/MainComponents/ChatRoom.js +14 -36
  8. package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
  9. package/lib/commonjs/components/MainComponents/MessageList.js +23 -7
  10. package/lib/commonjs/components/MainComponents/MessageList.js.map +1 -1
  11. package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js +13 -14
  12. package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
  13. package/lib/commonjs/components/MainComponents/RoomList.js +32 -62
  14. package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
  15. package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +98 -309
  16. package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -1
  17. package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +110 -320
  18. package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
  19. package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +213 -552
  20. package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
  21. package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +2 -6
  22. package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
  23. package/lib/commonjs/components/Modals/Modal/Modal.js +0 -8
  24. package/lib/commonjs/components/Modals/Modal/Modal.js.map +1 -1
  25. package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js +1 -2
  26. package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js.map +1 -1
  27. package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js +104 -202
  28. package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
  29. package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js +0 -8
  30. package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
  31. package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js +2 -4
  32. package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
  33. package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js +21 -7
  34. package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
  35. package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js +244 -507
  36. package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
  37. package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js +46 -74
  38. package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
  39. package/lib/commonjs/components/Modals/styledModalComponents.js +2 -9
  40. package/lib/commonjs/components/Modals/styledModalComponents.js.map +1 -1
  41. package/lib/commonjs/components/RoomComponents/ChatRoomItem.js +7 -17
  42. package/lib/commonjs/components/RoomComponents/ChatRoomItem.js.map +1 -1
  43. package/lib/commonjs/components/styled/SendInput.js +11 -80
  44. package/lib/commonjs/components/styled/SendInput.js.map +1 -1
  45. package/lib/commonjs/components/styled/StyledComponents.js +3 -9
  46. package/lib/commonjs/components/styled/StyledComponents.js.map +1 -1
  47. package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js +4 -11
  48. package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
  49. package/lib/commonjs/context/xmppProvider.js +35 -6
  50. package/lib/commonjs/context/xmppProvider.js.map +1 -1
  51. package/lib/commonjs/helpers/updateMessagesTillLast.js +40 -12
  52. package/lib/commonjs/helpers/updateMessagesTillLast.js.map +1 -1
  53. package/lib/commonjs/hooks/useChatRoomFocus.js +9 -3
  54. package/lib/commonjs/hooks/useChatRoomFocus.js.map +1 -1
  55. package/lib/commonjs/hooks/useLogout.js +5 -0
  56. package/lib/commonjs/hooks/useLogout.js.map +1 -1
  57. package/lib/commonjs/hooks/useSendMessage.js +50 -23
  58. package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
  59. package/lib/commonjs/i18n/strings.js +1 -121
  60. package/lib/commonjs/i18n/strings.js.map +1 -1
  61. package/lib/commonjs/main.js +0 -6
  62. package/lib/commonjs/main.js.map +1 -1
  63. package/lib/commonjs/networking/api-requests/user.api.js +0 -59
  64. package/lib/commonjs/networking/api-requests/user.api.js.map +1 -1
  65. package/lib/commonjs/networking/outboundQueue.js +18 -0
  66. package/lib/commonjs/networking/outboundQueue.js.map +1 -1
  67. package/lib/commonjs/networking/stanzaHandlers.js +10 -1
  68. package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
  69. package/lib/commonjs/networking/xmppClient.js +107 -7
  70. package/lib/commonjs/networking/xmppClient.js.map +1 -1
  71. package/lib/commonjs/roomStore/chatSettingsSlice.js +1 -3
  72. package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
  73. package/lib/commonjs/roomStore/roomsSlice.js +22 -3
  74. package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
  75. package/lib/module/assets/icons.js +1 -6
  76. package/lib/module/assets/icons.js.map +1 -1
  77. package/lib/module/components/Header/HeaderRoomList.js +6 -20
  78. package/lib/module/components/Header/HeaderRoomList.js.map +1 -1
  79. package/lib/module/components/MainComponents/ChatRoom.js +14 -36
  80. package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
  81. package/lib/module/components/MainComponents/MessageList.js +24 -8
  82. package/lib/module/components/MainComponents/MessageList.js.map +1 -1
  83. package/lib/module/components/MainComponents/ProfileImagePlaceholder.js +13 -14
  84. package/lib/module/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
  85. package/lib/module/components/MainComponents/RoomList.js +32 -62
  86. package/lib/module/components/MainComponents/RoomList.js.map +1 -1
  87. package/lib/module/components/Menu/HeaderRoomListMenu.js +101 -311
  88. package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -1
  89. package/lib/module/components/Modals/AttachSheet/AttachSheet.js +113 -311
  90. package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
  91. package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +217 -555
  92. package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
  93. package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +2 -6
  94. package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
  95. package/lib/module/components/Modals/Modal/Modal.js +1 -9
  96. package/lib/module/components/Modals/Modal/Modal.js.map +1 -1
  97. package/lib/module/components/Modals/NewChatModal/ModalContent.js +1 -2
  98. package/lib/module/components/Modals/NewChatModal/ModalContent.js.map +1 -1
  99. package/lib/module/components/Modals/NewChatModal/NewChatModal.js +106 -205
  100. package/lib/module/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
  101. package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js +0 -8
  102. package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
  103. package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js +2 -4
  104. package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
  105. package/lib/module/components/Modals/UserProfileModal/EditUserModal.js +23 -9
  106. package/lib/module/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
  107. package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js +248 -509
  108. package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
  109. package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js +48 -76
  110. package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
  111. package/lib/module/components/Modals/styledModalComponents.js +2 -9
  112. package/lib/module/components/Modals/styledModalComponents.js.map +1 -1
  113. package/lib/module/components/RoomComponents/ChatRoomItem.js +7 -17
  114. package/lib/module/components/RoomComponents/ChatRoomItem.js.map +1 -1
  115. package/lib/module/components/styled/SendInput.js +12 -81
  116. package/lib/module/components/styled/SendInput.js.map +1 -1
  117. package/lib/module/components/styled/StyledComponents.js +3 -9
  118. package/lib/module/components/styled/StyledComponents.js.map +1 -1
  119. package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js +4 -11
  120. package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
  121. package/lib/module/context/xmppProvider.js +35 -6
  122. package/lib/module/context/xmppProvider.js.map +1 -1
  123. package/lib/module/helpers/updateMessagesTillLast.js +41 -13
  124. package/lib/module/helpers/updateMessagesTillLast.js.map +1 -1
  125. package/lib/module/hooks/useChatRoomFocus.js +9 -3
  126. package/lib/module/hooks/useChatRoomFocus.js.map +1 -1
  127. package/lib/module/hooks/useLogout.js +5 -0
  128. package/lib/module/hooks/useLogout.js.map +1 -1
  129. package/lib/module/hooks/useSendMessage.js +51 -24
  130. package/lib/module/hooks/useSendMessage.js.map +1 -1
  131. package/lib/module/i18n/strings.js +1 -121
  132. package/lib/module/i18n/strings.js.map +1 -1
  133. package/lib/module/main.js +1 -1
  134. package/lib/module/main.js.map +1 -1
  135. package/lib/module/networking/api-requests/user.api.js +0 -56
  136. package/lib/module/networking/api-requests/user.api.js.map +1 -1
  137. package/lib/module/networking/outboundQueue.js +17 -0
  138. package/lib/module/networking/outboundQueue.js.map +1 -1
  139. package/lib/module/networking/stanzaHandlers.js +10 -1
  140. package/lib/module/networking/stanzaHandlers.js.map +1 -1
  141. package/lib/module/networking/xmppClient.js +107 -7
  142. package/lib/module/networking/xmppClient.js.map +1 -1
  143. package/lib/module/roomStore/chatSettingsSlice.js +1 -3
  144. package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
  145. package/lib/module/roomStore/roomsSlice.js +20 -2
  146. package/lib/module/roomStore/roomsSlice.js.map +1 -1
  147. package/lib/typescript/assets/icons.d.ts +0 -16
  148. package/lib/typescript/assets/icons.d.ts.map +1 -1
  149. package/lib/typescript/components/Header/HeaderRoomList.d.ts.map +1 -1
  150. package/lib/typescript/components/MainComponents/ChatRoom.d.ts.map +1 -1
  151. package/lib/typescript/components/MainComponents/MessageList.d.ts.map +1 -1
  152. package/lib/typescript/components/MainComponents/ProfileImagePlaceholder.d.ts.map +1 -1
  153. package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
  154. package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts +0 -3
  155. package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts.map +1 -1
  156. package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts +0 -9
  157. package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts.map +1 -1
  158. package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts +0 -10
  159. package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -1
  160. package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
  161. package/lib/typescript/components/Modals/Modal/Modal.d.ts.map +1 -1
  162. package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts +2 -4
  163. package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts.map +1 -1
  164. package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts +1 -1
  165. package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts.map +1 -1
  166. package/lib/typescript/components/Modals/NewChatModal/UpdNewChatModal.d.ts.map +1 -1
  167. package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts +1 -6
  168. package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts.map +1 -1
  169. package/lib/typescript/components/Modals/UserProfileModal/EditUserModal.d.ts.map +1 -1
  170. package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts +0 -16
  171. package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts.map +1 -1
  172. package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts +0 -1
  173. package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts.map +1 -1
  174. package/lib/typescript/components/Modals/styledModalComponents.d.ts.map +1 -1
  175. package/lib/typescript/components/RoomComponents/ChatRoomItem.d.ts.map +1 -1
  176. package/lib/typescript/components/styled/SendInput.d.ts.map +1 -1
  177. package/lib/typescript/components/styled/StyledComponents.d.ts.map +1 -1
  178. package/lib/typescript/components/styled/StyledInputComponents/StyledInputComponents.d.ts.map +1 -1
  179. package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
  180. package/lib/typescript/helpers/updateMessagesTillLast.d.ts.map +1 -1
  181. package/lib/typescript/hooks/useChatRoomFocus.d.ts.map +1 -1
  182. package/lib/typescript/hooks/useLogout.d.ts.map +1 -1
  183. package/lib/typescript/hooks/useSendMessage.d.ts.map +1 -1
  184. package/lib/typescript/i18n/strings.d.ts.map +1 -1
  185. package/lib/typescript/main.d.ts +1 -1
  186. package/lib/typescript/main.d.ts.map +1 -1
  187. package/lib/typescript/networking/api-requests/user.api.d.ts +0 -27
  188. package/lib/typescript/networking/api-requests/user.api.d.ts.map +1 -1
  189. package/lib/typescript/networking/outboundQueue.d.ts +16 -0
  190. package/lib/typescript/networking/outboundQueue.d.ts.map +1 -1
  191. package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
  192. package/lib/typescript/networking/xmppClient.d.ts +33 -1
  193. package/lib/typescript/networking/xmppClient.d.ts.map +1 -1
  194. package/lib/typescript/roomStore/chatSettingsSlice.d.ts.map +1 -1
  195. package/lib/typescript/roomStore/roomsSlice.d.ts +18 -1
  196. package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
  197. package/lib/typescript/types/models/room.model.d.ts +15 -0
  198. package/lib/typescript/types/models/room.model.d.ts.map +1 -1
  199. package/lib/typescript/types/types.d.ts +20 -20
  200. package/lib/typescript/types/types.d.ts.map +1 -1
  201. package/package.json +1 -6
  202. package/src/assets/icons.tsx +9 -48
  203. package/src/components/Header/HeaderRoomList.tsx +5 -20
  204. package/src/components/MainComponents/ChatRoom.tsx +20 -38
  205. package/src/components/MainComponents/MessageList.tsx +24 -8
  206. package/src/components/MainComponents/ProfileImagePlaceholder.tsx +14 -21
  207. package/src/components/MainComponents/RoomList.tsx +34 -65
  208. package/src/components/Menu/HeaderRoomListMenu.tsx +71 -310
  209. package/src/components/Modals/AttachSheet/AttachSheet.tsx +97 -331
  210. package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +279 -598
  211. package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +2 -4
  212. package/src/components/Modals/Modal/Modal.tsx +0 -7
  213. package/src/components/Modals/NewChatModal/ModalContent.tsx +3 -6
  214. package/src/components/Modals/NewChatModal/NewChatModal.tsx +117 -219
  215. package/src/components/Modals/NewChatModal/UpdNewChatModal.tsx +1 -12
  216. package/src/components/Modals/SelectUsersModal/SelectUsersModal.tsx +4 -14
  217. package/src/components/Modals/UserProfileModal/EditUserModal.tsx +25 -9
  218. package/src/components/Modals/UserProfileModal/UserProfileModal.tsx +307 -617
  219. package/src/components/Modals/UserSettingsModal/UserSettingsModal.tsx +58 -75
  220. package/src/components/Modals/styledModalComponents.tsx +2 -9
  221. package/src/components/RoomComponents/ChatRoomItem.tsx +7 -14
  222. package/src/components/styled/SendInput.tsx +12 -83
  223. package/src/components/styled/StyledComponents.ts +3 -9
  224. package/src/components/styled/StyledInputComponents/StyledInputComponents.tsx +4 -11
  225. package/src/context/xmppProvider.tsx +41 -8
  226. package/src/helpers/updateMessagesTillLast.tsx +42 -17
  227. package/src/hooks/useChatRoomFocus.ts +11 -3
  228. package/src/hooks/useLogout.tsx +7 -0
  229. package/src/hooks/useSendMessage.tsx +60 -24
  230. package/src/i18n/strings.ts +1 -121
  231. package/src/main.ts +1 -1
  232. package/src/networking/api-requests/user.api.ts +0 -71
  233. package/src/networking/outboundQueue.ts +29 -0
  234. package/src/networking/stanzaHandlers.ts +9 -1
  235. package/src/networking/xmppClient.ts +118 -7
  236. package/src/roomStore/chatSettingsSlice.ts +1 -3
  237. package/src/roomStore/roomsSlice.ts +20 -2
  238. package/src/types/models/room.model.ts +15 -0
  239. package/src/types/types.ts +20 -22
  240. package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js +0 -226
  241. package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js.map +0 -1
  242. package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js +0 -556
  243. package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js.map +0 -1
  244. package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js +0 -210
  245. package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js.map +0 -1
  246. package/lib/commonjs/helpers/getChatBackground.js +0 -23
  247. package/lib/commonjs/helpers/getChatBackground.js.map +0 -1
  248. package/lib/commonjs/helpers/mediaLibraryRuntime.js +0 -31
  249. package/lib/commonjs/helpers/mediaLibraryRuntime.js.map +0 -1
  250. package/lib/commonjs/helpers/pickImageAsset.js +0 -68
  251. package/lib/commonjs/helpers/pickImageAsset.js.map +0 -1
  252. package/lib/commonjs/helpers/sheetGestures.js +0 -32
  253. package/lib/commonjs/helpers/sheetGestures.js.map +0 -1
  254. package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js +0 -223
  255. package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js.map +0 -1
  256. package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js +0 -548
  257. package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js.map +0 -1
  258. package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js +0 -205
  259. package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js.map +0 -1
  260. package/lib/module/helpers/getChatBackground.js +0 -18
  261. package/lib/module/helpers/getChatBackground.js.map +0 -1
  262. package/lib/module/helpers/mediaLibraryRuntime.js +0 -25
  263. package/lib/module/helpers/mediaLibraryRuntime.js.map +0 -1
  264. package/lib/module/helpers/pickImageAsset.js +0 -63
  265. package/lib/module/helpers/pickImageAsset.js.map +0 -1
  266. package/lib/module/helpers/sheetGestures.js +0 -26
  267. package/lib/module/helpers/sheetGestures.js.map +0 -1
  268. package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts +0 -9
  269. package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts.map +0 -1
  270. package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts +0 -75
  271. package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts.map +0 -1
  272. package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts +0 -25
  273. package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts.map +0 -1
  274. package/lib/typescript/helpers/getChatBackground.d.ts +0 -15
  275. package/lib/typescript/helpers/getChatBackground.d.ts.map +0 -1
  276. package/lib/typescript/helpers/mediaLibraryRuntime.d.ts +0 -3
  277. package/lib/typescript/helpers/mediaLibraryRuntime.d.ts.map +0 -1
  278. package/lib/typescript/helpers/pickImageAsset.d.ts +0 -27
  279. package/lib/typescript/helpers/pickImageAsset.d.ts.map +0 -1
  280. package/lib/typescript/helpers/sheetGestures.d.ts +0 -20
  281. package/lib/typescript/helpers/sheetGestures.d.ts.map +0 -1
  282. package/src/components/Modals/ChatProfileModal/ReportChatModal.tsx +0 -244
  283. package/src/components/Modals/ProfileHeader/ProfileHeader.tsx +0 -615
  284. package/src/components/Modals/ProfileHeader/ProfileMenu.tsx +0 -217
  285. package/src/helpers/getChatBackground.ts +0 -18
  286. package/src/helpers/mediaLibraryRuntime.ts +0 -25
  287. package/src/helpers/pickImageAsset.ts +0 -68
  288. package/src/helpers/sheetGestures.ts +0 -25
@@ -2,80 +2,34 @@
2
2
 
3
3
  /** @format */
4
4
 
5
- import React, { useCallback, useEffect, useRef, useState } from 'react';
6
- import { ActivityIndicator, Animated, Easing, Image, Modal, PanResponder, Platform, ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
7
- import { CameraIcon, DocumentIcon } from '../../../assets/icons';
5
+ import React, { useEffect, useRef, useState } from 'react';
6
+ import { Animated, Easing, Modal, Platform, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
7
+ import { CameraIcon, DocumentIcon, MediaIcon } from '../../../assets/icons';
8
8
  import { useChatSettingState } from '../../../hooks/useChatSettingState';
9
9
  import { chatTextStyle } from '../../../helpers/typography';
10
- import { getMediaLibrary } from '../../../helpers/mediaLibraryRuntime';
11
- import { shouldClaimVerticalDrag, shouldDismissOnDrag } from '../../../helpers/sheetGestures';
12
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
11
  // Starting translateY for the sheet. Larger than any realistic sheet
14
12
  // height so it sits fully below the viewport before opening; the exact
15
13
  // number doesn't matter visually because it animates to 0.
16
- const SHEET_OFFSCREEN = 800;
17
- // Re-exported so this sheet's own tests keep addressing them here.
18
- export { shouldClaimVerticalDrag, shouldDismissOnDrag };
19
- const RECENTS_COUNT = 12;
20
- const THUMB_SIZE = 88;
21
- const THUMB_DECODE = THUMB_SIZE * 2;
22
- const EXT_MIME = {
23
- jpg: 'image/jpeg',
24
- jpeg: 'image/jpeg',
25
- png: 'image/png',
26
- gif: 'image/gif',
27
- webp: 'image/webp',
28
- heic: 'image/heic',
29
- heif: 'image/heif'
30
- };
31
- const guessMimeType = name => {
32
- const ext = name.split('.').pop()?.toLowerCase() ?? '';
33
- return EXT_MIME[ext] ?? 'image/jpeg';
34
- };
35
- const toRecentItem = async (MediaLibrary, asset) => {
36
- const filename = asset?.filename || `photo_${asset?.id ?? Date.now()}`;
37
- if (asset?.uri && !asset.uri.startsWith('ph://')) {
38
- return {
39
- id: asset.id,
40
- uri: asset.uri,
41
- filename
42
- };
43
- }
44
- try {
45
- const info = await MediaLibrary?.getAssetInfoAsync?.(asset, {
46
- shouldDownloadFromNetwork: false
47
- });
48
- if (!info?.localUri) {
49
- return null;
50
- }
51
- return {
52
- id: asset.id,
53
- uri: info.localUri,
54
- filename
55
- };
56
- } catch {
57
- return null;
58
- }
59
- };
14
+ const SHEET_OFFSCREEN = 600;
60
15
  const AttachSheet = ({
61
16
  visible,
62
17
  onClose,
63
18
  onCamera,
64
19
  onGallery,
65
20
  onDocument,
66
- onPickMedia,
67
21
  primaryColor = '#0052CD'
68
22
  }) => {
69
23
  const {
70
24
  config
71
25
  } = useChatSettingState();
72
26
  const ts = config?.typography?.attachSheet;
27
+ // Pending handler captured on row tap — runs once the EXIT animation
28
+ // finishes so iOS doesn't try to present an image picker over a
29
+ // still-dismissing modal (was the original reason for the
30
+ // platform-split + Modal.onDismiss dance). The animation completion
31
+ // callback now drives this on both platforms.
73
32
  const pendingRef = useRef(null);
74
- const runPending = () => {
75
- const fn = pendingRef.current;
76
- pendingRef.current = null;
77
- fn?.();
78
- };
79
33
 
80
34
  // Local "modal stays mounted while animating out" state. The parent
81
35
  // controls `visible`; we mirror it but delay unmount until the exit
@@ -91,8 +45,6 @@ const AttachSheet = ({
91
45
  // bottom-sheet feel.
92
46
  const backdropOpacity = useRef(new Animated.Value(0)).current;
93
47
  const sheetTranslateY = useRef(new Animated.Value(SHEET_OFFSCREEN)).current;
94
- const onCloseRef = useRef(onClose);
95
- onCloseRef.current = onClose;
96
48
  useEffect(() => {
97
49
  if (visible) {
98
50
  setMounted(true);
@@ -124,6 +76,8 @@ const AttachSheet = ({
124
76
  if (!mounted) {
125
77
  return;
126
78
  }
79
+ // Exit: fade the backdrop, slide the sheet down, then unmount and
80
+ // fire any pending picker handler.
127
81
  Animated.parallel([Animated.timing(backdropOpacity, {
128
82
  toValue: 0,
129
83
  duration: 180,
@@ -141,120 +95,34 @@ const AttachSheet = ({
141
95
  return;
142
96
  } // interrupted (rapid re-open) → leave state alone
143
97
  setMounted(false);
144
- if (Platform.OS !== 'ios') {
145
- runPending();
146
- }
98
+ const fn = pendingRef.current;
99
+ pendingRef.current = null;
100
+ fn?.();
147
101
  });
148
102
  return undefined;
149
103
  }, [visible]); // eslint-disable-line react-hooks/exhaustive-deps
150
104
 
151
- const makeDragResponder = claimOnStart => PanResponder.create({
152
- onStartShouldSetPanResponder: () => claimOnStart,
153
- // Capture, so a pull that starts on a row (whose Touchable grabbed
154
- // the responder on touch-down) still drags the sheet.
155
- onMoveShouldSetPanResponderCapture: (_evt, g) => claimOnStart || shouldClaimVerticalDrag(g.dy, g.dx),
156
- onMoveShouldSetPanResponder: (_evt, g) => claimOnStart || shouldClaimVerticalDrag(g.dy, g.dx),
157
- onPanResponderTerminationRequest: () => false,
158
- onPanResponderMove: (_evt, g) => {
159
- sheetTranslateY.setValue(Math.max(0, g.dy));
160
- },
161
- onPanResponderRelease: (_evt, g) => {
162
- if (shouldDismissOnDrag(g.dy, g.vy)) {
163
- onCloseRef.current();
164
- return;
165
- }
166
- Animated.spring(sheetTranslateY, {
167
- toValue: 0,
168
- tension: 90,
169
- friction: 14,
170
- useNativeDriver: true
171
- }).start();
172
- },
173
- onPanResponderTerminate: () => {
174
- Animated.spring(sheetTranslateY, {
175
- toValue: 0,
176
- tension: 90,
177
- friction: 14,
178
- useNativeDriver: true
179
- }).start();
180
- }
181
- });
182
- const sheetPanRef = useRef(null);
183
- const grabberPanRef = useRef(null);
184
- if (!sheetPanRef.current) {
185
- sheetPanRef.current = makeDragResponder(false);
186
- }
187
- if (!grabberPanRef.current) {
188
- grabberPanRef.current = makeDragResponder(true);
189
- }
190
- const sheetPan = sheetPanRef.current;
191
- const grabberPan = grabberPanRef.current;
192
- const [recents, setRecents] = useState([]);
193
- const [loadingRecents, setLoadingRecents] = useState(false);
194
- const lastLoadRef = useRef(0);
195
- const RECENTS_TTL_MS = 15000;
196
- const loadRecents = useCallback(async () => {
197
- const MediaLibrary = getMediaLibrary();
198
- if (!MediaLibrary?.getAssetsAsync) {
199
- setLoadingRecents(false);
200
- return;
201
- }
202
- try {
203
- const perm = await MediaLibrary.getPermissionsAsync();
204
- if (!perm?.granted) {
205
- setRecents([]);
206
- return;
207
- }
208
- const page = await MediaLibrary.getAssetsAsync({
209
- first: RECENTS_COUNT,
210
- sortBy: [MediaLibrary.SortBy?.creationTime ?? 'creationTime'],
211
- mediaType: [MediaLibrary.MediaType?.photo ?? 'photo']
212
- });
213
- const items = await Promise.all((page?.assets ?? []).map(asset => toRecentItem(MediaLibrary, asset)));
214
- lastLoadRef.current = Date.now();
215
- setRecents(items.filter(Boolean));
216
- } catch (err) {
217
- console.warn('AttachSheet: could not read recent media', err);
218
- setRecents([]);
219
- } finally {
220
- setLoadingRecents(false);
221
- }
222
- }, []);
223
- useEffect(() => {
224
- if (!visible) {
225
- return undefined;
226
- }
227
- if (recents.length && Date.now() - lastLoadRef.current < RECENTS_TTL_MS) {
228
- return undefined;
229
- }
230
- setLoadingRecents(true);
231
- const timer = setTimeout(() => {
232
- loadRecents();
233
- }, 250);
234
- return () => clearTimeout(timer);
235
- }, [visible]);
236
105
  const trigger = handler => () => {
106
+ // Capture the handler and ask parent to close. The exit-animation
107
+ // completion above fires `handler` AFTER the sheet has slid away,
108
+ // so iOS no longer tries to present a picker over a dismissing
109
+ // modal — and Android no longer needs the ad-hoc 150ms setTimeout.
237
110
  pendingRef.current = handler;
238
- if (Platform.OS === 'ios') {
239
- setMounted(false);
240
- }
241
111
  onClose();
242
112
  };
243
- const handleRecentPress = item => trigger(() => {
244
- if (onPickMedia) {
245
- onPickMedia({
246
- uri: item.uri,
247
- name: item.filename,
248
- mimeType: guessMimeType(item.filename),
249
- isVideo: false
250
- });
251
- } else {
252
- onGallery();
253
- }
254
- });
255
113
  const rows = [{
256
- id: 'Document',
257
- label: 'Upload a File',
114
+ label: 'Take photo',
115
+ hint: 'Capture with the camera',
116
+ Icon: CameraIcon,
117
+ handler: onCamera
118
+ }, {
119
+ label: 'Photo or video',
120
+ hint: 'Pick from your library',
121
+ Icon: MediaIcon,
122
+ handler: onGallery
123
+ }, {
124
+ label: 'Document',
125
+ hint: 'Choose a file',
258
126
  Icon: DocumentIcon,
259
127
  handler: onDocument
260
128
  }];
@@ -270,113 +138,65 @@ const AttachSheet = ({
270
138
  // Hardware-back / iOS gesture also routes through onClose, which
271
139
  // flips `visible` and triggers our exit animation above.
272
140
  ,
273
- onDismiss: Platform.OS === 'ios' ? runPending : undefined,
274
141
  children: /*#__PURE__*/_jsxs(Animated.View, {
275
142
  style: [styles.backdrop, {
276
143
  opacity: backdropOpacity
277
144
  }],
278
145
  children: [/*#__PURE__*/_jsx(TouchableOpacity, {
279
- testID: "attach-backdrop",
280
146
  style: StyleSheet.absoluteFill,
281
147
  activeOpacity: 1,
282
148
  onPress: onClose
283
- }), /*#__PURE__*/_jsxs(Animated.View, {
149
+ }), /*#__PURE__*/_jsx(Animated.View, {
284
150
  style: [styles.sheet, {
285
151
  transform: [{
286
152
  translateY: sheetTranslateY
287
153
  }]
288
154
  }],
289
- ...sheetPan.panHandlers,
290
- children: [/*#__PURE__*/_jsx(View, {
291
- testID: "attach-grabber",
292
- style: styles.grabberArea,
293
- ...grabberPan.panHandlers,
294
- children: /*#__PURE__*/_jsx(View, {
155
+ children: /*#__PURE__*/_jsxs(TouchableOpacity, {
156
+ activeOpacity: 1,
157
+ children: [/*#__PURE__*/_jsx(View, {
295
158
  style: styles.grabber
296
- })
297
- }), /*#__PURE__*/_jsxs(View, {
298
- style: styles.sectionHeader,
299
- children: [/*#__PURE__*/_jsx(Text, {
300
- style: [styles.sectionTitle, chatTextStyle(ts?.title)],
301
- children: "Photos & Videos"
302
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
303
- testID: "attach-view-library",
159
+ }), /*#__PURE__*/_jsx(Text, {
160
+ style: [styles.title, chatTextStyle(ts?.title)],
161
+ children: "Attach"
162
+ }), rows.map(({
163
+ label,
164
+ hint,
165
+ Icon,
166
+ handler
167
+ }, idx) => /*#__PURE__*/_jsxs(TouchableOpacity, {
304
168
  activeOpacity: 0.6,
305
- onPress: trigger(onGallery),
306
- hitSlop: {
307
- top: 8,
308
- bottom: 8,
309
- left: 8,
310
- right: 8
311
- },
169
+ style: [styles.row, idx < rows.length - 1 && styles.rowDivider],
170
+ onPress: trigger(handler),
171
+ children: [/*#__PURE__*/_jsx(View, {
172
+ style: [styles.iconBubble, {
173
+ backgroundColor: primaryColor + '14'
174
+ }],
175
+ children: /*#__PURE__*/_jsx(Icon, {
176
+ color: primaryColor,
177
+ width: 20,
178
+ height: 20
179
+ })
180
+ }), /*#__PURE__*/_jsxs(View, {
181
+ style: styles.rowText,
182
+ children: [/*#__PURE__*/_jsx(Text, {
183
+ style: [styles.rowLabel, chatTextStyle(ts?.rowLabel)],
184
+ children: label
185
+ }), /*#__PURE__*/_jsx(Text, {
186
+ style: [styles.rowHint, chatTextStyle(ts?.rowHint)],
187
+ children: hint
188
+ })]
189
+ })]
190
+ }, label)), /*#__PURE__*/_jsx(TouchableOpacity, {
191
+ activeOpacity: 0.6,
192
+ style: styles.cancelRow,
193
+ onPress: onClose,
312
194
  children: /*#__PURE__*/_jsx(Text, {
313
- style: [styles.sectionAction, {
314
- color: primaryColor
315
- }, chatTextStyle(ts?.viewLibrary)],
316
- children: "View Library"
317
- })
318
- })]
319
- }), /*#__PURE__*/_jsxs(ScrollView, {
320
- horizontal: true,
321
- showsHorizontalScrollIndicator: false,
322
- contentContainerStyle: styles.strip,
323
- keyboardShouldPersistTaps: "handled",
324
- children: [/*#__PURE__*/_jsx(TouchableOpacity, {
325
- testID: "attach-row-Camera",
326
- activeOpacity: 0.7,
327
- style: styles.cameraTile,
328
- onPress: trigger(onCamera),
329
- children: /*#__PURE__*/_jsx(CameraIcon, {
330
- color: "#8A8A8E",
331
- width: 26,
332
- height: 26
333
- })
334
- }), loadingRecents && recents.length === 0 && /*#__PURE__*/_jsx(View, {
335
- style: styles.loadingTile,
336
- children: /*#__PURE__*/_jsx(ActivityIndicator, {
337
- color: "#8A8A8E"
195
+ style: [styles.cancelLabel, chatTextStyle(ts?.cancelButton)],
196
+ children: "Cancel"
338
197
  })
339
- }), recents.map(item => /*#__PURE__*/_jsx(TouchableOpacity, {
340
- testID: `attach-recent-${item.id}`,
341
- activeOpacity: 0.8,
342
- style: styles.thumbWrap,
343
- onPress: handleRecentPress(item),
344
- children: /*#__PURE__*/_jsx(Image, {
345
- source: {
346
- uri: item.uri,
347
- width: THUMB_DECODE,
348
- height: THUMB_DECODE
349
- },
350
- style: styles.thumb,
351
- resizeMethod: "resize",
352
- resizeMode: "cover",
353
- fadeDuration: 0
354
- })
355
- }, item.id))]
356
- }), /*#__PURE__*/_jsx(View, {
357
- style: styles.rowsDivider
358
- }), rows.map(({
359
- id,
360
- label,
361
- Icon,
362
- handler
363
- }) => /*#__PURE__*/_jsxs(TouchableOpacity, {
364
- testID: `attach-row-${id}`,
365
- activeOpacity: 0.6,
366
- style: styles.row,
367
- onPress: trigger(handler),
368
- children: [/*#__PURE__*/_jsx(View, {
369
- style: styles.rowIcon,
370
- children: /*#__PURE__*/_jsx(Icon, {
371
- color: "#1C1C1E",
372
- width: 20,
373
- height: 20
374
- })
375
- }), /*#__PURE__*/_jsx(Text, {
376
- style: [styles.rowLabel, chatTextStyle(ts?.rowLabel)],
377
- children: label
378
198
  })]
379
- }, id))]
199
+ })
380
200
  })]
381
201
  })
382
202
  });
@@ -391,7 +211,7 @@ const styles = StyleSheet.create({
391
211
  backgroundColor: '#fff',
392
212
  borderTopLeftRadius: 24,
393
213
  borderTopRightRadius: 24,
394
- paddingTop: 4,
214
+ paddingTop: 8,
395
215
  paddingBottom: Platform.OS === 'ios' ? 32 : 20,
396
216
  shadowColor: '#000',
397
217
  shadowOffset: {
@@ -402,83 +222,65 @@ const styles = StyleSheet.create({
402
222
  shadowRadius: 12,
403
223
  elevation: 16
404
224
  },
405
- grabberArea: {
406
- alignItems: 'center',
407
- paddingTop: 10,
408
- paddingBottom: 14
409
- },
410
225
  grabber: {
226
+ alignSelf: 'center',
411
227
  width: 40,
412
228
  height: 4,
413
229
  borderRadius: 2,
414
- backgroundColor: '#D9D9DE'
230
+ backgroundColor: '#D9D9DE',
231
+ marginBottom: 12
232
+ },
233
+ title: {
234
+ fontSize: 13,
235
+ fontWeight: '600',
236
+ color: '#8A8A8E',
237
+ letterSpacing: 0.4,
238
+ textTransform: 'uppercase',
239
+ paddingHorizontal: 20,
240
+ paddingBottom: 8
415
241
  },
416
- sectionHeader: {
242
+ row: {
417
243
  flexDirection: 'row',
418
244
  alignItems: 'center',
419
- justifyContent: 'space-between',
420
245
  paddingHorizontal: 20,
421
- paddingBottom: 12
422
- },
423
- sectionTitle: {
424
- fontSize: 17,
425
- fontWeight: '700',
426
- color: '#1C1C1E'
246
+ paddingVertical: 14
427
247
  },
428
- sectionAction: {
429
- fontSize: 15,
430
- fontWeight: '500'
248
+ rowDivider: {
249
+ borderBottomWidth: StyleSheet.hairlineWidth,
250
+ borderBottomColor: '#EFEFF2'
431
251
  },
432
- strip: {
433
- paddingHorizontal: 16,
434
- paddingBottom: 16,
435
- gap: 8
436
- },
437
- cameraTile: {
438
- width: THUMB_SIZE,
439
- height: THUMB_SIZE,
440
- borderRadius: 16,
441
- borderWidth: 1,
442
- borderColor: '#E4E4E9',
443
- backgroundColor: '#FAFAFC',
444
- alignItems: 'center',
445
- justifyContent: 'center'
446
- },
447
- loadingTile: {
448
- width: THUMB_SIZE,
449
- height: THUMB_SIZE,
252
+ iconBubble: {
253
+ width: 40,
254
+ height: 40,
255
+ borderRadius: 20,
450
256
  alignItems: 'center',
451
- justifyContent: 'center'
257
+ justifyContent: 'center',
258
+ marginRight: 14
452
259
  },
453
- thumbWrap: {
454
- width: THUMB_SIZE,
455
- height: THUMB_SIZE,
456
- borderRadius: 16,
457
- overflow: 'hidden',
458
- backgroundColor: '#EFEFF2'
260
+ rowText: {
261
+ flex: 1
459
262
  },
460
- thumb: {
461
- width: '100%',
462
- height: '100%'
463
- },
464
- rowsDivider: {
465
- height: StyleSheet.hairlineWidth,
466
- backgroundColor: '#EFEFF2'
263
+ rowLabel: {
264
+ fontSize: 16,
265
+ fontWeight: '500',
266
+ color: '#1C1C1E'
467
267
  },
468
- row: {
469
- flexDirection: 'row',
470
- alignItems: 'center',
471
- paddingHorizontal: 20,
472
- paddingVertical: 16
268
+ rowHint: {
269
+ fontSize: 12,
270
+ color: '#8A8A8E',
271
+ marginTop: 2
473
272
  },
474
- rowIcon: {
475
- width: 28,
273
+ cancelRow: {
274
+ marginTop: 8,
275
+ marginHorizontal: 16,
276
+ paddingVertical: 14,
277
+ borderRadius: 14,
476
278
  alignItems: 'center',
477
- marginRight: 12
279
+ backgroundColor: '#F2F2F7'
478
280
  },
479
- rowLabel: {
281
+ cancelLabel: {
480
282
  fontSize: 16,
481
- fontWeight: '500',
283
+ fontWeight: '600',
482
284
  color: '#1C1C1E'
483
285
  }
484
286
  });
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","useEffect","useRef","useState","ActivityIndicator","Animated","Easing","Image","Modal","PanResponder","Platform","ScrollView","StyleSheet","Text","TouchableOpacity","View","CameraIcon","DocumentIcon","useChatSettingState","chatTextStyle","getMediaLibrary","shouldClaimVerticalDrag","shouldDismissOnDrag","jsx","_jsx","jsxs","_jsxs","SHEET_OFFSCREEN","RECENTS_COUNT","THUMB_SIZE","THUMB_DECODE","EXT_MIME","jpg","jpeg","png","gif","webp","heic","heif","guessMimeType","name","ext","split","pop","toLowerCase","toRecentItem","MediaLibrary","asset","filename","id","Date","now","uri","startsWith","info","getAssetInfoAsync","shouldDownloadFromNetwork","localUri","AttachSheet","visible","onClose","onCamera","onGallery","onDocument","onPickMedia","primaryColor","config","ts","typography","attachSheet","pendingRef","runPending","fn","current","mounted","setMounted","backdropOpacity","Value","sheetTranslateY","onCloseRef","setValue","raf","requestAnimationFrame","parallel","timing","toValue","duration","easing","out","cubic","useNativeDriver","spring","tension","friction","start","cancelAnimationFrame","in","finished","OS","undefined","makeDragResponder","claimOnStart","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponderCapture","_evt","g","dy","dx","onMoveShouldSetPanResponder","onPanResponderTerminationRequest","onPanResponderMove","Math","max","onPanResponderRelease","vy","onPanResponderTerminate","sheetPanRef","grabberPanRef","sheetPan","grabberPan","recents","setRecents","loadingRecents","setLoadingRecents","lastLoadRef","RECENTS_TTL_MS","loadRecents","getAssetsAsync","perm","getPermissionsAsync","granted","page","first","sortBy","SortBy","creationTime","mediaType","MediaType","photo","items","Promise","all","assets","map","filter","Boolean","err","console","warn","length","timer","setTimeout","clearTimeout","trigger","handler","handleRecentPress","item","mimeType","isVideo","rows","label","Icon","transparent","animationType","onRequestClose","onDismiss","children","style","styles","backdrop","opacity","testID","absoluteFill","activeOpacity","onPress","sheet","transform","translateY","panHandlers","grabberArea","grabber","sectionHeader","sectionTitle","title","hitSlop","top","bottom","left","right","sectionAction","color","viewLibrary","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","strip","keyboardShouldPersistTaps","cameraTile","width","height","loadingTile","thumbWrap","source","thumb","resizeMethod","resizeMode","fadeDuration","rowsDivider","row","rowIcon","rowLabel","flex","backgroundColor","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","paddingBottom","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","alignItems","borderRadius","flexDirection","paddingHorizontal","fontSize","fontWeight","gap","borderWidth","borderColor","overflow","hairlineWidth","paddingVertical","marginRight"],"sourceRoot":"../../../../../src","sources":["components/Modals/AttachSheet/AttachSheet.tsx"],"mappings":";;AAAA;;AAEA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACvE,SACEC,iBAAiB,EACjBC,QAAQ,EACRC,MAAM,EACNC,KAAK,EACLC,KAAK,EACLC,YAAY,EACZC,QAAQ,EACRC,UAAU,EACVC,UAAU,EACVC,IAAI,EACJC,gBAAgB,EAChBC,IAAI,QACC,cAAc;AACrB,SAASC,UAAU,EAAEC,YAAY,QAAQ,uBAAuB;AAChE,SAASC,mBAAmB,QAAQ,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AE;IAChBM,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,SAAS;IACtBnB,eAAe,EAAE,SAAS;IAC1BW,UAAU,EAAE,QAAQ;IACpBV,cAAc,EAAE;EAClB,CAAC;EACDb,WAAW,EAAE;IACXF,KAAK,EAAE1K,UAAU;IACjB2K,MAAM,EAAE3K,UAAU;IAClBmM,UAAU,EAAE,QAAQ;IACpBV,cAAc,EAAE;EAClB,CAAC;EACDZ,SAAS,EAAE;IACTH,KAAK,EAAE1K,UAAU;IACjB2K,MAAM,EAAE3K,UAAU;IAClBoM,YAAY,EAAE,EAAE;IAChBQ,QAAQ,EAAE,QAAQ;IAClBpB,eAAe,EAAE;EACnB,CAAC;EACDT,KAAK,EAAE;IACLL,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV,CAAC;EACDQ,WAAW,EAAE;IACXR,MAAM,EAAE5L,UAAU,CAAC8N,aAAa;IAChCrB,eAAe,EAAE;EACnB,CAAC;EACDJ,GAAG,EAAE;IACHiB,aAAa,EAAE,KAAK;IACpBF,UAAU,EAAE,QAAQ;IACpBG,iBAAiB,EAAE,EAAE;IACrBQ,eAAe,EAAE;EACnB,CAAC;EACDzB,OAAO,EAAE;IACPX,KAAK,EAAE,EAAE;IACTyB,UAAU,EAAE,QAAQ;IACpBY,WAAW,EAAE;EACf,CAAC;EACDzB,QAAQ,EAAE;IACRiB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBtC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,eAAerI,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useRef","useState","Animated","Easing","Modal","Platform","StyleSheet","Text","TouchableOpacity","View","CameraIcon","DocumentIcon","MediaIcon","useChatSettingState","chatTextStyle","jsx","_jsx","jsxs","_jsxs","SHEET_OFFSCREEN","AttachSheet","visible","onClose","onCamera","onGallery","onDocument","primaryColor","config","ts","typography","attachSheet","pendingRef","mounted","setMounted","backdropOpacity","Value","current","sheetTranslateY","setValue","raf","requestAnimationFrame","parallel","timing","toValue","duration","easing","out","cubic","useNativeDriver","spring","tension","friction","start","cancelAnimationFrame","in","finished","fn","undefined","trigger","handler","rows","label","hint","Icon","transparent","animationType","onRequestClose","children","style","styles","backdrop","opacity","absoluteFill","activeOpacity","onPress","sheet","transform","translateY","grabber","title","map","idx","row","length","rowDivider","iconBubble","backgroundColor","color","width","height","rowText","rowLabel","rowHint","cancelRow","cancelLabel","cancelButton","create","flex","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","paddingBottom","OS","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","alignSelf","borderRadius","marginBottom","fontSize","fontWeight","letterSpacing","textTransform","paddingHorizontal","flexDirection","alignItems","paddingVertical","borderBottomWidth","hairlineWidth","borderBottomColor","marginRight","marginTop","marginHorizontal"],"sourceRoot":"../../../../../src","sources":["components/Modals/AttachSheet/AttachSheet.tsx"],"mappings":";;AAAA;;AAEA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC1D,SACEC,QAAQ,EACRC,MAAM,EACNC,KAAK,EACLC,QAAQ,EACRC,UAAU,EACVC,IAAI,EACJC,gBAAgB,EAChBC,IAAI,QACC,cAAc;AACrB,SAASC,UAAU,EAAEC,YAAY,EAAEC,SAAS,QAAQ,uBAAuB;AAC3E,SAASC,mBAAmB,QAAQ,oCAAoC;AACxE,SAASC,aAAa,QAAQ,6BAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAW5D;AACA;AACA;AACA,MAAMC,eAAe,GAAG,GAAG;AAE3B,MAAMC,WAAuC,GAAGA,CAAC;EAC/CC,OAAO;EACPC,OAAO;EACPC,QAAQ;EACRC,SAAS;EACTC,UAAU;EACVC,YAAY,GAAG;AACjB,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAO,CAAC,GAAGd,mBAAmB,CAAC,CAAC;EACxC,MAAMe,EA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