@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaModal.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/MediaModal.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA2B,SAAS,EAAQ,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"MediaModal.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/MediaModal.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA2B,SAAS,EAAQ,MAAM,cAAc,CAAC;AAGxE,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,eAAO,MAAM,OAAO,GAAI,8BAA8B,YAAY,sBAgBjE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,sBAGzB;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,sBAEA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/styled/RoomListComponents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,EAKL,SAAS,EACV,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/styled/RoomListComponents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,EAKL,SAAS,EACV,MAAM,cAAc,CAAC;AAKtB,eAAO,MAAM,SAAS,GAAI,iCAIvB;IACD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,sBAiBA,CAAC;AAGF,eAAO,MAAM,YAAY,GAAI,aAAa;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,sBAOhE,CAAC;AAKF,eAAO,MAAM,QAAQ,GAAI,eAEtB;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,sBAEA,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,eAE7B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,sBAA2D,CAAC;AAG7D,eAAO,MAAM,kBAAkB,GAAI,eAEhC;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,sBAA8D,CAAC;AAGhE,eAAO,MAAM,QAAQ,GAAI,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,sBAEnE,CAAC;AAMF,eAAO,MAAM,QAAQ,GAAI,UAAU;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,sBAWlD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,sBAWtE,CAAC;AAGF,eAAO,MAAM,SAAS,GAAI,kBAGvB;IACD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;CAClB,sBAA0D,CAAC;AAE5D,eAAO,MAAM,QAAQ,yBAOpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendInput.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/SendInput.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,OAAO,EAAE,OAAO,EAAa,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"SendInput.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/SendInput.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,OAAO,EAAE,OAAO,EAAa,MAAM,mBAAmB,CAAC;AAmEvD,UAAU,cAAc;IACtB,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;CAC5D;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA6rBvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledComponents.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/StyledComponents.ts"],"names":[],"mappings":"AAAA,cAAc;AAQd,eAAO,MAAM,aAAa,iPAMzB,CAAC;AAEF,eAAO,MAAM,eAAe,iPAM3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,iPAgB/B,CAAC;AAEF,eAAO,MAAM,eAAe;iBACb,OAAO;gBACR,OAAO;;iBADN,OAAO;gBACR,OAAO;oBAepB,CAAC;AAEF,eAAO,MAAM,0BAA0B,mYAYtC,CAAC;AAEF,eAAO,MAAM,uBAAuB,iPASnC,CAAC;AAEF,eAAO,MAAM,wBAAwB;eACxB,MAAM;iBACJ,MAAM;;eADR,MAAM;iBACJ,MAAM;oBAQpB,CAAC;AAGF,eAAO,MAAM,WAAW,iPAQvB,CAAC;AAEF,eAAO,MAAM,cAAc,6PAI1B,CAAC;AAEF,eAAO,MAAM,YAAY,iPAIxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iPAI5B,CAAC;AAEF,eAAO,MAAM,OAAO;YAAyB,OAAO;;YAAP,OAAO;
|
|
1
|
+
{"version":3,"file":"StyledComponents.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/StyledComponents.ts"],"names":[],"mappings":"AAAA,cAAc;AAQd,eAAO,MAAM,aAAa,iPAMzB,CAAC;AAEF,eAAO,MAAM,eAAe,iPAM3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,iPAgB/B,CAAC;AAEF,eAAO,MAAM,eAAe;iBACb,OAAO;gBACR,OAAO;;iBADN,OAAO;gBACR,OAAO;oBAepB,CAAC;AAEF,eAAO,MAAM,0BAA0B,mYAYtC,CAAC;AAEF,eAAO,MAAM,uBAAuB,iPASnC,CAAC;AAEF,eAAO,MAAM,wBAAwB;eACxB,MAAM;iBACJ,MAAM;;eADR,MAAM;iBACJ,MAAM;oBAQpB,CAAC;AAGF,eAAO,MAAM,WAAW,iPAQvB,CAAC;AAEF,eAAO,MAAM,cAAc,6PAI1B,CAAC;AAEF,eAAO,MAAM,YAAY,iPAIxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iPAI5B,CAAC;AAEF,eAAO,MAAM,OAAO;YAAyB,OAAO;;YAAP,OAAO;oBAenD,CAAC;AAEF,eAAO,MAAM,WAAW,iPAGvB,CAAC;AAEF,eAAO,MAAM,QAAQ,iPAGpB,CAAC;AAGF,eAAO,MAAM,cAAc,iPAO1B,CAAC;AAEF,eAAO,MAAM,YAAY,2PAMxB,CAAC;AAEF,eAAO,MAAM,UAAU,mYAGtB,CAAC;AAEF,eAAO,MAAM,UAAU,mYAOtB,CAAC;AAEF,eAAO,MAAM,cAAc,iPAE1B,CAAC;AAGF,eAAO,MAAM,YAAY;cACb,MAAM;WACT,MAAM;iBACA,OAAO;;cAFV,MAAM;WACT,MAAM;iBACA,OAAO;oBAUrB,CAAC;AAEF,eAAO,MAAM,WAAW;WAAyB,MAAM;;WAAN,MAAM;oBAKtD,CAAC;AAEF,eAAO,MAAM,YAAY,mYAUxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iPAI5B,CAAC;AAEF,eAAO,MAAM,YAAY;WAAwB,MAAM;YAAU,MAAM;;WAAtB,MAAM;YAAU,MAAM;oBAItE,CAAC;AAEF,eAAO,MAAM,OAAO,iPAWnB,CAAC;AAEF,eAAO,MAAM,iBAAiB;aACnB,OAAO;YACR,MAAM;eACH,MAAM;;aAFR,OAAO;YACR,MAAM;eACH,MAAM;oBAKlB,CAAC;AAEF,eAAO,MAAM,SAAS,2PAErB,CAAC;AAEF,eAAO,MAAM,mBAAmB,iPAK/B,CAAC;AAEF,eAAO,MAAM,WAAW,iPAKvB,CAAC;AAEF,eAAO,MAAM,eAAe,iPAG3B,CAAC;AAEF,eAAO,MAAM,IAAI,iPAIhB,CAAC;AAEF,eAAO,MAAM,YAAY;iBAA8B,MAAM;;iBAAN,MAAM;oBAK5D,CAAC;AAEF,eAAO,MAAM,aAAa,mYAQzB,CAAC;AAEF,eAAO,MAAM,OAAO;cACR,MAAM;WACT,MAAM;iBACA,OAAO;;cAFV,MAAM;WACT,MAAM;iBACA,OAAO;oBAWrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,iPAS/B,CAAC;AAEF,eAAO,MAAM,aAAa;YAAyB,OAAO;;YAAP,OAAO;oBAazD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledInput.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/StyledInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StyledInput.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/StyledInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAuDD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAc9C,CAAC;AAmCF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaComponents.d.ts","sourceRoot":"","sources":["../../../../../src/components/styled/StyledInputComponents/MediaComponents.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,iPAYrB,CAAC;AAEF,eAAO,MAAM,eAAe,mPAI3B,CAAC;AAEF,eAAO,MAAM,YAAY,iPAQxB,CAAC;AAEF,eAAO,MAAM,eAAe,iPAM3B,CAAC;AAEF,eAAO,MAAM,UAAU,mYAStB,CAAC;AAEF,eAAO,MAAM,oBAAoB;aAAsC,OAAO;;aAAP,OAAO;
|
|
1
|
+
{"version":3,"file":"MediaComponents.d.ts","sourceRoot":"","sources":["../../../../../src/components/styled/StyledInputComponents/MediaComponents.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,iPAYrB,CAAC;AAEF,eAAO,MAAM,eAAe,mPAI3B,CAAC;AAEF,eAAO,MAAM,YAAY,iPAQxB,CAAC;AAEF,eAAO,MAAM,eAAe,iPAM3B,CAAC;AAEF,eAAO,MAAM,UAAU,mYAStB,CAAC;AAEF,eAAO,MAAM,oBAAoB;aAAsC,OAAO;;aAAP,OAAO;oBAyB7E,CAAC;AAEF,eAAO,MAAM,cAAc,iPAQ1B,CAAC;AAEF,eAAO,MAAM,eAAe,iPAK3B,CAAC;AAEF,eAAO,MAAM,QAAQ;YACX,OAAO;iBACF,MAAM,GAAG,SAAS;gBACnB,MAAM,GAAG,SAAS;;YAFtB,OAAO;iBACF,MAAM,GAAG,SAAS;gBACnB,MAAM,GAAG,SAAS;oBAS/B,CAAC;AAEF,eAAO,MAAM,iBAAiB,iPAM7B,CAAC;AAEF,eAAO,MAAM,QAAQ,iPAMpB,CAAC"}
|
package/lib/typescript/components/styled/StyledInputComponents/StyledInputComponents.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledInputComponents.d.ts","sourceRoot":"","sources":["../../../../../src/components/styled/StyledInputComponents/StyledInputComponents.tsx"],"names":[],"mappings":"AAAA,cAAc;
|
|
1
|
+
{"version":3,"file":"StyledInputComponents.d.ts","sourceRoot":"","sources":["../../../../../src/components/styled/StyledInputComponents/StyledInputComponents.tsx"],"names":[],"mappings":"AAAA,cAAc;AAQd,eAAO,MAAM,cAAc;aAA0B,OAAO;;aAAP,OAAO;oBAiB3D,CAAC;AAEF,eAAO,MAAM,cAAc,iPAI1B,CAAC;AAEF,eAAO,MAAM,UAAU,mPAItB,CAAC;AAEF,eAAO,MAAM,qBAAqB,iPAKjC,CAAC;AAEF,eAAO,MAAM,YAAY;gBACX,OAAO;YACX,MAAM;eACH,MAAM;iBACJ,MAAM;;gBAHP,OAAO;YACX,MAAM;eACH,MAAM;iBACJ,MAAM;oBAmBpB,CAAC;AAEF,eAAO,MAAM,eAAe,iPAAgB,CAAC;AAE7C,eAAO,MAAM,KAAK,iPAIjB,CAAC;AAEF,eAAO,MAAM,SAAS,iPAIrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,iPAI7B,CAAC;AAEF,eAAO,MAAM,eAAe,iPAK3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,iPAKhC,CAAC;AAEF,eAAO,MAAM,WAAW,iPAUvB,CAAC;AAEF,eAAO,MAAM,QAAQ,mPAGpB,CAAC;AAEF,eAAO,MAAM,YAAY,iPAGxB,CAAC;AAEF,eAAO,MAAM,WAAW,2PAMvB,CAAC;AAEF,eAAO,MAAM,aAAa,2PAMzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreadLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/TreadLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TreadLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/TreadLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD;AAWD,eAAO,MAAM,eAAe;cAChB,MAAM;gBACJ,MAAM;;cADR,MAAM;gBACJ,MAAM;oBAgBnB,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAcxC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageNotificationContext.d.ts","sourceRoot":"","sources":["../../../src/context/MessageNotificationContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAEZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAaf,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageNotificationContext.d.ts","sourceRoot":"","sources":["../../../src/context/MessageNotificationContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAEZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAaf,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAanD,UAAU,+BAA+B;IACvC,uBAAuB,EAAE,CACvB,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,KACZ,IAAI,CAAC;CACX;AAQD,UAAU,aAAa;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsK/D,CAAC;AAoHF,eAAO,MAAM,sBAAsB,uCAQlC,CAAC"}
|
|
@@ -3,5 +3,5 @@ export declare const getAvatarColor: (name?: string | null, config?: {
|
|
|
3
3
|
avatar?: string;
|
|
4
4
|
};
|
|
5
5
|
}) => string | undefined;
|
|
6
|
-
export declare const getAvatarTextColor: (bg?: string) => "#
|
|
6
|
+
export declare const getAvatarTextColor: (bg?: string) => "#141414" | "#FFFFFF";
|
|
7
7
|
//# sourceMappingURL=getAvatarColor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getChatBackground.d.ts","sourceRoot":"","sources":["../../../src/helpers/getChatBackground.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"getChatBackground.d.ts","sourceRoot":"","sources":["../../../src/helpers/getChatBackground.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAG9C;+CAC+C;AAC/C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAEjD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,OAAO,KAAG,MAErB,CAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
secondary?: string;
|
|
5
|
-
dateLabel?: string;
|
|
6
|
-
};
|
|
7
|
-
}) => string;
|
|
1
|
+
import { type ThemeConfigInput } from '../theme/theme';
|
|
2
|
+
/** Day-separator pill colour; theme-aware (see getIconColor). */
|
|
3
|
+
export declare const getDateLabelColor: (config?: ThemeConfigInput | null) => string;
|
|
8
4
|
//# sourceMappingURL=getDateLabelColor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDateLabelColor.d.ts","sourceRoot":"","sources":["../../../src/helpers/getDateLabelColor.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"getDateLabelColor.d.ts","sourceRoot":"","sources":["../../../src/helpers/getDateLabelColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAErE,iEAAiE;AACjE,eAAO,MAAM,iBAAiB,GAAI,SAAS,gBAAgB,GAAG,IAAI,WAClC,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
icon?: string;
|
|
6
|
-
};
|
|
7
|
-
}) => string;
|
|
1
|
+
import { type ThemeConfigInput } from '../theme/theme';
|
|
2
|
+
/** Chrome icon tint (attach, mic/send, burger, back). Theme-aware: in dark
|
|
3
|
+
* mode it comes from `darkColors.icon` → `darkColors.primary` → default. */
|
|
4
|
+
export declare const getIconColor: (config?: ThemeConfigInput | null) => string;
|
|
8
5
|
//# sourceMappingURL=getIconColor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIconColor.d.ts","sourceRoot":"","sources":["../../../src/helpers/getIconColor.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"getIconColor.d.ts","sourceRoot":"","sources":["../../../src/helpers/getIconColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAErE;4EAC4E;AAC5E,eAAO,MAAM,YAAY,GAAI,SAAS,gBAAgB,GAAG,IAAI,WAClC,CAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
secondary?: string;
|
|
5
|
-
senderName?: string;
|
|
6
|
-
};
|
|
7
|
-
}) => string;
|
|
1
|
+
import { type ThemeConfigInput } from '../theme/theme';
|
|
2
|
+
/** Sender name colour above incoming bubbles; theme-aware (see getIconColor). */
|
|
3
|
+
export declare const getSenderNameColor: (config?: ThemeConfigInput | null) => string;
|
|
8
4
|
//# sourceMappingURL=getSenderNameColor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSenderNameColor.d.ts","sourceRoot":"","sources":["../../../src/helpers/getSenderNameColor.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"getSenderNameColor.d.ts","sourceRoot":"","sources":["../../../src/helpers/getSenderNameColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAErE,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,GAAI,SAAS,gBAAgB,GAAG,IAAI,WAClC,CAAC"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ChatThemeColors } from '../theme/theme';
|
|
2
|
+
/**
|
|
3
|
+
* Optional palette for the colour-bearing nodes (links, code grounds, quote
|
|
4
|
+
* rule). Helpers can't use hooks; callers pass the resolved theme. Omitted →
|
|
5
|
+
* the historical hard-coded colours, so existing output is unchanged.
|
|
6
|
+
*/
|
|
7
|
+
export type MarkDownTheme = Pick<ChatThemeColors, 'primary' | 'surfaceSecondary' | 'border'>;
|
|
8
|
+
export declare const MarkDown: (text: string, theme?: MarkDownTheme) => (string | JSX.Element)[];
|
|
2
9
|
//# sourceMappingURL=markdownParser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownParser.d.ts","sourceRoot":"","sources":["../../../src/helpers/markdownParser.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"markdownParser.d.ts","sourceRoot":"","sources":["../../../src/helpers/markdownParser.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,eAAe,EACf,SAAS,GAAG,kBAAkB,GAAG,QAAQ,CAC1C,CAAC;AAEF,eAAO,MAAM,QAAQ,GACnB,MAAM,MAAM,EACZ,QAAQ,aAAa,KACpB,CAAC,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,EA4MxB,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { TextStyle } from 'react-native';
|
|
2
|
+
import type { ChatThemeColors } from '../theme/theme';
|
|
3
|
+
/**
|
|
4
|
+
* Colours the parser needs. Helpers can't call hooks, so the caller passes
|
|
5
|
+
* the resolved theme (Message.tsx does); with nothing passed the historical
|
|
6
|
+
* hard-coded values apply, so the output is unchanged for other callers.
|
|
7
|
+
*/
|
|
8
|
+
export type MessageBodyTheme = Pick<ChatThemeColors, 'primary' | 'text' | 'surface' | 'surfaceSecondary' | 'surfaceHighlight' | 'border'>;
|
|
2
9
|
export declare const decodeHTMLEntities: (text: string) => string;
|
|
3
|
-
export declare const parseMessageBody: (text: string, baseStyle?: TextStyle) => JSX.Element;
|
|
10
|
+
export declare const parseMessageBody: (text: string, baseStyle?: TextStyle, theme?: MessageBodyTheme) => JSX.Element;
|
|
4
11
|
export default parseMessageBody;
|
|
5
12
|
//# sourceMappingURL=parseMessageBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseMessageBody.d.ts","sourceRoot":"","sources":["../../../src/helpers/parseMessageBody.tsx"],"names":[],"mappings":"AACA,OAAO,EASL,SAAS,EACV,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"parseMessageBody.d.ts","sourceRoot":"","sources":["../../../src/helpers/parseMessageBody.tsx"],"names":[],"mappings":"AACA,OAAO,EASL,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItD;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,eAAe,EACf,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,kBAAkB,GAAG,kBAAkB,GAAG,QAAQ,CACpF,CAAC;AAWF,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,WAc9C,CAAC;AA8SF,eAAO,MAAM,gBAAgB,GAC3B,MAAM,MAAM,EACZ,YAAY,SAAS,EACrB,QAAQ,gBAAgB,KACvB,GAAG,CAAC,OA4NN,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
import type { ThemePreference } from '../theme/theme';
|
|
3
|
+
/** Small, unencrypted, per-device user preferences set from Settings. */
|
|
4
|
+
export interface StoredPreferences {
|
|
5
|
+
theme?: ThemePreference;
|
|
6
|
+
pushEnabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const loadPreferences: () => Promise<StoredPreferences>;
|
|
9
|
+
export declare const savePreferences: (patch: StoredPreferences) => Promise<void>;
|
|
10
|
+
export declare const clearPreferences: () => Promise<void>;
|
|
11
|
+
//# sourceMappingURL=preferencesStorage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preferencesStorage.d.ts","sourceRoot":"","sources":["../../../src/helpers/preferencesStorage.ts"],"names":[],"mappings":"AAAA,cAAc;AAGd,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItD,yEAAyE;AACzE,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,eAAe,QAAa,OAAO,CAAC,iBAAiB,CAOjE,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,OAAO,iBAAiB,KACvB,OAAO,CAAC,IAAI,CAOd,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,IAAI,CAMrD,CAAC"}
|
|
@@ -26,6 +26,7 @@ export declare const useCustomTypingIndicator: (roomJID: string) => {
|
|
|
26
26
|
left: string;
|
|
27
27
|
right: string;
|
|
28
28
|
background: string;
|
|
29
|
+
color: string;
|
|
29
30
|
padding: string;
|
|
30
31
|
borderRadius: string;
|
|
31
32
|
boxShadow: string;
|
|
@@ -300,6 +301,7 @@ export declare const useCustomTypingIndicator: (roomJID: string) => {
|
|
|
300
301
|
bottom: string;
|
|
301
302
|
right: string;
|
|
302
303
|
background: string;
|
|
304
|
+
color: string;
|
|
303
305
|
padding: string;
|
|
304
306
|
borderRadius: string;
|
|
305
307
|
boxShadow: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCustomTypingIndicator.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCustomTypingIndicator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCustomTypingIndicator.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCustomTypingIndicator.tsx"],"names":[],"mappings":"AAUA;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,SAAS,MAAM;;;;;;;;;;;;;;;;iCAatC,MAAM,GAAG,CAAC,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;;kCAkC/C,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;4BAWjB,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAqCA,MAAM,EAAE;8BAMd,MAAM,EAAE;+BAIP,MAAM,EAAE;;CAIlC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLogout.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLogout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLogout.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLogout.tsx"],"names":[],"mappings":"AA4BA,QAAA,MAAM,aAAa;IACjB;;;;;;;;;;;;;;;;;;;;OAoBG;yBACsB,OAAO,CAAC,IAAI,CAAC;CA+GvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,SAAS,QAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAahD,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
import { type ChatTheme } from '../theme/theme';
|
|
3
|
+
/**
|
|
4
|
+
* Effective palette for the current config (light or dark).
|
|
5
|
+
*
|
|
6
|
+
* Source order:
|
|
7
|
+
* 1. the styled-components ThemeProvider mounted by ReduxWrapper (same
|
|
8
|
+
* object every styled template sees);
|
|
9
|
+
* 2. otherwise `config` from the redux store, when a Provider is present
|
|
10
|
+
* (components rendered under a bare <Provider> in tests / hosts);
|
|
11
|
+
* 3. otherwise the light defaults.
|
|
12
|
+
* Never throws outside a provider, so leaf components stay renderable in
|
|
13
|
+
* isolation.
|
|
14
|
+
*/
|
|
15
|
+
export declare const useTheme: () => ChatTheme;
|
|
16
|
+
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTheme.ts"],"names":[],"mappings":"AAAA,cAAc;AAMd,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAI9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,QAAQ,QAAO,SAkB3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../../src/i18n/strings.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../../src/i18n/strings.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAghDnD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAOzD,CAAC;AAEF,eAAO,MAAM,mBAAmB,OAAO,CAAC;AAExC,gFAAgF;AAChF,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,GAAG,IAAI,KAAG,MAIf,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,MAAM,GAAG,IAAI,EACtB,YAAY,aAAa,GAAG,IAAI,KAC/B,aAQF,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,WAAW,GACtB,UAAU,MAAM,EAChB,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAKF,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,YAAY,GACvB,KAAK,MAAM,EACX,SAAS,MAAM,GAAG,IAAI,EACtB,YAAY,aAAa,GAAG,IAAI,EAChC,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAGF,CAAC"}
|
package/lib/typescript/main.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ export { XmppProvider } from './context/xmppProvider';
|
|
|
28
28
|
export { useUnread } from './hooks/useUnreadMessagesCounter';
|
|
29
29
|
export { handlePushPayload, openRoomFromPush } from './helpers/pushPayload';
|
|
30
30
|
export type { PushPayloadOutcome } from './helpers/pushPayload';
|
|
31
|
+
export { registerPushToken, unregisterPushToken, getRegisteredPushToken, getRegisteredPushTokens, } from './services/pushRegistration';
|
|
32
|
+
export type { RegisterPushTokenOptions, RegisterPushTokenOutcome, UnregisterPushTokenOutcome, RegisteredPushToken, } from './services/pushRegistration';
|
|
33
|
+
export { detectPushTokenType, PushRegistrationError, isPushRegistrationError, } from './networking/api-requests/push.api';
|
|
34
|
+
export type { PushDeviceType, PushSubscriptionPayload, } from './networking/api-requests/push.api';
|
|
35
|
+
export type { PushTokenType, PushTokenRegistration } from './types/types';
|
|
31
36
|
export { useChatRoomFocus } from './hooks/useChatRoomFocus';
|
|
32
37
|
export { logoutService, useLogout } from './hooks/useLogout';
|
|
33
38
|
export { useQRCodeChat, handleQRChatId } from './hooks/useQRCodeChatHandler';
|
|
@@ -41,4 +46,8 @@ export type { Iso639_1Codes } from './types/models/language.model';
|
|
|
41
46
|
export type { TranslateMode } from './utils/translateModePolicy';
|
|
42
47
|
export { refreshAuthTokens, refreshAuthTokensQuietly, RefreshFatalError, isRefreshFatalError, } from './networking/authRefresh';
|
|
43
48
|
export type { RefreshErrorCode, RefreshResult, RefreshOptions, } from './networking/authRefresh';
|
|
49
|
+
export { LIGHT_THEME, DARK_THEME, resolveTheme, isDarkTheme, useTheme, } from './theme';
|
|
50
|
+
export type { ChatTheme, ChatThemeColors, ChatThemeOverrides } from './theme';
|
|
51
|
+
export type { ThemePreference } from './theme/theme';
|
|
52
|
+
export { setThemePreference, setPushEnabled } from './roomStore/chatSettingsSlice';
|
|
44
53
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,gCAAgC,CAAC;AAGxC,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKpD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,YAAY,GACb,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIpD,YAAY,EACV,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,cAAc,GACf,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAQjE,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,cAAc,GACf,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,gCAAgC,CAAC;AAGxC,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,cAAc,EACd,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKpD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,YAAY,GACb,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIpD,YAAY,EACV,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,cAAc,GACf,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAQjE,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,cAAc,GACf,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,EACX,QAAQ,GACT,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC9E,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,8 +1,51 @@
|
|
|
1
|
+
import type { PushTokenType } from '../../types/types';
|
|
2
|
+
export type { PushTokenType } from '../../types/types';
|
|
3
|
+
export type PushDeviceType = 'ios' | 'android' | 'web';
|
|
4
|
+
/**
|
|
5
|
+
* Registration failed in a way the host should know about: the backend
|
|
6
|
+
* refused the payload (`status` + `body` carry its answer) or the request
|
|
7
|
+
* never got there (`status` undefined).
|
|
8
|
+
*/
|
|
9
|
+
export declare class PushRegistrationError extends Error {
|
|
10
|
+
readonly status?: number;
|
|
11
|
+
readonly body?: unknown;
|
|
12
|
+
constructor(message: string, status?: number, body?: unknown);
|
|
13
|
+
}
|
|
14
|
+
export declare const isPushRegistrationError: (error: unknown) => error is PushRegistrationError;
|
|
15
|
+
export declare const detectPushTokenType: (token: string) => PushTokenType;
|
|
16
|
+
export declare const resolvePushDeviceType: () => PushDeviceType;
|
|
1
17
|
export interface PushSubscriptionPayload {
|
|
2
|
-
projectId: string;
|
|
3
18
|
registrationToken: string;
|
|
4
|
-
deviceType:
|
|
19
|
+
deviceType: PushDeviceType;
|
|
20
|
+
tokenType?: PushTokenType;
|
|
21
|
+
}
|
|
22
|
+
export interface RegisterPushSubscriptionArgs {
|
|
23
|
+
appId: string;
|
|
24
|
+
token: string;
|
|
25
|
+
tokenType: PushTokenType;
|
|
26
|
+
authToken: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const buildPushSubscriptionPayload: (token: string, tokenType: PushTokenType) => PushSubscriptionPayload;
|
|
29
|
+
export declare function registerPushSubscription({ appId, token, tokenType, authToken, }: RegisterPushSubscriptionArgs): Promise<void>;
|
|
30
|
+
export interface UnregisterPushSubscriptionArgs {
|
|
31
|
+
appId: string;
|
|
32
|
+
token: string;
|
|
33
|
+
authToken: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function unregisterPushSubscription({ appId, token, authToken, }: UnregisterPushSubscriptionArgs): Promise<void>;
|
|
36
|
+
export interface PushGatewaySubscriptionPayload {
|
|
37
|
+
projectName: string;
|
|
38
|
+
registrationToken: string;
|
|
39
|
+
deviceType: PushDeviceType;
|
|
5
40
|
jid: string;
|
|
6
41
|
}
|
|
7
|
-
export
|
|
42
|
+
export interface GatewaySubscribeArgs {
|
|
43
|
+
apiUrl: string;
|
|
44
|
+
token: string;
|
|
45
|
+
userJid: string;
|
|
46
|
+
projectName: string;
|
|
47
|
+
authToken: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const buildPushGatewayPayload: ({ token, userJid, projectName, }: Pick<GatewaySubscribeArgs, "token" | "userJid" | "projectName">) => PushGatewaySubscriptionPayload;
|
|
50
|
+
export declare function subscribeToPushGateway(args: GatewaySubscribeArgs): Promise<void>;
|
|
8
51
|
//# sourceMappingURL=push.api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.api.d.ts","sourceRoot":"","sources":["../../../../src/networking/api-requests/push.api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"push.api.d.ts","sourceRoot":"","sources":["../../../../src/networking/api-requests/push.api.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,CAAC;AAEvD;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;gBAEZ,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO;CAM7D;AAED,eAAO,MAAM,uBAAuB,GAClC,OAAO,OAAO,KACb,KAAK,IAAI,qBACwD,CAAC;AAKrE,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG,aASnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAO,cACE,CAAC;AAsB5C,MAAM,WAAW,uBAAuB;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,cAAc,CAAC;IAC3B,SAAS,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,4BAA4B,GACvC,OAAO,MAAM,EACb,WAAW,aAAa,KACvB,uBAID,CAAC;AAEH,wBAAsB,wBAAwB,CAAC,EAC7C,KAAK,EACL,KAAK,EACL,SAAS,EACT,SAAS,GACV,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,CA6B9C;AAED,MAAM,WAAW,8BAA8B;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAsB,0BAA0B,CAAC,EAC/C,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,8BAA8B,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBhD;AAID,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,cAAc,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAWD,eAAO,MAAM,uBAAuB,GAAI,kCAIrC,IAAI,CAAC,oBAAoB,EAAE,OAAO,GAAG,SAAS,GAAG,aAAa,CAAC,KAAG,8BAKnE,CAAC;AAEH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,IAAI,CAAC,CASf"}
|
|
@@ -10,6 +10,7 @@ export declare function getRooms(): Promise<{
|
|
|
10
10
|
export declare function getRoomByName(chatName: string): Promise<ApiRoom>;
|
|
11
11
|
export declare function postRoom(data: PostRoom): Promise<any>;
|
|
12
12
|
export declare function postPrivateRoom(username: string, title?: string): Promise<ApiRoom>;
|
|
13
|
+
export declare function setRoomMuted(chatName: string, muted: boolean): Promise<boolean>;
|
|
13
14
|
export declare function postReportRoom(data: PostReportRoom): Promise<any>;
|
|
14
15
|
export declare function postAddRoomMember(data: PostAddRoomMember): Promise<RoomMember[]>;
|
|
15
16
|
export declare function deleteRoomMember(data: DeleteRoomMember): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooms.api.d.ts","sourceRoot":"","sources":["../../../../src/networking/api-requests/rooms.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"rooms.api.d.ts","sourceRoot":"","sources":["../../../../src/networking/api-requests/rooms.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAiKnI;;;;GAIG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC;IAAE,KAAK,EAAE,OAAO,EAAE,CAAA;CAAE,CAAC,CAqC9D;AAED,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAatE;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,QAAQ,gBAa5C;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,MAAuB,GAC7B,OAAO,CAAC,OAAO,CAAC,CAiBlB;AAED,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAMrF;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,cAAc,gBAkBxD;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,UAAU,EAAE,CAAC,CAkBvB;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,gBAAgB,gBAkB5D;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,gBAc5C;AAqBD,wBAAsB,cAAc,CAClC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;CAAE,GACrC,OAAO,CAAC,IAAI,CAAC,CAyBf;AAED,wBAAgB,mBAAmB,SAIlC;AAED,YAAY,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { WritableDraft } from 'immer';
|
|
|
3
3
|
import { DeleteModal, IConfig, IUser, ModalFile, ModalType, User } from '../types/types';
|
|
4
4
|
import { Iso639_1Codes } from '../types/models/language.model';
|
|
5
5
|
import type { TranslateMode } from '../utils/translateModePolicy';
|
|
6
|
+
import { type ThemePreference } from '../theme/theme';
|
|
6
7
|
export interface ChatState {
|
|
7
8
|
user: User;
|
|
8
9
|
config?: IConfig;
|
|
@@ -19,6 +20,14 @@ export interface ChatState {
|
|
|
19
20
|
* See utils/translateModePolicy.
|
|
20
21
|
*/
|
|
21
22
|
translateMode?: TranslateMode;
|
|
23
|
+
/**
|
|
24
|
+
* Appearance picked in Settings (light / dark / system). Persisted per
|
|
25
|
+
* device; folded into `config.dark` by setConfig / setThemePreference so
|
|
26
|
+
* every consumer of `config` sees the effective value.
|
|
27
|
+
*/
|
|
28
|
+
themePreference?: ThemePreference;
|
|
29
|
+
/** Push notifications toggle from Settings. `undefined` = on. */
|
|
30
|
+
pushEnabled?: boolean;
|
|
22
31
|
}
|
|
23
32
|
export declare const unpackAndTransform: (input?: User) => User;
|
|
24
33
|
declare const reducers: {
|
|
@@ -26,6 +35,8 @@ declare const reducers: {
|
|
|
26
35
|
updateUser(state: WritableDraft<ChatState>, action: PayloadAction<{
|
|
27
36
|
updates: Partial<User>;
|
|
28
37
|
}>): void;
|
|
38
|
+
setThemePreference: (state: WritableDraft<ChatState>, action: PayloadAction<ThemePreference | undefined>) => void;
|
|
39
|
+
setPushEnabled: (state: WritableDraft<ChatState>, action: PayloadAction<boolean>) => void;
|
|
29
40
|
setConfig: (state: WritableDraft<ChatState>, action: PayloadAction<IConfig | undefined>) => void;
|
|
30
41
|
setActiveModal: (state: WritableDraft<ChatState>, action: PayloadAction<ModalType | undefined>) => void;
|
|
31
42
|
setActiveFile: (state: WritableDraft<ChatState>, action: PayloadAction<ModalFile>) => void;
|
|
@@ -62,7 +73,7 @@ export declare const setUser: import("@reduxjs/toolkit").ActionCreatorWithPayloa
|
|
|
62
73
|
fileToken?: string;
|
|
63
74
|
}, "chat/refreshTokens">, logout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"chat/logout">, setActiveModal: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string | undefined, "chat/setActiveModal">, setDeleteModal: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<DeleteModal | undefined, "chat/setDeleteModal">, setSelectedUser: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<IUser | undefined, "chat/setSelectedUser">, updateUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
64
75
|
updates: Partial<User>;
|
|
65
|
-
}, "chat/updateUser">, setActiveFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<ModalFile, "chat/setActiveFile">, setStoreClient: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "chat/setStoreClient">, setLangSource: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<Iso639_1Codes | undefined, "chat/setLangSource">, setTranslateMode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TranslateMode | undefined, "chat/setTranslateMode">;
|
|
76
|
+
}, "chat/updateUser">, setActiveFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<ModalFile, "chat/setActiveFile">, setStoreClient: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "chat/setStoreClient">, setLangSource: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<Iso639_1Codes | undefined, "chat/setLangSource">, setTranslateMode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TranslateMode | undefined, "chat/setTranslateMode">, setThemePreference: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ThemePreference | undefined, "chat/setThemePreference">, setPushEnabled: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "chat/setPushEnabled">;
|
|
66
77
|
declare const _default: import("redux").Reducer<ChatState>;
|
|
67
78
|
export default _default;
|
|
68
79
|
//# sourceMappingURL=chatSettingsSlice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatSettingsSlice.d.ts","sourceRoot":"","sources":["../../../src/roomStore/chatSettingsSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EACL,WAAW,EAEX,OAAO,EACP,KAAK,EACL,SAAS,EACT,SAAS,EACT,IAAI,EACL,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"chatSettingsSlice.d.ts","sourceRoot":"","sources":["../../../src/roomStore/chatSettingsSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EACL,WAAW,EAEX,OAAO,EACP,KAAK,EACL,SAAS,EACT,SAAS,EACT,IAAI,EACL,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE5E,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,iEAAiE;IACjE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,kBAAkB,GAAI,QAAQ,IAAI,KAAG,IAkCjD,CAAC;AA8CF,QAAA,MAAM,QAAQ;qBACK,aAAa,CAAC,SAAS,CAAC,UAAU,aAAa,CAAC,IAAI,CAAC;sBAIpD,aAAa,CAAC,SAAS,CAAC,UAAU,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,CAAC;gCAWpF,aAAa,CAAC,SAAS,CAAC,UACvB,aAAa,CAAC,eAAe,GAAG,SAAS,CAAC;4BAK5B,aAAa,CAAC,SAAS,CAAC,UAAU,aAAa,CAAC,OAAO,CAAC;uBAG7D,aAAa,CAAC,SAAS,CAAC,UAAU,aAAa,CAAC,OAAO,GAAG,SAAS,CAAC;4BAO/D,aAAa,CAAC,SAAS,CAAC,UAAU,aAAa,CAAC,SAAS,GAAG,SAAS,CAAC;2BAGvE,aAAa,CAAC,SAAS,CAAC,UAAU,aAAa,CAAC,SAAS,CAAC;4BAGzD,aAAa,CAAC,SAAS,CAAC,UAAU,aAAa,CAAC,WAAW,GAAG,SAAS,CAAC;4BAGxE,aAAa,CAAC,SAAS,CAAC,UAAU,aAAa,CAAC,GAAG,CAAC;6BAGnD,aAAa,CAAC,SAAS,CAAC,UAAU,aAAa,CAAC,KAAK,GAAG,SAAS,CAAC;IAG3F;;;;;;;;;;;OAWG;2BAEM,aAAa,CAAC,SAAS,CAAC,UACvB,aAAa,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;oBAaY,aAAa,CAAC,SAAS,CAAC;2BAS/B,aAAa,CAAC,SAAS,CAAC,UACvB,aAAa,CAAC,aAAa,GAAG,SAAS,CAAC;8BAKzC,aAAa,CAAC,SAAS,CAAC,UACvB,aAAa,CAAC,aAAa,GAAG,SAAS,CAAC;CAInD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,QAAQ,EAAE,MAAM,CAI9D,CAAC;AAEH,eAAO,MACL,OAAO,6EACP,SAAS,sGACT,aAAa;WAhDF,MAAM;kBACC,MAAM;mBACL,MAAM;gBACT,MAAM;0BA8CtB,MAAM,yEACN,cAAc,0GACd,cAAc,+GACd,eAAe,0GACf,UAAU;aA9GmE,OAAO,CAAC,IAAI,CAAC;uBA+G1F,aAAa,wFACb,cAAc,mFACd,aAAa,gHACb,gBAAgB,mHAChB,kBAAkB,uHAClB,cAAc,qFACK,CAAC;;AAEtB,wBAAiC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { PushTokenType } from '../types/types';
|
|
2
|
+
export interface RegisterPushTokenOptions {
|
|
3
|
+
tokenType?: PushTokenType;
|
|
4
|
+
}
|
|
5
|
+
export type RegisterPushTokenOutcome = 'registered' | 'deferred' | 'disabled';
|
|
6
|
+
export interface UnregisterPushTokenOptions {
|
|
7
|
+
tokenType?: PushTokenType;
|
|
8
|
+
}
|
|
9
|
+
export type UnregisterPushTokenOutcome = 'unregistered' | 'forgotten';
|
|
10
|
+
export interface RegisteredPushToken {
|
|
11
|
+
token: string;
|
|
12
|
+
tokenType: PushTokenType;
|
|
13
|
+
}
|
|
14
|
+
export declare const installPushTokenHook: () => void;
|
|
15
|
+
export declare function registerPushToken(token: string, options?: RegisterPushTokenOptions): Promise<RegisterPushTokenOutcome>;
|
|
16
|
+
export declare function releasePushRegistration(): Promise<void>;
|
|
17
|
+
export declare function unregisterPushToken(options?: UnregisterPushTokenOptions): Promise<UnregisterPushTokenOutcome>;
|
|
18
|
+
export declare const getRegisteredPushToken: () => RegisteredPushToken | null;
|
|
19
|
+
export declare const getRegisteredPushTokens: () => RegisteredPushToken[];
|
|
20
|
+
export declare const __resetPushRegistrationForTests: () => void;
|
|
21
|
+
//# sourceMappingURL=pushRegistration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pushRegistration.d.ts","sourceRoot":"","sources":["../../../src/services/pushRegistration.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGpD,MAAM,WAAW,wBAAwB;IACvC,SAAS,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED,MAAM,MAAM,wBAAwB,GAChC,YAAY,GACZ,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,WAAW,0BAA0B;IACzC,SAAS,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED,MAAM,MAAM,0BAA0B,GAClC,cAAc,GACd,WAAW,CAAC;AAEhB,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,aAAa,CAAC;CAC1B;AAsOD,eAAO,MAAM,oBAAoB,QAAO,IAMvC,CAAC;AAEF,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,wBAAwB,CAAC,CAgBnC;AAED,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAmB7D;AAED,wBAAsB,mBAAmB,CACvC,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,0BAA0B,CAAC,CAiCrC;AAED,eAAO,MAAM,sBAAsB,QAAO,mBAAmB,GAAG,IAG/D,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAO,mBAAmB,EAGnC,CAAC;AAE5B,eAAO,MAAM,+BAA+B,QAAO,IAUlD,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { Client } from '@xmpp/client';
|
|
2
|
-
import { User } from '../types/types';
|
|
3
2
|
export declare class PushSubscriptionService {
|
|
4
3
|
private subscribedRooms;
|
|
5
|
-
private isPushSubscribed;
|
|
6
|
-
private lastSubscriptionKey;
|
|
7
4
|
private isInitialized;
|
|
8
5
|
private loadSubscribedRoomsFromStorage;
|
|
9
6
|
private saveSubscribedRoomsToStorage;
|
|
10
|
-
subscribeToPush(fcmToken: string, user: User, projectName: string): Promise<void>;
|
|
11
7
|
subscribeToRoom(client: Client, roomJID: string, userNick?: string): Promise<boolean>;
|
|
12
8
|
subscribeToRooms(client: Client, roomJIDs: string[], userNick?: string, concurrency?: number): Promise<void>;
|
|
13
9
|
reset(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pushSubscriptionService.d.ts","sourceRoot":"","sources":["../../../src/services/pushSubscriptionService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"pushSubscriptionService.d.ts","sourceRoot":"","sources":["../../../src/services/pushSubscriptionService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAMtC,qBAAa,uBAAuB;IAClC,OAAO,CAAC,eAAe,CAA0B;IACjD,OAAO,CAAC,aAAa,CAAkB;YAEzB,8BAA8B;YAe9B,4BAA4B;IASpC,eAAe,CACnB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,OAAO,CAAC;IAuBb,gBAAgB,CACpB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAAE,EAClB,QAAQ,CAAC,EAAE,MAAM,EACjB,WAAW,SAAI,GACd,OAAO,CAAC,IAAI,CAAC;IA2BV,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAY5B,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAI1C,kBAAkB,IAAI,MAAM,EAAE;CAG/B;AAED,eAAO,MAAM,uBAAuB,yBAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC"}
|