@ethora/chat-component-rn 26.8.2 → 26.8.4
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 +18 -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 +61 -7
- 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 +145 -9
- 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/helpers/preferencesStorage.js +44 -0
- package/lib/commonjs/helpers/preferencesStorage.js.map +1 -0
- 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 +60 -0
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/main.js +88 -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/roomStore/chatSettingsSlice.js +17 -4
- package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/commonjs/services/pushRegistration.js +261 -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 +161 -0
- package/lib/commonjs/theme/theme.js.map +1 -0
- package/lib/commonjs/version.js +1 -1
- 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 +64 -10
- 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 +148 -12
- 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/helpers/preferencesStorage.js +36 -0
- package/lib/module/helpers/preferencesStorage.js.map +1 -0
- 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 +60 -0
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/main.js +4 -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/roomStore/chatSettingsSlice.js +14 -3
- package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/module/services/pushRegistration.js +250 -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 +156 -0
- package/lib/module/theme/theme.js.map +1 -0
- package/lib/module/version.js +1 -1
- 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/helpers/preferencesStorage.d.ts +11 -0
- package/lib/typescript/helpers/preferencesStorage.d.ts.map +1 -0
- 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 +9 -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/roomStore/chatSettingsSlice.d.ts +12 -1
- package/lib/typescript/roomStore/chatSettingsSlice.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 +127 -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 +42 -0
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +2 -2
- 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 +67 -10
- 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 +171 -9
- 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/helpers/preferencesStorage.ts +40 -0
- 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 +60 -0
- package/src/main.ts +33 -0
- package/src/networking/api-requests/push.api.ts +185 -62
- package/src/networking/api-requests/rooms.api.ts +9 -0
- package/src/roomStore/chatSettingsSlice.ts +24 -2
- package/src/services/pushRegistration.ts +369 -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 +277 -0
- package/src/types/models/room.model.ts +1 -0
- package/src/types/types.ts +47 -0
- package/src/version.ts +1 -1
- 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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.Viewider = exports.UserStatus = exports.UserName = exports.UserInfo = exports.ProfileImage = exports.ModalTitle = exports.ModalDescription = exports.ModalContainerFullScreen = exports.ModalContainer = exports.ModalBackground = exports.LabelData = exports.Label = exports.HeaderRight = exports.HeaderLeft = exports.HeaderContainer = exports.GroupContainer = exports.EmptySection = exports.Divider = exports.CloseButton = exports.CenterContainer = exports.BorderedContainer = exports.ActionButton = void 0;
|
|
6
|
+
exports.Viewider = exports.UserStatus = exports.UserName = exports.UserInfo = exports.ProfileImage = exports.ModalTitle = exports.ModalDescription = exports.ModalContainerFullScreen = exports.ModalContainer = exports.ModalBackground = exports.LabelData = exports.Label = exports.HeaderRight = exports.HeaderLeft = exports.HeaderContainer = exports.GroupContainer = exports.EmptySection = exports.Divider = exports.CloseButtonText = exports.CloseButton = exports.CenterContainer = exports.BorderedContainer = exports.ActionButton = void 0;
|
|
7
7
|
var _native = _interopRequireDefault(require("styled-components/native"));
|
|
8
8
|
var _Button = _interopRequireDefault(require("../styled/Button"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -12,7 +12,9 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
12
12
|
const ModalBackground = exports.ModalBackground = _native.default.View`
|
|
13
13
|
width: 100%;
|
|
14
14
|
height: 100%;
|
|
15
|
-
background:
|
|
15
|
+
background: ${({
|
|
16
|
+
theme
|
|
17
|
+
}) => theme.overlay};
|
|
16
18
|
flex: 1;
|
|
17
19
|
justify-content: center;
|
|
18
20
|
align-items: center;
|
|
@@ -25,13 +27,25 @@ const CloseButton = exports.CloseButton = _native.default.TouchableOpacity`
|
|
|
25
27
|
border: none;
|
|
26
28
|
font-size: 20px;
|
|
27
29
|
cursor: pointer;
|
|
28
|
-
color:
|
|
30
|
+
color: ${({
|
|
31
|
+
theme
|
|
32
|
+
}) => theme.textMuted};
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
/** The "×" glyph inside CloseButton — themed so it reads on dark surfaces. */
|
|
36
|
+
const CloseButtonText = exports.CloseButtonText = _native.default.Text`
|
|
37
|
+
font-size: 24px;
|
|
38
|
+
color: ${({
|
|
39
|
+
theme
|
|
40
|
+
}) => theme.text};
|
|
29
41
|
`;
|
|
30
42
|
const ModalContainer = exports.ModalContainer = _native.default.View`
|
|
31
43
|
// flex: 1;
|
|
32
44
|
// width: 100%;
|
|
33
45
|
// height: 100%;
|
|
34
|
-
background:
|
|
46
|
+
background: ${({
|
|
47
|
+
theme
|
|
48
|
+
}) => theme.surface};
|
|
35
49
|
padding: 32px 64px;
|
|
36
50
|
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.2);
|
|
37
51
|
display: flex;
|
|
@@ -42,11 +56,17 @@ const ModalContainer = exports.ModalContainer = _native.default.View`
|
|
|
42
56
|
align-items: center;
|
|
43
57
|
`;
|
|
44
58
|
const ModalTitle = exports.ModalTitle = _native.default.Text`
|
|
59
|
+
color: ${({
|
|
60
|
+
theme
|
|
61
|
+
}) => theme.text};
|
|
45
62
|
font-size: 20px;
|
|
46
63
|
margin: 0;
|
|
47
64
|
font-weight: 400;
|
|
48
65
|
`;
|
|
49
66
|
const ModalDescription = exports.ModalDescription = _native.default.Text`
|
|
67
|
+
color: ${({
|
|
68
|
+
theme
|
|
69
|
+
}) => theme.text};
|
|
50
70
|
font-size: 14px;
|
|
51
71
|
margin: 0;
|
|
52
72
|
font-weight: 400;
|
|
@@ -60,7 +80,9 @@ const GroupContainer = exports.GroupContainer = _native.default.View`
|
|
|
60
80
|
const ModalContainerFullScreen = exports.ModalContainerFullScreen = _native.default.View`
|
|
61
81
|
width: 100%;
|
|
62
82
|
height: 100%;
|
|
63
|
-
background-color:
|
|
83
|
+
background-color: ${({
|
|
84
|
+
theme
|
|
85
|
+
}) => theme.surface};
|
|
64
86
|
display: flex;
|
|
65
87
|
flex-direction: column;
|
|
66
88
|
align-items: center;
|
|
@@ -84,12 +106,16 @@ const HeaderContainer = exports.HeaderContainer = _native.default.View`
|
|
|
84
106
|
* 20px on an SE). Together that's status-bar + 8px above the back
|
|
85
107
|
* button and 8px below — properly sized and properly centered. */
|
|
86
108
|
padding: 8px 16px;
|
|
87
|
-
background-color:
|
|
109
|
+
background-color: ${({
|
|
110
|
+
theme
|
|
111
|
+
}) => theme.surface};
|
|
88
112
|
/* Same card treatment as the room-list header: rounded bottom corners
|
|
89
113
|
* and a soft drop shadow instead of a hairline rule. */
|
|
90
114
|
border-bottom-left-radius: 20px;
|
|
91
115
|
border-bottom-right-radius: 20px;
|
|
92
|
-
shadow-color:
|
|
116
|
+
shadow-color: ${({
|
|
117
|
+
theme
|
|
118
|
+
}) => theme.shadow};
|
|
93
119
|
shadow-offset: 0px 4px;
|
|
94
120
|
shadow-opacity: 0.06;
|
|
95
121
|
shadow-radius: 12px;
|
|
@@ -119,7 +145,9 @@ const ProfileImage = exports.ProfileImage = _native.default.View`
|
|
|
119
145
|
width: 120px;
|
|
120
146
|
height: 120px;
|
|
121
147
|
border-radius: 10000px;
|
|
122
|
-
border: 1px solid
|
|
148
|
+
border: 1px solid ${({
|
|
149
|
+
theme
|
|
150
|
+
}) => theme.border};
|
|
123
151
|
`;
|
|
124
152
|
const UserInfo = exports.UserInfo = _native.default.View`
|
|
125
153
|
width: 100%;
|
|
@@ -129,7 +157,9 @@ const UserInfo = exports.UserInfo = _native.default.View`
|
|
|
129
157
|
align-items: center;
|
|
130
158
|
`;
|
|
131
159
|
const UserName = exports.UserName = _native.default.Text`
|
|
132
|
-
color:
|
|
160
|
+
color: ${({
|
|
161
|
+
theme
|
|
162
|
+
}) => theme.text};
|
|
133
163
|
font-size: ${({
|
|
134
164
|
fontSize
|
|
135
165
|
}) => fontSize ?? 24}px;
|
|
@@ -138,25 +168,33 @@ const UserName = exports.UserName = _native.default.Text`
|
|
|
138
168
|
}) => fontWeight ?? 400};
|
|
139
169
|
`;
|
|
140
170
|
const UserStatus = exports.UserStatus = _native.default.Text`
|
|
141
|
-
color:
|
|
171
|
+
color: ${({
|
|
172
|
+
theme
|
|
173
|
+
}) => theme.textSecondary};
|
|
142
174
|
font-size: 16px;
|
|
143
175
|
font-weight: 400;
|
|
144
176
|
`;
|
|
145
177
|
const BorderedContainer = exports.BorderedContainer = _native.default.View`
|
|
146
178
|
width: 100%;
|
|
147
179
|
border-radius: 8px;
|
|
148
|
-
border: 1px solid
|
|
180
|
+
border: 1px solid ${({
|
|
181
|
+
theme
|
|
182
|
+
}) => theme.border};
|
|
149
183
|
display: flex;
|
|
150
184
|
flex-direction: column;
|
|
151
185
|
padding: 16px;
|
|
152
186
|
`;
|
|
153
187
|
const LabelData = exports.LabelData = _native.default.Text`
|
|
154
|
-
color:
|
|
188
|
+
color: ${({
|
|
189
|
+
theme
|
|
190
|
+
}) => theme.textSecondary};
|
|
155
191
|
font-size: 14px;
|
|
156
192
|
font-weight: 400;
|
|
157
193
|
`;
|
|
158
194
|
const Label = exports.Label = _native.default.Text`
|
|
159
|
-
color:
|
|
195
|
+
color: ${({
|
|
196
|
+
theme
|
|
197
|
+
}) => theme.text};
|
|
160
198
|
font-size: 16px;
|
|
161
199
|
`;
|
|
162
200
|
const ActionButton = exports.ActionButton = (0, _native.default)(_Button.default)`
|
|
@@ -164,7 +202,9 @@ const ActionButton = exports.ActionButton = (0, _native.default)(_Button.default
|
|
|
164
202
|
`;
|
|
165
203
|
const EmptySection = exports.EmptySection = _native.default.View`
|
|
166
204
|
height: 200px;
|
|
167
|
-
border: 1px solid
|
|
205
|
+
border: 1px solid ${({
|
|
206
|
+
theme
|
|
207
|
+
}) => theme.border};
|
|
168
208
|
border-radius: 8px;
|
|
169
209
|
width: 100%;
|
|
170
210
|
display: flex;
|
|
@@ -172,11 +212,15 @@ const EmptySection = exports.EmptySection = _native.default.View`
|
|
|
172
212
|
const Viewider = exports.Viewider = _native.default.View`
|
|
173
213
|
height: 1px;
|
|
174
214
|
width: 100%;
|
|
175
|
-
background-color:
|
|
215
|
+
background-color: ${({
|
|
216
|
+
theme
|
|
217
|
+
}) => theme.surfaceHighlight};
|
|
176
218
|
`;
|
|
177
219
|
const Divider = exports.Divider = _native.default.View`
|
|
178
220
|
height: 1px;
|
|
179
221
|
width: 100%;
|
|
180
|
-
background-color:
|
|
222
|
+
background-color: ${({
|
|
223
|
+
theme
|
|
224
|
+
}) => theme.surfaceHighlight};
|
|
181
225
|
`;
|
|
182
226
|
//# sourceMappingURL=styledModalComponents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_native","_interopRequireDefault","require","_Button","e","__esModule","default","ModalBackground","exports","styled","View","CloseButton","TouchableOpacity","
|
|
1
|
+
{"version":3,"names":["_native","_interopRequireDefault","require","_Button","e","__esModule","default","ModalBackground","exports","styled","View","theme","overlay","CloseButton","TouchableOpacity","textMuted","CloseButtonText","Text","text","ModalContainer","surface","ModalTitle","ModalDescription","GroupContainer","ModalContainerFullScreen","HeaderContainer","shadow","HeaderLeft","HeaderRight","CenterContainer","ProfileImage","border","UserInfo","UserName","fontSize","fontWeight","UserStatus","textSecondary","BorderedContainer","LabelData","Label","ActionButton","Button","EmptySection","Viewider","surfaceHighlight","Divider"],"sourceRoot":"../../../../src","sources":["components/Modals/styledModalComponents.tsx"],"mappings":";;;;;;AAEA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAsC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAHtC;;AAKO,MAAMG,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAGE,eAAM,CAACC,IAAI;AAC1C;AACA;AACA,gBAAgB,CAAC;EAAEC;AAAM,CAAC,KAAKA,KAAK,CAACC,OAAO;AAC5C;AACA;AACA;AACA;AACA,CAAC;AAEM,MAAMC,WAAW,GAAAL,OAAA,CAAAK,WAAA,GAAGJ,eAAM,CAACK,gBAAgB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,CAAC;EAAEH;AAAM,CAAC,KAAKA,KAAK,CAACI,SAAS;AACzC,CAAC;;AAED;AACO,MAAMC,eAAe,GAAAR,OAAA,CAAAQ,eAAA,GAAGP,eAAM,CAACQ,IAAI;AAC1C;AACA,WAAW,CAAC;EAAEN;AAAM,CAAC,KAAKA,KAAK,CAACO,IAAI;AACpC,CAAC;AAEM,MAAMC,cAAc,GAAAX,OAAA,CAAAW,cAAA,GAAGV,eAAM,CAACC,IAAI;AACzC;AACA;AACA;AACA,gBAAgB,CAAC;EAAEC;AAAM,CAAC,KAAKA,KAAK,CAACS,OAAO;AAC5C;AACA;AACA;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Q,IAAI;AAChC,WAAW,CAAC;EAAEN;AAAM,CAAC,KAAKA,KAAK,CAACO,IAAI;AACpC;AACA,CAAC;AAEM,MAAMuB,YAAY,GAAAjC,OAAA,CAAAiC,YAAA,GAAG,IAAAhC,eAAM,EAACiC,eAAM,CAAC;AAC1C;AACA,CAAC;AAEM,MAAMC,YAAY,GAAAnC,OAAA,CAAAmC,YAAA,GAAGlC,eAAM,CAACC,IAAI;AACvC;AACA,sBAAsB,CAAC;EAAEC;AAAM,CAAC,KAAKA,KAAK,CAACoB,MAAM;AACjD;AACA;AACA;AACA,CAAC;AAEM,MAAMa,QAAQ,GAAApC,OAAA,CAAAoC,QAAA,GAAGnC,eAAM,CAACC,IAAI;AACnC;AACA;AACA,sBAAsB,CAAC;EAAEC;AAAM,CAAC,KAAKA,KAAK,CAACkC,gBAAgB;AAC3D,CAAC;AAEM,MAAMC,OAAO,GAAAtC,OAAA,CAAAsC,OAAA,GAAGrC,eAAM,CAACC,IAAI;AAClC;AACA;AACA,sBAAsB,CAAC;EAAEC;AAAM,CAAC,KAAKA,KAAK,CAACkC,gBAAgB;AAC3D,CAAC","ignoreList":[]}
|
|
@@ -14,6 +14,8 @@ var _Composing = _interopRequireDefault(require("../styled/StyledInputComponents
|
|
|
14
14
|
var _reactNative = require("react-native");
|
|
15
15
|
var _LastMessageItem = _interopRequireDefault(require("./LastMessageItem"));
|
|
16
16
|
var _StyledRoomComponents = require("./styled/StyledRoomComponents");
|
|
17
|
+
var _useTheme = require("../../hooks/useTheme");
|
|
18
|
+
var _theme = require("../../theme/theme");
|
|
17
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -23,6 +25,10 @@ const ChatRoomItem = ({
|
|
|
23
25
|
isDriver,
|
|
24
26
|
config
|
|
25
27
|
}) => {
|
|
28
|
+
// Rows can be rendered with an explicit `config` prop (tests, hosts
|
|
29
|
+
// composing their own list); honour its colours over the store's.
|
|
30
|
+
const storeTheme = (0, _useTheme.useTheme)();
|
|
31
|
+
const theme = (0, _react.useMemo)(() => config ? (0, _theme.resolveTheme)(config) : storeTheme, [config, storeTheme]);
|
|
26
32
|
// Room icons can live on the membership-gated secure-files host.
|
|
27
33
|
const fileToken = (0, _useFileToken.useFileToken)();
|
|
28
34
|
const displayName = String(chat?.title || chat?.name || '').trim();
|
|
@@ -127,9 +133,9 @@ const ChatRoomItem = ({
|
|
|
127
133
|
paddingVertical: 8,
|
|
128
134
|
paddingRight: 8,
|
|
129
135
|
borderBottomWidth: 1,
|
|
130
|
-
//
|
|
131
|
-
// than the ground itself, so the
|
|
132
|
-
borderBottomColor:
|
|
136
|
+
// `divider` reads against the list ground; the lighter border
|
|
137
|
+
// tone was paler than the ground itself, so the separators vanished.
|
|
138
|
+
borderBottomColor: theme.divider
|
|
133
139
|
},
|
|
134
140
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
135
141
|
style: {
|
|
@@ -142,7 +148,7 @@ const ChatRoomItem = ({
|
|
|
142
148
|
})
|
|
143
149
|
}), stamp ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_RoomListComponents.UserCount, {
|
|
144
150
|
style: {
|
|
145
|
-
color:
|
|
151
|
+
color: theme.textSecondary,
|
|
146
152
|
fontSize: 12
|
|
147
153
|
},
|
|
148
154
|
text: stamp
|
|
@@ -165,7 +171,7 @@ const ChatRoomItem = ({
|
|
|
165
171
|
}) : undefined, chat.unreadMessages && chat.unreadMessages > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
166
172
|
style: {
|
|
167
173
|
borderRadius: 8,
|
|
168
|
-
backgroundColor:
|
|
174
|
+
backgroundColor: theme.primary,
|
|
169
175
|
padding: 2,
|
|
170
176
|
minWidth: 24,
|
|
171
177
|
minHeight: 24,
|
|
@@ -177,7 +183,7 @@ const ChatRoomItem = ({
|
|
|
177
183
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
178
184
|
style: {
|
|
179
185
|
// color: isChatActive ? "#141414" : "#fff",
|
|
180
|
-
color:
|
|
186
|
+
color: theme.text,
|
|
181
187
|
fontSize: 14,
|
|
182
188
|
fontWeight: '600'
|
|
183
189
|
},
|
|
@@ -186,13 +192,13 @@ const ChatRoomItem = ({
|
|
|
186
192
|
}) : null]
|
|
187
193
|
}), isDriver &&
|
|
188
194
|
/*#__PURE__*/
|
|
189
|
-
// Darker than the list's own ground
|
|
190
|
-
//
|
|
191
|
-
//
|
|
195
|
+
// Darker than the list's own ground, otherwise the separator
|
|
196
|
+
// disappears into it — white and the old highlight hairline both
|
|
197
|
+
// did.
|
|
192
198
|
(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
193
199
|
style: {
|
|
194
200
|
height: 1,
|
|
195
|
-
backgroundColor:
|
|
201
|
+
backgroundColor: theme.divider,
|
|
196
202
|
marginTop: 8
|
|
197
203
|
}
|
|
198
204
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactRedux","_useFileToken","_secureFileUrl","_ProfileImagePlaceholder","_RoomListComponents","_Composing","_interopRequireDefault","_reactNative","_LastMessageItem","_StyledRoomComponents","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ChatRoomItem","chat","index","isDriver","config","fileToken","useFileToken","displayName","String","title","name","trim","usersSet","useSelector","state","rooms","withAuthorFallback","useCallback","message","rawUserId","user","id","localId","split","entry","fromUsersSet","firstName","lastName","safeName","lastMessage","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactRedux","_useFileToken","_secureFileUrl","_ProfileImagePlaceholder","_RoomListComponents","_Composing","_interopRequireDefault","_reactNative","_LastMessageItem","_StyledRoomComponents","_useTheme","_theme","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ChatRoomItem","chat","index","isDriver","config","storeTheme","useTheme","theme","useMemo","resolveTheme","fileToken","useFileToken","displayName","String","title","name","trim","usersSet","useSelector","state","rooms","withAuthorFallback","useCallback","message","rawUserId","user","id","localId","split","entry","fromUsersSet","firstName","lastName","safeName","lastMessage","messages","length","undefined","msg","deleted","isDeleted","formatTimeToHHMM","isoTime","date","Date","trimmed","test","parseInt","isNaN","getTime","now","getFullYear","year","month","getMonth","toString","padStart","day","getDate","toDateString","hours","getHours","minutes","getMinutes","stamp","createdAt","jsxs","ChatItem","children","jsx","View","pointerEvents","ProfileImagePlaceholder","icon","appendFileToken","active","style","flexDirection","justifyContent","flex","width","paddingVertical","paddingRight","borderBottomWidth","borderBottomColor","divider","alignItems","ChatInfo","ChatName","text","UserCount","color","textSecondary","fontSize","minHeight","composing","usersTyping","composingList","body","historyComplete","LastRoomMessageText","unreadMessages","borderRadius","backgroundColor","primary","padding","minWidth","display","marginLeft","Text","fontWeight","height","marginTop","_default","exports"],"sourceRoot":"../../../../src","sources":["components/RoomComponents/ChatRoomItem.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAGA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,O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CAAC;AAEf,CAAC;AAAC,IAAA+G,QAAA,GAAAC,OAAA,CAAAnI,OAAA,GAEaiB,YAAY","ignoreList":[]}
|
|
@@ -8,6 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _StyledRoomComponents = require("./StyledRoomComponents");
|
|
9
9
|
var _native = _interopRequireDefault(require("styled-components/native"));
|
|
10
10
|
var _icons = require("../../../assets/icons");
|
|
11
|
+
var _useTheme = require("../../../hooks/useTheme");
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
14
|
const PlayButton = _native.default.View`
|
|
@@ -17,7 +18,9 @@ const PlayButton = _native.default.View`
|
|
|
17
18
|
display: flex;
|
|
18
19
|
justify-content: center;
|
|
19
20
|
align-items: center;
|
|
20
|
-
background-color:
|
|
21
|
+
background-color: ${({
|
|
22
|
+
theme
|
|
23
|
+
}) => theme.dark ? theme.surfaceSecondary : '#d8ecff'};
|
|
21
24
|
margin-top: 1px;
|
|
22
25
|
`;
|
|
23
26
|
const AudioRow = _native.default.View`
|
|
@@ -29,6 +32,7 @@ const LastAudioMessage = ({
|
|
|
29
32
|
user,
|
|
30
33
|
body
|
|
31
34
|
}) => {
|
|
35
|
+
const theme = (0, _useTheme.useTheme)();
|
|
32
36
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_StyledRoomComponents.LastRoomMessageContainer, {
|
|
33
37
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledRoomComponents.LastRoomMessageName, {
|
|
34
38
|
numberOfLines: 1,
|
|
@@ -38,7 +42,7 @@ const LastAudioMessage = ({
|
|
|
38
42
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PlayIcon, {
|
|
39
43
|
width: 10,
|
|
40
44
|
height: 10,
|
|
41
|
-
color:
|
|
45
|
+
color: theme.dark ? theme.text : '#1F2937'
|
|
42
46
|
})
|
|
43
47
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledRoomComponents.LastRoomMessageText, {
|
|
44
48
|
numberOfLines: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_StyledRoomComponents","_native","_icons","_jsxRuntime","e","__esModule","default","PlayButton","styled","View","AudioRow","LastAudioMessage","user","body","jsxs","LastRoomMessageContainer","children","jsx","LastRoomMessageName","numberOfLines","name","PlayIcon","width","height","color","LastRoomMessageText","trim","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/RoomComponents/styled/LastAudioMessage.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_StyledRoomComponents","_native","_icons","_useTheme","_jsxRuntime","e","__esModule","default","PlayButton","styled","View","theme","dark","surfaceSecondary","AudioRow","LastAudioMessage","user","body","useTheme","jsxs","LastRoomMessageContainer","children","jsx","LastRoomMessageName","numberOfLines","name","PlayIcon","width","height","color","text","LastRoomMessageText","trim","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/RoomComponents/styled/LastAudioMessage.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAAmD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAInD,MAAMG,UAAU,GAAGC,eAAM,CA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|
@@ -16,8 +16,14 @@ const LastRoomMessageContainer = exports.LastRoomMessageContainer = _native.defa
|
|
|
16
16
|
const LastRoomMessageName = exports.LastRoomMessageName = _native.default.Text`
|
|
17
17
|
font-weight: 600;
|
|
18
18
|
max-width: 190px;
|
|
19
|
+
color: ${({
|
|
20
|
+
theme
|
|
21
|
+
}) => theme.text};
|
|
19
22
|
`;
|
|
20
23
|
const LastRoomMessageText = exports.LastRoomMessageText = _native.default.Text`
|
|
24
|
+
color: ${({
|
|
25
|
+
theme
|
|
26
|
+
}) => theme.textSecondary};
|
|
21
27
|
max-width: 190px;
|
|
22
28
|
flex-shrink: 1;
|
|
23
29
|
flex-wrap: nowrap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_native","_interopRequireDefault","require","e","__esModule","default","LastRoomMessageContainer","exports","styled","View","LastRoomMessageName","Text","LastRoomMessageText","NewMessageMarker","LastMessageImg","Image","ShadeWrapper"],"sourceRoot":"../../../../../src","sources":["components/RoomComponents/styled/StyledRoomComponents.ts"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA8C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEvC,MAAMG,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GAAGE,eAAM,CAACC,IAAI;AACnD;AACA;AACA;AACA;AACA;AACA,CAAC;AAEM,MAAMC,mBAAmB,GAAAH,OAAA,CAAAG,mBAAA,GAAGF,eAAM,CAACG,IAAI;AAC9C;AACA;AACA,CAAC;AAEM,MAAMC,mBAAmB,
|
|
1
|
+
{"version":3,"names":["_native","_interopRequireDefault","require","e","__esModule","default","LastRoomMessageContainer","exports","styled","View","LastRoomMessageName","Text","theme","text","LastRoomMessageText","textSecondary","NewMessageMarker","LastMessageImg","Image","ShadeWrapper"],"sourceRoot":"../../../../../src","sources":["components/RoomComponents/styled/StyledRoomComponents.ts"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA8C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEvC,MAAMG,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GAAGE,eAAM,CAACC,IAAI;AACnD;AACA;AACA;AACA;AACA;AACA,CAAC;AAEM,MAAMC,mBAAmB,GAAAH,OAAA,CAAAG,mBAAA,GAAGF,eAAM,CAACG,IAAI;AAC9C;AACA;AACA,WAAW,CAAC;EAAEC;AAAM,CAAC,KAAKA,KAAK,CAACC,IAAI;AACpC,CAAC;AAEM,MAAMC,mBAAmB,GAAAP,OAAA,CAAAO,mBAAA,GAAGN,eAAM,CAACG,IAAI;AAC9C,WAAW,CAAC;EAAEC;AAAM,CAAC,KAAKA,KAAK,CAACG,aAAa;AAC7C;AACA;AACA;AACA,CAAC;AAEM,MAAMC,gBAAgB,GAAAT,OAAA,CAAAS,gBAAA,GAAGR,eAAM,CAACC,IAAI;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAEM,MAAMQ,cAAc,GAAAV,OAAA,CAAAU,cAAA,GAAGT,eAAM,CAACU,KAAK;AAC1C;AACA;AACA;AACA;AACA,CAAC;AAEM,MAAMC,YAAY,GAAAZ,OAAA,CAAAY,YAAA,GAAGX,eAAM,CAACC,IAAI;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
|
|
@@ -17,6 +17,7 @@ var _useSendMessage = require("../../hooks/useSendMessage");
|
|
|
17
17
|
var _createMainMessageForThread = require("../../helpers/createMainMessageForThread");
|
|
18
18
|
var _useRoomState = require("../../hooks/useRoomState");
|
|
19
19
|
var _useChatSettingState = require("../../hooks/useChatSettingState");
|
|
20
|
+
var _useTheme = require("../../hooks/useTheme");
|
|
20
21
|
var _reactNative = require("react-native");
|
|
21
22
|
var _CustomTypingIndicator = _interopRequireDefault(require("../styled/StyledInputComponents/CustomTypingIndicator"));
|
|
22
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -39,6 +40,7 @@ const ThreadWrapper = ({
|
|
|
39
40
|
const {
|
|
40
41
|
config
|
|
41
42
|
} = (0, _useChatSettingState.useChatSettingState)();
|
|
43
|
+
const theme = (0, _useTheme.useTheme)();
|
|
42
44
|
const {
|
|
43
45
|
sendMessage: sendMs,
|
|
44
46
|
sendMedia: sendMessageMedia,
|
|
@@ -130,6 +132,8 @@ const ThreadWrapper = ({
|
|
|
130
132
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
131
133
|
...panResponder.panHandlers,
|
|
132
134
|
style: [styles.threadContainer, {
|
|
135
|
+
backgroundColor: theme.chatBackground
|
|
136
|
+
}, {
|
|
133
137
|
transform: [{
|
|
134
138
|
translateX: slideAnim
|
|
135
139
|
}]
|
|
@@ -151,16 +155,19 @@ const ThreadWrapper = ({
|
|
|
151
155
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_StyledComponents.AlsoContainer, {
|
|
152
156
|
onPress: () => setIsChecked(prev => !prev),
|
|
153
157
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledComponents.AlsoCheckbox, {
|
|
154
|
-
accentColor: isChecked ?
|
|
158
|
+
accentColor: isChecked ? theme.primary : theme.surface
|
|
155
159
|
// checked={isChecked}
|
|
156
160
|
// onPress={() => setIsChecked(!isChecked)}
|
|
157
161
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
162
|
+
style: {
|
|
163
|
+
color: theme.text
|
|
164
|
+
},
|
|
158
165
|
children: "Also send to"
|
|
159
166
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
160
167
|
onPress: closeThread,
|
|
161
168
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
162
169
|
style: {
|
|
163
|
-
color:
|
|
170
|
+
color: theme.primary,
|
|
164
171
|
fontWeight: 500
|
|
165
172
|
},
|
|
166
173
|
children: roomsList[activeMessage.roomJid].name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_StyledComponents","_SendInput","_interopRequireDefault","_reactRedux","_xmppProvider","_MessageList","_ModalHeaderComponent","_roomsSlice","_EditWrapper","_useSendMessage","_createMainMessageForThread","_useRoomState","_useChatSettingState","_reactNative","_CustomTypingIndicator","_jsxRuntime","e","__esModule","default","ThreadWrapper","activeMessage","user","customMessageComponent","CustomMessageComponent","client","useXmppClient","dispatch","useDispatch","loading","roomsList","editAction","activeRoomJID","useRoomState","config","useChatSettingState","sendMessage","sendMs","sendMedia","sendMessageMedia","sendEditMessage","isLastMessageFromUserAndProcessing","useSendMessage","isLoadingMore","setIsLoadingMore","useState","isChecked","setIsChecked","slideAnim","useRef","Animated","Value","current","panResponder","PanResponder","create","onStartShouldSetPanResponder","gestureState","x0","onMoveShouldSetPanResponder","dx","onPanResponderMove","setValue","onPanResponderRelease","closeThread","spring","toValue","useNativeDriver","start","loadMoreMessages","useCallback","chatJID","max","idOfMessageBefore","getHistoryStanza","then","catch","err","console","warn","message","roomJid","createMainMessageForThread","data","type","sendStartComposing","disableTypingIndicator","sendTypingRequestStanza","firstName","lastName","sendEndComposing","onCloseEdit","setEditAction","isEdit","setCloseActiveMessage","useEffect","timing","duration","jsxs","View","panHandlers","style","styles","threadContainer","transform","translateX","children","jsx","headerTitle","handleCloseModal","CustomMessage","roomJID","isReply","AlsoContainer","onPress","prev","AlsoCheckbox","accentColor","
|
|
1
|
+
{"version":3,"names":["_react","require","_StyledComponents","_SendInput","_interopRequireDefault","_reactRedux","_xmppProvider","_MessageList","_ModalHeaderComponent","_roomsSlice","_EditWrapper","_useSendMessage","_createMainMessageForThread","_useRoomState","_useChatSettingState","_useTheme","_reactNative","_CustomTypingIndicator","_jsxRuntime","e","__esModule","default","ThreadWrapper","activeMessage","user","customMessageComponent","CustomMessageComponent","client","useXmppClient","dispatch","useDispatch","loading","roomsList","editAction","activeRoomJID","useRoomState","config","useChatSettingState","theme","useTheme","sendMessage","sendMs","sendMedia","sendMessageMedia","sendEditMessage","isLastMessageFromUserAndProcessing","useSendMessage","isLoadingMore","setIsLoadingMore","useState","isChecked","setIsChecked","slideAnim","useRef","Animated","Value","current","panResponder","PanResponder","create","onStartShouldSetPanResponder","gestureState","x0","onMoveShouldSetPanResponder","dx","onPanResponderMove","setValue","onPanResponderRelease","closeThread","spring","toValue","useNativeDriver","start","loadMoreMessages","useCallback","chatJID","max","idOfMessageBefore","getHistoryStanza","then","catch","err","console","warn","message","roomJid","createMainMessageForThread","data","type","sendStartComposing","disableTypingIndicator","sendTypingRequestStanza","firstName","lastName","sendEndComposing","onCloseEdit","setEditAction","isEdit","setCloseActiveMessage","useEffect","timing","duration","jsxs","View","panHandlers","style","styles","threadContainer","backgroundColor","chatBackground","transform","translateX","children","jsx","headerTitle","handleCloseModal","CustomMessage","roomJID","isReply","AlsoContainer","onPress","prev","AlsoCheckbox","accentColor","primary","surface","Text","color","text","TouchableOpacity","fontWeight","name","EditWrapper","onClose","editMessage","onFocus","onBlur","isLoading","isMessageProcessing","customTypingIndicator","enabled","position","composing","usersTyping","composingList","customComponent","isVisible","_default","exports","StyleSheet","zIndex","top","bottom","right","width","height","flexDirection","justifyContent","flex","fontSize"],"sourceRoot":"../../../../src","sources":["components/Thread/ThreadWrapper.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAMA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,qBAAA,GA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G,qBAAqB,CAACE,QAAS;MAChDnC,MAAM,EAAEtE,MAAM,CAACuG,qBAAqB,CAACjC,MAAO;MAC5CuC,eAAe,EAAE7G,MAAM,CAACuG,qBAAqB,CAACM,eAAgB;MAC9DC,SAAS,EAAElH,SAAS,CAACT,aAAa,CAAC8D,OAAO,CAAC,EAAEyD,SAAS,IAAI;IAAM,CACjE,CACJ;EAAA,CACY,CAAC;AAEpB,CAAC;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAA/H,OAAA,GAEaC,aAAa;AAE5B,MAAMoF,MAAM,GAAG2C,uBAAU,CAAC1F,MAAM,CAAC;EAC/BgD,eAAe,EAAE;IACf2C,MAAM,EAAE,GAAG;IACXT,QAAQ,EAAE,UAAU;IACpBU,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE,CAAC;IACTC,KAAK,EAAE,CAAC;IACRC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACd/C,eAAe,EAAE,SAAS;IAC1BgD,aAAa,EAAE,QAAQ;IACvBC,cAAc,EAAE,eAAe;IAC/BC,IAAI,EAAE;EACR,CAAC;EACD9B,IAAI,EAAE;IACJD,KAAK,EAAE,MAAM;IACbgC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -33,7 +33,9 @@ const ToastContainer = (0, _native.default)(_reactNative.Animated.View)`
|
|
|
33
33
|
border-radius: 6px;
|
|
34
34
|
margin-bottom: 8px;
|
|
35
35
|
width: 240px;
|
|
36
|
-
shadow-color:
|
|
36
|
+
shadow-color: ${({
|
|
37
|
+
theme
|
|
38
|
+
}) => theme.shadow};
|
|
37
39
|
shadow-offset: 0px 2px;
|
|
38
40
|
shadow-opacity: 0.2;
|
|
39
41
|
shadow-radius: 4px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ToastContainer","styled","Animated","View","type","backgroundColor","css","Title","Text","Message","ProgressBar","Toast","title","message","duration","fadeAnim","useRef","Value","current","translateY","progressAnim","useEffect","sequence","parallel","timing","toValue","useNativeDriver","delay","start","progressWidth","interpolate","inputRange","outputRange","jsxs","style","opacity","transform","children","jsx","width","exports"],"sourceRoot":"../../../../src","sources":["components/Toast/Toast.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAH,uBAAA,CAAAC,OAAA;AAAuD,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAUvD,MAAMkB,cAAc,GAAG,IAAAC,eAAM,EAACC,qBAAQ,CAACC,IAAI,CAAmB;AAC9D,IAAI,CAAC;EAAEC;AAAK,CAAC,KAAK;EACd,IAAIC,eAAe,GAAG,MAAM;EAC5B,QAAQD,IAAI;IACV,KAAK,SAAS;MACZC,eAAe,GAAG,SAAS;MAC3B;IACF,KAAK,OAAO;MACVA,eAAe,GAAG,SAAS;MAC3B;IACF,KAAK,MAAM;MACTA,eAAe,GAAG,SAAS;MAC3B;EACJ;EACA,OAAO,IAAAC,WAAG;AACd,0BAA0BD,eAAe;AACzC,KAAK;AACH,CAAC;AACH;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ToastContainer","styled","Animated","View","type","backgroundColor","css","theme","shadow","Title","Text","Message","ProgressBar","Toast","title","message","duration","fadeAnim","useRef","Value","current","translateY","progressAnim","useEffect","sequence","parallel","timing","toValue","useNativeDriver","delay","start","progressWidth","interpolate","inputRange","outputRange","jsxs","style","opacity","transform","children","jsx","width","exports"],"sourceRoot":"../../../../src","sources":["components/Toast/Toast.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAH,uBAAA,CAAAC,OAAA;AAAuD,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OA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