@ethora/chat-component-rn 26.8.5 → 26.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -0
- package/lib/commonjs/assets/emojiData.js +40 -0
- package/lib/commonjs/assets/emojiData.js.map +1 -0
- package/lib/commonjs/assets/icons.js +1 -1
- package/lib/commonjs/assets/icons.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatHeader.js +7 -9
- package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatRoom.js +24 -23
- package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatWrapper.js +22 -16
- package/lib/commonjs/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageContainer.js +4 -12
- package/lib/commonjs/components/MainComponents/MessageContainer.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageList.js +110 -35
- package/lib/commonjs/components/MainComponents/MessageList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RoomList.js +32 -29
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RoomStack.js +133 -65
- package/lib/commonjs/components/MainComponents/RoomStack.js.map +1 -1
- package/lib/commonjs/components/MainComponents/SystemMessage.js +6 -2
- package/lib/commonjs/components/MainComponents/SystemMessage.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/Avatar.js +5 -1
- package/lib/commonjs/components/MessageBubble/Avatar.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/BottomReplyContainer.js +17 -21
- package/lib/commonjs/components/MessageBubble/BottomReplyContainer.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/EmojiPickerSheet.js +447 -0
- package/lib/commonjs/components/MessageBubble/EmojiPickerSheet.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/Message.js +200 -132
- package/lib/commonjs/components/MessageBubble/Message.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/MessageInteractions.js +213 -12
- package/lib/commonjs/components/MessageBubble/MessageInteractions.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/MessageReaction.js +113 -94
- package/lib/commonjs/components/MessageBubble/MessageReaction.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/MessageReply.js +66 -24
- package/lib/commonjs/components/MessageBubble/MessageReply.js.map +1 -1
- package/lib/commonjs/components/Modals/Modal/SwipeBackLayer.js +76 -44
- package/lib/commonjs/components/Modals/Modal/SwipeBackLayer.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js +5 -4
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessageEmoji.js +8 -9
- package/lib/commonjs/components/RoomComponents/styled/LastMessageEmoji.js.map +1 -1
- package/lib/commonjs/components/Thread/ThreadWrapper.js +265 -152
- package/lib/commonjs/components/Thread/ThreadWrapper.js.map +1 -1
- package/lib/commonjs/components/styled/DateLabel.js +6 -3
- package/lib/commonjs/components/styled/DateLabel.js.map +1 -1
- package/lib/commonjs/context/MessageNotificationContext.js +188 -9
- package/lib/commonjs/context/MessageNotificationContext.js.map +1 -1
- package/lib/commonjs/context/xmppProvider.js +22 -7
- package/lib/commonjs/context/xmppProvider.js.map +1 -1
- package/lib/commonjs/helpers/createRoomFromApi.js +36 -2
- package/lib/commonjs/helpers/createRoomFromApi.js.map +1 -1
- package/lib/commonjs/helpers/emoji.js +51 -0
- package/lib/commonjs/helpers/emoji.js.map +1 -0
- package/lib/commonjs/helpers/haptics.js +29 -0
- package/lib/commonjs/helpers/haptics.js.map +1 -0
- package/lib/commonjs/helpers/historyPreloadScheduler.js +32 -66
- package/lib/commonjs/helpers/historyPreloadScheduler.js.map +1 -1
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js +21 -12
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js.map +1 -1
- package/lib/commonjs/helpers/mamReactions.js +57 -0
- package/lib/commonjs/helpers/mamReactions.js.map +1 -0
- package/lib/commonjs/helpers/parseMessageReference.js +42 -0
- package/lib/commonjs/helpers/parseMessageReference.js.map +1 -0
- package/lib/commonjs/helpers/reactionsConfig.js +17 -0
- package/lib/commonjs/helpers/reactionsConfig.js.map +1 -0
- package/lib/commonjs/helpers/updateMessagesTillLast.js +17 -2
- package/lib/commonjs/helpers/updateMessagesTillLast.js.map +1 -1
- package/lib/commonjs/hooks/useHeapSender.js +3 -1
- package/lib/commonjs/hooks/useHeapSender.js.map +1 -1
- package/lib/commonjs/hooks/useMessageHeapState.js +3 -2
- package/lib/commonjs/hooks/useMessageHeapState.js.map +1 -1
- package/lib/commonjs/hooks/useRoomInitialization.js +16 -7
- package/lib/commonjs/hooks/useRoomInitialization.js.map +1 -1
- package/lib/commonjs/hooks/useSendMessage.js +14 -8
- package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js +1 -1
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js.map +1 -1
- package/lib/commonjs/networking/stanzaHandlers.js +106 -50
- package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
- package/lib/commonjs/networking/xmpp/getHistory.xmpp.js +29 -74
- package/lib/commonjs/networking/xmpp/getHistory.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmpp/handleStanzas.xmpp.js +4 -0
- package/lib/commonjs/networking/xmpp/handleStanzas.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmpp/mamRouter.js +186 -0
- package/lib/commonjs/networking/xmpp/mamRouter.js.map +1 -0
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js +41 -4
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmppClient.js +98 -23
- package/lib/commonjs/networking/xmppClient.js.map +1 -1
- package/lib/commonjs/roomStore/Middleware/newMessageMidlleware.js +29 -34
- package/lib/commonjs/roomStore/Middleware/newMessageMidlleware.js.map +1 -1
- package/lib/commonjs/roomStore/Middleware/perfMiddleware.js +51 -0
- package/lib/commonjs/roomStore/Middleware/perfMiddleware.js.map +1 -0
- package/lib/commonjs/roomStore/Middleware/reactionsMiddleware.js +66 -43
- package/lib/commonjs/roomStore/Middleware/reactionsMiddleware.js.map +1 -1
- package/lib/commonjs/roomStore/Middleware/unreadMidlleware.js +88 -68
- package/lib/commonjs/roomStore/Middleware/unreadMidlleware.js.map +1 -1
- package/lib/commonjs/roomStore/index.js +18 -14
- package/lib/commonjs/roomStore/index.js.map +1 -1
- package/lib/commonjs/roomStore/persistBackend.js +96 -0
- package/lib/commonjs/roomStore/persistBackend.js.map +1 -0
- package/lib/commonjs/roomStore/persistence.js +245 -50
- package/lib/commonjs/roomStore/persistence.js.map +1 -1
- package/lib/commonjs/roomStore/roomsSlice.js +282 -136
- package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
- package/lib/commonjs/theme/theme.js +3 -0
- package/lib/commonjs/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/devLogger.js +14 -0
- package/lib/commonjs/utils/devLogger.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/assets/emojiData.js +36 -0
- package/lib/module/assets/emojiData.js.map +1 -0
- package/lib/module/assets/icons.js +1 -1
- package/lib/module/assets/icons.js.map +1 -1
- package/lib/module/components/MainComponents/ChatHeader.js +8 -10
- package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/module/components/MainComponents/ChatRoom.js +25 -24
- package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/module/components/MainComponents/ChatWrapper.js +23 -17
- package/lib/module/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/MessageContainer.js +7 -14
- package/lib/module/components/MainComponents/MessageContainer.js.map +1 -1
- package/lib/module/components/MainComponents/MessageList.js +110 -35
- package/lib/module/components/MainComponents/MessageList.js.map +1 -1
- package/lib/module/components/MainComponents/RoomList.js +32 -29
- package/lib/module/components/MainComponents/RoomList.js.map +1 -1
- package/lib/module/components/MainComponents/RoomStack.js +131 -63
- package/lib/module/components/MainComponents/RoomStack.js.map +1 -1
- package/lib/module/components/MainComponents/SystemMessage.js +6 -2
- package/lib/module/components/MainComponents/SystemMessage.js.map +1 -1
- package/lib/module/components/MessageBubble/Avatar.js +5 -1
- package/lib/module/components/MessageBubble/Avatar.js.map +1 -1
- package/lib/module/components/MessageBubble/BottomReplyContainer.js +18 -22
- package/lib/module/components/MessageBubble/BottomReplyContainer.js.map +1 -1
- package/lib/module/components/MessageBubble/EmojiPickerSheet.js +438 -0
- package/lib/module/components/MessageBubble/EmojiPickerSheet.js.map +1 -0
- package/lib/module/components/MessageBubble/Message.js +203 -134
- package/lib/module/components/MessageBubble/Message.js.map +1 -1
- package/lib/module/components/MessageBubble/MessageInteractions.js +215 -14
- package/lib/module/components/MessageBubble/MessageInteractions.js.map +1 -1
- package/lib/module/components/MessageBubble/MessageReaction.js +115 -94
- package/lib/module/components/MessageBubble/MessageReaction.js.map +1 -1
- package/lib/module/components/MessageBubble/MessageReply.js +65 -24
- package/lib/module/components/MessageBubble/MessageReply.js.map +1 -1
- package/lib/module/components/Modals/Modal/SwipeBackLayer.js +76 -44
- package/lib/module/components/Modals/Modal/SwipeBackLayer.js.map +1 -1
- package/lib/module/components/RoomComponents/ChatRoomItem.js +5 -4
- package/lib/module/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessageEmoji.js +8 -9
- package/lib/module/components/RoomComponents/styled/LastMessageEmoji.js.map +1 -1
- package/lib/module/components/Thread/ThreadWrapper.js +264 -152
- package/lib/module/components/Thread/ThreadWrapper.js.map +1 -1
- package/lib/module/components/styled/DateLabel.js +6 -3
- package/lib/module/components/styled/DateLabel.js.map +1 -1
- package/lib/module/context/MessageNotificationContext.js +190 -11
- package/lib/module/context/MessageNotificationContext.js.map +1 -1
- package/lib/module/context/xmppProvider.js +22 -7
- package/lib/module/context/xmppProvider.js.map +1 -1
- package/lib/module/helpers/createRoomFromApi.js +36 -2
- package/lib/module/helpers/createRoomFromApi.js.map +1 -1
- package/lib/module/helpers/emoji.js +44 -0
- package/lib/module/helpers/emoji.js.map +1 -0
- package/lib/module/helpers/haptics.js +24 -0
- package/lib/module/helpers/haptics.js.map +1 -0
- package/lib/module/helpers/historyPreloadScheduler.js +32 -66
- package/lib/module/helpers/historyPreloadScheduler.js.map +1 -1
- package/lib/module/helpers/insertMessageWithDelimiter.js +21 -12
- package/lib/module/helpers/insertMessageWithDelimiter.js.map +1 -1
- package/lib/module/helpers/mamReactions.js +51 -0
- package/lib/module/helpers/mamReactions.js.map +1 -0
- package/lib/module/helpers/parseMessageReference.js +37 -0
- package/lib/module/helpers/parseMessageReference.js.map +1 -0
- package/lib/module/helpers/reactionsConfig.js +10 -0
- package/lib/module/helpers/reactionsConfig.js.map +1 -0
- package/lib/module/helpers/updateMessagesTillLast.js +17 -2
- package/lib/module/helpers/updateMessagesTillLast.js.map +1 -1
- package/lib/module/hooks/useHeapSender.js +3 -1
- package/lib/module/hooks/useHeapSender.js.map +1 -1
- package/lib/module/hooks/useMessageHeapState.js +3 -2
- package/lib/module/hooks/useMessageHeapState.js.map +1 -1
- package/lib/module/hooks/useRoomInitialization.js +17 -8
- package/lib/module/hooks/useRoomInitialization.js.map +1 -1
- package/lib/module/hooks/useSendMessage.js +14 -8
- package/lib/module/hooks/useSendMessage.js.map +1 -1
- package/lib/module/hooks/useUnreadMessagesCounter.js +1 -1
- package/lib/module/hooks/useUnreadMessagesCounter.js.map +1 -1
- package/lib/module/networking/stanzaHandlers.js +107 -51
- package/lib/module/networking/stanzaHandlers.js.map +1 -1
- package/lib/module/networking/xmpp/getHistory.xmpp.js +29 -74
- package/lib/module/networking/xmpp/getHistory.xmpp.js.map +1 -1
- package/lib/module/networking/xmpp/handleStanzas.xmpp.js +4 -0
- package/lib/module/networking/xmpp/handleStanzas.xmpp.js.map +1 -1
- package/lib/module/networking/xmpp/mamRouter.js +175 -0
- package/lib/module/networking/xmpp/mamRouter.js.map +1 -0
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js +38 -2
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
- package/lib/module/networking/xmppClient.js +99 -24
- package/lib/module/networking/xmppClient.js.map +1 -1
- package/lib/module/roomStore/Middleware/newMessageMidlleware.js +29 -34
- package/lib/module/roomStore/Middleware/newMessageMidlleware.js.map +1 -1
- package/lib/module/roomStore/Middleware/perfMiddleware.js +45 -0
- package/lib/module/roomStore/Middleware/perfMiddleware.js.map +1 -0
- package/lib/module/roomStore/Middleware/reactionsMiddleware.js +66 -43
- package/lib/module/roomStore/Middleware/reactionsMiddleware.js.map +1 -1
- package/lib/module/roomStore/Middleware/unreadMidlleware.js +89 -69
- package/lib/module/roomStore/Middleware/unreadMidlleware.js.map +1 -1
- package/lib/module/roomStore/index.js +19 -15
- package/lib/module/roomStore/index.js.map +1 -1
- package/lib/module/roomStore/persistBackend.js +89 -0
- package/lib/module/roomStore/persistBackend.js.map +1 -0
- package/lib/module/roomStore/persistence.js +245 -48
- package/lib/module/roomStore/persistence.js.map +1 -1
- package/lib/module/roomStore/roomsSlice.js +275 -134
- package/lib/module/roomStore/roomsSlice.js.map +1 -1
- package/lib/module/theme/theme.js +3 -0
- package/lib/module/theme/theme.js.map +1 -1
- package/lib/module/utils/devLogger.js +13 -0
- package/lib/module/utils/devLogger.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/assets/emojiData.d.ts +8 -0
- package/lib/typescript/assets/emojiData.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/ChatHeader.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatRoom.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatWrapper.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MessageContainer.d.ts +2 -2
- package/lib/typescript/components/MainComponents/MessageContainer.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/RoomStack.d.ts +7 -2
- package/lib/typescript/components/MainComponents/RoomStack.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/SystemMessage.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/Avatar.d.ts +2 -0
- package/lib/typescript/components/MessageBubble/Avatar.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/BottomReplyContainer.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/EmojiPickerSheet.d.ts +11 -0
- package/lib/typescript/components/MessageBubble/EmojiPickerSheet.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/Message.d.ts +2 -2
- package/lib/typescript/components/MessageBubble/Message.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/MessageInteractions.d.ts +2 -0
- package/lib/typescript/components/MessageBubble/MessageInteractions.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/MessageReaction.d.ts +1 -0
- package/lib/typescript/components/MessageBubble/MessageReaction.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/MessageReply.d.ts +7 -7
- package/lib/typescript/components/MessageBubble/MessageReply.d.ts.map +1 -1
- package/lib/typescript/components/Modals/Modal/SwipeBackLayer.d.ts +2 -1
- package/lib/typescript/components/Modals/Modal/SwipeBackLayer.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/ChatRoomItem.d.ts +2 -2
- package/lib/typescript/components/RoomComponents/ChatRoomItem.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageEmoji.d.ts +3 -6
- package/lib/typescript/components/RoomComponents/styled/LastMessageEmoji.d.ts.map +1 -1
- package/lib/typescript/components/Thread/ThreadWrapper.d.ts +7 -1
- package/lib/typescript/components/Thread/ThreadWrapper.d.ts.map +1 -1
- package/lib/typescript/components/styled/DateLabel.d.ts +1 -0
- package/lib/typescript/components/styled/DateLabel.d.ts.map +1 -1
- package/lib/typescript/context/MessageNotificationContext.d.ts.map +1 -1
- package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
- package/lib/typescript/helpers/createRoomFromApi.d.ts.map +1 -1
- package/lib/typescript/helpers/emoji.d.ts +6 -0
- package/lib/typescript/helpers/emoji.d.ts.map +1 -0
- package/lib/typescript/helpers/haptics.d.ts +3 -0
- package/lib/typescript/helpers/haptics.d.ts.map +1 -0
- package/lib/typescript/helpers/historyPreloadScheduler.d.ts +1 -0
- package/lib/typescript/helpers/historyPreloadScheduler.d.ts.map +1 -1
- package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts.map +1 -1
- package/lib/typescript/helpers/mamReactions.d.ts +13 -0
- package/lib/typescript/helpers/mamReactions.d.ts.map +1 -0
- package/lib/typescript/helpers/parseMessageReference.d.ts +16 -0
- package/lib/typescript/helpers/parseMessageReference.d.ts.map +1 -0
- package/lib/typescript/helpers/reactionsConfig.d.ts +5 -0
- package/lib/typescript/helpers/reactionsConfig.d.ts.map +1 -0
- package/lib/typescript/helpers/updateMessagesTillLast.d.ts.map +1 -1
- package/lib/typescript/hooks/useHeapSender.d.ts.map +1 -1
- package/lib/typescript/hooks/useMessageHeapState.d.ts.map +1 -1
- package/lib/typescript/hooks/useRoomInitialization.d.ts +2 -2
- package/lib/typescript/hooks/useRoomInitialization.d.ts.map +1 -1
- package/lib/typescript/hooks/useSendMessage.d.ts.map +1 -1
- package/lib/typescript/networking/stanzaHandlers.d.ts +4 -2
- package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/getHistory.xmpp.d.ts +3 -1
- package/lib/typescript/networking/xmpp/getHistory.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/handleStanzas.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/mamRouter.d.ts +23 -0
- package/lib/typescript/networking/xmpp/mamRouter.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/presenceInRoom.xmpp.d.ts +1 -0
- package/lib/typescript/networking/xmpp/presenceInRoom.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmppClient.d.ts +22 -1
- package/lib/typescript/networking/xmppClient.d.ts.map +1 -1
- package/lib/typescript/roomStore/Middleware/newMessageMidlleware.d.ts.map +1 -1
- package/lib/typescript/roomStore/Middleware/perfMiddleware.d.ts +4 -0
- package/lib/typescript/roomStore/Middleware/perfMiddleware.d.ts.map +1 -0
- package/lib/typescript/roomStore/Middleware/reactionsMiddleware.d.ts +9 -0
- package/lib/typescript/roomStore/Middleware/reactionsMiddleware.d.ts.map +1 -1
- package/lib/typescript/roomStore/Middleware/unreadMidlleware.d.ts.map +1 -1
- package/lib/typescript/roomStore/index.d.ts.map +1 -1
- package/lib/typescript/roomStore/persistBackend.d.ts +11 -0
- package/lib/typescript/roomStore/persistBackend.d.ts.map +1 -0
- package/lib/typescript/roomStore/persistence.d.ts +5 -6
- package/lib/typescript/roomStore/persistence.d.ts.map +1 -1
- package/lib/typescript/roomStore/roomsSlice.d.ts +41 -1
- package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
- package/lib/typescript/theme/theme.d.ts +4 -1
- package/lib/typescript/theme/theme.d.ts.map +1 -1
- package/lib/typescript/types/models/message.model.d.ts +4 -0
- package/lib/typescript/types/models/message.model.d.ts.map +1 -1
- package/lib/typescript/types/models/room.model.d.ts +16 -0
- package/lib/typescript/types/models/room.model.d.ts.map +1 -1
- package/lib/typescript/types/models/xmpp.model.d.ts +6 -1
- package/lib/typescript/types/models/xmpp.model.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +15 -3
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/devLogger.d.ts +8 -0
- package/lib/typescript/utils/devLogger.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +10 -1
- package/src/assets/emojiData.ts +2146 -0
- package/src/assets/icons.tsx +5 -5
- package/src/components/MainComponents/ChatHeader.tsx +16 -7
- package/src/components/MainComponents/ChatRoom.tsx +35 -29
- package/src/components/MainComponents/ChatWrapper.tsx +28 -10
- package/src/components/MainComponents/MessageContainer.tsx +7 -15
- package/src/components/MainComponents/MessageList.tsx +96 -43
- package/src/components/MainComponents/RoomList.tsx +28 -29
- package/src/components/MainComponents/RoomStack.tsx +156 -83
- package/src/components/MainComponents/SystemMessage.tsx +6 -2
- package/src/components/MessageBubble/Avatar.tsx +7 -1
- package/src/components/MessageBubble/BottomReplyContainer.tsx +19 -21
- package/src/components/MessageBubble/EmojiPickerSheet.tsx +468 -0
- package/src/components/MessageBubble/Message.tsx +146 -87
- package/src/components/MessageBubble/MessageInteractions.tsx +213 -12
- package/src/components/MessageBubble/MessageReaction.tsx +120 -96
- package/src/components/MessageBubble/MessageReply.tsx +65 -32
- package/src/components/Modals/Modal/SwipeBackLayer.tsx +114 -63
- package/src/components/RoomComponents/ChatRoomItem.tsx +11 -4
- package/src/components/RoomComponents/styled/LastMessageEmoji.tsx +7 -8
- package/src/components/Thread/ThreadWrapper.tsx +274 -198
- package/src/components/styled/DateLabel.tsx +7 -3
- package/src/context/MessageNotificationContext.tsx +205 -7
- package/src/context/xmppProvider.tsx +29 -9
- package/src/helpers/createRoomFromApi.tsx +37 -1
- package/src/helpers/emoji.ts +39 -0
- package/src/helpers/haptics.ts +19 -0
- package/src/helpers/historyPreloadScheduler.ts +37 -69
- package/src/helpers/insertMessageWithDelimiter.ts +23 -16
- package/src/helpers/mamReactions.ts +59 -0
- package/src/helpers/parseMessageReference.ts +38 -0
- package/src/helpers/reactionsConfig.ts +13 -0
- package/src/helpers/updateMessagesTillLast.tsx +14 -2
- package/src/hooks/useHeapSender.tsx +3 -2
- package/src/hooks/useMessageHeapState.tsx +6 -2
- package/src/hooks/useRoomInitialization.tsx +32 -15
- package/src/hooks/useSendMessage.tsx +18 -11
- package/src/hooks/useUnreadMessagesCounter.ts +1 -1
- package/src/networking/stanzaHandlers.ts +116 -60
- package/src/networking/xmpp/getHistory.xmpp.ts +44 -106
- package/src/networking/xmpp/handleStanzas.xmpp.ts +2 -0
- package/src/networking/xmpp/mamRouter.ts +176 -0
- package/src/networking/xmpp/presenceInRoom.xmpp.ts +46 -3
- package/src/networking/xmppClient.ts +105 -20
- package/src/roomStore/Middleware/newMessageMidlleware.tsx +35 -38
- package/src/roomStore/Middleware/perfMiddleware.ts +50 -0
- package/src/roomStore/Middleware/reactionsMiddleware.tsx +53 -52
- package/src/roomStore/Middleware/unreadMidlleware.tsx +92 -80
- package/src/roomStore/index.ts +28 -27
- package/src/roomStore/persistBackend.ts +96 -0
- package/src/roomStore/persistence.ts +280 -73
- package/src/roomStore/roomsSlice.ts +304 -155
- package/src/theme/theme.ts +10 -1
- package/src/types/models/message.model.ts +4 -0
- package/src/types/models/room.model.ts +17 -0
- package/src/types/models/xmpp.model.ts +4 -2
- package/src/types/types.ts +15 -3
- package/src/utils/devLogger.ts +16 -0
- package/src/version.ts +1 -1
|
@@ -35,6 +35,7 @@ export const LIGHT_THEME = {
|
|
|
35
35
|
icon: DEFAULT_PRIMARY,
|
|
36
36
|
senderName: DEFAULT_PRIMARY,
|
|
37
37
|
dateLabel: DEFAULT_PRIMARY,
|
|
38
|
+
dateLabelBackground: '#E7EDF9',
|
|
38
39
|
listBackground: '#E8EDF2',
|
|
39
40
|
chatBackground: '#F3F6FC',
|
|
40
41
|
surface: '#FFFFFF',
|
|
@@ -62,6 +63,7 @@ export const DARK_THEME = {
|
|
|
62
63
|
icon: '#4C8DFF',
|
|
63
64
|
senderName: '#7FB0FF',
|
|
64
65
|
dateLabel: '#7FB0FF',
|
|
66
|
+
dateLabelBackground: '#26303D',
|
|
65
67
|
listBackground: '#0F1216',
|
|
66
68
|
chatBackground: '#141A21',
|
|
67
69
|
surface: '#1C2430',
|
|
@@ -125,6 +127,7 @@ export const resolveTheme = (config, systemDark) => {
|
|
|
125
127
|
icon: pick(c?.icon, c?.primary, LIGHT_THEME.icon),
|
|
126
128
|
senderName: pick(c?.senderName, c?.primary, LIGHT_THEME.senderName),
|
|
127
129
|
dateLabel: pick(c?.dateLabel, c?.primary, LIGHT_THEME.dateLabel),
|
|
130
|
+
dateLabelBackground: pick(c?.dateLabelBackground, LIGHT_THEME.dateLabelBackground),
|
|
128
131
|
chatBackground: pick(config?.backgroundChat?.color, LIGHT_THEME.chatBackground),
|
|
129
132
|
messageBackground: pick(config?.messageColor?.backgroundMessage, LIGHT_THEME.messageBackground),
|
|
130
133
|
messageBackgroundUser: pick(config?.messageColor?.backgroundMessageUser, LIGHT_THEME.messageBackgroundUser),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Appearance","DEFAULT_PRIMARY","LIGHT_THEME","primary","secondary","icon","senderName","dateLabel","listBackground","chatBackground","surface","surfaceSecondary","surfaceHighlight","text","textSecondary","textMuted","textOnPrimary","border","divider","shadow","overlay","messageBackground","messageBackgroundUser","messageText","messageTextUser","systemMessageBackground","danger","success","DARK_THEME","systemIsDark","getColorScheme","isDarkTheme","config","systemDark","dark","pick","values","find","v","undefined","stripUndefined","o","Object","fromEntries","entries","filter","resolveTheme","overrides","darkColors","statusBarStyle","c","colors","backgroundChat","color","messageColor","backgroundMessage","backgroundMessageUser","colorUser","applyThemePreference","preference"],"sourceRoot":"../../../src","sources":["theme/theme.ts"],"mappings":";;AAAA;;AAEA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["Appearance","DEFAULT_PRIMARY","LIGHT_THEME","primary","secondary","icon","senderName","dateLabel","dateLabelBackground","listBackground","chatBackground","surface","surfaceSecondary","surfaceHighlight","text","textSecondary","textMuted","textOnPrimary","border","divider","shadow","overlay","messageBackground","messageBackgroundUser","messageText","messageTextUser","systemMessageBackground","danger","success","DARK_THEME","systemIsDark","getColorScheme","isDarkTheme","config","systemDark","dark","pick","values","find","v","undefined","stripUndefined","o","Object","fromEntries","entries","filter","resolveTheme","overrides","darkColors","statusBarStyle","c","colors","backgroundChat","color","messageColor","backgroundMessage","backgroundMessageUser","colorUser","applyThemePreference","preference"],"sourceRoot":"../../../src","sources":["theme/theme.ts"],"mappings":";;AAAA;;AAEA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA8DA;;AAUA,MAAMC,eAAe,GAAG,SAAS;AAEjC,OAAO,MAAMC,WAA4B,GAAG;EAC1CC,OAAO,EAAEF,eAAe;EACxBG,SAAS,EAAE,SAAS;EACpBC,IAAI,EAAEJ,eAAe;EACrBK,UAAU,EAAEL,eAAe;EAC3BM,SAAS,EAAEN,eAAe;EAC1BO,mBAAmB,EAAE,SAAS;EAE9BC,cAAc,EAAE,SAAS;EACzBC,cAAc,EAAE,SAAS;EACzBC,OAAO,EAAE,SAAS;EAClBC,gBAAgB,EAAE,SAAS;EAC3BC,gBAAgB,EAAE,WAAW;EAE7BC,IAAI,EAAE,SAAS;EACfC,aAAa,EAAE,SAAS;EACxBC,SAAS,EAAE,SAAS;EACpBC,aAAa,EAAE,SAAS;EAExBC,MAAM,EAAE,SAAS;EACjBC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,SAAS;EACjBC,OAAO,EAAE,oBAAoB;EAE7BC,iBAAiB,EAAE,SAAS;EAC5BC,qBAAqB,EAAE,SAAS;EAChCC,WAAW,EAAE,SAAS;EACtBC,eAAe,EAAE,SAAS;EAC1BC,uBAAuB,EAAE,SAAS;EAElCC,MAAM,EAAE,SAAS;EACjBC,OAAO,EAAE;AACX,CAAC;AAED,OAAO,MAAMC,UAA2B,GAAG;EACzC1B,OAAO,EAAE,SAAS;EAClBC,SAAS,EAAE,SAAS;EACpBC,IAAI,EAAE,SAAS;EACfC,UAAU,EAAE,SAAS;EACrBC,SAAS,EAA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GA,MAAM;IAAEE;EAAK,CAAC;AAC5D,CAAC","ignoreList":[]}
|
|
@@ -16,7 +16,20 @@ const MAX_ENTRIES = 500;
|
|
|
16
16
|
let entries = [];
|
|
17
17
|
let listeners = new Set();
|
|
18
18
|
let nextId = 1;
|
|
19
|
+
/**
|
|
20
|
+
* The bus only does work while something is reading it (the testbed's
|
|
21
|
+
* Logs tab subscribes) and only in dev builds. It used to run in every
|
|
22
|
+
* build for every stanza in and out — serialising each stanza to a string
|
|
23
|
+
* and copying the 500-entry buffer each time — for a tab nobody opens in
|
|
24
|
+
* production. Call sites building expensive details check this first.
|
|
25
|
+
*/
|
|
26
|
+
export function isDevLogActive() {
|
|
27
|
+
return typeof __DEV__ !== 'undefined' && __DEV__ === true && listeners.size > 0;
|
|
28
|
+
}
|
|
19
29
|
export function pushLog(kind, message, details) {
|
|
30
|
+
if (!isDevLogActive()) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
20
33
|
const detailsStr = details === undefined ? undefined : typeof details === 'string' ? details : safeStringify(details);
|
|
21
34
|
entries = [...entries, {
|
|
22
35
|
id: nextId++,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MAX_ENTRIES","entries","listeners","Set","nextId","pushLog","kind","message","details","detailsStr","undefined","safeStringify","id","ts","Date","now","length","slice","notify","forEach","fn","queueMicrotask","Promise","resolve","then","clearLogs","getLogs","subscribeLogs","add","delete","value","JSON","stringify","_key","v","toString","Error","name","stack","String","consolePatched","installConsoleCapture","process","env","NODE_ENV","level","original","console","bind","args","msg","map","a","join","axiosPatched","installAxiosCapture","axiosInstance","interceptors","request","use","config","method","toUpperCase","url","baseURL","headers","redactHeaders","data","error","reject","response","status","truncateBody","out","k","Object","keys","test","body","str"],"sourceRoot":"../../../src","sources":["utils/devLogger.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA,MAAMA,WAAW,GAAG,GAAG;AAEvB,IAAIC,OAAmB,GAAG,EAAE;AAC5B,IAAIC,SAA0B,GAAG,IAAIC,GAAG,CAAC,CAAC;AAC1C,IAAIC,MAAM,GAAG,CAAC;
|
|
1
|
+
{"version":3,"names":["MAX_ENTRIES","entries","listeners","Set","nextId","isDevLogActive","__DEV__","size","pushLog","kind","message","details","detailsStr","undefined","safeStringify","id","ts","Date","now","length","slice","notify","forEach","fn","queueMicrotask","Promise","resolve","then","clearLogs","getLogs","subscribeLogs","add","delete","value","JSON","stringify","_key","v","toString","Error","name","stack","String","consolePatched","installConsoleCapture","process","env","NODE_ENV","level","original","console","bind","args","msg","map","a","join","axiosPatched","installAxiosCapture","axiosInstance","interceptors","request","use","config","method","toUpperCase","url","baseURL","headers","redactHeaders","data","error","reject","response","status","truncateBody","out","k","Object","keys","test","body","str"],"sourceRoot":"../../../src","sources":["utils/devLogger.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA,MAAMA,WAAW,GAAG,GAAG;AAEvB,IAAIC,OAAmB,GAAG,EAAE;AAC5B,IAAIC,SAA0B,GAAG,IAAIC,GAAG,CAAC,CAAC;AAC1C,IAAIC,MAAM,GAAG,CAAC;AAId;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAAA,EAAY;EACxC,OACE,OAAOC,OAAO,KAAK,WAAW,IAAIA,OAAO,KAAK,IAAI,IAAIJ,SAAS,CAACK,IAAI,GAAG,CAAC;AAE5E;AAEA,OAAO,SAASC,OAAOA,CACrBC,IAAa,EACbC,OAAe,EACfC,OAAa,EACP;EACN,IAAI,CAACN,cAAc,CAAC,CAAC,EAAE;IAAC;EAAO;EAC/B,MAAMO,UAAU,GACdD,OAAO,KAAKE,SAAS,GACjBA,SAAS,GACT,OAAOF,OAAO,KAAK,QAAQ,GACzBA,OAAO,GACPG,aAAa,CAACH,OAAO,CAAC;EAC9BV,OAAO,GAAG,CACR,GAAGA,OAAO,EACV;IAAEc,EAAE,EA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;MACLwD,GAAG,CAACC,CAAC,CAAC,GAAGxC,CAAC;IACZ;EACF;EACA,OAAOuC,GAAG;AACZ;AAEA,SAASD,YAAYA,CAACM,IAAS,EAAE;EAC/B,IAAIA,IAAI,IAAI,IAAI,EAAE;IAAC,OAAOA,IAAI;EAAC;EAC/B,MAAMC,GAAG,GAAG,OAAOD,IAAI,KAAK,QAAQ,GAAGA,IAAI,GAAGnE,aAAa,CAACmE,IAAI,CAAC;EACjE,IAAIC,GAAG,CAAC/D,MAAM,IAAI,IAAI,EAAE;IAAC,OAAO+D,GAAG;EAAC;EACpC,OAAOA,GAAG,CAAC9D,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,OAAO8D,GAAG,CAAC/D,MAAM,GAAG,IAAI,SAAS;AAC/D","ignoreList":[]}
|
package/lib/module/version.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emojiData.d.ts","sourceRoot":"","sources":["../../../src/assets/emojiData.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAClD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,UAAU,EAAE,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,EAAE,aAAa,EA0lE3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/ChatHeader.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAsB,MAAM,OAAO,CAAC;AAU3C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AA4B1C,UAAU,eAAe;IACvB,WAAW,EAAE,KAAK,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/ChatHeader.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAsB,MAAM,OAAO,CAAC;AAU3C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AA4B1C,UAAU,eAAe;IACvB,WAAW,EAAE,KAAK,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuLzC,CAAC;AA8BF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatRoom.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/ChatRoom.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAmD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatRoom.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/ChatRoom.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAmD,MAAM,OAAO,CAAC;AA2BxE,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAqC1D,UAAU,aAAa;IACrB,sBAAsB,CAAC,EAAE,GAAG,CAAC;IAC7B,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAChD,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC9C,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACjD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC1C;AAID,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA8jBrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/ChatWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"ChatWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/ChatWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,EAAE,EAAoD,MAAM,OAAO,CAAC;AAmBnF,OAAO,EAAC,OAAO,EAAE,KAAK,EAAE,YAAY,EAAkB,MAAM,mBAAmB,CAAC;AA4BhF,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,SAAS,CAAC,EAAE;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,CAAC;IAC9C,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,sBAAsB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuhBrC,CAAC;AAEF,OAAO,EAAC,WAAW,EAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IConfig, IMessage } from '../../types/types';
|
|
3
3
|
interface MessageContainerProps {
|
|
4
4
|
CustomMessage?: React.ComponentType<{
|
|
@@ -22,6 +22,6 @@ interface MessageContainerProps {
|
|
|
22
22
|
showDateLabel: boolean;
|
|
23
23
|
className?: string;
|
|
24
24
|
}
|
|
25
|
-
export declare const MessageContainer:
|
|
25
|
+
export declare const MessageContainer: React.NamedExoticComponent<MessageContainerProps>;
|
|
26
26
|
export {};
|
|
27
27
|
//# sourceMappingURL=MessageContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/MessageContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MessageContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/MessageContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAUtD,UAAU,qBAAqB;IAC7B,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAClC,OAAO,EAAE,QAAQ,CAAC;QAClB,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACvC,IAAI,EAAE,IAAI,CAAC;QACX,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC,CAAC;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuFD,eAAO,MAAM,gBAAgB,mDAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/MessageList.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAMN,MAAM,OAAO,CAAC;AAYf,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAS,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/MessageList.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAMN,MAAM,OAAO,CAAC;AAYf,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAS,MAAM,mBAAmB,CAAC;AAenE,UAAU,gBAAgB,CAAC,QAAQ,SAAS,QAAQ;IAClD,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAClC,OAAO,EAAE,QAAQ,CAAC;QAClB,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC,CAAC;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACvC,IAAI,EAAE,IAAI,CAAC;QACX,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC,CAAC;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;IACH,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,CAChB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,MAAM,KACZ,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC5D;AAuCD,QAAA,MAAM,WAAW,GAAI,QAAQ,SAAS,QAAQ,EAAE,+JAY7C,gBAAgB,CAAC,QAAQ,CAAC,sBAoc5B,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomList.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/RoomList.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAKL,QAAQ,EAGT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAc1C,UAAU,aAAa;IACrB,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC;CACrC;AAcD,eAAO,MAAM,iBAAiB,GAC5B,SAAS,QAAQ,CAAC,KAAK,EACvB,cAAc,MAAM;;;;;CAmBrB,CAAC;AAEF,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"RoomList.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/RoomList.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAKL,QAAQ,EAGT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAc1C,UAAU,aAAa;IACrB,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC;CACrC;AAcD,eAAO,MAAM,iBAAiB,GAC5B,SAAS,QAAQ,CAAC,KAAK,EACvB,cAAc,MAAM;;;;;CAmBrB,CAAC;AAEF,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiWrC,CAAC;AA6CF,eAAe,QAAQ,CAAC"}
|
|
@@ -5,11 +5,11 @@ export declare const COMPLETE_VELOCITY = 600;
|
|
|
5
5
|
export declare const LIST_DIM = 0.25;
|
|
6
6
|
export declare const PUSH: {
|
|
7
7
|
duration: number;
|
|
8
|
-
easing: import("react-native
|
|
8
|
+
easing: import("react-native").EasingFunction;
|
|
9
9
|
};
|
|
10
10
|
export declare const POP: {
|
|
11
11
|
duration: number;
|
|
12
|
-
easing: import("react-native
|
|
12
|
+
easing: import("react-native").EasingFunction;
|
|
13
13
|
};
|
|
14
14
|
export interface RoomStackHandle {
|
|
15
15
|
/** Slide the room out, then call `onBack`. */
|
|
@@ -31,6 +31,11 @@ interface RoomStackProps {
|
|
|
31
31
|
* Two-layer stack for the list → room navigation: the room slides in over
|
|
32
32
|
* the list, and a swipe from the left edge drags it back out, following the
|
|
33
33
|
* finger, with the list parallaxing in underneath (the iOS navigation feel).
|
|
34
|
+
*
|
|
35
|
+
* Driven by RN's own `Animated` (native driver), not Reanimated: every layer
|
|
36
|
+
* derives from ONE value through interpolation, so the layers cannot drift
|
|
37
|
+
* apart, and a React re-render mid-flight cannot reset a layer to the style
|
|
38
|
+
* it was first rendered with.
|
|
34
39
|
*/
|
|
35
40
|
export declare const RoomStack: React.ForwardRefExoticComponent<RoomStackProps & React.RefAttributes<RoomStackHandle>>;
|
|
36
41
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomStack.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/RoomStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"RoomStack.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/RoomStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAGZ,SAAS,EAOV,MAAM,OAAO,CAAC;AAcf,eAAO,MAAM,UAAU,KAAK,CAAC;AAG7B,eAAO,MAAM,iBAAiB,OAAO,CAAC;AACtC,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAGrC,eAAO,MAAM,QAAQ,OAAO,CAAC;AAE7B,eAAO,MAAM,IAAI;;;CAA6D,CAAC;AAC/E,eAAO,MAAM,GAAG;;;CAAsD,CAAC;AAavE,MAAM,WAAW,eAAe;IAC9B,8CAA8C;IAC9C,GAAG,EAAE,MAAM,IAAI,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,6EAA6E;IAC7E,IAAI,EAAE,SAAS,CAAC;IAChB,2DAA2D;IAC3D,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IACvB,4EAA4E;IAC5E,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,wFA+MrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/SystemMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SystemMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/SystemMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyB/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAyBD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA0DxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomReplyContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/BottomReplyContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,MAAM,EAAS,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomReplyContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/BottomReplyContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,MAAM,EAAS,MAAM,mBAAmB,CAAC;AAQlD,UAAU,yBAAyB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AA4CD,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA8D9D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface EmojiPickerSheetProps {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onPick: (id: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const loadRecentReactions: () => Promise<string[]>;
|
|
8
|
+
export declare const rememberRecentReaction: (id: string) => Promise<void>;
|
|
9
|
+
export declare const EmojiPickerSheet: React.FC<EmojiPickerSheetProps>;
|
|
10
|
+
export default EmojiPickerSheet;
|
|
11
|
+
//# sourceMappingURL=EmojiPickerSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmojiPickerSheet.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/EmojiPickerSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAyBjF,UAAU,qBAAqB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B;AA0CD,eAAO,MAAM,mBAAmB,QAAa,OAAO,CAAC,MAAM,EAAE,CAQ5D,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAU,IAAI,MAAM,KAAG,OAAO,CAAC,IAAI,CAOrE,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsR5D,CAAC;AAmGF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MessageProps } from '../../types/types';
|
|
3
|
-
declare const
|
|
4
|
-
export { Message };
|
|
3
|
+
declare const MemoMessage: React.NamedExoticComponent<MessageProps>;
|
|
4
|
+
export { MemoMessage as Message };
|
|
5
5
|
//# sourceMappingURL=Message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AA2BpE,OAAO,EAAS,YAAY,EAAE,MAAM,mBAAmB,CAAC;AA2nBxD,QAAA,MAAM,WAAW,0CAAsB,CAAC;AACxC,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -15,6 +15,8 @@ interface MessageInteractionsProps {
|
|
|
15
15
|
handleDeleteMessage: () => void;
|
|
16
16
|
handleEditMessage: () => void;
|
|
17
17
|
handleReactionMessage: (id: string) => void;
|
|
18
|
+
/** Opens the full emoji picker (the "+" in the reaction row). */
|
|
19
|
+
onOpenEmojiPicker?: () => void;
|
|
18
20
|
}
|
|
19
21
|
declare const MessageInteractions: React.FC<MessageInteractionsProps>;
|
|
20
22
|
export default MessageInteractions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInteractions.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/MessageInteractions.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MessageInteractions.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/MessageInteractions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAQ3E,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAsB7C,UAAU,wBAAwB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,QAAQ,CAAC;IAClB,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;KAChB,GAAG,IAAI,CAAC;IACT,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAqW3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageReaction.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/MessageReaction.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageReaction.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/MessageReaction.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAA6B,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC1C,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAkHpD,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
export declare const StyledMessageReply: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").FastOmit<import("react-native").TouchableOpacityProps & import("react").RefAttributes<import("react-native").View>, "isUser" | "configColor"> & {
|
|
3
|
-
isUser: boolean;
|
|
4
|
-
configColor: string;
|
|
5
|
-
}, never> & Partial<Pick<import("styled-components/native/dist/types").FastOmit<import("react-native").TouchableOpacityProps & import("react").RefAttributes<import("react-native").View>, "isUser" | "configColor"> & {
|
|
6
|
-
isUser: boolean;
|
|
7
|
-
configColor: string;
|
|
8
|
-
}, never>>> & string;
|
|
9
2
|
interface MessageReplyProps {
|
|
10
3
|
isUser: boolean;
|
|
11
4
|
text: string;
|
|
5
|
+
/** The parent's author, when the reply carries it. */
|
|
6
|
+
userName?: string;
|
|
12
7
|
color?: string;
|
|
13
8
|
handleReplyMessage: () => void;
|
|
14
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Quote of the parent at the top of a reply that was also sent to the
|
|
12
|
+
* channel (WhatsApp-style): accent bar, author, up to two lines of text.
|
|
13
|
+
* Tapping opens the parent's thread.
|
|
14
|
+
*/
|
|
15
15
|
export declare const MessageReply: FC<MessageReplyProps>;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=MessageReply.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageReply.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/MessageReply.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"MessageReply.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/MessageReply.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,UAAU,iBAAiB;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAuC9C,CAAC"}
|
|
@@ -8,7 +8,8 @@ interface SwipeBackLayerProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* Full-screen modal layer with the same navigation feel as RoomStack: it
|
|
10
10
|
* slides in from the right, and a swipe from the left edge drags it back
|
|
11
|
-
* out over whatever is underneath (the room or the list).
|
|
11
|
+
* out over whatever is underneath (the room or the list). Like RoomStack it
|
|
12
|
+
* runs on RN's own `Animated`, one value driving every layer.
|
|
12
13
|
*/
|
|
13
14
|
export declare const SwipeBackLayer: React.FC<SwipeBackLayerProps>;
|
|
14
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeBackLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/Modal/SwipeBackLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SwipeBackLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/Modal/SwipeBackLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAmBf,UAAU,mBAAmB;IAC3B,2EAA2E;IAC3E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,4EAA4E;IAC5E,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;CAC5C;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsJxD,CAAC"}
|
|
@@ -6,6 +6,6 @@ interface ChatRoomItemProps {
|
|
|
6
6
|
isDriver?: boolean;
|
|
7
7
|
config?: IConfig;
|
|
8
8
|
}
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
9
|
+
declare const _default: React.NamedExoticComponent<ChatRoomItemProps>;
|
|
10
|
+
export default _default;
|
|
11
11
|
//# sourceMappingURL=ChatRoomItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatRoomItem.d.ts","sourceRoot":"","sources":["../../../../src/components/RoomComponents/ChatRoomItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatRoomItem.d.ts","sourceRoot":"","sources":["../../../../src/components/RoomComponents/ChatRoomItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAOpD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAgBnD,UAAU,iBAAiB;IACzB,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;;AAyQD,wBAAwC"}
|
|
@@ -3,12 +3,9 @@ import { LastMessage } from '../../../types/types';
|
|
|
3
3
|
interface LastMessageEmojiProps extends Pick<LastMessage, 'user' | 'emoji'> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* not an `:id:`) so we just render it as-is — no emoji-id resolution
|
|
10
|
-
* library needed. If a legacy payload still ships an `:id:`, it
|
|
11
|
-
* renders verbatim instead of crashing.
|
|
6
|
+
* The room-list preview when the latest event in a room is a reaction.
|
|
7
|
+
* The stanza carries the emoji's short name (`joy`, `+1`), as on web — it
|
|
8
|
+
* is resolved to the glyph here; a glyph or unknown id renders as is.
|
|
12
9
|
*/
|
|
13
10
|
declare const LastMessageEmoji: FC<LastMessageEmojiProps>;
|
|
14
11
|
export default LastMessageEmoji;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LastMessageEmoji.d.ts","sourceRoot":"","sources":["../../../../../src/components/RoomComponents/styled/LastMessageEmoji.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMlC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"LastMessageEmoji.d.ts","sourceRoot":"","sources":["../../../../../src/components/RoomComponents/styled/LastMessageEmoji.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMlC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,UAAU,qBAAsB,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;CAAG;AAE9E;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAQ/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
import { IMessage, User } from '../../types/types';
|
|
3
3
|
interface ThreadWrapperProps {
|
|
4
4
|
activeMessage: IMessage;
|
|
@@ -9,6 +9,12 @@ interface ThreadWrapperProps {
|
|
|
9
9
|
isReply: boolean;
|
|
10
10
|
}>;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* The thread of one message, over the room: slides in from the right,
|
|
14
|
+
* closes with the header's back button, Android back or a swipe from the
|
|
15
|
+
* left edge (same feel as leaving a room). Replies go to the thread;
|
|
16
|
+
* "Also send to <room>" posts them in the channel too.
|
|
17
|
+
*/
|
|
12
18
|
declare const ThreadWrapper: FC<ThreadWrapperProps>;
|
|
13
19
|
export default ThreadWrapper;
|
|
14
20
|
//# sourceMappingURL=ThreadWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreadWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Thread/ThreadWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"ThreadWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Thread/ThreadWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAiBrF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AA0BnD,UAAU,kBAAkB;IAC1B,aAAa,EAAE,QAAQ,CAAC;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,sBAAsB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC3C,OAAO,EAAE,QAAQ,CAAC;QAClB,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC,CAAC;CACJ;AAED;;;;;GAKG;AACH,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAiPzC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/DateLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,cAAc;IACtB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACvE;AAYD,eAAO,MAAM,eAAe;cAChB,MAAM;;cAAN,MAAM;oBASjB,CAAC;AAEF,eAAO,MAAM,cAAc;YAAyB,MAAM;;YAAN,MAAM;oBAMzD,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"DateLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/DateLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,cAAc;IACtB,IAAI,EAAE,IAAI,CAAC;IACX,0EAA0E;IAC1E,MAAM,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACvE;AAYD,eAAO,MAAM,eAAe;cAChB,MAAM;;cAAN,MAAM;oBASjB,CAAC;AAEF,eAAO,MAAM,cAAc;YAAyB,MAAM;;YAAN,MAAM;oBAMzD,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiDvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageNotificationContext.d.ts","sourceRoot":"","sources":["../../../src/context/MessageNotificationContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAEZ,SAAS,
|
|
1
|
+
{"version":3,"file":"MessageNotificationContext.d.ts","sourceRoot":"","sources":["../../../src/context/MessageNotificationContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAEZ,SAAS,EAOV,MAAM,OAAO,CAAC;AAgBf,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAgBnD,UAAU,+BAA+B;IACvC,uBAAuB,EAAE,CACvB,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,KACZ,IAAI,CAAC;CACX;AAmBD,UAAU,aAAa;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuM/D,CAAC;AAuQF,eAAO,MAAM,sBAAsB,uCAQlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xmppProvider.d.ts","sourceRoot":"","sources":["../../../src/context/xmppProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EAQV,MAAM,OAAO,CAAC;AAIf,OAAO,UAEN,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,OAAO,EACP,uBAAuB,EAEvB,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"xmppProvider.d.ts","sourceRoot":"","sources":["../../../src/context/xmppProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EAQV,MAAM,OAAO,CAAC;AAIf,OAAO,UAEN,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,OAAO,EACP,uBAAuB,EAEvB,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AAuCxB,UAAU,QAAQ;IAChB,OAAO,EAAE,UAAU,GAAG,MAAM,CAAC;CAC9B;AAED,UAAU,eAAe;IACvB,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC9B,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,gBAAgB,EAAE,CAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,qBAAqB,KACjC,OAAO,CAAC,UAAU,CAAC,CAAC;CAC1B;AAID,UAAU,iBAAiB;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IAIjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAcD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAk2BpD,CAAC;AAEF,eAAO,MAAM,aAAa,uBAkBzB,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,cAAc,SAE7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRoomFromApi.d.ts","sourceRoot":"","sources":["../../../src/helpers/createRoomFromApi.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"createRoomFromApi.d.ts","sourceRoot":"","sources":["../../../src/helpers/createRoomFromApi.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAkChD,eAAO,MAAM,iBAAiB,GAC5B,MAAM,OAAO,EACb,UAAS,MAA4C,EACrD,mBAAkB,MAAU,KAC3B,KAAK,GAAG,IAyBV,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type EmojiEntry } from '../assets/emojiData';
|
|
2
|
+
export declare const getEmojiNativeById: (id: string) => string;
|
|
3
|
+
export declare const getEmojiIdByNative: (native: string) => string | undefined;
|
|
4
|
+
export declare const DEFAULT_QUICK_REACTIONS: string[];
|
|
5
|
+
export declare const searchEmojis: (query: string, limit?: number) => EmojiEntry[];
|
|
6
|
+
//# sourceMappingURL=emoji.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emoji.d.ts","sourceRoot":"","sources":["../../../src/helpers/emoji.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAaxE,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,KAAG,MACpB,CAAC;AAE7B,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,KAAG,MAAM,GAAG,SAK5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAsD,CAAC;AAE3F,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,EAAE,cAAU,KAAG,UAAU,EAalE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"haptics.d.ts","sourceRoot":"","sources":["../../../src/helpers/haptics.ts"],"names":[],"mappings":"AAYA,+EAA+E;AAC/E,eAAO,MAAM,SAAS,YAKrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"historyPreloadScheduler.d.ts","sourceRoot":"","sources":["../../../src/helpers/historyPreloadScheduler.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AASlD,UAAU,8BAA8B;IACtC,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;
|
|
1
|
+
{"version":3,"file":"historyPreloadScheduler.d.ts","sourceRoot":"","sources":["../../../src/helpers/historyPreloadScheduler.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AASlD,UAAU,8BAA8B;IACtC,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAmFD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GACrC,SAAS,8BAA8B,KACtC,OAAO,CAAC,IAAI,CAyNd,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insertMessageWithDelimiter.d.ts","sourceRoot":"","sources":["../../../src/helpers/insertMessageWithDelimiter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"insertMessageWithDelimiter.d.ts","sourceRoot":"","sources":["../../../src/helpers/insertMessageWithDelimiter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AA4D1C,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,EACjC,OAAO,EAAE,QAAQ,EACjB,mBAAmB,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;CAAE,GAAG,IAAI,QAiHhE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IMessage } from '../types/models/message.model';
|
|
2
|
+
export interface ExtractedReaction {
|
|
3
|
+
messageId: string;
|
|
4
|
+
from: string;
|
|
5
|
+
emoji: string[];
|
|
6
|
+
data: Record<string, string>;
|
|
7
|
+
roomJID: string;
|
|
8
|
+
/** Server stanza id (microsecond timestamp) — orders reactions. */
|
|
9
|
+
ts?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const extractReaction: (msg: any, fallbackRoomJID?: string, archiveId?: string) => ExtractedReaction | null;
|
|
12
|
+
export declare const applyMamReactions: (messages: IMessage[], reactions: ExtractedReaction[]) => ExtractedReaction[];
|
|
13
|
+
//# sourceMappingURL=mamReactions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mamReactions.d.ts","sourceRoot":"","sources":["../../../src/helpers/mamReactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAGzD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,eAAe,GAC1B,KAAK,GAAG,EACR,kBAAkB,MAAM,EACxB,YAAY,MAAM,KACjB,iBAAiB,GAAG,IAiBtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,UAAU,QAAQ,EAAE,EACpB,WAAW,iBAAiB,EAAE,KAC7B,iBAAiB,EAmBnB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** The parent a reply points at, read from its `mainMessage` JSON. */
|
|
2
|
+
export interface MessageReference {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
roomJid: string;
|
|
6
|
+
userName?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Safe read of `message.mainMessage` (a JSON string on the wire). Null for
|
|
10
|
+
* a missing or malformed value — a bad payload must not crash a bubble.
|
|
11
|
+
* Cached per message object.
|
|
12
|
+
*/
|
|
13
|
+
export declare const parseMessageReference: (message: {
|
|
14
|
+
mainMessage?: string;
|
|
15
|
+
} | null | undefined) => MessageReference | null;
|
|
16
|
+
//# sourceMappingURL=parseMessageReference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseMessageReference.d.ts","sourceRoot":"","sources":["../../../src/helpers/parseMessageReference.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,SAAS;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,GAAG,SAAS,KAAG,gBAAgB,GAAG,IAoBzC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IConfig } from '../types/types';
|
|
2
|
+
export declare const reactionsEnabled: (config?: IConfig | null) => boolean;
|
|
3
|
+
export declare const quickReactionIds: (config?: IConfig | null) => string[];
|
|
4
|
+
export declare const reactionPickerEnabled: (config?: IConfig | null) => boolean;
|
|
5
|
+
//# sourceMappingURL=reactionsConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactionsConfig.d.ts","sourceRoot":"","sources":["../../../src/helpers/reactionsConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,GAAG,IAAI,KAAG,OACQ,CAAC;AAEpE,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,GAAG,IAAI,KAAG,MAAM,EAGhE,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,SAAS,OAAO,GAAG,IAAI,KAAG,OACC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateMessagesTillLast.d.ts","sourceRoot":"","sources":["../../../src/helpers/updateMessagesTillLast.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EAAY,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAWjD,eAAO,MAAM,sBAAsB,GACjC,OAAO;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC;CACtB,EACD,QAAQ,UAAU,EAClB,kBAAa,EACb,yBAAoB,EACpB,yBAAoB,
|
|
1
|
+
{"version":3,"file":"updateMessagesTillLast.d.ts","sourceRoot":"","sources":["../../../src/helpers/updateMessagesTillLast.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EAAY,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAWjD,eAAO,MAAM,sBAAsB,GACjC,OAAO;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC;CACtB,EACD,QAAQ,UAAU,EAClB,kBAAa,EACb,yBAAoB,EACpB,yBAAoB,kBAiGrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHeapSender.d.ts","sourceRoot":"","sources":["../../../src/hooks/useHeapSender.tsx"],"names":[],"mappings":"AAIA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAElD,eAAO,MAAM,aAAa,GAAI,QAAQ,UAAU,GAAG,IAAI;;
|
|
1
|
+
{"version":3,"file":"useHeapSender.d.ts","sourceRoot":"","sources":["../../../src/hooks/useHeapSender.tsx"],"names":[],"mappings":"AAIA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAElD,eAAO,MAAM,aAAa,GAAI,QAAQ,UAAU,GAAG,IAAI;;CAmFtD,CAAC"}
|