@ethora/chat-component-rn 26.8.2 → 26.8.3
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/CHANGELOG.md +14 -0
- package/README.md +27 -1
- package/lib/commonjs/assets/EmptyChatIllustration.js +7 -6
- package/lib/commonjs/assets/EmptyChatIllustration.js.map +1 -1
- package/lib/commonjs/assets/icons.js +2 -2
- package/lib/commonjs/assets/icons.js.map +1 -1
- package/lib/commonjs/components/AuthForms/Login.js +23 -8
- package/lib/commonjs/components/AuthForms/Login.js.map +1 -1
- package/lib/commonjs/components/ContextMenu/ContextMenuComponents.js +12 -4
- package/lib/commonjs/components/ContextMenu/ContextMenuComponents.js.map +1 -1
- package/lib/commonjs/components/DropdownMenu/DropdownMenu.js +16 -9
- package/lib/commonjs/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/lib/commonjs/components/ExampleComponents/CustomMessage.js +25 -7
- package/lib/commonjs/components/ExampleComponents/CustomMessage.js.map +1 -1
- package/lib/commonjs/components/ExampleComponents/CustomTypingIndicatorExamples.js +18 -6
- package/lib/commonjs/components/ExampleComponents/CustomTypingIndicatorExamples.js.map +1 -1
- package/lib/commonjs/components/Header/HeaderRoomList.js +9 -6
- package/lib/commonjs/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/commonjs/components/InputComponents/Search.js +13 -4
- package/lib/commonjs/components/InputComponents/Search.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatHeader.js +9 -3
- package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatRoom.js +6 -3
- package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatWrapper.js +8 -6
- package/lib/commonjs/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/LanguageSelectorModal.js +37 -10
- package/lib/commonjs/components/MainComponents/LanguageSelectorModal.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MediaMessage.js +43 -19
- package/lib/commonjs/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageList.js +9 -3
- package/lib/commonjs/components/MainComponents/MessageList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RNStyled.js +12 -4
- package/lib/commonjs/components/MainComponents/RNStyled.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ReduxWrapper.js +25 -8
- package/lib/commonjs/components/MainComponents/ReduxWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RoomList.js +12 -9
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/Select.js +29 -8
- package/lib/commonjs/components/MainComponents/Select.js.map +1 -1
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +24 -13
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/BottomReplyContainer.js +24 -8
- package/lib/commonjs/components/MessageBubble/BottomReplyContainer.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/Message.js +46 -24
- package/lib/commonjs/components/MessageBubble/Message.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/MessageInteractions.js +15 -4
- package/lib/commonjs/components/MessageBubble/MessageInteractions.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/MessageReaction.js +10 -5
- package/lib/commonjs/components/MessageBubble/MessageReaction.js.map +1 -1
- package/lib/commonjs/components/Modals/AddMembersModal/AddMembersModal.js +1 -5
- package/lib/commonjs/components/Modals/AddMembersModal/AddMembersModal.js.map +1 -1
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +42 -27
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +77 -24
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/DeleteChatModal.js +5 -7
- package/lib/commonjs/components/Modals/ChatProfileModal/DeleteChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js +18 -14
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +20 -9
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ModalHeaderComponent.js +8 -2
- package/lib/commonjs/components/Modals/ModalHeaderComponent.js.map +1 -1
- package/lib/commonjs/components/Modals/ModalWrapper/ModalWrapper.js +8 -8
- package/lib/commonjs/components/Modals/ModalWrapper/ModalWrapper.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js +1 -5
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js +18 -15
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js +14 -9
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js.map +1 -1
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js +3 -7
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/commonjs/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js +8 -6
- package/lib/commonjs/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js.map +1 -1
- package/lib/commonjs/components/Modals/SettingsModals/Referrals/Referrals.js +7 -2
- package/lib/commonjs/components/Modals/SettingsModals/Referrals/Referrals.js.map +1 -1
- package/lib/commonjs/components/Modals/SettingsModals/SharedStyledComponents.js +7 -3
- package/lib/commonjs/components/Modals/SettingsModals/SharedStyledComponents.js.map +1 -1
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/RadioInput.js +10 -6
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/RadioInput.js.map +1 -1
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/VisibilityModal.js +7 -6
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/VisibilityModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js +3 -1
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js +18 -15
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js +9 -6
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/commonjs/components/Modals/styledModalComponents.js +60 -16
- package/lib/commonjs/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js +16 -10
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastAudioMessage.js +6 -2
- package/lib/commonjs/components/RoomComponents/styled/LastAudioMessage.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/StyledRoomComponents.js +6 -0
- package/lib/commonjs/components/RoomComponents/styled/StyledRoomComponents.js.map +1 -1
- package/lib/commonjs/components/Thread/ThreadWrapper.js +9 -2
- package/lib/commonjs/components/Thread/ThreadWrapper.js.map +1 -1
- package/lib/commonjs/components/Toast/Toast.js +3 -1
- package/lib/commonjs/components/Toast/Toast.js.map +1 -1
- package/lib/commonjs/components/styled/AudioMessage.js +16 -11
- package/lib/commonjs/components/styled/AudioMessage.js.map +1 -1
- package/lib/commonjs/components/styled/Button.js +18 -9
- package/lib/commonjs/components/styled/Button.js.map +1 -1
- package/lib/commonjs/components/styled/DateLabel.js +8 -5
- package/lib/commonjs/components/styled/DateLabel.js.map +1 -1
- package/lib/commonjs/components/styled/MediaModal.js +27 -21
- package/lib/commonjs/components/styled/MediaModal.js.map +1 -1
- package/lib/commonjs/components/styled/RoomListComponents/index.js +60 -38
- package/lib/commonjs/components/styled/RoomListComponents/index.js.map +1 -1
- package/lib/commonjs/components/styled/SendInput.js +13 -8
- package/lib/commonjs/components/styled/SendInput.js.map +1 -1
- package/lib/commonjs/components/styled/StyledComponents.js +67 -23
- package/lib/commonjs/components/styled/StyledComponents.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInput.js +32 -18
- package/lib/commonjs/components/styled/StyledInput.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInputComponents/CustomTypingIndicator.js +13 -8
- package/lib/commonjs/components/styled/StyledInputComponents/CustomTypingIndicator.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInputComponents/MediaComponents.js +20 -9
- package/lib/commonjs/components/styled/StyledInputComponents/MediaComponents.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js +39 -18
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/commonjs/components/styled/TreadLabel.js +6 -3
- package/lib/commonjs/components/styled/TreadLabel.js.map +1 -1
- package/lib/commonjs/context/MessageNotificationContext.js +14 -3
- package/lib/commonjs/context/MessageNotificationContext.js.map +1 -1
- package/lib/commonjs/helpers/getChatBackground.js +4 -1
- package/lib/commonjs/helpers/getChatBackground.js.map +1 -1
- package/lib/commonjs/helpers/getDateLabelColor.js +3 -1
- package/lib/commonjs/helpers/getDateLabelColor.js.map +1 -1
- package/lib/commonjs/helpers/getIconColor.js +4 -1
- package/lib/commonjs/helpers/getIconColor.js.map +1 -1
- package/lib/commonjs/helpers/getSenderNameColor.js +3 -1
- package/lib/commonjs/helpers/getSenderNameColor.js.map +1 -1
- package/lib/commonjs/helpers/markdownParser.js +27 -5
- package/lib/commonjs/helpers/markdownParser.js.map +1 -1
- package/lib/commonjs/helpers/parseMessageBody.js +82 -24
- package/lib/commonjs/helpers/parseMessageBody.js.map +1 -1
- package/lib/commonjs/hooks/useCustomTypingIndicator.js +7 -3
- package/lib/commonjs/hooks/useCustomTypingIndicator.js.map +1 -1
- package/lib/commonjs/hooks/useLogout.js +10 -3
- package/lib/commonjs/hooks/useLogout.js.map +1 -1
- package/lib/commonjs/hooks/useTheme.js +35 -0
- package/lib/commonjs/hooks/useTheme.js.map +1 -0
- package/lib/commonjs/i18n/strings.js +18 -0
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/main.js +75 -0
- package/lib/commonjs/main.js.map +1 -1
- package/lib/commonjs/networking/api-requests/push.api.js +130 -45
- package/lib/commonjs/networking/api-requests/push.api.js.map +1 -1
- package/lib/commonjs/networking/api-requests/rooms.api.js +13 -0
- package/lib/commonjs/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/commonjs/services/pushRegistration.js +250 -0
- package/lib/commonjs/services/pushRegistration.js.map +1 -0
- package/lib/commonjs/services/pushSubscriptionService.js +0 -24
- package/lib/commonjs/services/pushSubscriptionService.js.map +1 -1
- package/lib/commonjs/theme/index.js +38 -0
- package/lib/commonjs/theme/index.js.map +1 -0
- package/lib/commonjs/theme/styled.d.js +4 -0
- package/lib/commonjs/theme/styled.d.js.map +1 -0
- package/lib/commonjs/theme/theme.js +137 -0
- package/lib/commonjs/theme/theme.js.map +1 -0
- package/lib/module/assets/EmptyChatIllustration.js +7 -6
- package/lib/module/assets/EmptyChatIllustration.js.map +1 -1
- package/lib/module/assets/icons.js +1 -1
- package/lib/module/assets/icons.js.map +1 -1
- package/lib/module/components/AuthForms/Login.js +23 -8
- package/lib/module/components/AuthForms/Login.js.map +1 -1
- package/lib/module/components/ContextMenu/ContextMenuComponents.js +12 -4
- package/lib/module/components/ContextMenu/ContextMenuComponents.js.map +1 -1
- package/lib/module/components/DropdownMenu/DropdownMenu.js +16 -9
- package/lib/module/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/lib/module/components/ExampleComponents/CustomMessage.js +25 -7
- package/lib/module/components/ExampleComponents/CustomMessage.js.map +1 -1
- package/lib/module/components/ExampleComponents/CustomTypingIndicatorExamples.js +18 -6
- package/lib/module/components/ExampleComponents/CustomTypingIndicatorExamples.js.map +1 -1
- package/lib/module/components/Header/HeaderRoomList.js +9 -6
- package/lib/module/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/module/components/InputComponents/Search.js +13 -4
- package/lib/module/components/InputComponents/Search.js.map +1 -1
- package/lib/module/components/MainComponents/ChatHeader.js +9 -3
- package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/module/components/MainComponents/ChatRoom.js +6 -3
- package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/module/components/MainComponents/ChatWrapper.js +8 -6
- package/lib/module/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/LanguageSelectorModal.js +37 -10
- package/lib/module/components/MainComponents/LanguageSelectorModal.js.map +1 -1
- package/lib/module/components/MainComponents/MediaMessage.js +42 -19
- package/lib/module/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/module/components/MainComponents/MessageList.js +9 -3
- package/lib/module/components/MainComponents/MessageList.js.map +1 -1
- package/lib/module/components/MainComponents/RNStyled.js +12 -4
- package/lib/module/components/MainComponents/RNStyled.js.map +1 -1
- package/lib/module/components/MainComponents/ReduxWrapper.js +25 -8
- package/lib/module/components/MainComponents/ReduxWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/RoomList.js +12 -9
- package/lib/module/components/MainComponents/RoomList.js.map +1 -1
- package/lib/module/components/MainComponents/Select.js +29 -8
- package/lib/module/components/MainComponents/Select.js.map +1 -1
- package/lib/module/components/Menu/HeaderRoomListMenu.js +24 -13
- package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/module/components/MessageBubble/BottomReplyContainer.js +24 -8
- package/lib/module/components/MessageBubble/BottomReplyContainer.js.map +1 -1
- package/lib/module/components/MessageBubble/Message.js +47 -25
- package/lib/module/components/MessageBubble/Message.js.map +1 -1
- package/lib/module/components/MessageBubble/MessageInteractions.js +15 -4
- package/lib/module/components/MessageBubble/MessageInteractions.js.map +1 -1
- package/lib/module/components/MessageBubble/MessageReaction.js +10 -5
- package/lib/module/components/MessageBubble/MessageReaction.js.map +1 -1
- package/lib/module/components/Modals/AddMembersModal/AddMembersModal.js +2 -6
- package/lib/module/components/Modals/AddMembersModal/AddMembersModal.js.map +1 -1
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js +42 -27
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +79 -26
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/DeleteChatModal.js +6 -8
- package/lib/module/components/Modals/ChatProfileModal/DeleteChatModal.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js +18 -16
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js.map +1 -1
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +20 -9
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/module/components/Modals/ModalHeaderComponent.js +8 -2
- package/lib/module/components/Modals/ModalHeaderComponent.js.map +1 -1
- package/lib/module/components/Modals/ModalWrapper/ModalWrapper.js +10 -10
- package/lib/module/components/Modals/ModalWrapper/ModalWrapper.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/ModalContent.js +2 -6
- package/lib/module/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js +18 -15
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js +14 -9
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js.map +1 -1
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js +4 -8
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/module/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js +8 -6
- package/lib/module/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js.map +1 -1
- package/lib/module/components/Modals/SettingsModals/Referrals/Referrals.js +7 -2
- package/lib/module/components/Modals/SettingsModals/Referrals/Referrals.js.map +1 -1
- package/lib/module/components/Modals/SettingsModals/SharedStyledComponents.js +7 -3
- package/lib/module/components/Modals/SettingsModals/SharedStyledComponents.js.map +1 -1
- package/lib/module/components/Modals/SettingsModals/Visibility/RadioInput.js +10 -6
- package/lib/module/components/Modals/SettingsModals/Visibility/RadioInput.js.map +1 -1
- package/lib/module/components/Modals/SettingsModals/Visibility/VisibilityModal.js +7 -6
- package/lib/module/components/Modals/SettingsModals/Visibility/VisibilityModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js +3 -2
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js +18 -15
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js +9 -6
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/module/components/Modals/styledModalComponents.js +59 -15
- package/lib/module/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/module/components/RoomComponents/ChatRoomItem.js +16 -10
- package/lib/module/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastAudioMessage.js +6 -2
- package/lib/module/components/RoomComponents/styled/LastAudioMessage.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/StyledRoomComponents.js +6 -0
- package/lib/module/components/RoomComponents/styled/StyledRoomComponents.js.map +1 -1
- package/lib/module/components/Thread/ThreadWrapper.js +9 -2
- package/lib/module/components/Thread/ThreadWrapper.js.map +1 -1
- package/lib/module/components/Toast/Toast.js +3 -1
- package/lib/module/components/Toast/Toast.js.map +1 -1
- package/lib/module/components/styled/AudioMessage.js +16 -11
- package/lib/module/components/styled/AudioMessage.js.map +1 -1
- package/lib/module/components/styled/Button.js +17 -9
- package/lib/module/components/styled/Button.js.map +1 -1
- package/lib/module/components/styled/DateLabel.js +8 -5
- package/lib/module/components/styled/DateLabel.js.map +1 -1
- package/lib/module/components/styled/MediaModal.js +29 -23
- package/lib/module/components/styled/MediaModal.js.map +1 -1
- package/lib/module/components/styled/RoomListComponents/index.js +62 -39
- package/lib/module/components/styled/RoomListComponents/index.js.map +1 -1
- package/lib/module/components/styled/SendInput.js +13 -8
- package/lib/module/components/styled/SendInput.js.map +1 -1
- package/lib/module/components/styled/StyledComponents.js +67 -23
- package/lib/module/components/styled/StyledComponents.js.map +1 -1
- package/lib/module/components/styled/StyledInput.js +32 -18
- package/lib/module/components/styled/StyledInput.js.map +1 -1
- package/lib/module/components/styled/StyledInputComponents/CustomTypingIndicator.js +13 -8
- package/lib/module/components/styled/StyledInputComponents/CustomTypingIndicator.js.map +1 -1
- package/lib/module/components/styled/StyledInputComponents/MediaComponents.js +20 -9
- package/lib/module/components/styled/StyledInputComponents/MediaComponents.js.map +1 -1
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js +39 -18
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/module/components/styled/TreadLabel.js +6 -3
- package/lib/module/components/styled/TreadLabel.js.map +1 -1
- package/lib/module/context/MessageNotificationContext.js +14 -3
- package/lib/module/context/MessageNotificationContext.js.map +1 -1
- package/lib/module/helpers/getChatBackground.js +5 -1
- package/lib/module/helpers/getChatBackground.js.map +1 -1
- package/lib/module/helpers/getDateLabelColor.js +4 -1
- package/lib/module/helpers/getDateLabelColor.js.map +1 -1
- package/lib/module/helpers/getIconColor.js +5 -1
- package/lib/module/helpers/getIconColor.js.map +1 -1
- package/lib/module/helpers/getSenderNameColor.js +4 -1
- package/lib/module/helpers/getSenderNameColor.js.map +1 -1
- package/lib/module/helpers/markdownParser.js +27 -5
- package/lib/module/helpers/markdownParser.js.map +1 -1
- package/lib/module/helpers/parseMessageBody.js +82 -24
- package/lib/module/helpers/parseMessageBody.js.map +1 -1
- package/lib/module/hooks/useCustomTypingIndicator.js +8 -3
- package/lib/module/hooks/useCustomTypingIndicator.js.map +1 -1
- package/lib/module/hooks/useLogout.js +10 -3
- package/lib/module/hooks/useLogout.js.map +1 -1
- package/lib/module/hooks/useTheme.js +30 -0
- package/lib/module/hooks/useTheme.js.map +1 -0
- package/lib/module/i18n/strings.js +18 -0
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/main.js +3 -0
- package/lib/module/main.js.map +1 -1
- package/lib/module/networking/api-requests/push.api.js +119 -45
- package/lib/module/networking/api-requests/push.api.js.map +1 -1
- package/lib/module/networking/api-requests/rooms.api.js +12 -0
- package/lib/module/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/module/services/pushRegistration.js +239 -0
- package/lib/module/services/pushRegistration.js.map +1 -0
- package/lib/module/services/pushSubscriptionService.js +0 -24
- package/lib/module/services/pushSubscriptionService.js.map +1 -1
- package/lib/module/theme/index.js +7 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/styled.d.js +6 -0
- package/lib/module/theme/styled.d.js.map +1 -0
- package/lib/module/theme/theme.js +131 -0
- package/lib/module/theme/theme.js.map +1 -0
- package/lib/typescript/assets/EmptyChatIllustration.d.ts +1 -0
- package/lib/typescript/assets/EmptyChatIllustration.d.ts.map +1 -1
- package/lib/typescript/assets/icons.d.ts +8 -0
- package/lib/typescript/assets/icons.d.ts.map +1 -1
- package/lib/typescript/components/AuthForms/Login.d.ts.map +1 -1
- package/lib/typescript/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/lib/typescript/components/ExampleComponents/CustomMessage.d.ts.map +1 -1
- package/lib/typescript/components/Header/HeaderRoomList.d.ts.map +1 -1
- package/lib/typescript/components/InputComponents/Search.d.ts.map +1 -1
- 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/LanguageSelectorModal.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MediaMessage.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ReduxWrapper.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/Select.d.ts.map +1 -1
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/BottomReplyContainer.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/Message.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/MessageInteractions.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/MessageReaction.d.ts.map +1 -1
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/DeleteChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ModalHeaderComponent.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ModalWrapper/ModalWrapper.d.ts.map +1 -1
- package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SettingsModals/Referrals/Referrals.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SettingsModals/SharedStyledComponents.d.ts +2 -2
- package/lib/typescript/components/Modals/SettingsModals/SharedStyledComponents.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SettingsModals/Visibility/RadioInput.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SettingsModals/Visibility/VisibilityModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserProfileModal/EditUserModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/styledModalComponents.d.ts +2 -0
- package/lib/typescript/components/Modals/styledModalComponents.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/ChatRoomItem.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastAudioMessage.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/StyledRoomComponents.d.ts.map +1 -1
- package/lib/typescript/components/Thread/ThreadWrapper.d.ts.map +1 -1
- package/lib/typescript/components/styled/AudioMessage.d.ts.map +1 -1
- package/lib/typescript/components/styled/Button.d.ts.map +1 -1
- package/lib/typescript/components/styled/DateLabel.d.ts.map +1 -1
- package/lib/typescript/components/styled/MediaModal.d.ts +2 -2
- package/lib/typescript/components/styled/MediaModal.d.ts.map +1 -1
- package/lib/typescript/components/styled/RoomListComponents/index.d.ts.map +1 -1
- package/lib/typescript/components/styled/SendInput.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledComponents.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledInput.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledInputComponents/MediaComponents.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledInputComponents/StyledInputComponents.d.ts.map +1 -1
- package/lib/typescript/components/styled/TreadLabel.d.ts.map +1 -1
- package/lib/typescript/context/MessageNotificationContext.d.ts.map +1 -1
- package/lib/typescript/helpers/getAvatarColor.d.ts +1 -1
- package/lib/typescript/helpers/getChatBackground.d.ts.map +1 -1
- package/lib/typescript/helpers/getDateLabelColor.d.ts +3 -7
- package/lib/typescript/helpers/getDateLabelColor.d.ts.map +1 -1
- package/lib/typescript/helpers/getIconColor.d.ts +4 -7
- package/lib/typescript/helpers/getIconColor.d.ts.map +1 -1
- package/lib/typescript/helpers/getSenderNameColor.d.ts +3 -7
- package/lib/typescript/helpers/getSenderNameColor.d.ts.map +1 -1
- package/lib/typescript/helpers/markdownParser.d.ts +8 -1
- package/lib/typescript/helpers/markdownParser.d.ts.map +1 -1
- package/lib/typescript/helpers/parseMessageBody.d.ts +8 -1
- package/lib/typescript/helpers/parseMessageBody.d.ts.map +1 -1
- package/lib/typescript/hooks/useCustomTypingIndicator.d.ts +2 -0
- package/lib/typescript/hooks/useCustomTypingIndicator.d.ts.map +1 -1
- package/lib/typescript/hooks/useLogout.d.ts.map +1 -1
- package/lib/typescript/hooks/useTheme.d.ts +16 -0
- package/lib/typescript/hooks/useTheme.d.ts.map +1 -0
- package/lib/typescript/i18n/strings.d.ts.map +1 -1
- package/lib/typescript/main.d.ts +7 -0
- package/lib/typescript/main.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/push.api.d.ts +46 -3
- package/lib/typescript/networking/api-requests/push.api.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/rooms.api.d.ts +1 -0
- package/lib/typescript/networking/api-requests/rooms.api.d.ts.map +1 -1
- package/lib/typescript/services/pushRegistration.d.ts +21 -0
- package/lib/typescript/services/pushRegistration.d.ts.map +1 -0
- package/lib/typescript/services/pushSubscriptionService.d.ts +0 -4
- package/lib/typescript/services/pushSubscriptionService.d.ts.map +1 -1
- package/lib/typescript/theme/index.d.ts +5 -0
- package/lib/typescript/theme/index.d.ts.map +1 -0
- package/lib/typescript/theme/theme.d.ts +113 -0
- package/lib/typescript/theme/theme.d.ts.map +1 -0
- package/lib/typescript/types/models/room.model.d.ts +1 -0
- package/lib/typescript/types/models/room.model.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +20 -0
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/EmptyChatIllustration.tsx +7 -5
- package/src/assets/icons.tsx +24 -0
- package/src/components/AuthForms/Login.tsx +11 -9
- package/src/components/ContextMenu/ContextMenuComponents.tsx +4 -4
- package/src/components/DropdownMenu/DropdownMenu.tsx +14 -6
- package/src/components/ExampleComponents/CustomMessage.tsx +9 -8
- package/src/components/ExampleComponents/CustomTypingIndicatorExamples.tsx +6 -6
- package/src/components/Header/HeaderRoomList.tsx +11 -6
- package/src/components/InputComponents/Search.tsx +7 -4
- package/src/components/MainComponents/ChatHeader.tsx +9 -3
- package/src/components/MainComponents/ChatRoom.tsx +5 -2
- package/src/components/MainComponents/ChatWrapper.tsx +8 -6
- package/src/components/MainComponents/LanguageSelectorModal.tsx +33 -7
- package/src/components/MainComponents/MediaMessage.tsx +37 -18
- package/src/components/MainComponents/MessageList.tsx +13 -3
- package/src/components/MainComponents/RNStyled.tsx +4 -4
- package/src/components/MainComponents/ReduxWrapper.tsx +23 -7
- package/src/components/MainComponents/RoomList.tsx +13 -7
- package/src/components/MainComponents/Select.tsx +13 -8
- package/src/components/Menu/HeaderRoomListMenu.tsx +30 -13
- package/src/components/MessageBubble/BottomReplyContainer.tsx +16 -11
- package/src/components/MessageBubble/Message.tsx +48 -25
- package/src/components/MessageBubble/MessageInteractions.tsx +17 -4
- package/src/components/MessageBubble/MessageReaction.tsx +9 -4
- package/src/components/Modals/AddMembersModal/AddMembersModal.tsx +2 -2
- package/src/components/Modals/AttachSheet/AttachSheet.tsx +57 -23
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +63 -25
- package/src/components/Modals/ChatProfileModal/DeleteChatModal.tsx +6 -4
- package/src/components/Modals/ChatProfileModal/ReportChatModal.tsx +18 -14
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +14 -9
- package/src/components/Modals/ModalHeaderComponent.tsx +9 -2
- package/src/components/Modals/ModalWrapper/ModalWrapper.tsx +14 -6
- package/src/components/Modals/NewChatModal/ModalContent.tsx +2 -2
- package/src/components/Modals/NewChatModal/NewChatModal.tsx +19 -15
- package/src/components/Modals/ProfileHeader/ProfileMenu.tsx +15 -8
- package/src/components/Modals/SelectUsersModal/SelectUsersModal.tsx +2 -3
- package/src/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.tsx +8 -6
- package/src/components/Modals/SettingsModals/Referrals/Referrals.tsx +5 -3
- package/src/components/Modals/SettingsModals/SharedStyledComponents.ts +4 -4
- package/src/components/Modals/SettingsModals/Visibility/RadioInput.tsx +9 -5
- package/src/components/Modals/SettingsModals/Visibility/VisibilityModal.tsx +7 -7
- package/src/components/Modals/UserProfileModal/EditUserModal.tsx +3 -1
- package/src/components/Modals/UserProfileModal/UserProfileModal.tsx +19 -15
- package/src/components/Modals/UserSettingsModal/UserSettingsModal.tsx +15 -6
- package/src/components/Modals/styledModalComponents.tsx +23 -15
- package/src/components/RoomComponents/ChatRoomItem.tsx +19 -10
- package/src/components/RoomComponents/styled/LastAudioMessage.tsx +4 -2
- package/src/components/RoomComponents/styled/StyledRoomComponents.ts +2 -0
- package/src/components/Thread/ThreadWrapper.tsx +6 -5
- package/src/components/Toast/Toast.tsx +1 -1
- package/src/components/styled/AudioMessage.tsx +12 -9
- package/src/components/styled/Button.tsx +15 -8
- package/src/components/styled/DateLabel.tsx +7 -3
- package/src/components/styled/MediaModal.tsx +30 -25
- package/src/components/styled/RoomListComponents/index.tsx +60 -35
- package/src/components/styled/SendInput.tsx +23 -8
- package/src/components/styled/StyledComponents.ts +30 -23
- package/src/components/styled/StyledInput.tsx +35 -21
- package/src/components/styled/StyledInputComponents/CustomTypingIndicator.tsx +8 -8
- package/src/components/styled/StyledInputComponents/MediaComponents.tsx +20 -7
- package/src/components/styled/StyledInputComponents/StyledInputComponents.tsx +15 -19
- package/src/components/styled/TreadLabel.tsx +9 -3
- package/src/context/MessageNotificationContext.tsx +18 -4
- package/src/helpers/getChatBackground.ts +3 -1
- package/src/helpers/getDateLabelColor.ts +5 -3
- package/src/helpers/getIconColor.ts +6 -3
- package/src/helpers/getSenderNameColor.ts +5 -3
- package/src/helpers/markdownParser.tsx +29 -5
- package/src/helpers/parseMessageBody.tsx +79 -26
- package/src/hooks/useCustomTypingIndicator.tsx +7 -3
- package/src/hooks/useLogout.tsx +10 -3
- package/src/hooks/useTheme.ts +41 -0
- package/src/i18n/strings.ts +18 -0
- package/src/main.ts +31 -0
- package/src/networking/api-requests/push.api.ts +185 -62
- package/src/networking/api-requests/rooms.api.ts +9 -0
- package/src/services/pushRegistration.ts +356 -0
- package/src/services/pushSubscriptionService.ts +0 -34
- package/src/theme/index.ts +10 -0
- package/src/theme/styled.d.ts +9 -0
- package/src/theme/theme.ts +243 -0
- package/src/types/models/room.model.ts +1 -0
- package/src/types/types.ts +24 -0
- package/lib/commonjs/context/PushNotificationProvider.js +0 -79
- package/lib/commonjs/context/PushNotificationProvider.js.map +0 -1
- package/lib/commonjs/hooks/usePushNotifications.js +0 -110
- package/lib/commonjs/hooks/usePushNotifications.js.map +0 -1
- package/lib/commonjs/services/pushNotifications.js +0 -143
- package/lib/commonjs/services/pushNotifications.js.map +0 -1
- package/lib/module/context/PushNotificationProvider.js +0 -79
- package/lib/module/context/PushNotificationProvider.js.map +0 -1
- package/lib/module/hooks/usePushNotifications.js +0 -106
- package/lib/module/hooks/usePushNotifications.js.map +0 -1
- package/lib/module/services/pushNotifications.js +0 -130
- package/lib/module/services/pushNotifications.js.map +0 -1
- package/lib/typescript/context/PushNotificationProvider.d.ts +0 -2
- package/lib/typescript/context/PushNotificationProvider.d.ts.map +0 -1
- package/lib/typescript/hooks/usePushNotifications.d.ts +0 -5
- package/lib/typescript/hooks/usePushNotifications.d.ts.map +0 -1
- package/lib/typescript/services/pushNotifications.d.ts +0 -10
- package/lib/typescript/services/pushNotifications.d.ts.map +0 -1
- package/src/context/PushNotificationProvider.tsx +0 -78
- package/src/hooks/usePushNotifications.ts +0 -131
- package/src/services/pushNotifications.ts +0 -170
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { store } from '../roomStore';
|
|
4
|
+
import { PushRegistrationError, detectPushTokenType, registerPushSubscription, subscribeToPushGateway, unregisterPushSubscription } from '../networking/api-requests/push.api';
|
|
5
|
+
import { pushLog } from '../utils/devLogger';
|
|
6
|
+
const slotOf = tokenType => tokenType === 'apns-voip' ? 'voip' : 'chat';
|
|
7
|
+
const SLOTS = ['chat', 'voip'];
|
|
8
|
+
const HOOK_RETRY_MS = 30_000;
|
|
9
|
+
const held = new Map();
|
|
10
|
+
const registered = new Map();
|
|
11
|
+
let inflight = null;
|
|
12
|
+
let unwatch = null;
|
|
13
|
+
let hookIdentity = null;
|
|
14
|
+
let hookFailedAt = 0;
|
|
15
|
+
const readSession = () => {
|
|
16
|
+
const slice = store.getState().chatSettingStore;
|
|
17
|
+
const user = slice?.user;
|
|
18
|
+
const config = slice?.config;
|
|
19
|
+
return {
|
|
20
|
+
authToken: String(user?.token || ''),
|
|
21
|
+
appId: String(config?.appId || user?.appId || '').trim(),
|
|
22
|
+
xmppUsername: String(user?.xmppUsername || ''),
|
|
23
|
+
projectName: String(config?.projectName || '').trim(),
|
|
24
|
+
gatewayUrl: String(config?.pushNotifications?.apiUrl || '').trim(),
|
|
25
|
+
pushDisabled: config?.pushNotifications?.enabled === false
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
const isGateway = session => !!session.gatewayUrl;
|
|
29
|
+
const isReady = session => !!session.authToken && (isGateway(session) ? !!session.xmppUsername && !!session.projectName : !!session.appId);
|
|
30
|
+
const sameRegistration = (token, current, session) => !!current && current.token === token.token && current.tokenType === token.tokenType && current.gateway === isGateway(session) && current.appId === session.appId && current.xmppUsername === session.xmppUsername;
|
|
31
|
+
const slotsNeedingRegistration = session => SLOTS.filter(slot => {
|
|
32
|
+
const token = held.get(slot);
|
|
33
|
+
return !!token && !sameRegistration(token, registered.get(slot), session);
|
|
34
|
+
});
|
|
35
|
+
const releaseOnServer = async (current, authToken) => {
|
|
36
|
+
if (current.gateway || !authToken) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
await unregisterPushSubscription({
|
|
40
|
+
appId: current.appId,
|
|
41
|
+
token: current.token,
|
|
42
|
+
authToken
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
const registerOne = async (token, session) => {
|
|
46
|
+
if (isGateway(session)) {
|
|
47
|
+
if (!session.projectName) {
|
|
48
|
+
throw new PushRegistrationError('registerPushToken: config.projectName is required when ' + 'pushNotifications.apiUrl points at a push gateway.');
|
|
49
|
+
}
|
|
50
|
+
await subscribeToPushGateway({
|
|
51
|
+
apiUrl: session.gatewayUrl,
|
|
52
|
+
token: token.token,
|
|
53
|
+
userJid: session.xmppUsername,
|
|
54
|
+
projectName: session.projectName,
|
|
55
|
+
authToken: session.authToken
|
|
56
|
+
});
|
|
57
|
+
} else {
|
|
58
|
+
if (!session.appId) {
|
|
59
|
+
throw new PushRegistrationError('registerPushToken: an app id is required — set config.appId ' + 'or sign in with a user that carries one.');
|
|
60
|
+
}
|
|
61
|
+
await registerPushSubscription({
|
|
62
|
+
appId: session.appId,
|
|
63
|
+
token: token.token,
|
|
64
|
+
tokenType: token.tokenType,
|
|
65
|
+
authToken: session.authToken
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
registered.set(slotOf(token.tokenType), {
|
|
69
|
+
...token,
|
|
70
|
+
appId: session.appId,
|
|
71
|
+
xmppUsername: session.xmppUsername,
|
|
72
|
+
gateway: isGateway(session)
|
|
73
|
+
});
|
|
74
|
+
pushLog('rn', `push: ${token.tokenType} token registered` + (isGateway(session) ? ' (gateway)' : ` for app ${session.appId}`));
|
|
75
|
+
};
|
|
76
|
+
const registerNow = () => {
|
|
77
|
+
if (inflight) {
|
|
78
|
+
return inflight;
|
|
79
|
+
}
|
|
80
|
+
inflight = (async () => {
|
|
81
|
+
const session = readSession();
|
|
82
|
+
if (session.pushDisabled || !session.authToken) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (isGateway(session) && !session.xmppUsername) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
for (const slot of slotsNeedingRegistration(session)) {
|
|
89
|
+
const token = held.get(slot);
|
|
90
|
+
const previous = registered.get(slot);
|
|
91
|
+
if (previous && previous.xmppUsername === session.xmppUsername) {
|
|
92
|
+
registered.delete(slot);
|
|
93
|
+
await releaseOnServer(previous, session.authToken).catch(error => pushLog('warn', 'push: releasing the replaced token failed', error));
|
|
94
|
+
}
|
|
95
|
+
await registerOne(token, session);
|
|
96
|
+
}
|
|
97
|
+
})().finally(() => {
|
|
98
|
+
inflight = null;
|
|
99
|
+
});
|
|
100
|
+
return inflight;
|
|
101
|
+
};
|
|
102
|
+
const runTokenHook = session => {
|
|
103
|
+
const hook = store.getState().chatSettingStore?.config?.pushNotifications?.getPushTokens;
|
|
104
|
+
const identity = session.xmppUsername || session.appId;
|
|
105
|
+
if (!hook || !identity || hookIdentity === identity) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (Date.now() - hookFailedAt < HOOK_RETRY_MS) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
hookIdentity = identity;
|
|
112
|
+
(async () => {
|
|
113
|
+
const result = await hook();
|
|
114
|
+
const list = Array.isArray(result) ? result : result ? [result] : [];
|
|
115
|
+
for (const entry of list) {
|
|
116
|
+
if (typeof entry?.token !== 'string' || !entry.token.trim()) {
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
hold(entry.token.trim(), entry.tokenType);
|
|
120
|
+
}
|
|
121
|
+
await registerNow();
|
|
122
|
+
})().catch(error => {
|
|
123
|
+
hookIdentity = null;
|
|
124
|
+
hookFailedAt = Date.now();
|
|
125
|
+
pushLog('warn', 'push: getPushTokens failed; will retry', error);
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
const hold = (token, tokenType) => {
|
|
129
|
+
const resolved = tokenType ?? detectPushTokenType(token);
|
|
130
|
+
const entry = {
|
|
131
|
+
token,
|
|
132
|
+
tokenType: resolved
|
|
133
|
+
};
|
|
134
|
+
held.set(slotOf(resolved), entry);
|
|
135
|
+
return entry;
|
|
136
|
+
};
|
|
137
|
+
const ensureWatching = () => {
|
|
138
|
+
if (unwatch) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
unwatch = store.subscribe(() => {
|
|
142
|
+
const session = readSession();
|
|
143
|
+
if (!session.authToken) {
|
|
144
|
+
hookIdentity = null;
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (session.pushDisabled || !isReady(session)) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
runTokenHook(session);
|
|
151
|
+
if (slotsNeedingRegistration(session).length === 0) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
registerNow().catch(error => {
|
|
155
|
+
pushLog('warn', 'push: deferred token registration failed', error);
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
export const installPushTokenHook = () => {
|
|
160
|
+
ensureWatching();
|
|
161
|
+
const session = readSession();
|
|
162
|
+
if (session.authToken && !session.pushDisabled && isReady(session)) {
|
|
163
|
+
runTokenHook(session);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
export async function registerPushToken(token, options) {
|
|
167
|
+
if (typeof token !== 'string' || !token.trim()) {
|
|
168
|
+
throw new TypeError('registerPushToken: token must be a non-empty string');
|
|
169
|
+
}
|
|
170
|
+
hold(token.trim(), options?.tokenType);
|
|
171
|
+
ensureWatching();
|
|
172
|
+
const session = readSession();
|
|
173
|
+
if (session.pushDisabled) {
|
|
174
|
+
return 'disabled';
|
|
175
|
+
}
|
|
176
|
+
if (!session.authToken || isGateway(session) && !session.xmppUsername) {
|
|
177
|
+
return 'deferred';
|
|
178
|
+
}
|
|
179
|
+
await registerNow();
|
|
180
|
+
return 'registered';
|
|
181
|
+
}
|
|
182
|
+
export async function releasePushRegistration() {
|
|
183
|
+
const current = Array.from(registered.values());
|
|
184
|
+
registered.clear();
|
|
185
|
+
hookIdentity = null;
|
|
186
|
+
const session = readSession();
|
|
187
|
+
if (!current.length || !session.authToken) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
await Promise.all(current.map(entry => releaseOnServer(entry, session.authToken).then(() => pushLog('rn', `push: ${entry.tokenType} token released for app ${entry.appId}`)).catch(error => pushLog('warn', 'push: releasing the token on logout failed', error))));
|
|
191
|
+
}
|
|
192
|
+
export async function unregisterPushToken(options) {
|
|
193
|
+
const slots = options?.tokenType ? [slotOf(options.tokenType)] : SLOTS;
|
|
194
|
+
const toRelease = [];
|
|
195
|
+
for (const slot of slots) {
|
|
196
|
+
held.delete(slot);
|
|
197
|
+
const current = registered.get(slot);
|
|
198
|
+
if (current) {
|
|
199
|
+
registered.delete(slot);
|
|
200
|
+
toRelease.push(current);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
const session = readSession();
|
|
204
|
+
const removable = toRelease.filter(entry => !entry.gateway);
|
|
205
|
+
if (!removable.length) {
|
|
206
|
+
return 'forgotten';
|
|
207
|
+
}
|
|
208
|
+
if (!session.authToken) {
|
|
209
|
+
pushLog('warn', 'push: unregisterPushToken called without a session; the backend still holds the token');
|
|
210
|
+
return 'forgotten';
|
|
211
|
+
}
|
|
212
|
+
const results = await Promise.allSettled(removable.map(entry => releaseOnServer(entry, session.authToken)));
|
|
213
|
+
const failure = results.find(r => r.status === 'rejected');
|
|
214
|
+
if (failure) {
|
|
215
|
+
throw failure.reason;
|
|
216
|
+
}
|
|
217
|
+
return 'unregistered';
|
|
218
|
+
}
|
|
219
|
+
export const getRegisteredPushToken = () => {
|
|
220
|
+
const chat = held.get('chat');
|
|
221
|
+
return chat ? {
|
|
222
|
+
...chat
|
|
223
|
+
} : null;
|
|
224
|
+
};
|
|
225
|
+
export const getRegisteredPushTokens = () => SLOTS.map(slot => held.get(slot)).filter(t => !!t).map(t => ({
|
|
226
|
+
...t
|
|
227
|
+
}));
|
|
228
|
+
export const __resetPushRegistrationForTests = () => {
|
|
229
|
+
held.clear();
|
|
230
|
+
registered.clear();
|
|
231
|
+
inflight = null;
|
|
232
|
+
hookIdentity = null;
|
|
233
|
+
hookFailedAt = 0;
|
|
234
|
+
if (unwatch) {
|
|
235
|
+
unwatch();
|
|
236
|
+
unwatch = null;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
//# sourceMappingURL=pushRegistration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["store","PushRegistrationError","detectPushTokenType","registerPushSubscription","subscribeToPushGateway","unregisterPushSubscription","pushLog","slotOf","tokenType","SLOTS","HOOK_RETRY_MS","held","Map","registered","inflight","unwatch","hookIdentity","hookFailedAt","readSession","slice","getState","chatSettingStore","user","config","authToken","String","token","appId","trim","xmppUsername","projectName","gatewayUrl","pushNotifications","apiUrl","pushDisabled","enabled","isGateway","session","isReady","sameRegistration","current","gateway","slotsNeedingRegistration","filter","slot","get","releaseOnServer","registerOne","userJid","set","registerNow","previous","delete","catch","error","finally","runTokenHook","hook","getPushTokens","identity","Date","now","result","list","Array","isArray","entry","hold","resolved","ensureWatching","subscribe","length","installPushTokenHook","registerPushToken","options","TypeError","releasePushRegistration","from","values","clear","Promise","all","map","then","unregisterPushToken","slots","toRelease","push","removable","results","allSettled","failure","find","r","status","reason","getRegisteredPushToken","chat","getRegisteredPushTokens","t","__resetPushRegistrationForTests"],"sourceRoot":"../../../src","sources":["services/pushRegistration.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,cAAc;AACpC,SACEC,qBAAqB,EACrBC,mBAAmB,EACnBC,wBAAwB,EACxBC,sBAAsB,EACtBC,0BAA0B,QACrB,qCAAqC;AAE5C,SAASC,OAAO,QAAQ,oBAAoB;AAyB5C,M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AAC,KAAM;EAAE,GAAGA;AAAE,CAAC,CAAC,CAAC;AAE3B,OAAO,MAAMC,+BAA+B,GAAGA,CAAA,KAAY;EACzDzF,IAAI,CAACoE,KAAK,CAAC,CAAC;EACZlE,UAAU,CAACkE,KAAK,CAAC,CAAC;EAClBjE,QAAQ,GAAG,IAAI;EACfE,YAAY,GAAG,IAAI;EACnBC,YAAY,GAAG,CAAC;EAChB,IAAIF,OAAO,EAAE;IACXA,OAAO,CAAC,CAAC;IACTA,OAAO,GAAG,IAAI;EAChB;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
4
|
-
import { subscribeToPushNotifications } from '../networking/api-requests/push.api';
|
|
5
4
|
import { subscribeToRoomMessages } from '../networking/xmpp/subscribeToRoomMessages.xmpp';
|
|
6
5
|
const SUBSCRIBED_ROOMS_KEY = 'ethora_subscribed_rooms';
|
|
7
6
|
export class PushSubscriptionService {
|
|
8
7
|
subscribedRooms = new Set();
|
|
9
|
-
isPushSubscribed = false;
|
|
10
|
-
lastSubscriptionKey = null;
|
|
11
8
|
isInitialized = false;
|
|
12
9
|
async loadSubscribedRoomsFromStorage() {
|
|
13
10
|
if (this.isInitialized) {
|
|
@@ -32,25 +29,6 @@ export class PushSubscriptionService {
|
|
|
32
29
|
console.error('[PushService] Failed to save subscribed rooms to storage:', error);
|
|
33
30
|
}
|
|
34
31
|
}
|
|
35
|
-
async subscribeToPush(fcmToken, user, projectName) {
|
|
36
|
-
const walletAddress = user.defaultWallet?.walletAddress || user.walletAddress;
|
|
37
|
-
const subscriptionKey = `${fcmToken}_${walletAddress}`;
|
|
38
|
-
if (this.isPushSubscribed && this.lastSubscriptionKey === subscriptionKey) {
|
|
39
|
-
console.log('⚠️ Push already subscribed with this token, skipping...');
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
try {
|
|
43
|
-
const userJid = user.xmppUsername || '';
|
|
44
|
-
if (!userJid) {
|
|
45
|
-
throw new Error('User JID is required for push subscription');
|
|
46
|
-
}
|
|
47
|
-
await subscribeToPushNotifications(fcmToken, userJid, projectName);
|
|
48
|
-
this.isPushSubscribed = true;
|
|
49
|
-
this.lastSubscriptionKey = subscriptionKey;
|
|
50
|
-
} catch (error) {
|
|
51
|
-
console.error('Failed to subscribe to push after all retries:', error);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
32
|
async subscribeToRoom(client, roomJID, userNick) {
|
|
55
33
|
await this.loadSubscribedRoomsFromStorage();
|
|
56
34
|
if (this.subscribedRooms.has(roomJID)) {
|
|
@@ -94,8 +72,6 @@ export class PushSubscriptionService {
|
|
|
94
72
|
}
|
|
95
73
|
async reset() {
|
|
96
74
|
this.subscribedRooms.clear();
|
|
97
|
-
this.isPushSubscribed = false;
|
|
98
|
-
this.lastSubscriptionKey = null;
|
|
99
75
|
this.isInitialized = false;
|
|
100
76
|
try {
|
|
101
77
|
await AsyncStorage.removeItem(SUBSCRIBED_ROOMS_KEY);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AsyncStorage","
|
|
1
|
+
{"version":3,"names":["AsyncStorage","subscribeToRoomMessages","SUBSCRIBED_ROOMS_KEY","PushSubscriptionService","subscribedRooms","Set","isInitialized","loadSubscribedRoomsFromStorage","storedRooms","getItem","roomsArray","JSON","parse","error","console","saveSubscribedRoomsToStorage","Array","from","setItem","stringify","subscribeToRoom","client","roomJID","userNick","has","result","add","warn","subscribeToRooms","roomJIDs","concurrency","successful","failed","pending","filter","jid","length","i","batch","slice","results","Promise","allSettled","map","r","status","value","log","reset","clear","removeItem","isRoomSubscribed","getSubscribedRooms","pushSubscriptionService"],"sourceRoot":"../../../src","sources":["services/pushSubscriptionService.ts"],"mappings":";;AACA,OAAOA,YAAY,MAAM,2CAA2C;AACpE,SAASC,uBAAuB,QAAQ,iDAAiD;AAEzF,MAAMC,oBAAoB,GAAG,yB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AE;UACvCf,UAAU,EAAE;QACd,CAAC,MAAM;UACLC,MAAM,EAAE;QACV;MACF;IACF;IAEAlB,OAAO,CAACiC,GAAG,CAAC,yBAAyBhB,UAAU,sBAAsBC,MAAM,SAAS,CAAC;EACvF;EAEA,MAAMgB,KAAKA,CAAA,EAAkB;IAC3B,IAAI,CAAC5C,eAAe,CAAC6C,KAAK,CAAC,CAAC;IAC5B,IAAI,CAAC3C,aAAa,GAAG,KAAK;IAE1B,IAAI;MACF,MAAMN,YAAY,CAACkD,UAAU,CAAChD,oBAAoB,CAAC;MACnDY,OAAO,CAACiC,GAAG,CAAC,qDAAqD,CAAC;IACpE,CAAC,CAAC,OAAOlC,KAAK,EAAE;MACdC,OAAO,CAACD,KAAK,CAAC,8DAA8D,EAAEA,KAAK,CAAC;IACtF;EACF;EAEAsC,gBAAgBA,CAAC7B,OAAe,EAAW;IACzC,OAAO,IAAI,CAAClB,eAAe,CAACoB,GAAG,CAACF,OAAO,CAAC;EAC1C;EAEA8B,kBAAkBA,CAAA,EAAa;IAC7B,OAAOpC,KAAK,CAACC,IAAI,CAAC,IAAI,CAACb,eAAe,CAAC;EACzC;AACF;AAEA,OAAO,MAAMiD,uBAAuB,GAAG,IAAIlD,uBAAuB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LIGHT_THEME","DARK_THEME","resolveTheme","isDarkTheme","useTheme"],"sourceRoot":"../../../src","sources":["theme/index.ts"],"mappings":";;AAAA;;AAEA,SACEA,WAAW,EACXC,UAAU,EACVC,YAAY,EACZC,WAAW,QACN,SAAS;AAEhB,SAASC,QAAQ,QAAQ,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["theme/styled.d.ts"],"mappings":";;AAAA;;AAEA,OAAO,0BAA0B","ignoreList":[]}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/** @format */
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Chat theme.
|
|
7
|
+
*
|
|
8
|
+
* One palette object drives every surface, text and accent colour in the
|
|
9
|
+
* component. The light palette is the historical look (all the previously
|
|
10
|
+
* hard-coded values live here now). The dark palette is enabled by
|
|
11
|
+
* `config.dark = true`; any of its entries can be overridden through
|
|
12
|
+
* `config.darkColors`, and anything not overridden falls back to the
|
|
13
|
+
* DARK_THEME default.
|
|
14
|
+
*
|
|
15
|
+
* Resolution order:
|
|
16
|
+
* light: LIGHT_THEME ← config.colors (primary/secondary/icon…) ← messageColor ← backgroundChat.color
|
|
17
|
+
* dark: DARK_THEME ← config.darkColors
|
|
18
|
+
*
|
|
19
|
+
* In dark mode the light-only knobs (`colors`, `messageColor`,
|
|
20
|
+
* `backgroundChat.color`) are deliberately NOT applied: they were tuned
|
|
21
|
+
* against white surfaces and would produce unreadable bubbles on a dark
|
|
22
|
+
* ground. Hosts that want brand colours in the dark theme pass them via
|
|
23
|
+
* `darkColors`. `colors.avatar` is the one exception — it is a brand
|
|
24
|
+
* colour that reads fine on either ground — see getAvatarColor.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/** Everything in the palette can be overridden per entry. */
|
|
28
|
+
|
|
29
|
+
const DEFAULT_PRIMARY = '#0052CD';
|
|
30
|
+
export const LIGHT_THEME = {
|
|
31
|
+
primary: DEFAULT_PRIMARY,
|
|
32
|
+
secondary: '#141414',
|
|
33
|
+
icon: DEFAULT_PRIMARY,
|
|
34
|
+
senderName: DEFAULT_PRIMARY,
|
|
35
|
+
dateLabel: DEFAULT_PRIMARY,
|
|
36
|
+
listBackground: '#E8EDF2',
|
|
37
|
+
chatBackground: '#F3F6FC',
|
|
38
|
+
surface: '#FFFFFF',
|
|
39
|
+
surfaceSecondary: '#F5F7F9',
|
|
40
|
+
surfaceHighlight: '#0052CD0D',
|
|
41
|
+
text: '#141414',
|
|
42
|
+
textSecondary: '#8C8C8C',
|
|
43
|
+
textMuted: '#999999',
|
|
44
|
+
textOnPrimary: '#FFFFFF',
|
|
45
|
+
border: '#E5E7EB',
|
|
46
|
+
divider: '#C6CFDA',
|
|
47
|
+
shadow: '#101828',
|
|
48
|
+
overlay: 'rgba(0, 0, 0, 0.3)',
|
|
49
|
+
messageBackground: '#FFFFFF',
|
|
50
|
+
messageBackgroundUser: '#D1E7FF',
|
|
51
|
+
messageText: '#333333',
|
|
52
|
+
messageTextUser: '#333333',
|
|
53
|
+
systemMessageBackground: '#F5F5F5',
|
|
54
|
+
danger: '#E53935',
|
|
55
|
+
success: '#22C55E'
|
|
56
|
+
};
|
|
57
|
+
export const DARK_THEME = {
|
|
58
|
+
primary: '#4C8DFF',
|
|
59
|
+
secondary: '#F2F4F7',
|
|
60
|
+
icon: '#4C8DFF',
|
|
61
|
+
senderName: '#7FB0FF',
|
|
62
|
+
dateLabel: '#7FB0FF',
|
|
63
|
+
listBackground: '#0F1216',
|
|
64
|
+
chatBackground: '#141A21',
|
|
65
|
+
surface: '#1C2430',
|
|
66
|
+
surfaceSecondary: '#26303D',
|
|
67
|
+
surfaceHighlight: '#4C8DFF26',
|
|
68
|
+
text: '#F2F4F7',
|
|
69
|
+
textSecondary: '#A0A8B3',
|
|
70
|
+
textMuted: '#7A8391',
|
|
71
|
+
textOnPrimary: '#FFFFFF',
|
|
72
|
+
border: '#2F3A47',
|
|
73
|
+
divider: '#2F3A47',
|
|
74
|
+
shadow: '#000000',
|
|
75
|
+
overlay: 'rgba(0, 0, 0, 0.6)',
|
|
76
|
+
messageBackground: '#1F2833',
|
|
77
|
+
messageBackgroundUser: '#1E3A5F',
|
|
78
|
+
messageText: '#F2F4F7',
|
|
79
|
+
messageTextUser: '#F2F4F7',
|
|
80
|
+
systemMessageBackground: '#26303D',
|
|
81
|
+
danger: '#F87171',
|
|
82
|
+
success: '#4ADE80'
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** The subset of IConfig the theme depends on (kept structural so the
|
|
86
|
+
* helpers can be called with partial configs in tests). */
|
|
87
|
+
|
|
88
|
+
export const isDarkTheme = config => !!config?.dark;
|
|
89
|
+
const pick = (...values) => values.find(v => v !== undefined && v !== null && v !== '');
|
|
90
|
+
const stripUndefined = o => Object.fromEntries(Object.entries(o).filter(([, v]) => v !== undefined && v !== null && v !== ''));
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Build the effective palette for a config. Pure; memoize at the call
|
|
94
|
+
* site (useTheme does).
|
|
95
|
+
*/
|
|
96
|
+
export const resolveTheme = config => {
|
|
97
|
+
if (isDarkTheme(config)) {
|
|
98
|
+
const overrides = stripUndefined(config?.darkColors ?? {});
|
|
99
|
+
const primary = pick(overrides.primary, DARK_THEME.primary);
|
|
100
|
+
return {
|
|
101
|
+
...DARK_THEME,
|
|
102
|
+
// Accents that historically fell back to `primary` keep doing so
|
|
103
|
+
// when only `primary` is overridden.
|
|
104
|
+
icon: pick(overrides.icon, overrides.primary, DARK_THEME.icon),
|
|
105
|
+
senderName: pick(overrides.senderName, overrides.primary, DARK_THEME.senderName),
|
|
106
|
+
dateLabel: pick(overrides.dateLabel, overrides.primary, DARK_THEME.dateLabel),
|
|
107
|
+
...overrides,
|
|
108
|
+
primary,
|
|
109
|
+
dark: true,
|
|
110
|
+
statusBarStyle: 'light-content'
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
const c = config?.colors;
|
|
114
|
+
const primary = pick(c?.primary, LIGHT_THEME.primary);
|
|
115
|
+
return {
|
|
116
|
+
...LIGHT_THEME,
|
|
117
|
+
primary,
|
|
118
|
+
secondary: pick(c?.secondary, LIGHT_THEME.secondary),
|
|
119
|
+
icon: pick(c?.icon, c?.primary, LIGHT_THEME.icon),
|
|
120
|
+
senderName: pick(c?.senderName, c?.primary, LIGHT_THEME.senderName),
|
|
121
|
+
dateLabel: pick(c?.dateLabel, c?.primary, LIGHT_THEME.dateLabel),
|
|
122
|
+
chatBackground: pick(config?.backgroundChat?.color, LIGHT_THEME.chatBackground),
|
|
123
|
+
messageBackground: pick(config?.messageColor?.backgroundMessage, LIGHT_THEME.messageBackground),
|
|
124
|
+
messageBackgroundUser: pick(config?.messageColor?.backgroundMessageUser, LIGHT_THEME.messageBackgroundUser),
|
|
125
|
+
messageText: pick(config?.messageColor?.color, LIGHT_THEME.messageText),
|
|
126
|
+
messageTextUser: pick(config?.messageColor?.colorUser, LIGHT_THEME.messageTextUser),
|
|
127
|
+
dark: false,
|
|
128
|
+
statusBarStyle: 'dark-content'
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["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","isDarkTheme","config","dark","pick","values","find","v","undefined","stripUndefined","o","Object","fromEntries","entries","filter","resolveTheme","overrides","darkColors","statusBarStyle","c","colors","backgroundChat","color","messageColor","backgroundMessage","backgroundMessageUser","colorUser"],"sourceRoot":"../../../src","sources":["theme/theme.ts"],"mappings":";;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA4DA;;AAUA,MAAMA,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;EAE1BO,cAAc,EAAE,SAAS;EACzBC,cAAc,EAAE,SAAS;EACzBC,OAAO,EAAE,SAAS;EAClBC,gBAAgB,EAAE,SAAS;EA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ACe,CAAC,EAAE5C,OAAO,EAAED,WAAW,CAACC,OAAO,CAAE;EACtD,OAAO;IACL,GAAGD,WAAW;IACdC,OAAO;IACPC,SAAS,EAAE4B,IAAI,CAACe,CAAC,EAAE3C,SAAS,EAAEF,WAAW,CAACE,SAAS,CAAE;IACrDC,IAAI,EAAE2B,IAAI,CAACe,CAAC,EAAE1C,IAAI,EAAE0C,CAAC,EAAE5C,OAAO,EAAED,WAAW,CAACG,IAAI,CAAE;IAClDC,UAAU,EAAE0B,IAAI,CAACe,CAAC,EAAEzC,UAAU,EAAEyC,CAAC,EAAE5C,OAAO,EAAED,WAAW,CAACI,UAAU,CAAE;IACpEC,SAAS,EAAEyB,IAAI,CAACe,CAAC,EAAExC,SAAS,EAAEwC,CAAC,EAAE5C,OAAO,EAAED,WAAW,CAACK,SAAS,CAAE;IACjEE,cAAc,EAAEuB,IAAI,CAACF,MAAM,EAAEmB,cAAc,EAAEC,KAAK,EAAEhD,WAAW,CAACO,cAAc,CAAE;IAChFY,iBAAiB,EAAEW,IAAI,CACrBF,MAAM,EAAEqB,YAAY,EAAEC,iBAAiB,EACvClD,WAAW,CAACmB,iBACd,CAAE;IACFC,qBAAqB,EAAEU,IAAI,CACzBF,MAAM,EAAEqB,YAAY,EAAEE,qBAAqB,EAC3CnD,WAAW,CAACoB,qBACd,CAAE;IACFC,WAAW,EAAES,IAAI,CAACF,MAAM,EAAEqB,YAAY,EAAED,KAAK,EAAEhD,WAAW,CAACqB,WAAW,CAAE;IACxEC,eAAe,EAAEQ,IAAI,CACnBF,MAAM,EAAEqB,YAAY,EAAEG,SAAS,EAC/BpD,WAAW,CAACsB,eACd,CAAE;IACFO,IAAI,EAAE,KAAK;IACXe,cAAc,EAAE;EAClB,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ interface EmptyChatIllustrationProps {
|
|
|
4
4
|
height?: number;
|
|
5
5
|
/** Accent colour for the highlighted parts of the drawing. */
|
|
6
6
|
color?: string;
|
|
7
|
+
panelColor?: string;
|
|
7
8
|
}
|
|
8
9
|
export declare const EmptyChatIllustration: React.FC<EmptyChatIllustrationProps>;
|
|
9
10
|
export default EmptyChatIllustration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyChatIllustration.d.ts","sourceRoot":"","sources":["../../../src/assets/EmptyChatIllustration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,0BAA0B;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"EmptyChatIllustration.d.ts","sourceRoot":"","sources":["../../../src/assets/EmptyChatIllustration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,0BAA0B;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAKD,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAkCtE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -84,6 +84,14 @@ export declare const BurgerMenuIcon: ({ color, ...props }: {
|
|
|
84
84
|
[x: string]: any;
|
|
85
85
|
color?: string | undefined;
|
|
86
86
|
}) => React.JSX.Element;
|
|
87
|
+
export declare const BellIcon: ({ color, ...props }: {
|
|
88
|
+
[x: string]: any;
|
|
89
|
+
color?: string | undefined;
|
|
90
|
+
}) => React.JSX.Element;
|
|
91
|
+
export declare const BellOffIcon: ({ color, ...props }: {
|
|
92
|
+
[x: string]: any;
|
|
93
|
+
color?: string | undefined;
|
|
94
|
+
}) => React.JSX.Element;
|
|
87
95
|
export declare const LeaveIcon: ({ color, ...props }: {
|
|
88
96
|
[x: string]: any;
|
|
89
97
|
color?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/assets/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,eAAO,MAAM,UAAU,GAAI;;;CAA+B,sBAmBzD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI;;;CAA+B,sBAUzD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,sBAwBnC,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,sBAkBtC,CAAC;AAQF,eAAO,MAAM,UAAU,GAAI,OAAO,GAAG,sBAuBpC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,GAAG,sBAqBpC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI;;;CAA+B,sBAOvD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI;;CAAY,sBA2BtC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI;;;CAA+B,sBAOvD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI;;;CAA+B,sBAOzD,CAAC;AAMF,eAAO,MAAM,kBAAkB,GAAI,OAAO,GAAG,sBAS5C,CAAC;AAMF,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,sBAStC,CAAC;AAKF,eAAO,MAAM,UAAU,GAAI,oCAKxB,GAAG,sBA4BL,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI;;;CAA+B,sBAiBzD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI;;;;;;CAM1B,sBAOA,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI;;;CAA+B,sBAiBvD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI;;;CAA+B,sBAOxD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI;;;;;CAAwD,sBAYj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CAAwD,sBASjF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI;;;;;CAAwD,sBAUpF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI;;;;;CAK5B,sBAcA,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI;;;;CAA8C,sBAgBxE,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,KAAU,EAAE,MAAW,EAAE;;;CAAA,qBAiBlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Login.d.ts","sourceRoot":"","sources":["../../../../src/components/AuthForms/Login.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAKhE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Login.d.ts","sourceRoot":"","sources":["../../../../src/components/AuthForms/Login.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAKhE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAc5C,UAAU,cAAc;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA4NvC,CAAC;AAqDF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAuB,YAAY,EAAU,MAAM,OAAO,CAAC;AACzE,OAAO,EAML,SAAS,EAGV,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAuB,YAAY,EAAU,MAAM,OAAO,CAAC;AACzE,OAAO,EAML,SAAS,EAGV,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAY5C,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,UAAU,iBAAiB;IACzB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,UAAU,CAAC,EAAE,YAAY,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,YAAY,CAAC,CAAC;IACpE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,YAAY,CAAC;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyJ7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/ExampleComponents/CustomMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,eAAO,MAAM,gBAAgB;YAAyB,OAAO;;YAAP,OAAO;oBAM5D,CAAC;AAEF,eAAO,MAAM,aAAa;YAAyB,OAAO;;YAAP,OAAO;
|
|
1
|
+
{"version":3,"file":"CustomMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/ExampleComponents/CustomMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,eAAO,MAAM,gBAAgB;YAAyB,OAAO;;YAAP,OAAO;oBAM5D,CAAC;AAEF,eAAO,MAAM,aAAa;YAAyB,OAAO;;YAAP,OAAO;oBAOzD,CAAC;AAEF,eAAO,MAAM,WAAW,iPAGvB,CAAC;AAEF,eAAO,MAAM,QAAQ;YAAyB,OAAO;YAAU,MAAM;;YAAvB,OAAO;YAAU,MAAM;oBAKpE,CAAC;AAEF,eAAO,MAAM,gBAAgB,iPAI5B,CAAC;AAEF,eAAO,MAAM,YAAY,mPAIxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,iPAGjC,CAAC;AAEF,eAAO,MAAM,aAAa,iPAQzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,iPAI7B,CAAC;AAEF,QAAA,MAAM,oBAAoB,2EAsBzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderRoomList.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/HeaderRoomList.tsx"],"names":[],"mappings":"AAAA,cAAc;AAGd,OAAc,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"HeaderRoomList.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/HeaderRoomList.tsx"],"names":[],"mappings":"AAAA,cAAc;AAGd,OAAc,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAS3C,UAAU,mBAAmB;IAC3B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA0ElD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../../src/components/InputComponents/Search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAIL,cAAc,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../../src/components/InputComponents/Search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAIL,cAAc,EACf,MAAM,cAAc,CAAC;AA0DtB,UAAU,gBAAiB,SAAQ,cAAc;IAC/C,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAiE3C,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,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;
|
|
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,CA8KzC,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;AA0BxE,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,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;AA0BxE,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAkC1D,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;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoiBrC,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,EAAuC,MAAM,OAAO,CAAC;AAkBtE,OAAO,EAAC,OAAO,EAAE,KAAK,EAAE,YAAY,EAAkB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/ChatWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,EAAE,EAAuC,MAAM,OAAO,CAAC;AAkBtE,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,CAoerC,CAAC;AAEF,OAAO,EAAC,WAAW,EAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageSelectorModal.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/LanguageSelectorModal.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LanguageSelectorModal.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/LanguageSelectorModal.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAe,MAAM,OAAO,CAAC;AAgC/C;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAe3D,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAiJA,CAAC;AAoFF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/MediaMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MediaMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/MediaMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAoB7C,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;CACjB;AAkID,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgI7C,CAAC;AAEF,eAAe,YAAY,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":"AAA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"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ReduxWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/ReduxWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAQrC,OAAO,EAAC,UAAU,EAAE,OAAO,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAKpE,OAAO,4BAA4B,CAAC;AAgBpC,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,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,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAiBD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA+CnD,CAAC"}
|