@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
@@ -4,25 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- Object.defineProperty(exports, "shouldClaimVerticalDrag", {
8
- enumerable: true,
9
- get: function () {
10
- return _sheetGestures.shouldClaimVerticalDrag;
11
- }
12
- });
13
- Object.defineProperty(exports, "shouldDismissOnDrag", {
14
- enumerable: true,
15
- get: function () {
16
- return _sheetGestures.shouldDismissOnDrag;
17
- }
18
- });
19
7
  var _react = _interopRequireWildcard(require("react"));
20
8
  var _reactNative = require("react-native");
21
9
  var _icons = require("../../../assets/icons");
22
10
  var _useChatSettingState = require("../../../hooks/useChatSettingState");
23
11
  var _typography = require("../../../helpers/typography");
24
- var _mediaLibraryRuntime = require("../../../helpers/mediaLibraryRuntime");
25
- var _sheetGestures = require("../../../helpers/sheetGestures");
26
12
  var _jsxRuntime = require("react/jsx-runtime");
27
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
28
14
  /** @format */
@@ -30,69 +16,25 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
30
16
  // Starting translateY for the sheet. Larger than any realistic sheet
31
17
  // height so it sits fully below the viewport before opening; the exact
32
18
  // number doesn't matter visually because it animates to 0.
33
- const SHEET_OFFSCREEN = 800;
34
- // Re-exported so this sheet's own tests keep addressing them here.
35
-
36
- const RECENTS_COUNT = 12;
37
- const THUMB_SIZE = 88;
38
- const THUMB_DECODE = THUMB_SIZE * 2;
39
- const EXT_MIME = {
40
- jpg: 'image/jpeg',
41
- jpeg: 'image/jpeg',
42
- png: 'image/png',
43
- gif: 'image/gif',
44
- webp: 'image/webp',
45
- heic: 'image/heic',
46
- heif: 'image/heif'
47
- };
48
- const guessMimeType = name => {
49
- const ext = name.split('.').pop()?.toLowerCase() ?? '';
50
- return EXT_MIME[ext] ?? 'image/jpeg';
51
- };
52
- const toRecentItem = async (MediaLibrary, asset) => {
53
- const filename = asset?.filename || `photo_${asset?.id ?? Date.now()}`;
54
- if (asset?.uri && !asset.uri.startsWith('ph://')) {
55
- return {
56
- id: asset.id,
57
- uri: asset.uri,
58
- filename
59
- };
60
- }
61
- try {
62
- const info = await MediaLibrary?.getAssetInfoAsync?.(asset, {
63
- shouldDownloadFromNetwork: false
64
- });
65
- if (!info?.localUri) {
66
- return null;
67
- }
68
- return {
69
- id: asset.id,
70
- uri: info.localUri,
71
- filename
72
- };
73
- } catch {
74
- return null;
75
- }
76
- };
19
+ const SHEET_OFFSCREEN = 600;
77
20
  const AttachSheet = ({
78
21
  visible,
79
22
  onClose,
80
23
  onCamera,
81
24
  onGallery,
82
25
  onDocument,
83
- onPickMedia,
84
26
  primaryColor = '#0052CD'
85
27
  }) => {
86
28
  const {
87
29
  config
88
30
  } = (0, _useChatSettingState.useChatSettingState)();
89
31
  const ts = config?.typography?.attachSheet;
32
+ // Pending handler captured on row tap — runs once the EXIT animation
33
+ // finishes so iOS doesn't try to present an image picker over a
34
+ // still-dismissing modal (was the original reason for the
35
+ // platform-split + Modal.onDismiss dance). The animation completion
36
+ // callback now drives this on both platforms.
90
37
  const pendingRef = (0, _react.useRef)(null);
91
- const runPending = () => {
92
- const fn = pendingRef.current;
93
- pendingRef.current = null;
94
- fn?.();
95
- };
96
38
 
97
39
  // Local "modal stays mounted while animating out" state. The parent
98
40
  // controls `visible`; we mirror it but delay unmount until the exit
@@ -108,8 +50,6 @@ const AttachSheet = ({
108
50
  // bottom-sheet feel.
109
51
  const backdropOpacity = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
110
52
  const sheetTranslateY = (0, _react.useRef)(new _reactNative.Animated.Value(SHEET_OFFSCREEN)).current;
111
- const onCloseRef = (0, _react.useRef)(onClose);
112
- onCloseRef.current = onClose;
113
53
  (0, _react.useEffect)(() => {
114
54
  if (visible) {
115
55
  setMounted(true);
@@ -141,6 +81,8 @@ const AttachSheet = ({
141
81
  if (!mounted) {
142
82
  return;
143
83
  }
84
+ // Exit: fade the backdrop, slide the sheet down, then unmount and
85
+ // fire any pending picker handler.
144
86
  _reactNative.Animated.parallel([_reactNative.Animated.timing(backdropOpacity, {
145
87
  toValue: 0,
146
88
  duration: 180,
@@ -158,120 +100,34 @@ const AttachSheet = ({
158
100
  return;
159
101
  } // interrupted (rapid re-open) → leave state alone
160
102
  setMounted(false);
161
- if (_reactNative.Platform.OS !== 'ios') {
162
- runPending();
163
- }
103
+ const fn = pendingRef.current;
104
+ pendingRef.current = null;
105
+ fn?.();
164
106
  });
165
107
  return undefined;
166
108
  }, [visible]); // eslint-disable-line react-hooks/exhaustive-deps
167
109
 
168
- const makeDragResponder = claimOnStart => _reactNative.PanResponder.create({
169
- onStartShouldSetPanResponder: () => claimOnStart,
170
- // Capture, so a pull that starts on a row (whose Touchable grabbed
171
- // the responder on touch-down) still drags the sheet.
172
- onMoveShouldSetPanResponderCapture: (_evt, g) => claimOnStart || (0, _sheetGestures.shouldClaimVerticalDrag)(g.dy, g.dx),
173
- onMoveShouldSetPanResponder: (_evt, g) => claimOnStart || (0, _sheetGestures.shouldClaimVerticalDrag)(g.dy, g.dx),
174
- onPanResponderTerminationRequest: () => false,
175
- onPanResponderMove: (_evt, g) => {
176
- sheetTranslateY.setValue(Math.max(0, g.dy));
177
- },
178
- onPanResponderRelease: (_evt, g) => {
179
- if ((0, _sheetGestures.shouldDismissOnDrag)(g.dy, g.vy)) {
180
- onCloseRef.current();
181
- return;
182
- }
183
- _reactNative.Animated.spring(sheetTranslateY, {
184
- toValue: 0,
185
- tension: 90,
186
- friction: 14,
187
- useNativeDriver: true
188
- }).start();
189
- },
190
- onPanResponderTerminate: () => {
191
- _reactNative.Animated.spring(sheetTranslateY, {
192
- toValue: 0,
193
- tension: 90,
194
- friction: 14,
195
- useNativeDriver: true
196
- }).start();
197
- }
198
- });
199
- const sheetPanRef = (0, _react.useRef)(null);
200
- const grabberPanRef = (0, _react.useRef)(null);
201
- if (!sheetPanRef.current) {
202
- sheetPanRef.current = makeDragResponder(false);
203
- }
204
- if (!grabberPanRef.current) {
205
- grabberPanRef.current = makeDragResponder(true);
206
- }
207
- const sheetPan = sheetPanRef.current;
208
- const grabberPan = grabberPanRef.current;
209
- const [recents, setRecents] = (0, _react.useState)([]);
210
- const [loadingRecents, setLoadingRecents] = (0, _react.useState)(false);
211
- const lastLoadRef = (0, _react.useRef)(0);
212
- const RECENTS_TTL_MS = 15000;
213
- const loadRecents = (0, _react.useCallback)(async () => {
214
- const MediaLibrary = (0, _mediaLibraryRuntime.getMediaLibrary)();
215
- if (!MediaLibrary?.getAssetsAsync) {
216
- setLoadingRecents(false);
217
- return;
218
- }
219
- try {
220
- const perm = await MediaLibrary.getPermissionsAsync();
221
- if (!perm?.granted) {
222
- setRecents([]);
223
- return;
224
- }
225
- const page = await MediaLibrary.getAssetsAsync({
226
- first: RECENTS_COUNT,
227
- sortBy: [MediaLibrary.SortBy?.creationTime ?? 'creationTime'],
228
- mediaType: [MediaLibrary.MediaType?.photo ?? 'photo']
229
- });
230
- const items = await Promise.all((page?.assets ?? []).map(asset => toRecentItem(MediaLibrary, asset)));
231
- lastLoadRef.current = Date.now();
232
- setRecents(items.filter(Boolean));
233
- } catch (err) {
234
- console.warn('AttachSheet: could not read recent media', err);
235
- setRecents([]);
236
- } finally {
237
- setLoadingRecents(false);
238
- }
239
- }, []);
240
- (0, _react.useEffect)(() => {
241
- if (!visible) {
242
- return undefined;
243
- }
244
- if (recents.length && Date.now() - lastLoadRef.current < RECENTS_TTL_MS) {
245
- return undefined;
246
- }
247
- setLoadingRecents(true);
248
- const timer = setTimeout(() => {
249
- loadRecents();
250
- }, 250);
251
- return () => clearTimeout(timer);
252
- }, [visible]);
253
110
  const trigger = handler => () => {
111
+ // Capture the handler and ask parent to close. The exit-animation
112
+ // completion above fires `handler` AFTER the sheet has slid away,
113
+ // so iOS no longer tries to present a picker over a dismissing
114
+ // modal — and Android no longer needs the ad-hoc 150ms setTimeout.
254
115
  pendingRef.current = handler;
255
- if (_reactNative.Platform.OS === 'ios') {
256
- setMounted(false);
257
- }
258
116
  onClose();
259
117
  };
260
- const handleRecentPress = item => trigger(() => {
261
- if (onPickMedia) {
262
- onPickMedia({
263
- uri: item.uri,
264
- name: item.filename,
265
- mimeType: guessMimeType(item.filename),
266
- isVideo: false
267
- });
268
- } else {
269
- onGallery();
270
- }
271
- });
272
118
  const rows = [{
273
- id: 'Document',
274
- label: 'Upload a File',
119
+ label: 'Take photo',
120
+ hint: 'Capture with the camera',
121
+ Icon: _icons.CameraIcon,
122
+ handler: onCamera
123
+ }, {
124
+ label: 'Photo or video',
125
+ hint: 'Pick from your library',
126
+ Icon: _icons.MediaIcon,
127
+ handler: onGallery
128
+ }, {
129
+ label: 'Document',
130
+ hint: 'Choose a file',
275
131
  Icon: _icons.DocumentIcon,
276
132
  handler: onDocument
277
133
  }];
@@ -287,113 +143,65 @@ const AttachSheet = ({
287
143
  // Hardware-back / iOS gesture also routes through onClose, which
288
144
  // flips `visible` and triggers our exit animation above.
289
145
  ,
290
- onDismiss: _reactNative.Platform.OS === 'ios' ? runPending : undefined,
291
146
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
292
147
  style: [styles.backdrop, {
293
148
  opacity: backdropOpacity
294
149
  }],
295
150
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
296
- testID: "attach-backdrop",
297
151
  style: _reactNative.StyleSheet.absoluteFill,
298
152
  activeOpacity: 1,
299
153
  onPress: onClose
300
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
154
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
301
155
  style: [styles.sheet, {
302
156
  transform: [{
303
157
  translateY: sheetTranslateY
304
158
  }]
305
159
  }],
306
- ...sheetPan.panHandlers,
307
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
308
- testID: "attach-grabber",
309
- style: styles.grabberArea,
310
- ...grabberPan.panHandlers,
311
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
160
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
161
+ activeOpacity: 1,
162
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
312
163
  style: styles.grabber
313
- })
314
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
315
- style: styles.sectionHeader,
316
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
317
- style: [styles.sectionTitle, (0, _typography.chatTextStyle)(ts?.title)],
318
- children: "Photos & Videos"
319
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
320
- testID: "attach-view-library",
164
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
165
+ style: [styles.title, (0, _typography.chatTextStyle)(ts?.title)],
166
+ children: "Attach"
167
+ }), rows.map(({
168
+ label,
169
+ hint,
170
+ Icon,
171
+ handler
172
+ }, idx) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
321
173
  activeOpacity: 0.6,
322
- onPress: trigger(onGallery),
323
- hitSlop: {
324
- top: 8,
325
- bottom: 8,
326
- left: 8,
327
- right: 8
328
- },
174
+ style: [styles.row, idx < rows.length - 1 && styles.rowDivider],
175
+ onPress: trigger(handler),
176
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
177
+ style: [styles.iconBubble, {
178
+ backgroundColor: primaryColor + '14'
179
+ }],
180
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
181
+ color: primaryColor,
182
+ width: 20,
183
+ height: 20
184
+ })
185
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
186
+ style: styles.rowText,
187
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
188
+ style: [styles.rowLabel, (0, _typography.chatTextStyle)(ts?.rowLabel)],
189
+ children: label
190
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
191
+ style: [styles.rowHint, (0, _typography.chatTextStyle)(ts?.rowHint)],
192
+ children: hint
193
+ })]
194
+ })]
195
+ }, label)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
196
+ activeOpacity: 0.6,
197
+ style: styles.cancelRow,
198
+ onPress: onClose,
329
199
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
330
- style: [styles.sectionAction, {
331
- color: primaryColor
332
- }, (0, _typography.chatTextStyle)(ts?.viewLibrary)],
333
- children: "View Library"
334
- })
335
- })]
336
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
337
- horizontal: true,
338
- showsHorizontalScrollIndicator: false,
339
- contentContainerStyle: styles.strip,
340
- keyboardShouldPersistTaps: "handled",
341
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
342
- testID: "attach-row-Camera",
343
- activeOpacity: 0.7,
344
- style: styles.cameraTile,
345
- onPress: trigger(onCamera),
346
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.CameraIcon, {
347
- color: "#8A8A8E",
348
- width: 26,
349
- height: 26
350
- })
351
- }), loadingRecents && recents.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
352
- style: styles.loadingTile,
353
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
354
- color: "#8A8A8E"
355
- })
356
- }), recents.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
357
- testID: `attach-recent-${item.id}`,
358
- activeOpacity: 0.8,
359
- style: styles.thumbWrap,
360
- onPress: handleRecentPress(item),
361
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
362
- source: {
363
- uri: item.uri,
364
- width: THUMB_DECODE,
365
- height: THUMB_DECODE
366
- },
367
- style: styles.thumb,
368
- resizeMethod: "resize",
369
- resizeMode: "cover",
370
- fadeDuration: 0
371
- })
372
- }, item.id))]
373
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
374
- style: styles.rowsDivider
375
- }), rows.map(({
376
- id,
377
- label,
378
- Icon,
379
- handler
380
- }) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
381
- testID: `attach-row-${id}`,
382
- activeOpacity: 0.6,
383
- style: styles.row,
384
- onPress: trigger(handler),
385
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
386
- style: styles.rowIcon,
387
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
388
- color: "#1C1C1E",
389
- width: 20,
390
- height: 20
200
+ style: [styles.cancelLabel, (0, _typography.chatTextStyle)(ts?.cancelButton)],
201
+ children: "Cancel"
391
202
  })
392
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
393
- style: [styles.rowLabel, (0, _typography.chatTextStyle)(ts?.rowLabel)],
394
- children: label
395
203
  })]
396
- }, id))]
204
+ })
397
205
  })]
398
206
  })
399
207
  });
@@ -408,7 +216,7 @@ const styles = _reactNative.StyleSheet.create({
408
216
  backgroundColor: '#fff',
409
217
  borderTopLeftRadius: 24,
410
218
  borderTopRightRadius: 24,
411
- paddingTop: 4,
219
+ paddingTop: 8,
412
220
  paddingBottom: _reactNative.Platform.OS === 'ios' ? 32 : 20,
413
221
  shadowColor: '#000',
414
222
  shadowOffset: {
@@ -419,83 +227,65 @@ const styles = _reactNative.StyleSheet.create({
419
227
  shadowRadius: 12,
420
228
  elevation: 16
421
229
  },
422
- grabberArea: {
423
- alignItems: 'center',
424
- paddingTop: 10,
425
- paddingBottom: 14
426
- },
427
230
  grabber: {
231
+ alignSelf: 'center',
428
232
  width: 40,
429
233
  height: 4,
430
234
  borderRadius: 2,
431
- backgroundColor: '#D9D9DE'
235
+ backgroundColor: '#D9D9DE',
236
+ marginBottom: 12
432
237
  },
433
- sectionHeader: {
238
+ title: {
239
+ fontSize: 13,
240
+ fontWeight: '600',
241
+ color: '#8A8A8E',
242
+ letterSpacing: 0.4,
243
+ textTransform: 'uppercase',
244
+ paddingHorizontal: 20,
245
+ paddingBottom: 8
246
+ },
247
+ row: {
434
248
  flexDirection: 'row',
435
249
  alignItems: 'center',
436
- justifyContent: 'space-between',
437
250
  paddingHorizontal: 20,
438
- paddingBottom: 12
439
- },
440
- sectionTitle: {
441
- fontSize: 17,
442
- fontWeight: '700',
443
- color: '#1C1C1E'
444
- },
445
- sectionAction: {
446
- fontSize: 15,
447
- fontWeight: '500'
251
+ paddingVertical: 14
448
252
  },
449
- strip: {
450
- paddingHorizontal: 16,
451
- paddingBottom: 16,
452
- gap: 8
453
- },
454
- cameraTile: {
455
- width: THUMB_SIZE,
456
- height: THUMB_SIZE,
457
- borderRadius: 16,
458
- borderWidth: 1,
459
- borderColor: '#E4E4E9',
460
- backgroundColor: '#FAFAFC',
461
- alignItems: 'center',
462
- justifyContent: 'center'
253
+ rowDivider: {
254
+ borderBottomWidth: _reactNative.StyleSheet.hairlineWidth,
255
+ borderBottomColor: '#EFEFF2'
463
256
  },
464
- loadingTile: {
465
- width: THUMB_SIZE,
466
- height: THUMB_SIZE,
257
+ iconBubble: {
258
+ width: 40,
259
+ height: 40,
260
+ borderRadius: 20,
467
261
  alignItems: 'center',
468
- justifyContent: 'center'
469
- },
470
- thumbWrap: {
471
- width: THUMB_SIZE,
472
- height: THUMB_SIZE,
473
- borderRadius: 16,
474
- overflow: 'hidden',
475
- backgroundColor: '#EFEFF2'
262
+ justifyContent: 'center',
263
+ marginRight: 14
476
264
  },
477
- thumb: {
478
- width: '100%',
479
- height: '100%'
265
+ rowText: {
266
+ flex: 1
480
267
  },
481
- rowsDivider: {
482
- height: _reactNative.StyleSheet.hairlineWidth,
483
- backgroundColor: '#EFEFF2'
268
+ rowLabel: {
269
+ fontSize: 16,
270
+ fontWeight: '500',
271
+ color: '#1C1C1E'
484
272
  },
485
- row: {
486
- flexDirection: 'row',
487
- alignItems: 'center',
488
- paddingHorizontal: 20,
489
- paddingVertical: 16
273
+ rowHint: {
274
+ fontSize: 12,
275
+ color: '#8A8A8E',
276
+ marginTop: 2
490
277
  },
491
- rowIcon: {
492
- width: 28,
278
+ cancelRow: {
279
+ marginTop: 8,
280
+ marginHorizontal: 16,
281
+ paddingVertical: 14,
282
+ borderRadius: 14,
493
283
  alignItems: 'center',
494
- marginRight: 12
284
+ backgroundColor: '#F2F2F7'
495
285
  },
496
- rowLabel: {
286
+ cancelLabel: {
497
287
  fontSize: 16,
498
- fontWeight: '500',
288
+ fontWeight: '600',
499
289
  color: '#1C1C1E'
500
290
  }
501
291
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_icons","_useChatSettingState","_typography","_mediaLibraryRuntime","_sheetGestures","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","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","useChatSettingState","ts","typography","attachSheet","pendingRef","useRef","runPending","fn","current","mounted","setMounted","useState","backdropOpacity","Animated","Value","sheetTranslateY","onCloseRef","useEffect","setValue","raf","requestAnimationFrame","parallel","timing","toValue","duration","easing","Easing","out","cubic","useNativeDriver","spring","tension","friction","start","cancelAnimationFrame","in","finished","Platform","OS","undefined","makeDragResponder","claimOnStart","PanResponder","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponderCapture","_evt","g","shouldClaimVerticalDrag","dy","dx","onMoveShouldSetPanResponder","onPanResponderTerminationRequest","onPanResponderMove","Math","max","onPanResponderRelease","shouldDismissOnDrag","vy","onPanResponderTerminate","sheetPanRef","grabberPanRef","sheetPan","grabberPan","recents","setRecents","loadingRecents","setLoadingRecents","lastLoadRef","RECENTS_TTL_MS","loadRecents","useCallback","getMediaLibrary","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","DocumentIcon","jsx","Modal","transparent","animationType","onRequestClose","onDismiss","children","jsxs","View","style","styles","backdrop","opacity","TouchableOpacity","testID","StyleSheet","absoluteFill","activeOpacity","onPress","sheet","transform","translateY","panHandlers","grabberArea","grabber","sectionHeader","Text","sectionTitle","chatTextStyle","title","hitSlop","top","bottom","left","right","sectionAction","color","viewLibrary","ScrollView","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","strip","keyboardShouldPersistTaps","cameraTile","CameraIcon","width","height","loadingTile","ActivityIndicator","thumbWrap","Image","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","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/Modals/AttachSheet/AttachShe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ACnB,CAAC;EACDJ,GAAG,EAAE;IACHiB,aAAa,EAAE,KAAK;IACpBF,UAAU,EAAE,QAAQ;IACpBG,iBAAiB,EAAE,EAAE;IACrBQ,eAAe,EAAE;EACnB,CAAC;EACDzB,OAAO,EAAE;IACPb,KAAK,EAAE,EAAE;IACT2B,UAAU,EAAE,QAAQ;IACpBY,WAAW,EAAE;EACf,CAAC;EACDzB,QAAQ,EAAE;IACRiB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjB1C,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAAC,IAAAkD,QAAA,GAAAC,OAAA,CAAArP,OAAA,GAEYwC,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_icons","_useChatSettingState","_typography","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SHEET_OFFSCREEN","AttachSheet","visible","onClose","onCamera","onGallery","onDocument","primaryColor","config","useChatSettingState","ts","typography","attachSheet","pendingRef","useRef","mounted","setMounted","useState","backdropOpacity","Animated","Value","current","sheetTranslateY","useEffect","setValue","raf","requestAnimationFrame","parallel","timing","toValue","duration","easing","Easing","out","cubic","useNativeDriver","spring","tension","friction","start","cancelAnimationFrame","in","finished","fn","undefined","trigger","handler","rows","label","hint","Icon","CameraIcon","MediaIcon","DocumentIcon","jsx","Modal","transparent","animationType","onRequestClose","children","jsxs","View","style","styles","backdrop","opacity","TouchableOpacity","StyleSheet","absoluteFill","activeOpacity","onPress","sheet","transform","translateY","grabber","Text","title","chatTextStyle","map","idx","row","length","rowDivider","iconBubble","backgroundColor","color","width","height","rowText","rowLabel","rowHint","cancelRow","cancelLabel","cancelButton","create","flex","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","paddingBottom","Platform","OS","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","alignSelf","borderRadius","marginBottom","fontSize","fontWeight","letterSpacing","textTransform","paddingHorizontal","flexDirection","alignItems","paddingVertical","borderBottomWidth","hairlineWidth","borderBottomColor","marginRight","marginTop","marginHorizontal","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/Modals/AttachSheet/AttachSheet.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAA4D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAA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