@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
|
@@ -4,14 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import styled from 'styled-components/native';
|
|
6
6
|
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
border: '#ccc',
|
|
12
|
-
white: '#fff',
|
|
13
|
-
black: '#000'
|
|
14
|
-
};
|
|
7
|
+
// Colours come from the ThemeProvider mounted in ReduxWrapper
|
|
8
|
+
// (`({ theme }) => theme.x`); the light palette holds the values that
|
|
9
|
+
// used to be hard-coded here.
|
|
10
|
+
|
|
15
11
|
export const InputContainer = styled.View`
|
|
16
12
|
flex-direction: column;
|
|
17
13
|
padding: 12px 16px 8px 16px;
|
|
@@ -50,15 +46,23 @@ export const MessageInput = styled.TextInput`
|
|
|
50
46
|
padding: 8px 14px;
|
|
51
47
|
border-radius: 20px;
|
|
52
48
|
border-width: 1px;
|
|
53
|
-
border-color: ${
|
|
54
|
-
|
|
49
|
+
border-color: ${({
|
|
50
|
+
isFocused,
|
|
51
|
+
color,
|
|
52
|
+
theme
|
|
53
|
+
}) => isFocused ? color || theme.primary : 'transparent'};
|
|
54
|
+
color: ${({
|
|
55
|
+
theme
|
|
56
|
+
}) => theme.text};
|
|
55
57
|
font-size: ${({
|
|
56
58
|
fontSize
|
|
57
59
|
}) => fontSize ?? 16}px;
|
|
58
60
|
${({
|
|
59
61
|
fontWeight
|
|
60
62
|
}) => fontWeight ? `font-weight: ${fontWeight};` : ''}
|
|
61
|
-
background-color:
|
|
63
|
+
background-color: ${({
|
|
64
|
+
theme
|
|
65
|
+
}) => theme.surfaceSecondary};
|
|
62
66
|
flex: 1;
|
|
63
67
|
/* No explicit line-height: on iOS a line-height larger than the
|
|
64
68
|
font's natural metrics drops the glyph to the bottom of the line
|
|
@@ -77,12 +81,16 @@ export const Timer = styled.Text`
|
|
|
77
81
|
export const TimerText = styled.Text`
|
|
78
82
|
font-size: 18px;
|
|
79
83
|
font-weight: bold;
|
|
80
|
-
color: ${
|
|
84
|
+
color: ${({
|
|
85
|
+
theme
|
|
86
|
+
}) => theme.text};
|
|
81
87
|
`;
|
|
82
88
|
export const WaveformContainer = styled.View`
|
|
83
89
|
width: 100%;
|
|
84
90
|
height: 40px;
|
|
85
|
-
background-color:
|
|
91
|
+
background-color: ${({
|
|
92
|
+
theme
|
|
93
|
+
}) => theme.surfaceSecondary};
|
|
86
94
|
`;
|
|
87
95
|
export const RecordContainer = styled.View`
|
|
88
96
|
flex-direction: row;
|
|
@@ -102,9 +110,13 @@ export const FilePreview = styled.View`
|
|
|
102
110
|
width: 100px;
|
|
103
111
|
height: 100px;
|
|
104
112
|
border-width: 1px;
|
|
105
|
-
border-color: ${
|
|
113
|
+
border-color: ${({
|
|
114
|
+
theme
|
|
115
|
+
}) => theme.border};
|
|
106
116
|
border-radius: 8px;
|
|
107
|
-
background-color:
|
|
117
|
+
background-color: ${({
|
|
118
|
+
theme
|
|
119
|
+
}) => theme.surfaceSecondary};
|
|
108
120
|
overflow: hidden;
|
|
109
121
|
`;
|
|
110
122
|
export const FileIcon = styled.Image`
|
|
@@ -117,15 +129,24 @@ export const VideoPreview = styled.View`
|
|
|
117
129
|
`;
|
|
118
130
|
export const StyledInput = styled.TextInput`
|
|
119
131
|
padding: 16px 12px;
|
|
120
|
-
background-color: ${
|
|
132
|
+
background-color: ${({
|
|
133
|
+
theme
|
|
134
|
+
}) => theme.surfaceSecondary};
|
|
135
|
+
color: ${({
|
|
136
|
+
theme
|
|
137
|
+
}) => theme.text};
|
|
121
138
|
font-size: 16px;
|
|
122
139
|
border-radius: 16px;
|
|
123
140
|
`;
|
|
124
141
|
export const TextareaInput = styled.TextInput`
|
|
125
142
|
padding: 16px 12px;
|
|
126
|
-
background-color: ${
|
|
143
|
+
background-color: ${({
|
|
144
|
+
theme
|
|
145
|
+
}) => theme.surfaceSecondary};
|
|
127
146
|
font-size: 16px;
|
|
128
|
-
color: ${
|
|
147
|
+
color: ${({
|
|
148
|
+
theme
|
|
149
|
+
}) => theme.text};
|
|
129
150
|
border-radius: 16px;
|
|
130
151
|
`;
|
|
131
152
|
//# sourceMappingURL=StyledInputComponents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["styled","
|
|
1
|
+
{"version":3,"names":["styled","InputContainer","View","MediaContainer","MediaImage","Image","MessageInputContainer","MessageInput","TextInput","isFocused","color","theme","primary","text","fontSize","fontWeight","surfaceSecondary","HiddenFileInput","Timer","Text","TimerText","WaveformContainer","RecordContainer","FilePreviewContainer","FilePreview","border","FileIcon","VideoPreview","StyledInput","TextareaInput"],"sourceRoot":"../../../../../src","sources":["components/styled/StyledInputComponents/StyledInputComponents.tsx"],"mappings":";;AAAA;;AAEA,OAAOA,MAAM,MAAM,0BAA0B;;AAE7C;AACA;AACA;;AAEA,OAAO,MAAMC,cAAc,GAAGD,MAAM,CAACE,IAA0B;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,cAAc,GAAGH,MAAM,CAACE,IAAI;AACzC;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAME,UAAU,GAAGJ,MAAM,CAACK,KAAK;AACtC;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,qBAAqB,GAAGN,MAAM,CAACE,IAAI;AAChD;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMK,YAAY,GAAGP,MAAM,CAACQ,SAKjC;AACF;AACA;AACA;AACA,kBAAkB,CAAC;EAAEC,SAAS;EAAEC,KAAK;EAAEC;AAAM,CAAC,KAC1CF,SAAS,GAAGC,KAAK,IAAIC,KAAK,CAACC,OAAO,GAAG,aAAa;AACtD,WAAW,CAAC;EAAED;AAAM,CAAC,KAAKA,KAAK,CAACE,IAAI;AACpC,eAAe,CAAC;EAAEC;AAAS,CAAC,KAA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,MAAM,CAACQ,SAAS;AAC3C;AACA,sBAAsB,CAAC;EAAEG;AAAM,CAAC,KAAKA,KAAK,CAACK,gBAAgB;AAC3D,WAAW,CAAC;EAAEL;AAAM,CAAC,KAAKA,KAAK,CAACE,IAAI;AACpC;AACA;AACA,CAAC;AAED,OAAO,MAAMgB,aAAa,GAAG7B,MAAM,CAACQ,SAAS;AAC7C;AACA,sBAAsB,CAAC;EAAEG;AAAM,CAAC,KAAKA,KAAK,CAACK,gBAAgB;AAC3D;AACA,WAAW,CAAC;EAAEL;AAAM,CAAC,KAAKA,KAAK,CAACE,IAAI;AACpC;AACA,CAAC","ignoreList":[]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import styled from 'styled-components/native';
|
|
5
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
5
6
|
import { Line } from './StyledComponents';
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
8
|
const Container = styled.View`
|
|
@@ -14,7 +15,7 @@ const Container = styled.View`
|
|
|
14
15
|
`;
|
|
15
16
|
export const StyledDateLabel = styled.Text`
|
|
16
17
|
margin: 0;
|
|
17
|
-
color: ${props => props.primary ||
|
|
18
|
+
color: ${props => props.primary || props.theme.dateLabel};
|
|
18
19
|
border-radius: 118px;
|
|
19
20
|
padding: 5px 8px;
|
|
20
21
|
display: flex;
|
|
@@ -23,7 +24,7 @@ export const StyledDateLabel = styled.Text`
|
|
|
23
24
|
font-size: 12px;
|
|
24
25
|
line-height: 14px;
|
|
25
26
|
font-weight: 600;
|
|
26
|
-
background-color: ${props => props.secondary || '#e7edf9'};
|
|
27
|
+
background-color: ${props => props.theme.dark ? props.theme.surfaceSecondary : props.secondary || '#e7edf9'};
|
|
27
28
|
height: 24px;
|
|
28
29
|
white-space: nowrap;
|
|
29
30
|
`;
|
|
@@ -31,9 +32,11 @@ const TreadLabel = ({
|
|
|
31
32
|
reply,
|
|
32
33
|
colors
|
|
33
34
|
}) => {
|
|
35
|
+
const theme = useTheme();
|
|
34
36
|
return /*#__PURE__*/_jsxs(Container, {
|
|
35
37
|
children: [/*#__PURE__*/_jsx(Line, {}), /*#__PURE__*/_jsxs(StyledDateLabel, {
|
|
36
|
-
|
|
38
|
+
primary: theme.dark ? undefined : colors?.primary,
|
|
39
|
+
secondary: colors?.secondary,
|
|
37
40
|
children: [reply, " ", reply > 1 ? 'replies' : 'reply']
|
|
38
41
|
}), /*#__PURE__*/_jsx(Line, {})]
|
|
39
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","styled","Line","jsx","_jsx","jsxs","_jsxs","Container","View","StyledDateLabel","Text","props","primary","secondary","TreadLabel","reply","colors","children"],"sourceRoot":"../../../../src","sources":["components/styled/TreadLabel.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,0BAA0B;AAC7C,SAASC,IAAI,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAO1C,MAAMC,SAAS,
|
|
1
|
+
{"version":3,"names":["React","styled","useTheme","Line","jsx","_jsx","jsxs","_jsxs","Container","View","StyledDateLabel","Text","props","primary","theme","dateLabel","dark","surfaceSecondary","secondary","TreadLabel","reply","colors","children","undefined"],"sourceRoot":"../../../../src","sources":["components/styled/TreadLabel.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,0BAA0B;AAC7C,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SAASC,IAAI,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAO1C,MAAMC,SAAS,GAAGP,MAAM,CAACQ,IAAI;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,eAAe,GAAGT,MAAM,CAACU,IAGpC;AACF;AACA,WAAYC,KAAK,IAAKA,KAAK,CAACC,OAAO,IAAID,KAAK,CAACE,KAAK,CAACC,SAAS;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAuBH,KAAK,IACxBA,KAAK,CAACE,KAAK,CAACE,IAAI,GAAGJ,KAAK,CAACE,KAAK,CAACG,gBAAgB,GAAGL,KAAK,CAACM,SAAS,IAAI,SAAS;AAClF;AACA;AACA,CAAC;AAED,MAAMC,UAAoC,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAO,CAAC,KAAK;EAClE,MAAMP,KAAK,GAAGZ,QAAQ,CAAC,CAAC;EACxB,oBACEK,KAAA,CAACC,SAAS;IAAAc,QAAA,gBACRjB,IAAA,CAACF,IAAI,IAAE,CAAC,eACRI,KAAA,CAACG,eAAe;MACdG,OAAO,EAAEC,KAAK,CAACE,IAAI,GAAGO,SAAS,GAAGF,MAAM,EAAER,OAAQ;MAClDK,SAAS,EAAEG,MAAM,EAAEH,SAAU;MAAAI,QAAA,GAE5BF,KAAK,EAAC,GAAC,EAACA,KAAK,GAAG,CAAC,GAAG,SAAS,GAAG,OAAO;IAAA,CACzB,CAAC,eAClBf,IAAA,CAACF,IAAI,IAAE,CAAC;EAAA,CACC,CAAC;AAEhB,CAAC;AAED,eAAegB,UAAU","ignoreList":[]}
|
|
@@ -9,6 +9,7 @@ import { Animated, AppState, Pressable, StyleSheet, Text, View } from 'react-nat
|
|
|
9
9
|
import { useDispatch, useSelector } from 'react-redux';
|
|
10
10
|
import { messageNotificationManager } from '../utils/messageNotificationManager';
|
|
11
11
|
import { setCurrentRoom } from '../roomStore/roomsSlice';
|
|
12
|
+
import { useTheme } from '../hooks/useTheme';
|
|
12
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
14
|
const MessageNotificationContext = /*#__PURE__*/createContext(null);
|
|
14
15
|
const DEFAULT_MAX = 3;
|
|
@@ -149,6 +150,7 @@ const ToastRow = ({
|
|
|
149
150
|
onPress,
|
|
150
151
|
onDismiss
|
|
151
152
|
}) => {
|
|
153
|
+
const theme = useTheme();
|
|
152
154
|
const fade = useRef(new Animated.Value(0)).current;
|
|
153
155
|
useEffect(() => {
|
|
154
156
|
Animated.timing(fade, {
|
|
@@ -159,17 +161,24 @@ const ToastRow = ({
|
|
|
159
161
|
}, [fade]);
|
|
160
162
|
return /*#__PURE__*/_jsxs(Animated.View, {
|
|
161
163
|
style: [styles.toast, {
|
|
164
|
+
backgroundColor: theme.surface,
|
|
165
|
+
shadowColor: theme.shadow
|
|
166
|
+
}, {
|
|
162
167
|
opacity: fade
|
|
163
168
|
}],
|
|
164
169
|
children: [/*#__PURE__*/_jsxs(Pressable, {
|
|
165
170
|
style: styles.toastBody,
|
|
166
171
|
onPress: onPress,
|
|
167
172
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
168
|
-
style: styles.toastTitle,
|
|
173
|
+
style: [styles.toastTitle, {
|
|
174
|
+
color: theme.text
|
|
175
|
+
}],
|
|
169
176
|
numberOfLines: 1,
|
|
170
177
|
children: item.roomName
|
|
171
178
|
}), /*#__PURE__*/_jsxs(Text, {
|
|
172
|
-
style: styles.toastSubtitle,
|
|
179
|
+
style: [styles.toastSubtitle, {
|
|
180
|
+
color: theme.textSecondary
|
|
181
|
+
}],
|
|
173
182
|
numberOfLines: 2,
|
|
174
183
|
children: [item.senderName, ": ", item.message?.body || '']
|
|
175
184
|
})]
|
|
@@ -177,7 +186,9 @@ const ToastRow = ({
|
|
|
177
186
|
onPress: onDismiss,
|
|
178
187
|
style: styles.dismiss,
|
|
179
188
|
children: /*#__PURE__*/_jsx(Text, {
|
|
180
|
-
style: styles.dismissText,
|
|
189
|
+
style: [styles.dismissText, {
|
|
190
|
+
color: theme.textMuted
|
|
191
|
+
}],
|
|
181
192
|
children: "\xD7"
|
|
182
193
|
})
|
|
183
194
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","createContext","useCallback","useContext","useEffect","useRef","useState","Animated","AppState","Pressable","StyleSheet","Text","View","useDispatch","useSelector","messageNotificationManager","setCurrentRoom","jsx","_jsx","jsxs","_jsxs","MessageNotificationContext","DEFAULT_MAX","DEFAULT_DURATION_MS","MessageNotificationProvider","children","config","propConfig","dispatch","contextConfig","state","chatSettingStore","visibleRoomJID","rooms","notificationConfig","inAppNotifications","isEnabled","enabled","maxNotifications","duration","toasts","setToasts","appActiveRef","currentState","sub","addEventListener","next","current","now","Date","prev","filter","t","timestamp","remove","interval","setInterval","clearInterval","roomJID","dismiss","id","navigateToMessage","messageId","message","roomName","senderName","customOnClick","onClick","Promise","resolve","catch","e","console","error","showMessageNotification","item","length","slice","unsubscribe","addCallback","Provider","value","pointerEvents","style","styles","container","positionToStyle","position","map","Custom","customComponent","onClose","onNavigateToMessage","ToastRow","onPress","onDismiss","fade","Value","timing","toValue","useNativeDriver","start","toast","opacity","toastBody","toastTitle","numberOfLines","toastSubtitle","body","dismissText","horizontal","vertical","offset","out","top","bottom","right","alignItems","left","create","zIndex","elevation","flexDirection","backgroundColor","paddingVertical","paddingHorizontal","marginVertical","borderRadius","minWidth","maxWidth","shadowColor","shadowOpacity","shadowOffset","width","height","shadowRadius","flex","fontWeight","fontSize","color","marginBottom","useMessageNotification","ctx","Error"],"sourceRoot":"../../../src","sources":["context/MessageNotificationContext.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IACVC,aAAa,EAEbC,WAAW,EACXC,UAAU,EACVC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SACEC,QAAQ,EACRC,QAAQ,EAERC,SAAS,EACTC,UAAU,EACVC,IAAI,EACJC,IAAI,QACC,cAAc;AACrB,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,SAASC,0BAA0B,QAAQ,qCAAqC;AAChF,SAASC,cAAc,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KA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,GAAG,EAAE;IACR,MAAM,IAAIC,KAAK,CACb,0EACF,CAAC;EACH;EACA,OAAOD,GAAG;AACZ,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","createContext","useCallback","useContext","useEffect","useRef","useState","Animated","AppState","Pressable","StyleSheet","Text","View","useDispatch","useSelector","messageNotificationManager","setCurrentRoom","useTheme","jsx","_jsx","jsxs","_jsxs","MessageNotificationContext","DEFAULT_MAX","DEFAULT_DURATION_MS","MessageNotificationProvider","children","config","propConfig","dispatch","contextConfig","state","chatSettingStore","visibleRoomJID","rooms","notificationConfig","inAppNotifications","isEnabled","enabled","maxNotifications","duration","toasts","setToasts","appActiveRef","currentState","sub","addEventListener","next","current","now","Date","prev","filter","t","timestamp","remove","interval","setInterval","clearInterval","roomJID","dismiss","id","navigateToMessage","messageId","message","roomName","senderName","customOnClick","onClick","Promise","resolve","catch","e","console","error","showMessageNotification","item","length","slice","unsubscribe","addCallback","Provider","value","pointerEvents","style","styles","container","positionToStyle","position","map","Custom","customComponent","onClose","onNavigateToMessage","ToastRow","onPress","onDismiss","theme","fade","Value","timing","toValue","useNativeDriver","start","toast","backgroundColor","surface","shadowColor","shadow","opacity","toastBody","toastTitle","color","text","numberOfLines","toastSubtitle","textSecondary","body","dismissText","textMuted","horizontal","vertical","offset","out","top","bottom","right","alignItems","left","create","zIndex","elevation","flexDirection","paddingVertical","paddingHorizontal","marginVertical","borderRadius","minWidth","maxWidth","shadowOpacity","shadowOffset","width","height","shadowRadius","flex","fontWeight","fontSize","marginBottom","useMessageNotification","ctx","Error"],"sourceRoot":"../../../src","sources":["context/MessageNotificationContext.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IACVC,aAAa,EAEbC,WAAW,EACXC,UAAU,EACVC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SACEC,QAAQ,EACRC,QAAQ,EAERC,SAAS,EACTC,UAAU,EACVC,IAAI,EACJC,IAAI,QACC,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AAE;EAChB,CAAC;EACDjC,SAAS,EAAE;IACTkC,IAAI,EAAE;EACR,CAAC;EACDjC,UAAU,EAAE;IACVkC,UAAU,EAAE,KAAK;IACjBC,QAAQ,EAAE,EAAE;IACZlC,KAAK,EAAE,MAAM;IACbmC,YAAY,EAAE;EAChB,CAAC;EACDhC,aAAa,EAAE;IACb+B,QAAQ,EAAE,EAAE;IACZlC,KAAK,EAAE;EACT,CAAC;EACDpD,OAAO,EAAE;IACP0E,iBAAiB,EAAE,CAAC;IACpBD,eAAe,EAAE;EACnB,CAAC;EACDf,WAAW,EAAE;IACX4B,QAAQ,EAAE,EAAE;IACZlC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,OAAO,MAAMoC,sBAAsB,GAAGA,CAAA,KAAM;EAC1C,MAAMC,GAAG,GAAGlJ,UAAU,CAACmB,0BAA0B,CAAC;EAClD,IAAI,CAAC+H,GAAG,EAAE;IACR,MAAM,IAAIC,KAAK,CACb,0EACF,CAAC;EACH;EACA,OAAOD,GAAG;AACZ,CAAC","ignoreList":[]}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/** @format */
|
|
4
4
|
|
|
5
|
+
import { resolveTheme } from '../theme/theme';
|
|
6
|
+
|
|
5
7
|
/** Ground behind the conversation, and behind the rounded corners of the
|
|
6
8
|
* header and the composer that sit over it. */
|
|
7
9
|
export const DEFAULT_CHAT_BACKGROUND = '#F3F6FC';
|
|
@@ -14,5 +16,7 @@ export const DEFAULT_CHAT_BACKGROUND = '#F3F6FC';
|
|
|
14
16
|
* the composer's rounded top corners invisible — the corners revealed the
|
|
15
17
|
* white parent, not the conversation.
|
|
16
18
|
*/
|
|
17
|
-
export const getChatBackgroundColor = config =>
|
|
19
|
+
export const getChatBackgroundColor = config =>
|
|
20
|
+
// Theme-aware: dark mode ignores `backgroundChat.color` (see theme.ts).
|
|
21
|
+
resolveTheme(config).chatBackground;
|
|
18
22
|
//# sourceMappingURL=getChatBackground.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DEFAULT_CHAT_BACKGROUND","getChatBackgroundColor","config","
|
|
1
|
+
{"version":3,"names":["resolveTheme","DEFAULT_CHAT_BACKGROUND","getChatBackgroundColor","config","chatBackground"],"sourceRoot":"../../../src","sources":["helpers/getChatBackground.ts"],"mappings":";;AAAA;;AAGA,SAASA,YAAY,QAAQ,gBAAgB;;AAE7C;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAG,SAAS;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,GAAIC,MAAgB;AACrD;AACAH,YAAY,CAACG,MAAM,CAAC,CAACC,cAAc","ignoreList":[]}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import { resolveTheme } from '../theme/theme';
|
|
4
|
+
|
|
5
|
+
/** Day-separator pill colour; theme-aware (see getIconColor). */
|
|
6
|
+
export const getDateLabelColor = config => resolveTheme(config).dateLabel;
|
|
4
7
|
//# sourceMappingURL=getDateLabelColor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["resolveTheme","getDateLabelColor","config","dateLabel"],"sourceRoot":"../../../src","sources":["helpers/getDateLabelColor.ts"],"mappings":";;AAAA,SAASA,YAAY,QAA+B,gBAAgB;;AAEpE;AACA,OAAO,MAAMC,iBAAiB,GAAIC,MAAgC,IAChEF,YAAY,CAACE,MAAM,CAAC,CAACC,SAAS","ignoreList":[]}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import { resolveTheme } from '../theme/theme';
|
|
4
|
+
|
|
5
|
+
/** Chrome icon tint (attach, mic/send, burger, back). Theme-aware: in dark
|
|
6
|
+
* mode it comes from `darkColors.icon` → `darkColors.primary` → default. */
|
|
7
|
+
export const getIconColor = config => resolveTheme(config).icon;
|
|
4
8
|
//# sourceMappingURL=getIconColor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["resolveTheme","getIconColor","config","icon"],"sourceRoot":"../../../src","sources":["helpers/getIconColor.ts"],"mappings":";;AAAA,SAASA,YAAY,QAA+B,gBAAgB;;AAEpE;AACA;AACA,OAAO,MAAMC,YAAY,GAAIC,MAAgC,IAC3DF,YAAY,CAACE,MAAM,CAAC,CAACC,IAAI","ignoreList":[]}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import { resolveTheme } from '../theme/theme';
|
|
4
|
+
|
|
5
|
+
/** Sender name colour above incoming bubbles; theme-aware (see getIconColor). */
|
|
6
|
+
export const getSenderNameColor = config => resolveTheme(config).senderName;
|
|
4
7
|
//# sourceMappingURL=getSenderNameColor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["resolveTheme","getSenderNameColor","config","senderName"],"sourceRoot":"../../../src","sources":["helpers/getSenderNameColor.ts"],"mappings":";;AAAA,SAASA,YAAY,QAA+B,gBAAgB;;AAEpE;AACA,OAAO,MAAMC,kBAAkB,GAAIC,MAAgC,IACjEF,YAAY,CAACE,MAAM,CAAC,CAACC,UAAU","ignoreList":[]}
|
|
@@ -2,11 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Text, View, Linking, StyleSheet } from 'react-native';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Optional palette for the colour-bearing nodes (links, code grounds, quote
|
|
8
|
+
* rule). Helpers can't use hooks; callers pass the resolved theme. Omitted →
|
|
9
|
+
* the historical hard-coded colours, so existing output is unchanged.
|
|
10
|
+
*/
|
|
5
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
export const MarkDown = text => {
|
|
12
|
+
export const MarkDown = (text, theme) => {
|
|
7
13
|
if (typeof text !== 'string') {
|
|
8
14
|
return [text];
|
|
9
15
|
}
|
|
16
|
+
|
|
17
|
+
// Colour overrides layered over the static StyleSheet below.
|
|
18
|
+
const themed = theme ? {
|
|
19
|
+
link: {
|
|
20
|
+
color: theme.primary
|
|
21
|
+
},
|
|
22
|
+
codeInline: {
|
|
23
|
+
backgroundColor: theme.surfaceSecondary
|
|
24
|
+
},
|
|
25
|
+
codeBlock: {
|
|
26
|
+
backgroundColor: theme.surfaceSecondary
|
|
27
|
+
},
|
|
28
|
+
quote: {
|
|
29
|
+
borderLeftColor: theme.border
|
|
30
|
+
}
|
|
31
|
+
} : undefined;
|
|
10
32
|
let key = 0;
|
|
11
33
|
const elements = [];
|
|
12
34
|
const lines = text.split('\n');
|
|
@@ -48,14 +70,14 @@ export const MarkDown = text => {
|
|
|
48
70
|
}, `s-${key++}`));
|
|
49
71
|
} else if (/^`.*`$/.test(token)) {
|
|
50
72
|
output.push(/*#__PURE__*/_jsx(Text, {
|
|
51
|
-
style: styles.codeInline,
|
|
73
|
+
style: [styles.codeInline, themed?.codeInline],
|
|
52
74
|
children: token.slice(1, -1).trim()
|
|
53
75
|
}, `code-${key++}`));
|
|
54
76
|
} else if (/^https:\/\//.test(token)) {
|
|
55
77
|
output.push(/*#__PURE__*/_jsx(Text, {
|
|
56
78
|
children: /*#__PURE__*/_jsx(Text, {
|
|
57
79
|
onPress: () => Linking.openURL(token),
|
|
58
|
-
style: styles.link,
|
|
80
|
+
style: [styles.link, themed?.link],
|
|
59
81
|
children: token
|
|
60
82
|
})
|
|
61
83
|
}, `link-${key++}`));
|
|
@@ -117,7 +139,7 @@ export const MarkDown = text => {
|
|
|
117
139
|
if (inCodeBlock && line.trim() === '```') {
|
|
118
140
|
inCodeBlock = false;
|
|
119
141
|
elements.push(/*#__PURE__*/_jsx(View, {
|
|
120
|
-
style: styles.codeBlock,
|
|
142
|
+
style: [styles.codeBlock, themed?.codeBlock],
|
|
121
143
|
children: /*#__PURE__*/_jsx(Text, {
|
|
122
144
|
style: styles.codeBlockText,
|
|
123
145
|
children: codeBuffer.join('\n')
|
|
@@ -145,7 +167,7 @@ export const MarkDown = text => {
|
|
|
145
167
|
}
|
|
146
168
|
if (line.startsWith('>')) {
|
|
147
169
|
elements.push(/*#__PURE__*/_jsx(View, {
|
|
148
|
-
style: styles.quote,
|
|
170
|
+
style: [styles.quote, themed?.quote],
|
|
149
171
|
children: parseInline(line.replace(/^>\s*/, '')).map((el, idx) => /*#__PURE__*/_jsx(React.Fragment, {
|
|
150
172
|
children: el
|
|
151
173
|
}, idx))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Text","View","Linking","StyleSheet","jsx","_jsx","jsxs","_jsxs","MarkDown","text","key","elements","lines","split","inCodeBlock","codeLanguage","codeBuffer","parseInline","input","output","regex","lastIndex","match","exec","index","push","slice","token","test","style","styles","bold","children","italic","strike","
|
|
1
|
+
{"version":3,"names":["React","Text","View","Linking","StyleSheet","jsx","_jsx","jsxs","_jsxs","MarkDown","text","theme","themed","link","color","primary","codeInline","backgroundColor","surfaceSecondary","codeBlock","quote","borderLeftColor","border","undefined","key","elements","lines","split","inCodeBlock","codeLanguage","codeBuffer","parseInline","input","output","regex","lastIndex","match","exec","index","push","slice","token","test","style","styles","bold","children","italic","strike","trim","onPress","openURL","length","parseList","startIndex","items","line","isOrdered","start","parseInt","i","currentLine","itemText","replace","listItem","listMarker","listItemContent","map","el","idx","Fragment","ListTag","list","newIndex","startsWith","codeBlockText","join","level","content","headingStyle","h1","break","paragraph","create","fontWeight","fontStyle","textDecorationLine","paddingHorizontal","paddingVertical","borderRadius","fontFamily","fontSize","padding","marginVertical","marginTop","marginBottom","h2","h3","h4","h5","h6","borderLeftWidth","paddingLeft","flexDirection","marginRight","minWidth","flex","height"],"sourceRoot":"../../../src","sources":["helpers/markdownParser.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MA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