@ethora/chat-component-rn 26.8.1 → 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 +110 -0
- package/README.md +70 -11
- package/lib/commonjs/assets/EmptyChatIllustration.js +7 -6
- package/lib/commonjs/assets/EmptyChatIllustration.js.map +1 -1
- package/lib/commonjs/assets/icons.js +7 -2
- package/lib/commonjs/assets/icons.js.map +1 -1
- package/lib/commonjs/components/AuthForms/Login.js +27 -12
- 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 +34 -10
- 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 +18 -6
- package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatRoom.js +154 -15
- package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatWrapper.js +42 -19
- 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/LoginWrapper.js +2 -1
- package/lib/commonjs/components/MainComponents/LoginWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MediaMessage.js +72 -28
- package/lib/commonjs/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageContainer.js +5 -1
- package/lib/commonjs/components/MainComponents/MessageContainer.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageList.js +22 -8
- package/lib/commonjs/components/MainComponents/MessageList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js +14 -13
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.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 +214 -38
- 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 +329 -99
- 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 +345 -118
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +599 -203
- 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 +230 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js.map +1 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +89 -36
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/PdfView.js +2 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/PdfView.js.map +1 -1
- package/lib/commonjs/components/Modals/Modal/Modal.js +8 -0
- package/lib/commonjs/components/Modals/Modal/Modal.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 +3 -6
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js +205 -106
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js +8 -0
- package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js +563 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js.map +1 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js +215 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js.map +1 -0
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js +7 -9
- 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 +10 -22
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js +510 -244
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js +77 -46
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/commonjs/components/Modals/styledModalComponents.js +68 -17
- package/lib/commonjs/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js +30 -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/LastMessageFile.js +22 -3
- package/lib/commonjs/components/RoomComponents/styled/LastMessageFile.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js +17 -3
- package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.js +17 -3
- package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.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/VideoCalls/VideoCallSession.js +6 -3
- package/lib/commonjs/components/VideoCalls/VideoCallSession.js.map +1 -1
- package/lib/commonjs/components/styled/AudioMessage.js +18 -12
- 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/MessageImage.js +37 -9
- package/lib/commonjs/components/styled/MessageImage.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 +93 -19
- package/lib/commonjs/components/styled/SendInput.js.map +1 -1
- package/lib/commonjs/components/styled/StyledComponents.js +75 -25
- 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 +50 -22
- 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/components/styled/UnsupportedType.js +14 -4
- package/lib/commonjs/components/styled/UnsupportedType.js.map +1 -1
- package/lib/commonjs/components/styled/VideoMessage.js +119 -61
- package/lib/commonjs/components/styled/VideoMessage.js.map +1 -1
- package/lib/commonjs/context/MessageNotificationContext.js +14 -3
- package/lib/commonjs/context/MessageNotificationContext.js.map +1 -1
- package/lib/commonjs/context/xmppProvider.js +184 -59
- package/lib/commonjs/context/xmppProvider.js.map +1 -1
- package/lib/commonjs/helpers/createMessageFromXml.js +19 -1
- package/lib/commonjs/helpers/createMessageFromXml.js.map +1 -1
- package/lib/commonjs/helpers/ensureScopedChatCache.js +2 -2
- package/lib/commonjs/helpers/ensureScopedChatCache.js.map +1 -1
- package/lib/commonjs/helpers/getChatBackground.js +26 -0
- package/lib/commonjs/helpers/getChatBackground.js.map +1 -0
- package/lib/commonjs/helpers/getDateLabelColor.js +3 -1
- package/lib/commonjs/helpers/getDateLabelColor.js.map +1 -1
- package/lib/commonjs/helpers/getDisplayFileName.js +79 -0
- package/lib/commonjs/helpers/getDisplayFileName.js.map +1 -0
- 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/getServerReadTimestamp.js +188 -0
- package/lib/commonjs/helpers/getServerReadTimestamp.js.map +1 -0
- package/lib/commonjs/helpers/historyPreloadScheduler.js +65 -2
- package/lib/commonjs/helpers/historyPreloadScheduler.js.map +1 -1
- package/lib/commonjs/helpers/initXmppRooms.js +14 -8
- package/lib/commonjs/helpers/initXmppRooms.js.map +1 -1
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js +51 -9
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js.map +1 -1
- package/lib/commonjs/helpers/isOwnMessage.js +75 -0
- package/lib/commonjs/helpers/isOwnMessage.js.map +1 -0
- package/lib/commonjs/helpers/keyboardLayout.js +12 -2
- package/lib/commonjs/helpers/keyboardLayout.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/mediaLibraryRuntime.js +31 -0
- package/lib/commonjs/helpers/mediaLibraryRuntime.js.map +1 -0
- package/lib/commonjs/helpers/mimeToExtension.js +6 -14
- package/lib/commonjs/helpers/mimeToExtension.js.map +1 -1
- package/lib/commonjs/helpers/msgSortableMs.js +37 -0
- package/lib/commonjs/helpers/msgSortableMs.js.map +1 -0
- package/lib/commonjs/helpers/parseMessageBody.js +82 -24
- package/lib/commonjs/helpers/parseMessageBody.js.map +1 -1
- package/lib/commonjs/helpers/persistCrypto.js +122 -0
- package/lib/commonjs/helpers/persistCrypto.js.map +1 -0
- package/lib/commonjs/helpers/pickImageAsset.js +68 -0
- package/lib/commonjs/helpers/pickImageAsset.js.map +1 -0
- package/lib/commonjs/helpers/pushPayload.js +71 -0
- package/lib/commonjs/helpers/pushPayload.js.map +1 -0
- package/lib/commonjs/helpers/resolveInitBeforeLoadUser.js +130 -17
- package/lib/commonjs/helpers/resolveInitBeforeLoadUser.js.map +1 -1
- package/lib/commonjs/helpers/secureFileUrl.js +101 -0
- package/lib/commonjs/helpers/secureFileUrl.js.map +1 -0
- package/lib/commonjs/helpers/secureKeyValue.js +83 -0
- package/lib/commonjs/helpers/secureKeyValue.js.map +1 -0
- package/lib/commonjs/helpers/secureStoreRuntime.js +59 -0
- package/lib/commonjs/helpers/secureStoreRuntime.js.map +1 -0
- package/lib/commonjs/helpers/secureUserStorage.js +75 -0
- package/lib/commonjs/helpers/secureUserStorage.js.map +1 -0
- package/lib/commonjs/helpers/shallowEqual.js +36 -0
- package/lib/commonjs/helpers/shallowEqual.js.map +1 -0
- package/lib/commonjs/helpers/sheetGestures.js +32 -0
- package/lib/commonjs/helpers/sheetGestures.js.map +1 -0
- package/lib/commonjs/hooks/useChatRoomFocus.js +45 -12
- package/lib/commonjs/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/commonjs/hooks/useChatWrapperInit.js +30 -10
- package/lib/commonjs/hooks/useChatWrapperInit.js.map +1 -1
- package/lib/commonjs/hooks/useComposing.js +27 -0
- package/lib/commonjs/hooks/useComposing.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/useFileToken.js +10 -0
- package/lib/commonjs/hooks/useFileToken.js.map +1 -0
- package/lib/commonjs/hooks/useLogout.js +33 -10
- package/lib/commonjs/hooks/useLogout.js.map +1 -1
- package/lib/commonjs/hooks/usePendingNotification.js +8 -11
- package/lib/commonjs/hooks/usePendingNotification.js.map +1 -1
- package/lib/commonjs/hooks/useSendMessage.js +50 -14
- package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
- package/lib/commonjs/hooks/useTheme.js +35 -0
- package/lib/commonjs/hooks/useTheme.js.map +1 -0
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js +6 -1
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js.map +1 -1
- package/lib/commonjs/i18n/strings.js +163 -37
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/main.js +119 -0
- package/lib/commonjs/main.js.map +1 -1
- package/lib/commonjs/networking/api-requests/auth.api.js +134 -60
- package/lib/commonjs/networking/api-requests/auth.api.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/roomMembers.api.js +1 -1
- package/lib/commonjs/networking/api-requests/roomMembers.api.js.map +1 -1
- package/lib/commonjs/networking/api-requests/rooms.api.js +22 -9
- package/lib/commonjs/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/commonjs/networking/api-requests/user.api.js +68 -9
- package/lib/commonjs/networking/api-requests/user.api.js.map +1 -1
- package/lib/commonjs/networking/apiClient.js +62 -112
- package/lib/commonjs/networking/apiClient.js.map +1 -1
- package/lib/commonjs/networking/authRefresh.js +332 -0
- package/lib/commonjs/networking/authRefresh.js.map +1 -0
- package/lib/commonjs/networking/stanzaHandlers.js +41 -28
- package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
- package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.js +46 -8
- package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.js.map +1 -1
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js +8 -1
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmpp/subscribeToRoomMessages.xmpp.js +5 -1
- package/lib/commonjs/networking/xmpp/subscribeToRoomMessages.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmppClient.js +124 -8
- package/lib/commonjs/networking/xmppClient.js.map +1 -1
- package/lib/commonjs/roomStore/chatSettingsSlice.js +26 -7
- package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/commonjs/roomStore/index.js +35 -2
- package/lib/commonjs/roomStore/index.js.map +1 -1
- package/lib/commonjs/roomStore/persistence.js +226 -23
- package/lib/commonjs/roomStore/persistence.js.map +1 -1
- package/lib/commonjs/roomStore/roomsSlice.js +151 -38
- package/lib/commonjs/roomStore/roomsSlice.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 +15 -37
- 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/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 +6 -1
- package/lib/module/assets/icons.js.map +1 -1
- package/lib/module/components/AuthForms/Login.js +27 -12
- 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 +34 -10
- 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 +18 -6
- package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/module/components/MainComponents/ChatRoom.js +156 -17
- package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/module/components/MainComponents/ChatWrapper.js +43 -20
- 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/LoginWrapper.js +2 -1
- package/lib/module/components/MainComponents/LoginWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/MediaMessage.js +72 -29
- package/lib/module/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/module/components/MainComponents/MessageContainer.js +5 -1
- package/lib/module/components/MainComponents/MessageContainer.js.map +1 -1
- package/lib/module/components/MainComponents/MessageList.js +22 -8
- package/lib/module/components/MainComponents/MessageList.js.map +1 -1
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js +14 -13
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.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 +213 -38
- 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 +331 -102
- 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 +336 -121
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +603 -208
- 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 +225 -0
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js.map +1 -0
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +90 -37
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/module/components/Modals/FilePreviewModal/PdfView.js +2 -1
- package/lib/module/components/Modals/FilePreviewModal/PdfView.js.map +1 -1
- package/lib/module/components/Modals/Modal/Modal.js +9 -1
- package/lib/module/components/Modals/Modal/Modal.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 +4 -7
- package/lib/module/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js +208 -108
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js +8 -0
- package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
- package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js +555 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js.map +1 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js +210 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js.map +1 -0
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js +8 -10
- 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 +11 -24
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js +512 -248
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js +79 -48
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/module/components/Modals/styledModalComponents.js +67 -16
- package/lib/module/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/module/components/RoomComponents/ChatRoomItem.js +30 -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/LastMessageFile.js +22 -3
- package/lib/module/components/RoomComponents/styled/LastMessageFile.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js +17 -3
- package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessageVideo.js +17 -3
- package/lib/module/components/RoomComponents/styled/LastMessageVideo.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/VideoCalls/VideoCallSession.js +6 -3
- package/lib/module/components/VideoCalls/VideoCallSession.js.map +1 -1
- package/lib/module/components/styled/AudioMessage.js +18 -12
- 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/MessageImage.js +37 -9
- package/lib/module/components/styled/MessageImage.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 +94 -20
- package/lib/module/components/styled/SendInput.js.map +1 -1
- package/lib/module/components/styled/StyledComponents.js +75 -25
- 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 +50 -22
- 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/components/styled/UnsupportedType.js +14 -4
- package/lib/module/components/styled/UnsupportedType.js.map +1 -1
- package/lib/module/components/styled/VideoMessage.js +120 -62
- package/lib/module/components/styled/VideoMessage.js.map +1 -1
- package/lib/module/context/MessageNotificationContext.js +14 -3
- package/lib/module/context/MessageNotificationContext.js.map +1 -1
- package/lib/module/context/xmppProvider.js +184 -60
- package/lib/module/context/xmppProvider.js.map +1 -1
- package/lib/module/helpers/createMessageFromXml.js +19 -1
- package/lib/module/helpers/createMessageFromXml.js.map +1 -1
- package/lib/module/helpers/ensureScopedChatCache.js +2 -2
- package/lib/module/helpers/ensureScopedChatCache.js.map +1 -1
- package/lib/module/helpers/getChatBackground.js +22 -0
- package/lib/module/helpers/getChatBackground.js.map +1 -0
- package/lib/module/helpers/getDateLabelColor.js +4 -1
- package/lib/module/helpers/getDateLabelColor.js.map +1 -1
- package/lib/module/helpers/getDisplayFileName.js +73 -0
- package/lib/module/helpers/getDisplayFileName.js.map +1 -0
- 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/getServerReadTimestamp.js +181 -0
- package/lib/module/helpers/getServerReadTimestamp.js.map +1 -0
- package/lib/module/helpers/historyPreloadScheduler.js +66 -3
- package/lib/module/helpers/historyPreloadScheduler.js.map +1 -1
- package/lib/module/helpers/initXmppRooms.js +14 -8
- package/lib/module/helpers/initXmppRooms.js.map +1 -1
- package/lib/module/helpers/insertMessageWithDelimiter.js +52 -9
- package/lib/module/helpers/insertMessageWithDelimiter.js.map +1 -1
- package/lib/module/helpers/isOwnMessage.js +70 -0
- package/lib/module/helpers/isOwnMessage.js.map +1 -0
- package/lib/module/helpers/keyboardLayout.js +12 -2
- package/lib/module/helpers/keyboardLayout.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/mediaLibraryRuntime.js +25 -0
- package/lib/module/helpers/mediaLibraryRuntime.js.map +1 -0
- package/lib/module/helpers/mimeToExtension.js +6 -13
- package/lib/module/helpers/mimeToExtension.js.map +1 -1
- package/lib/module/helpers/msgSortableMs.js +32 -0
- package/lib/module/helpers/msgSortableMs.js.map +1 -0
- package/lib/module/helpers/parseMessageBody.js +82 -24
- package/lib/module/helpers/parseMessageBody.js.map +1 -1
- package/lib/module/helpers/persistCrypto.js +115 -0
- package/lib/module/helpers/persistCrypto.js.map +1 -0
- package/lib/module/helpers/pickImageAsset.js +63 -0
- package/lib/module/helpers/pickImageAsset.js.map +1 -0
- package/lib/module/helpers/pushPayload.js +63 -0
- package/lib/module/helpers/pushPayload.js.map +1 -0
- package/lib/module/helpers/resolveInitBeforeLoadUser.js +130 -16
- package/lib/module/helpers/resolveInitBeforeLoadUser.js.map +1 -1
- package/lib/module/helpers/secureFileUrl.js +91 -0
- package/lib/module/helpers/secureFileUrl.js.map +1 -0
- package/lib/module/helpers/secureKeyValue.js +75 -0
- package/lib/module/helpers/secureKeyValue.js.map +1 -0
- package/lib/module/helpers/secureStoreRuntime.js +52 -0
- package/lib/module/helpers/secureStoreRuntime.js.map +1 -0
- package/lib/module/helpers/secureUserStorage.js +72 -0
- package/lib/module/helpers/secureUserStorage.js.map +1 -0
- package/lib/module/helpers/shallowEqual.js +31 -0
- package/lib/module/helpers/shallowEqual.js.map +1 -0
- package/lib/module/helpers/sheetGestures.js +26 -0
- package/lib/module/helpers/sheetGestures.js.map +1 -0
- package/lib/module/hooks/useChatRoomFocus.js +46 -13
- package/lib/module/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/module/hooks/useChatWrapperInit.js +30 -10
- package/lib/module/hooks/useChatWrapperInit.js.map +1 -1
- package/lib/module/hooks/useComposing.js +28 -1
- package/lib/module/hooks/useComposing.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/useFileToken.js +5 -0
- package/lib/module/hooks/useFileToken.js.map +1 -0
- package/lib/module/hooks/useLogout.js +33 -10
- package/lib/module/hooks/useLogout.js.map +1 -1
- package/lib/module/hooks/usePendingNotification.js +8 -11
- package/lib/module/hooks/usePendingNotification.js.map +1 -1
- package/lib/module/hooks/useSendMessage.js +52 -16
- package/lib/module/hooks/useSendMessage.js.map +1 -1
- package/lib/module/hooks/useTheme.js +30 -0
- package/lib/module/hooks/useTheme.js.map +1 -0
- package/lib/module/hooks/useUnreadMessagesCounter.js +6 -1
- package/lib/module/hooks/useUnreadMessagesCounter.js.map +1 -1
- package/lib/module/i18n/strings.js +163 -37
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/main.js +17 -2
- package/lib/module/main.js.map +1 -1
- package/lib/module/networking/api-requests/auth.api.js +131 -59
- package/lib/module/networking/api-requests/auth.api.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/roomMembers.api.js +1 -1
- package/lib/module/networking/api-requests/roomMembers.api.js.map +1 -1
- package/lib/module/networking/api-requests/rooms.api.js +21 -9
- package/lib/module/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/module/networking/api-requests/user.api.js +64 -7
- package/lib/module/networking/api-requests/user.api.js.map +1 -1
- package/lib/module/networking/apiClient.js +61 -113
- package/lib/module/networking/apiClient.js.map +1 -1
- package/lib/module/networking/authRefresh.js +321 -0
- package/lib/module/networking/authRefresh.js.map +1 -0
- package/lib/module/networking/stanzaHandlers.js +41 -28
- package/lib/module/networking/stanzaHandlers.js.map +1 -1
- package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.js +46 -8
- package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.js.map +1 -1
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js +8 -1
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
- package/lib/module/networking/xmpp/subscribeToRoomMessages.xmpp.js +5 -1
- package/lib/module/networking/xmpp/subscribeToRoomMessages.xmpp.js.map +1 -1
- package/lib/module/networking/xmppClient.js +124 -8
- package/lib/module/networking/xmppClient.js.map +1 -1
- package/lib/module/roomStore/chatSettingsSlice.js +26 -7
- package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/module/roomStore/index.js +37 -4
- package/lib/module/roomStore/index.js.map +1 -1
- package/lib/module/roomStore/persistence.js +223 -22
- package/lib/module/roomStore/persistence.js.map +1 -1
- package/lib/module/roomStore/roomsSlice.js +139 -34
- package/lib/module/roomStore/roomsSlice.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 +15 -37
- 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/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 +24 -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/LoginWrapper.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MediaMessage.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MessageContainer.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MessageList.d.ts +10 -1
- package/lib/typescript/components/MainComponents/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ProfileImagePlaceholder.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ReduxWrapper.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/RoomList.d.ts +7 -0
- 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 +3 -0
- 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 +9 -0
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts +10 -0
- 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 +9 -0
- package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/FilePreviewModal/PdfView.d.ts.map +1 -1
- package/lib/typescript/components/Modals/Modal/Modal.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 +4 -2
- package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts +1 -1
- package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/NewChatModal/UpdNewChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts +75 -0
- package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts.map +1 -0
- package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts +25 -0
- package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts +6 -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 +16 -0
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts +1 -0
- 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/LastMessageFile.d.ts +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageFile.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.d.ts +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.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/VideoCalls/VideoCallSession.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/MessageImage.d.ts +14 -0
- package/lib/typescript/components/styled/MessageImage.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/components/styled/UnsupportedType.d.ts.map +1 -1
- package/lib/typescript/components/styled/VideoMessage.d.ts +8 -0
- package/lib/typescript/components/styled/VideoMessage.d.ts.map +1 -1
- package/lib/typescript/context/MessageNotificationContext.d.ts.map +1 -1
- package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
- package/lib/typescript/helpers/createMessageFromXml.d.ts.map +1 -1
- package/lib/typescript/helpers/getAvatarColor.d.ts +1 -1
- package/lib/typescript/helpers/getChatBackground.d.ts +15 -0
- package/lib/typescript/helpers/getChatBackground.d.ts.map +1 -0
- package/lib/typescript/helpers/getDateLabelColor.d.ts +3 -7
- package/lib/typescript/helpers/getDateLabelColor.d.ts.map +1 -1
- package/lib/typescript/helpers/getDisplayFileName.d.ts +49 -0
- package/lib/typescript/helpers/getDisplayFileName.d.ts.map +1 -0
- 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/getServerReadTimestamp.d.ts +108 -0
- package/lib/typescript/helpers/getServerReadTimestamp.d.ts.map +1 -0
- package/lib/typescript/helpers/historyPreloadScheduler.d.ts.map +1 -1
- package/lib/typescript/helpers/initXmppRooms.d.ts.map +1 -1
- package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts +1 -1
- package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts.map +1 -1
- package/lib/typescript/helpers/isOwnMessage.d.ts +36 -0
- package/lib/typescript/helpers/isOwnMessage.d.ts.map +1 -0
- package/lib/typescript/helpers/keyboardLayout.d.ts +5 -1
- package/lib/typescript/helpers/keyboardLayout.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/mediaLibraryRuntime.d.ts +3 -0
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts.map +1 -0
- package/lib/typescript/helpers/mimeToExtension.d.ts +0 -15
- package/lib/typescript/helpers/mimeToExtension.d.ts.map +1 -1
- package/lib/typescript/helpers/msgSortableMs.d.ts +2 -0
- package/lib/typescript/helpers/msgSortableMs.d.ts.map +1 -0
- package/lib/typescript/helpers/parseMessageBody.d.ts +8 -1
- package/lib/typescript/helpers/parseMessageBody.d.ts.map +1 -1
- package/lib/typescript/helpers/persistCrypto.d.ts +13 -0
- package/lib/typescript/helpers/persistCrypto.d.ts.map +1 -0
- package/lib/typescript/helpers/pickImageAsset.d.ts +27 -0
- package/lib/typescript/helpers/pickImageAsset.d.ts.map +1 -0
- package/lib/typescript/helpers/pushPayload.d.ts +7 -0
- package/lib/typescript/helpers/pushPayload.d.ts.map +1 -0
- package/lib/typescript/helpers/resolveInitBeforeLoadUser.d.ts.map +1 -1
- package/lib/typescript/helpers/secureFileUrl.d.ts +7 -0
- package/lib/typescript/helpers/secureFileUrl.d.ts.map +1 -0
- package/lib/typescript/helpers/secureKeyValue.d.ts +13 -0
- package/lib/typescript/helpers/secureKeyValue.d.ts.map +1 -0
- package/lib/typescript/helpers/secureStoreRuntime.d.ts +29 -0
- package/lib/typescript/helpers/secureStoreRuntime.d.ts.map +1 -0
- package/lib/typescript/helpers/secureUserStorage.d.ts +23 -0
- package/lib/typescript/helpers/secureUserStorage.d.ts.map +1 -0
- package/lib/typescript/helpers/shallowEqual.d.ts +11 -0
- package/lib/typescript/helpers/shallowEqual.d.ts.map +1 -0
- package/lib/typescript/helpers/sheetGestures.d.ts +20 -0
- package/lib/typescript/helpers/sheetGestures.d.ts.map +1 -0
- package/lib/typescript/hooks/useChatRoomFocus.d.ts +4 -1
- package/lib/typescript/hooks/useChatRoomFocus.d.ts.map +1 -1
- package/lib/typescript/hooks/useChatWrapperInit.d.ts.map +1 -1
- package/lib/typescript/hooks/useComposing.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/useFileToken.d.ts +2 -0
- package/lib/typescript/hooks/useFileToken.d.ts.map +1 -0
- package/lib/typescript/hooks/useLogout.d.ts.map +1 -1
- package/lib/typescript/hooks/usePendingNotification.d.ts.map +1 -1
- package/lib/typescript/hooks/useSendMessage.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/hooks/useUnreadMessagesCounter.d.ts +1 -0
- package/lib/typescript/hooks/useUnreadMessagesCounter.d.ts.map +1 -1
- package/lib/typescript/i18n/strings.d.ts.map +1 -1
- package/lib/typescript/main.d.ts +16 -2
- package/lib/typescript/main.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/auth.api.d.ts +3 -1
- package/lib/typescript/networking/api-requests/auth.api.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/networking/api-requests/user.api.d.ts +27 -0
- package/lib/typescript/networking/api-requests/user.api.d.ts.map +1 -1
- package/lib/typescript/networking/apiClient.d.ts +12 -6
- package/lib/typescript/networking/apiClient.d.ts.map +1 -1
- package/lib/typescript/networking/authRefresh.d.ts +95 -0
- package/lib/typescript/networking/authRefresh.d.ts.map +1 -0
- package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.d.ts +10 -2
- package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/presenceInRoom.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/subscribeToRoomMessages.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmppClient.d.ts +14 -0
- package/lib/typescript/networking/xmppClient.d.ts.map +1 -1
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts +16 -0
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts.map +1 -1
- package/lib/typescript/roomStore/index.d.ts.map +1 -1
- package/lib/typescript/roomStore/persistence.d.ts +18 -1
- package/lib/typescript/roomStore/persistence.d.ts.map +1 -1
- package/lib/typescript/roomStore/roomsSlice.d.ts +43 -3
- package/lib/typescript/roomStore/roomsSlice.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 +1 -5
- 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 +70 -5
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +41 -28
- package/src/assets/EmptyChatIllustration.tsx +7 -5
- package/src/assets/icons.tsx +72 -9
- package/src/components/AuthForms/Login.tsx +14 -12
- 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 +35 -8
- package/src/components/InputComponents/Search.tsx +7 -4
- package/src/components/MainComponents/ChatHeader.tsx +18 -6
- package/src/components/MainComponents/ChatRoom.tsx +164 -15
- package/src/components/MainComponents/ChatWrapper.tsx +44 -26
- package/src/components/MainComponents/LanguageSelectorModal.tsx +33 -7
- package/src/components/MainComponents/LoginWrapper.tsx +1 -0
- package/src/components/MainComponents/MediaMessage.tsx +63 -26
- package/src/components/MainComponents/MessageContainer.tsx +5 -1
- package/src/components/MainComponents/MessageList.tsx +36 -7
- package/src/components/MainComponents/ProfileImagePlaceholder.tsx +21 -14
- package/src/components/MainComponents/RNStyled.tsx +4 -4
- package/src/components/MainComponents/ReduxWrapper.tsx +23 -7
- package/src/components/MainComponents/RoomList.tsx +243 -40
- package/src/components/MainComponents/Select.tsx +13 -8
- package/src/components/Menu/HeaderRoomListMenu.tsx +347 -77
- 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 +376 -106
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +639 -283
- package/src/components/Modals/ChatProfileModal/DeleteChatModal.tsx +6 -4
- package/src/components/Modals/ChatProfileModal/ReportChatModal.tsx +248 -0
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +93 -47
- package/src/components/Modals/FilePreviewModal/PdfView.tsx +2 -1
- package/src/components/Modals/Modal/Modal.tsx +7 -0
- package/src/components/Modals/ModalHeaderComponent.tsx +9 -2
- package/src/components/Modals/ModalWrapper/ModalWrapper.tsx +14 -6
- package/src/components/Modals/NewChatModal/ModalContent.tsx +8 -5
- package/src/components/Modals/NewChatModal/NewChatModal.tsx +223 -119
- package/src/components/Modals/NewChatModal/UpdNewChatModal.tsx +12 -1
- package/src/components/Modals/ProfileHeader/ProfileHeader.tsx +624 -0
- package/src/components/Modals/ProfileHeader/ProfileMenu.tsx +224 -0
- package/src/components/Modals/SelectUsersModal/SelectUsersModal.tsx +16 -7
- 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 +12 -26
- package/src/components/Modals/UserProfileModal/UserProfileModal.tsx +621 -307
- package/src/components/Modals/UserSettingsModal/UserSettingsModal.tsx +84 -58
- package/src/components/Modals/styledModalComponents.tsx +31 -16
- package/src/components/RoomComponents/ChatRoomItem.tsx +30 -6
- package/src/components/RoomComponents/styled/LastAudioMessage.tsx +4 -2
- package/src/components/RoomComponents/styled/LastMessageFile.tsx +28 -4
- package/src/components/RoomComponents/styled/LastMessagePhoto.tsx +18 -3
- package/src/components/RoomComponents/styled/LastMessageVideo.tsx +18 -3
- 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/VideoCalls/VideoCallSession.tsx +8 -3
- package/src/components/styled/AudioMessage.tsx +14 -10
- 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/MessageImage.tsx +53 -7
- package/src/components/styled/RoomListComponents/index.tsx +60 -35
- package/src/components/styled/SendInput.tsx +106 -20
- package/src/components/styled/StyledComponents.ts +38 -25
- 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 +26 -23
- package/src/components/styled/TreadLabel.tsx +9 -3
- package/src/components/styled/UnsupportedType.tsx +14 -4
- package/src/components/styled/VideoMessage.tsx +131 -54
- package/src/context/MessageNotificationContext.tsx +18 -4
- package/src/context/xmppProvider.tsx +216 -57
- package/src/helpers/createMessageFromXml.ts +20 -1
- package/src/helpers/ensureScopedChatCache.ts +2 -2
- package/src/helpers/getChatBackground.ts +20 -0
- package/src/helpers/getDateLabelColor.ts +5 -3
- package/src/helpers/getDisplayFileName.ts +87 -0
- package/src/helpers/getIconColor.ts +6 -3
- package/src/helpers/getSenderNameColor.ts +5 -3
- package/src/helpers/getServerReadTimestamp.ts +197 -0
- package/src/helpers/historyPreloadScheduler.ts +80 -3
- package/src/helpers/initXmppRooms.tsx +14 -10
- package/src/helpers/insertMessageWithDelimiter.ts +55 -19
- package/src/helpers/isOwnMessage.ts +90 -0
- package/src/helpers/keyboardLayout.ts +23 -2
- package/src/helpers/markdownParser.tsx +29 -5
- package/src/helpers/mediaLibraryRuntime.ts +25 -0
- package/src/helpers/mimeToExtension.ts +6 -22
- package/src/helpers/msgSortableMs.ts +25 -0
- package/src/helpers/parseMessageBody.tsx +79 -26
- package/src/helpers/persistCrypto.ts +127 -0
- package/src/helpers/pickImageAsset.ts +68 -0
- package/src/helpers/pushPayload.ts +62 -0
- package/src/helpers/resolveInitBeforeLoadUser.ts +125 -18
- package/src/helpers/secureFileUrl.ts +103 -0
- package/src/helpers/secureKeyValue.ts +80 -0
- package/src/helpers/secureStoreRuntime.ts +62 -0
- package/src/helpers/secureUserStorage.ts +80 -0
- package/src/helpers/shallowEqual.ts +33 -0
- package/src/helpers/sheetGestures.ts +25 -0
- package/src/hooks/useChatRoomFocus.ts +49 -9
- package/src/hooks/useChatWrapperInit.ts +30 -10
- package/src/hooks/useComposing.tsx +37 -1
- package/src/hooks/useCustomTypingIndicator.tsx +7 -3
- package/src/hooks/useFileToken.ts +7 -0
- package/src/hooks/useLogout.tsx +39 -12
- package/src/hooks/usePendingNotification.ts +5 -11
- package/src/hooks/useSendMessage.tsx +60 -15
- package/src/hooks/useTheme.ts +41 -0
- package/src/hooks/useUnreadMessagesCounter.ts +11 -0
- package/src/i18n/strings.ts +163 -37
- package/src/main.ts +57 -2
- package/src/networking/api-requests/auth.api.ts +156 -48
- package/src/networking/api-requests/push.api.ts +185 -62
- package/src/networking/api-requests/roomMembers.api.ts +1 -1
- package/src/networking/api-requests/rooms.api.ts +18 -9
- package/src/networking/api-requests/user.api.ts +79 -7
- package/src/networking/apiClient.ts +68 -123
- package/src/networking/authRefresh.ts +451 -0
- package/src/networking/stanzaHandlers.ts +44 -28
- package/src/networking/xmpp/flushLastViewedToPrivateStore.ts +71 -10
- package/src/networking/xmpp/presenceInRoom.xmpp.ts +6 -1
- package/src/networking/xmpp/subscribeToRoomMessages.xmpp.ts +12 -1
- package/src/networking/xmppClient.ts +141 -9
- package/src/roomStore/chatSettingsSlice.ts +34 -10
- package/src/roomStore/index.ts +40 -4
- package/src/roomStore/persistence.ts +234 -24
- package/src/roomStore/roomsSlice.ts +161 -29
- package/src/services/pushRegistration.ts +356 -0
- package/src/services/pushSubscriptionService.ts +18 -47
- 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 +96 -5
- 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
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/** @format */
|
|
4
|
+
|
|
5
|
+
import React, { useRef, useState } from 'react';
|
|
6
|
+
import { Animated, Dimensions, Easing, Modal, Pressable, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
7
|
+
import { MoreIcon } from '../../../assets/icons';
|
|
8
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
+
/** Fallbacks used for the very first frame, before the card is measured. */
|
|
11
|
+
const ESTIMATED_WIDTH = 220;
|
|
12
|
+
const ESTIMATED_HEIGHT = 160;
|
|
13
|
+
const GAP = 8;
|
|
14
|
+
/** Roughly a notch inset + the header band, used until measured. */
|
|
15
|
+
const DEFAULT_TOP = 104;
|
|
16
|
+
const EDGE = 12;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The "…" overflow menu shared by the chat and user profile screens.
|
|
20
|
+
*
|
|
21
|
+
* The shared `DropdownMenu` pins its card at a hard-coded `top: 95`, which
|
|
22
|
+
* on this screen landed it over the host's own tab bar, unanchored to the
|
|
23
|
+
* button. This one measures the button and grows the card out of it: the
|
|
24
|
+
* card scales up from its top-right corner (translate → scale → translate
|
|
25
|
+
* back, which is how you fake a transform-origin in React Native) so the
|
|
26
|
+
* menu visibly unfolds from the three dots.
|
|
27
|
+
*/
|
|
28
|
+
const ProfileMenu = ({
|
|
29
|
+
items,
|
|
30
|
+
testIDPrefix = 'chat-profile'
|
|
31
|
+
}) => {
|
|
32
|
+
const theme = useTheme();
|
|
33
|
+
const buttonRef = useRef(null);
|
|
34
|
+
const [open, setOpen] = useState(false);
|
|
35
|
+
const [anchor, setAnchor] = useState({
|
|
36
|
+
top: DEFAULT_TOP,
|
|
37
|
+
right: EDGE
|
|
38
|
+
});
|
|
39
|
+
const [size, setSize] = useState({
|
|
40
|
+
width: ESTIMATED_WIDTH,
|
|
41
|
+
height: ESTIMATED_HEIGHT
|
|
42
|
+
});
|
|
43
|
+
const progress = useRef(new Animated.Value(0)).current;
|
|
44
|
+
const animate = (to, done) => Animated.timing(progress, {
|
|
45
|
+
toValue: to,
|
|
46
|
+
duration: to ? 180 : 140,
|
|
47
|
+
easing: to ? Easing.out(Easing.back(1.3)) : Easing.in(Easing.quad),
|
|
48
|
+
useNativeDriver: true
|
|
49
|
+
}).start(({
|
|
50
|
+
finished
|
|
51
|
+
}) => finished && done?.());
|
|
52
|
+
|
|
53
|
+
// Anchor to the button's window frame — that is the same coordinate
|
|
54
|
+
// space the <Modal> lays out in, so no insets to subtract. Measured on
|
|
55
|
+
// layout (and again on open) rather than *before* opening: on some hosts
|
|
56
|
+
// the measure callback never fires, and gating the open on it would mean
|
|
57
|
+
// a menu that simply doesn't appear.
|
|
58
|
+
const measure = () => buttonRef.current?.measureInWindow?.((x, y, width, height) => {
|
|
59
|
+
if (typeof y !== 'number' || typeof x !== 'number') {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const screenWidth = Dimensions.get('window').width;
|
|
63
|
+
setAnchor({
|
|
64
|
+
top: y + height + GAP,
|
|
65
|
+
right: Math.max(screenWidth - (x + width), EDGE)
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
const openMenu = () => {
|
|
69
|
+
measure();
|
|
70
|
+
progress.setValue(0);
|
|
71
|
+
setOpen(true);
|
|
72
|
+
animate(1);
|
|
73
|
+
};
|
|
74
|
+
const closeMenu = then => animate(0, () => {
|
|
75
|
+
setOpen(false);
|
|
76
|
+
then?.();
|
|
77
|
+
});
|
|
78
|
+
const scale = progress.interpolate({
|
|
79
|
+
inputRange: [0, 1],
|
|
80
|
+
outputRange: [0.2, 1]
|
|
81
|
+
});
|
|
82
|
+
if (items.length === 0) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
86
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
87
|
+
ref: buttonRef,
|
|
88
|
+
collapsable: false,
|
|
89
|
+
onLayout: measure,
|
|
90
|
+
children: /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
91
|
+
testID: `${testIDPrefix}-menu`,
|
|
92
|
+
activeOpacity: 0.7,
|
|
93
|
+
onPress: openMenu,
|
|
94
|
+
style: styles.button,
|
|
95
|
+
children: /*#__PURE__*/_jsx(MoreIcon, {
|
|
96
|
+
color: "#FFFFFF"
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
}), /*#__PURE__*/_jsxs(Modal, {
|
|
100
|
+
transparent: true,
|
|
101
|
+
visible: open,
|
|
102
|
+
animationType: "none",
|
|
103
|
+
onRequestClose: () => closeMenu(),
|
|
104
|
+
children: [/*#__PURE__*/_jsx(Pressable, {
|
|
105
|
+
testID: `${testIDPrefix}-menu-backdrop`,
|
|
106
|
+
style: StyleSheet.absoluteFill,
|
|
107
|
+
onPress: () => closeMenu()
|
|
108
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
109
|
+
testID: `${testIDPrefix}-menu-card`,
|
|
110
|
+
onLayout: e => {
|
|
111
|
+
const {
|
|
112
|
+
width,
|
|
113
|
+
height
|
|
114
|
+
} = e.nativeEvent.layout;
|
|
115
|
+
if (width && height) {
|
|
116
|
+
setSize({
|
|
117
|
+
width,
|
|
118
|
+
height
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
style: [styles.card, {
|
|
123
|
+
backgroundColor: theme.surface,
|
|
124
|
+
shadowColor: theme.shadow,
|
|
125
|
+
top: anchor.top,
|
|
126
|
+
right: anchor.right,
|
|
127
|
+
opacity: progress,
|
|
128
|
+
transform: [
|
|
129
|
+
// Move the origin to the card's top-right corner, scale
|
|
130
|
+
// there, then move back — RN has no transform-origin.
|
|
131
|
+
{
|
|
132
|
+
translateX: size.width / 2
|
|
133
|
+
}, {
|
|
134
|
+
translateY: -size.height / 2
|
|
135
|
+
}, {
|
|
136
|
+
scale
|
|
137
|
+
}, {
|
|
138
|
+
translateX: -size.width / 2
|
|
139
|
+
}, {
|
|
140
|
+
translateY: size.height / 2
|
|
141
|
+
}]
|
|
142
|
+
}],
|
|
143
|
+
children: items.map((item, index) => /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
144
|
+
testID: `${testIDPrefix}-menu-${item.key}`,
|
|
145
|
+
activeOpacity: 0.6,
|
|
146
|
+
style: [styles.row, index > 0 && styles.rowDivider, index > 0 && theme.dark && {
|
|
147
|
+
borderTopColor: theme.divider
|
|
148
|
+
}],
|
|
149
|
+
onPress: () => closeMenu(item.onPress),
|
|
150
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
151
|
+
style: [styles.label, {
|
|
152
|
+
color: theme.text
|
|
153
|
+
}, item.destructive && {
|
|
154
|
+
color: theme.danger
|
|
155
|
+
}],
|
|
156
|
+
children: item.label
|
|
157
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
158
|
+
style: styles.icon,
|
|
159
|
+
children: item.icon
|
|
160
|
+
})]
|
|
161
|
+
}, item.key))
|
|
162
|
+
})]
|
|
163
|
+
})]
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
const styles = StyleSheet.create({
|
|
167
|
+
button: {
|
|
168
|
+
width: 40,
|
|
169
|
+
height: 40,
|
|
170
|
+
borderRadius: 20,
|
|
171
|
+
backgroundColor: 'rgba(0,0,0,0.28)',
|
|
172
|
+
alignItems: 'center',
|
|
173
|
+
justifyContent: 'center'
|
|
174
|
+
},
|
|
175
|
+
card: {
|
|
176
|
+
position: 'absolute',
|
|
177
|
+
minWidth: 200,
|
|
178
|
+
borderRadius: 14,
|
|
179
|
+
paddingVertical: 4,
|
|
180
|
+
shadowOffset: {
|
|
181
|
+
width: 0,
|
|
182
|
+
height: 6
|
|
183
|
+
},
|
|
184
|
+
shadowOpacity: 0.18,
|
|
185
|
+
shadowRadius: 16,
|
|
186
|
+
elevation: 12
|
|
187
|
+
},
|
|
188
|
+
row: {
|
|
189
|
+
flexDirection: 'row',
|
|
190
|
+
alignItems: 'center',
|
|
191
|
+
justifyContent: 'space-between',
|
|
192
|
+
gap: 24,
|
|
193
|
+
paddingHorizontal: 16,
|
|
194
|
+
paddingVertical: 13
|
|
195
|
+
},
|
|
196
|
+
rowDivider: {
|
|
197
|
+
borderTopWidth: StyleSheet.hairlineWidth,
|
|
198
|
+
// Light hairline; swapped for theme.divider in dark mode.
|
|
199
|
+
borderTopColor: '#EFEFF2'
|
|
200
|
+
},
|
|
201
|
+
label: {
|
|
202
|
+
fontSize: 16
|
|
203
|
+
},
|
|
204
|
+
icon: {
|
|
205
|
+
width: 22,
|
|
206
|
+
alignItems: 'center'
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
export default ProfileMenu;
|
|
210
|
+
//# sourceMappingURL=ProfileMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useRef","useState","Animated","Dimensions","Easing","Modal","Pressable","StyleSheet","Text","TouchableOpacity","View","MoreIcon","useTheme","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","ESTIMATED_WIDTH","ESTIMATED_HEIGHT","GAP","DEFAULT_TOP","EDGE","ProfileMenu","items","testIDPrefix","theme","buttonRef","open","setOpen","anchor","setAnchor","top","right","size","setSize","width","height","progress","Value","current","animate","to","done","timing","toValue","duration","easing","out","back","in","quad","useNativeDriver","start","finished","measure","measureInWindow","x","y","screenWidth","get","Math","max","openMenu","setValue","closeMenu","then","scale","interpolate","inputRange","outputRange","length","children","ref","collapsable","onLayout","testID","activeOpacity","onPress","style","styles","button","color","transparent","visible","animationType","onRequestClose","absoluteFill","e","nativeEvent","layout","card","backgroundColor","surface","shadowColor","shadow","opacity","transform","translateX","translateY","map","item","index","key","row","rowDivider","dark","borderTopColor","divider","label","text","destructive","danger","icon","create","borderRadius","alignItems","justifyContent","position","minWidth","paddingVertical","shadowOffset","shadowOpacity","shadowRadius","elevation","flexDirection","gap","paddingHorizontal","borderTopWidth","hairlineWidth","fontSize"],"sourceRoot":"../../../../../src","sources":["components/Modals/ProfileHeader/ProfileMenu.tsx"],"mappings":";;AAAA;;AAEA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC/C,SACEC,QAAQ,EACRC,UAAU,EACVC,MAAM,EACNC,KAAK,EACLC,SAAS,EACTC,UAAU,EACVC,IAAI,EACJC,gBAAgB,EAChBC,IAAI,QACC,cAAc;AACrB,SAASC,QAAQ,QAAQ,uBAAuB;AAChD,SAASC,QAAQ,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAUnD;AACA,MAAMC,eAAe,GAAG,GAAG;AAC3B,MAAMC,gBAAgB,GAAG,GAAG;AAC5B,MAAMC,GAAG,GAAG,CAAC;AACb;AACA,MAAMC,WAAW,GAAG,GAAG;AACvB,MAAMC,I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CACR,CAAC;AAEP,CAAC;AAED,MAAMvB,MAAM,GAAG1E,UAAU,CAAC4G,MAAM,CAAC;EAC/BjC,MAAM,EAAE;IACN7C,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACV8E,YAAY,EAAE,EAAE;IAChBvB,eAAe,EAAE,kBAAkB;IACnCwB,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACD1B,IAAI,EAAE;IACJ2B,QAAQ,EAAE,UAAU;IACpBC,QAAQ,EAAE,GAAG;IACbJ,YAAY,EAAE,EAAE;IAChBK,eAAe,EAAE,CAAC;IAClBC,YAAY,EAAE;MAAErF,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCqF,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE;EACb,CAAC;EACDpB,GAAG,EAAE;IACHqB,aAAa,EAAE,KAAK;IACpBT,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BS,GAAG,EAAE,EAAE;IACPC,iBAAiB,EAAE,EAAE;IACrBP,eAAe,EAAE;EACnB,CAAC;EACDf,UAAU,EAAE;IACVuB,cAAc,EAAE1H,UAAU,CAAC2H,aAAa;IACxC;IACAtB,cAAc,EAAE;EAClB,CAAC;EACDE,KAAK,EAAE;IACLqB,QAAQ,EAAE;EACZ,CAAC;EACDjB,IAAI,EAAE;IACJ7E,KAAK,EAAE,EAAE;IACTgF,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAe7F,WAAW","ignoreList":[]}
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
import { useDispatch, useSelector } from 'react-redux';
|
|
5
5
|
import { getActiveRoom } from '../../../roomStore';
|
|
6
|
-
import { ActionButton, CloseButton, GroupContainer, ModalBackground, ModalContainer } from '../styledModalComponents';
|
|
6
|
+
import { ActionButton, CloseButton, CloseButtonText, GroupContainer, ModalBackground, ModalContainer } from '../styledModalComponents';
|
|
7
7
|
import Button from '../../styled/Button';
|
|
8
8
|
import UsersList from '../../UsersList/UsersList';
|
|
9
9
|
import Loader from '../../styled/Loader';
|
|
10
10
|
import { postAddRoomMember } from '../../../networking/api-requests/rooms.api';
|
|
11
11
|
import { useToast } from '../../../context/ToastContext';
|
|
12
12
|
import { updateRoom } from '../../../roomStore/roomsSlice';
|
|
13
|
-
import { Text } from 'react-native';
|
|
14
13
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
|
-
const SelectUsersModal = (
|
|
14
|
+
const SelectUsersModal = ({
|
|
15
|
+
trigger
|
|
16
|
+
}) => {
|
|
16
17
|
const {
|
|
17
18
|
showToast
|
|
18
19
|
} = useToast();
|
|
@@ -57,21 +58,18 @@ const SelectUsersModal = () => {
|
|
|
57
58
|
setIsLoading(false);
|
|
58
59
|
};
|
|
59
60
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
60
|
-
children: [/*#__PURE__*/_jsx(ActionButton, {
|
|
61
|
+
children: [trigger ? trigger(handleOpenModal) : /*#__PURE__*/_jsx(ActionButton, {
|
|
61
62
|
variant: "filled",
|
|
62
63
|
unstyled: true,
|
|
63
64
|
onPress: handleOpenModal,
|
|
64
65
|
children: "Add more Users"
|
|
65
66
|
}), isModalOpen && /*#__PURE__*/_jsx(ModalBackground, {
|
|
66
67
|
children: /*#__PURE__*/_jsxs(ModalContainer, {
|
|
67
|
-
children: [/*#__PURE__*/
|
|
68
|
+
children: [/*#__PURE__*/_jsx(CloseButton, {
|
|
68
69
|
onPress: handleCloseModal,
|
|
69
|
-
children:
|
|
70
|
-
style: {
|
|
71
|
-
fontSize: 24
|
|
72
|
-
},
|
|
70
|
+
children: /*#__PURE__*/_jsx(CloseButtonText, {
|
|
73
71
|
children: "\xD7"
|
|
74
|
-
})
|
|
72
|
+
})
|
|
75
73
|
}), /*#__PURE__*/_jsx(GroupContainer, {
|
|
76
74
|
style: {
|
|
77
75
|
flexDirection: 'column',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useDispatch","useSelector","getActiveRoom","ActionButton","CloseButton","GroupContainer","ModalBackground","ModalContainer","Button","UsersList","Loader","postAddRoomMember","useToast","updateRoom","
|
|
1
|
+
{"version":3,"names":["React","useState","useDispatch","useSelector","getActiveRoom","ActionButton","CloseButton","CloseButtonText","GroupContainer","ModalBackground","ModalContainer","Button","UsersList","Loader","postAddRoomMember","useToast","updateRoom","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","SelectUsersModal","trigger","showToast","dispatch","loading","setIsLoading","isModalOpen","setIsModalOpen","selectedUsers","setSelectedUsers","activeRoom","state","handleOpenModal","handleCloseModal","handleAdd","existingXmppUsernames","members","map","member","xmppUsername","usersArray","filter","user","includes","newMembers","chatName","jid","split","updates","usersCnt","length","id","Date","now","toString","title","message","type","duration","error","console","children","variant","unstyled","onPress","style","flexDirection","position","width","minHeight","minWidth","maxHeight","headerElement","text"],"sourceRoot":"../../../../../src","sources":["components/Modals/SelectUsersModal/SelectUsersModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,SAASC,aAAa,QAAmB,oBAAoB;AAC7D,SACEC,YAAY,EACZC,WAAW,EACXC,eAAe,EACfC,cAAc,EACdC,eAAe,EACfC,cAAc,QACT,0BAA0B;AACjC,OAAOC,MAAM,MAAM,qBAAqB;AAExC,OAAOC,SAAS,MAAM,2BAA2B;AACjD,OAAOC,MAAM,MAAM,qBAAqB;AACxC,SAASC,iBAAiB,QAAQ,4CAA4C;AAC9E,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,UAAU,QAAQ,+BAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAQ3D,MAA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CAACV,cAAc;UACb4D,KAAK,EAAE;YACLC,aAAa,EAAE,QAAQ;YACvBC,QAAQ,EAAE,UAAU;YACpBC,KAAK,EAAE,MAAM;YACbC,SAAS,EAAE;UACb,CAAE;UAAAR,QAAA,eAEF9C,IAAA,CAACN,SAAS;YACRmB,aAAa,EAAEA,aAAc;YAC7BC,gBAAgB,EAAEA,gBAAiB;YACnCoC,KAAK,EAAE;cACLK,QAAQ,EAAE,MAAM;cAChBF,KAAK,EAAE,MAAM;cACbG,SAAS,EAAE;YACb,CAAE;YACFC,aAAa,EAAE;UAAM,CACtB;QAAC,CACY,CAAC,eACjBvD,KAAA,CAACZ,cAAc;UAAAwD,QAAA,gBACb9C,IAAA,CAACP,MAAM;YACLwD,OAAO,EAAE/B,gBAAiB;YAC1BwC,IAAI,EAAC,QAAQ;YACbR,KAAK,EAAE;cAAEG,KAAK,EAAE;YAAO,CAAE;YACzBL,QAAQ;YACRD,OAAO,EAAC;UAAU,CACnB,CAAC,EACDtC,OAAO,gBACNT,IAAA,CAACL,MAAM,IAAE,CAAC,gBAEVK,IAAA,CAACP,MAAM;YACLwD,OAAO,EAAE9B,SAAU;YACnBuC,IAAI,EAAC,KAAK;YACVR,KAAK,EAAE;cAAEG,KAAK,EAAE;YAAO,CAAE;YACzBL,QAAQ;YACRD,OAAO,EAAC;UAAQ,CACjB,CACF;QAAA,CACa,CAAC;MAAA,CACH;IAAC,CACF,CAClB;EAAA,CACD,CAAC;AAEP,CAAC;AAED,eAAe1C,gBAAgB","ignoreList":[]}
|
|
@@ -8,6 +8,7 @@ import styled from 'styled-components/native';
|
|
|
8
8
|
import { InfoIcon } from '../../../../assets/icons';
|
|
9
9
|
import { SharedSettingsCenterContainer, SharedSettingsColumnContainer, SharedSettingsInfoPanel, SharedSettingsInfoText, SharedSettingsLabelData, SharedSettingsSectionContainer, SharedSettingsStyledButton, SharedSettingsStyledLabel } from '../SharedStyledComponents';
|
|
10
10
|
import { View } from 'react-native';
|
|
11
|
+
import { useTheme } from '../../../../hooks/useTheme';
|
|
11
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
13
|
const InfoPanel = styled.View`
|
|
13
14
|
background-color: "#F3F6FC";
|
|
@@ -22,6 +23,7 @@ const ManageDataModal = ({
|
|
|
22
23
|
const {
|
|
23
24
|
config
|
|
24
25
|
} = useSelector(state => state.chatSettingStore);
|
|
26
|
+
const theme = useTheme();
|
|
25
27
|
const handleDownloadClick = async () => {
|
|
26
28
|
// const exportedData = await getExportMyData();
|
|
27
29
|
// const binaryData = exportedData.data;
|
|
@@ -53,10 +55,10 @@ const ManageDataModal = ({
|
|
|
53
55
|
children: "You own your data. Tap the button below to download a copy of your data"
|
|
54
56
|
})]
|
|
55
57
|
}), /*#__PURE__*/_jsx(SharedSettingsStyledButton, {
|
|
56
|
-
borderColor:
|
|
58
|
+
borderColor: theme.primary,
|
|
57
59
|
onPress: handleDownloadClick,
|
|
58
60
|
text: "Download your data",
|
|
59
|
-
color:
|
|
61
|
+
color: theme.primary
|
|
60
62
|
})]
|
|
61
63
|
}), /*#__PURE__*/_jsxs(SharedSettingsColumnContainer, {
|
|
62
64
|
children: [/*#__PURE__*/_jsxs(SharedSettingsSectionContainer, {
|
|
@@ -66,18 +68,18 @@ const ManageDataModal = ({
|
|
|
66
68
|
children: "Use this only if you want to permanently delete your account & data from our system."
|
|
67
69
|
})]
|
|
68
70
|
}), /*#__PURE__*/_jsxs(SharedSettingsInfoPanel, {
|
|
69
|
-
bgColor: config?.colors?.secondary ||
|
|
71
|
+
bgColor: config?.colors?.secondary || theme.surfaceHighlight,
|
|
70
72
|
children: [/*#__PURE__*/_jsx(View, {
|
|
71
73
|
children: /*#__PURE__*/_jsx(InfoIcon, {
|
|
72
|
-
color:
|
|
74
|
+
color: theme.primary
|
|
73
75
|
})
|
|
74
76
|
}), /*#__PURE__*/_jsx(SharedSettingsInfoText, {
|
|
75
77
|
children: "Due to the immutable nature of distributed ledger technology, network nodes operated by the community may still retain historical transactions generated by your account, however your personally identifiable information such as your name, e-mail, your key-value storage etc will be removed. Any of your digital assets will be lost."
|
|
76
78
|
})]
|
|
77
79
|
}), /*#__PURE__*/_jsx(SharedSettingsStyledButton, {
|
|
78
|
-
borderColor:
|
|
80
|
+
borderColor: theme.danger,
|
|
79
81
|
text: "Delete My Account",
|
|
80
|
-
color:
|
|
82
|
+
color: theme.danger
|
|
81
83
|
})]
|
|
82
84
|
})]
|
|
83
85
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","LabelData","ModalContainerFullScreen","ModalHeaderComponent","useSelector","styled","InfoIcon","SharedSettingsCenterContainer","SharedSettingsColumnContainer","SharedSettingsInfoPanel","SharedSettingsInfoText","SharedSettingsLabelData","SharedSettingsSectionContainer","SharedSettingsStyledButton","SharedSettingsStyledLabel","View","jsx","_jsx","jsxs","_jsxs","InfoPanel","ManageDataModal","handleCloseModal","config","state","chatSettingStore","handleDownloadClick","children","headerTitle","style","fontSize","textAlign","borderColor","
|
|
1
|
+
{"version":3,"names":["React","LabelData","ModalContainerFullScreen","ModalHeaderComponent","useSelector","styled","InfoIcon","SharedSettingsCenterContainer","SharedSettingsColumnContainer","SharedSettingsInfoPanel","SharedSettingsInfoText","SharedSettingsLabelData","SharedSettingsSectionContainer","SharedSettingsStyledButton","SharedSettingsStyledLabel","View","useTheme","jsx","_jsx","jsxs","_jsxs","InfoPanel","ManageDataModal","handleCloseModal","config","state","chatSettingStore","theme","handleDownloadClick","children","headerTitle","style","fontSize","textAlign","borderColor","primary","onPress","text","color","bgColor","colors","secondary","surfaceHighlight","danger"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/ManageDataModal/ManageDataModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,SAAS,EACTC,wBAAwB,QACnB,6BAA6B;AACpC,OAAOC,oBAAoB,MAAM,4BAA4B;AAC7D,SAASC,WAAW,QAAQ,aAAa;AAEzC,OAA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B,CAAC,eACjCX,IAAA,CAACL,0BAA0B;UACzBqB,WAAW,EAAEP,KAAK,CAACQ,OAAQ;UAC3BC,OAAO,EAAER,mBAAoB;UAC7BS,IAAI,EAAC,oBAAoB;UACzBC,KAAK,EAAEX,KAAK,CAACQ;QAAQ,CACtB,CAAC;MAAA,CAC2B,CAAC,eAChCf,KAAA,CAACZ,6BAA6B;QAAAqB,QAAA,gBAC5BT,KAAA,CAACR,8BAA8B;UAAAiB,QAAA,gBAC7BX,IAAA,CAACJ,yBAAyB;YAAAe,QAAA,EAAC;UAE3B,CAA2B,CAAC,eAC5BX,IAAA,CAACP,uBAAuB;YAAAkB,QAAA,EAAC;UAGzB,CAAyB,CAAC;QAAA,CACI,CAAC,eACjCT,KAAA,CAACX,uBAAuB;UACtB8B,OAAO,EAAEf,MAAM,EAAEgB,MAAM,EAAEC,SAAS,IAAId,KAAK,CAACe,gBAAiB;UAAAb,QAAA,gBAE7DX,IAAA,CAACH,IAAI;YAAAc,QAAA,eACHX,IAAA,CAACZ,QAAQ;cAACgC,KAAK,EAAEX,KAAK,CAACQ;YAAQ,CAAE;UAAC,CAC9B,CAAC,eACPjB,IAAA,CAACR,sBAAsB;YAAAmB,QAAA,EAAC;UAOxB,CAAwB,CAAC;QAAA,CACF,CAAC,eAC1BX,IAAA,CAACL,0BAA0B;UACzBqB,WAAW,EAAEP,KAAK,CAACgB,MAAO;UAC1BN,IAAI,EAAC,mBAAmB;UACxBC,KAAK,EAAEX,KAAK,CAACgB;QAAO,CACrB,CAAC;MAAA,CAC2B,CAAC;IAAA,CACH,CAAC;EAAA,CACR,CAAC;AAE/B,CAAC;AAED,eAAerB,eAAe","ignoreList":[]}
|
|
@@ -9,6 +9,7 @@ import { StyledInput } from '../../../styled/StyledInputComponents/StyledInputCo
|
|
|
9
9
|
import { useSelector } from 'react-redux';
|
|
10
10
|
import { Text } from 'react-native';
|
|
11
11
|
import Animated from 'react-native-reanimated';
|
|
12
|
+
import { useTheme } from '../../../../hooks/useTheme';
|
|
12
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
14
|
const ReferralsModal = ({
|
|
14
15
|
handleCloseModal
|
|
@@ -16,6 +17,7 @@ const ReferralsModal = ({
|
|
|
16
17
|
const {
|
|
17
18
|
config
|
|
18
19
|
} = useSelector(state => state.chatSettingStore);
|
|
20
|
+
const theme = useTheme();
|
|
19
21
|
return /*#__PURE__*/_jsxs(ModalContainerFullScreen, {
|
|
20
22
|
children: [/*#__PURE__*/_jsx(ModalHeaderComponent, {
|
|
21
23
|
handleCloseModal: handleCloseModal,
|
|
@@ -37,6 +39,9 @@ const ReferralsModal = ({
|
|
|
37
39
|
height: 24
|
|
38
40
|
}
|
|
39
41
|
}), /*#__PURE__*/_jsx(Text, {
|
|
42
|
+
style: {
|
|
43
|
+
color: theme.text
|
|
44
|
+
},
|
|
40
45
|
children: "."
|
|
41
46
|
}), /*#__PURE__*/_jsx(SharedSettingsStyledLabel, {
|
|
42
47
|
children: "Send friends invite with your personal invitation code."
|
|
@@ -48,7 +53,7 @@ const ReferralsModal = ({
|
|
|
48
53
|
children: [/*#__PURE__*/_jsx(SharedSettingsStyledLabel, {
|
|
49
54
|
children: "Your invitation code"
|
|
50
55
|
}), /*#__PURE__*/_jsx(StyledInput, {
|
|
51
|
-
color: config?.colors?.primary ||
|
|
56
|
+
color: config?.colors?.primary || theme.primary,
|
|
52
57
|
placeholder: "Your invitation code"
|
|
53
58
|
// label={'About'}
|
|
54
59
|
// value={message}
|
|
@@ -65,7 +70,7 @@ const ReferralsModal = ({
|
|
|
65
70
|
children: [/*#__PURE__*/_jsx(SharedSettingsStyledLabel, {
|
|
66
71
|
children: "Or enter your referral code to earn coins"
|
|
67
72
|
}), /*#__PURE__*/_jsx(StyledInput, {
|
|
68
|
-
color: config?.colors?.primary ||
|
|
73
|
+
color: config?.colors?.primary || theme.primary,
|
|
69
74
|
placeholder: "Your referral code"
|
|
70
75
|
// label={'About'}
|
|
71
76
|
// value={message}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ModalContainerFullScreen","CenterContainer","ModalHeaderComponent","ReferalsIcon","SendCoinIcon","SharedSettingsColumnContainer","SharedSettingsStyledLabel","StyledInput","useSelector","Text","Animated","jsx","_jsx","jsxs","_jsxs","ReferralsModal","handleCloseModal","config","state","chatSettingStore","children","headerTitle","View","style","width","height","color","colors","primary","placeholder"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/Referrals/Referrals.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SACEC,wBAAwB,EAKxBC,eAAe,QACV,6BAA6B;AACpC,OAAOC,oBAAoB,MAAM,4BAA4B;AAE7D,SAASC,YAAY,EAAEC,YAAY,QAAQ,0BAA0B;AACrE,SAEEC,6BAA6B,EAC7BC,yBAAyB,QACpB,2BAA2B;AAElC,SAASC,WAAW,QAAQ,6DAA6D;AACzF,SAASC,WAAW,QAAQ,aAAa;AAEzC,SAAeC,IAAI,QAAQ,cAAc;AACzC,OAAOC,QAAQ,MAAM,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["React","ModalContainerFullScreen","CenterContainer","ModalHeaderComponent","ReferalsIcon","SendCoinIcon","SharedSettingsColumnContainer","SharedSettingsStyledLabel","StyledInput","useSelector","Text","Animated","useTheme","jsx","_jsx","jsxs","_jsxs","ReferralsModal","handleCloseModal","config","state","chatSettingStore","theme","children","headerTitle","View","style","width","height","color","text","colors","primary","placeholder"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/Referrals/Referrals.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SACEC,wBAAwB,EAKxBC,eAAe,QACV,6BAA6B;AACpC,OAAOC,oBAAoB,MAAM,4BAA4B;AAE7D,SAASC,YAAY,EAAEC,YAAY,QAAQ,0BAA0B;AACrE,SAEEC,6B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T,IAAA,CAACP,yBAAyB;UAAAgB,QAAA,EAAC;QAE3B,CAA2B,CAAC;MAAA,CACf,CAAC,eAChBP,KAAA,CAACV,6BAA6B;QAACoB,KAAK,EAAE;UAAEC,KAAK,EAAE;QAAO,CAAE;QAAAJ,QAAA,gBACtDT,IAAA,CAACP,yBAAyB;UAAAgB,QAAA,EAAC;QAE3B,CAA2B,CAAC,eAC5BT,IAAA,CAACN,WAAW;UACJqB,KAAK,EAAEV,MAAM,EAAEY,MAAM,EAAEC,OAAO,IAAIV,KAAK,CAACU,OAAO;UACrDC,WAAW,EAAC;UACZ;UACA;UACA;UACA;UACA;UACA;UACA;QAAA,CACD,CAAC;MAAA,CAC2B,CAAC,eAChCjB,KAAA,CAACV,6BAA6B;QAACoB,KAAK,EAAE;UAAEC,KAAK,EAAE;QAAO,CAAE;QAAAJ,QAAA,gBACtDT,IAAA,CAACP,yBAAyB;UAAAgB,QAAA,EAAC;QAE3B,CAA2B,CAAC,eAC5BT,IAAA,CAACN,WAAW;UACJqB,KAAK,EAAEV,MAAM,EAAEY,MAAM,EAAEC,OAAO,IAAIV,KAAK,CAACU,OAAO;UACrDC,WAAW,EAAC;UACZ;UACA;UACA;UACA;UACA;UACA;UACA;QAAA,CACD,CAAC;MAAA,CAC2B,CAAC;IAAA,CACjB,CAAC;EAAA,CACM,CAAC;AAE/B,CAAC;AAED,eAAehB,cAAc","ignoreList":[]}
|
|
@@ -35,7 +35,9 @@ export const RowWrapper = styled.View`
|
|
|
35
35
|
export const SharedSettingsLabelData = styled(Label)`
|
|
36
36
|
font-size: 12px;
|
|
37
37
|
text-align: start;
|
|
38
|
-
color:
|
|
38
|
+
color: ${({
|
|
39
|
+
theme
|
|
40
|
+
}) => theme.textSecondary};
|
|
39
41
|
`;
|
|
40
42
|
export const SharedSettingsStyledButton = styled(Button)`
|
|
41
43
|
min-height: 40px;
|
|
@@ -56,14 +58,16 @@ export const SharedSettingsInfoPanel = styled.View`
|
|
|
56
58
|
align-items: flex-start;
|
|
57
59
|
background-color: ${({
|
|
58
60
|
bgColor
|
|
59
|
-
}) => bgColor};
|
|
61
|
+
}) => bgColor || 'transparent'};
|
|
60
62
|
padding: 16px;
|
|
61
63
|
border-radius: 8px;
|
|
62
64
|
gap: 8px;
|
|
63
65
|
`;
|
|
64
66
|
export const SharedSettingsInfoText = styled.Text`
|
|
65
67
|
font-size: 12px;
|
|
66
|
-
color:
|
|
68
|
+
color: ${({
|
|
69
|
+
theme
|
|
70
|
+
}) => theme.text};
|
|
67
71
|
display: flex;
|
|
68
72
|
text-align: start;
|
|
69
73
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["styled","CenterContainer","Label","Button","SharedSettingsCenterContainer","SharedSettingsColumnContainer","View","SharedSettingsSectionContainer","SharedSettingsStyledLabel","RowWrapper","SharedSettingsLabelData","SharedSettingsStyledButton","borderColor","SharedSettingsInfoPanel","bgColor","SharedSettingsInfoText","Text"],"sourceRoot":"../../../../../src","sources":["components/Modals/SettingsModals/SharedStyledComponents.ts"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,0BAA0B;AAC7C,SAAQC,eAAe,EAAEC,KAAK,QAAO,0BAA0B;AAC/D,OAAOC,MAAM,MAAM,qBAAqB;AAExC,OAAO,MAAMC,6BAA6B,GAAGJ,MAAM,CAACC,eAAe,CAAC;AACpE;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMI,6BAA6B,GAAGL,MAAM,CAACM,IAAI;AACxD;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,8BAA8B,GAAGP,MAAM,CAACM,IAAI;AACzD;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAME,yBAAyB,GAAGR,MAAM,CAACE,KAAK,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMO,UAAU,GAAGT,MAAM,CAACM,IAAI;AACrC;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMI,uBAAuB,GAAGV,MAAM,CAACE,KAAK,CAAC;AACpD;AACA;AACA;
|
|
1
|
+
{"version":3,"names":["styled","CenterContainer","Label","Button","SharedSettingsCenterContainer","SharedSettingsColumnContainer","View","SharedSettingsSectionContainer","SharedSettingsStyledLabel","RowWrapper","SharedSettingsLabelData","theme","textSecondary","SharedSettingsStyledButton","borderColor","SharedSettingsInfoPanel","bgColor","SharedSettingsInfoText","Text","text"],"sourceRoot":"../../../../../src","sources":["components/Modals/SettingsModals/SharedStyledComponents.ts"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,0BAA0B;AAC7C,SAAQC,eAAe,EAAEC,KAAK,QAAO,0BAA0B;AAC/D,OAAOC,MAAM,MAAM,qBAAqB;AAExC,OAAO,MAAMC,6BAA6B,GAAGJ,MAAM,CAACC,eAAe,CAAC;AACpE;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMI,6BAA6B,GAAGL,MAAM,CAACM,IAAI;AACxD;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,8BAA8B,GAAGP,MAAM,CAACM,IAAI;AACzD;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAME,yBAAyB,GAAGR,MAAM,CAACE,KAAK,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMO,UAAU,GAAGT,MAAM,CAACM,IAAI;AACrC;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMI,uBAAuB,GAAGV,MAAM,CAACE,KAAK,CAAC;AACpD;AACA;AACA,WAAW,CAAC;EAACS;AAAK,CAAC,KAAKA,KAAK,CAACC,aAAa;AAC3C,CAAC;AAED,OAAO,MAAMC,0BAA0B,GAAGb,MAAM,CAACG,MAAM,CAErD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,CAAC;EAACW;AAAW,CAAC,KAAKA,WAAW;AACpD,CAAC;AAED,OAAO,MAAMC,uBAAuB,GAAGf,MAAM,CAACM,IAAwB;AACtE;AACA;AACA,sBAAsB,CAAC;EAACU;AAAO,CAAC,KAAKA,OAAO,IAAI,aAAa;AAC7D;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,sBAAsB,GAAGjB,MAAM,CAACkB,IAAI;AACjD;AACA,WAAW,CAAC;EAACP;AAAK,CAAC,KAAKA,KAAK,CAACQ,IAAI;AAClC;AACA;AACA,CAAC","ignoreList":[]}
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
5
|
+
import { useTheme } from '../../../../hooks/useTheme';
|
|
5
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
7
|
export const RadioInput = ({
|
|
7
8
|
option,
|
|
8
9
|
checked,
|
|
9
10
|
onChange,
|
|
10
|
-
radioColor
|
|
11
|
+
radioColor
|
|
11
12
|
}) => {
|
|
13
|
+
const theme = useTheme();
|
|
14
|
+
const color = radioColor || theme.primary;
|
|
12
15
|
return /*#__PURE__*/_jsx(View, {
|
|
13
16
|
style: styles.container,
|
|
14
17
|
children: /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
@@ -16,11 +19,13 @@ export const RadioInput = ({
|
|
|
16
19
|
onPress: () => onChange(option.value),
|
|
17
20
|
children: [/*#__PURE__*/_jsx(View, {
|
|
18
21
|
style: [styles.radioCircle, {
|
|
19
|
-
borderColor:
|
|
20
|
-
backgroundColor: checked ?
|
|
22
|
+
borderColor: color,
|
|
23
|
+
backgroundColor: checked ? color : 'transparent'
|
|
21
24
|
}]
|
|
22
25
|
}), /*#__PURE__*/_jsx(Text, {
|
|
23
|
-
style: styles.radioLabel,
|
|
26
|
+
style: [styles.radioLabel, {
|
|
27
|
+
color: theme.text
|
|
28
|
+
}],
|
|
24
29
|
children: option.label
|
|
25
30
|
})]
|
|
26
31
|
}, option.label)
|
|
@@ -43,8 +48,7 @@ const styles = StyleSheet.create({
|
|
|
43
48
|
marginRight: 10
|
|
44
49
|
},
|
|
45
50
|
radioLabel: {
|
|
46
|
-
fontSize: 16
|
|
47
|
-
color: '#333'
|
|
51
|
+
fontSize: 16
|
|
48
52
|
}
|
|
49
53
|
});
|
|
50
54
|
//# sourceMappingURL=RadioInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","TouchableOpacity","StyleSheet","jsx","_jsx","jsxs","_jsxs","RadioInput","option","checked","onChange","radioColor","style","styles","container","children","radioContainer","onPress","value","radioCircle","borderColor","backgroundColor","radioLabel","label","create","flexDirection","alignItems","marginBottom","width","height","borderRadius","borderWidth","marginRight","fontSize"
|
|
1
|
+
{"version":3,"names":["React","View","Text","TouchableOpacity","StyleSheet","useTheme","jsx","_jsx","jsxs","_jsxs","RadioInput","option","checked","onChange","radioColor","theme","color","primary","style","styles","container","children","radioContainer","onPress","value","radioCircle","borderColor","backgroundColor","radioLabel","text","label","create","flexDirection","alignItems","marginBottom","width","height","borderRadius","borderWidth","marginRight","fontSize"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/Visibility/RadioInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AACvE,SAASC,QAAQ,QAAQ,4BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAStD,OAAO,MAAMC,UAAqC,GAAGA,CAAC;EACpDC,MAAM;EACNC,OAAO;EACPC,QAAQ;EACRC;AACF,CAAC,KAAK;EACJ,MAAMC,KAAK,GAAGV,QAAQ,CAAC,CAAC;EACxB,MAAMW,KAAK,GAAGF,UAAU,IAAIC,KAAK,CAACE,OAAO;EACzC,oBACEV,IAAA,CAACN,IAAI;IAACiB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5BZ,KAAA,CAACN,gBAAgB;MAEfe,KAAK,EAAEC,MAAM,CAACG,cAAe;MAC7BC,OAAO,EAAEA,CAAA,KAAMV,QAAQ,CAACF,MAAM,CAACa,KAAK,CAAE;MAAAH,QAAA,gBAEtCd,IAAA,CAACN,IAAI;QACHiB,KAAK,EAAE,CACLC,MAAM,CAACM,WAAW,EAClB;UACEC,WAAW,EAAEV,KAAK;UAClBW,eAAe,EAAEf,OAAO,GAAGI,KAAK,GAAG;QACrC,CAAC;MACD,CACH,CAAC,eACFT,IAAA,CAACL,IAAI;QAACgB,KAAK,EAAE,CAACC,MAAM,CAACS,UAAU,EAAE;UAAEZ,KAAK,EAAED,KAAK,CAACc;QAAK,CAAC,CAAE;QAAAR,QAAA,EACrDV,MAAM,CAACmB;MAAK,CACT,CAAC;IAAA,GAfFnB,MAAM,CAACmB,KAgBI;EAAC,CACf,CAAC;AAEX,CAAC;AAED,MAAMX,MAAM,GAAGf,UAAU,CAAC2B,MAAM,CAAC;EAC/BX,SAAS,EAAE;IACTY,aAAa,EAAE;EACjB,CAAC;EACDV,cAAc,EAAE;IACdU,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,YAAY,EAAE;EAChB,CAAC;EACDT,WAAW,EAAE;IACXU,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE;EACf,CAAC;EACDX,UAAU,EAAE;IACVY,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -10,15 +10,16 @@ import { updateMe } from '../../../../networking/api-requests/user.api';
|
|
|
10
10
|
import { ModalContainerFullScreen } from '../../styledModalComponents';
|
|
11
11
|
import { SharedSettingsCenterContainer, SharedSettingsColumnContainer, SharedSettingsLabelData, SharedSettingsStyledLabel } from '../SharedStyledComponents';
|
|
12
12
|
import { RadioInput } from './RadioInput';
|
|
13
|
+
import { useTheme } from '../../../../hooks/useTheme';
|
|
13
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
15
|
const VisibilityModal = ({
|
|
15
16
|
handleCloseModal
|
|
16
17
|
}) => {
|
|
17
18
|
const dispatch = useDispatch();
|
|
18
19
|
const {
|
|
19
|
-
user
|
|
20
|
-
config
|
|
20
|
+
user
|
|
21
21
|
} = useSelector(state => state.chatSettingStore);
|
|
22
|
+
const theme = useTheme();
|
|
22
23
|
const doUpdateUser = user => dispatch(setUser(user));
|
|
23
24
|
const [isProfileOpen, setIsProfileOpen] = useState(user?.isProfileOpen);
|
|
24
25
|
const [isAssetsOpen, setIsAssetsOpen] = useState(user?.isAssetsOpen);
|
|
@@ -69,7 +70,7 @@ const VisibilityModal = ({
|
|
|
69
70
|
label: 'Open (default)',
|
|
70
71
|
value: isProfileOpen
|
|
71
72
|
},
|
|
72
|
-
radioColor:
|
|
73
|
+
radioColor: theme.primary,
|
|
73
74
|
checked: isProfileOpen === true,
|
|
74
75
|
onChange: () => setIsProfileOpen(true)
|
|
75
76
|
})
|
|
@@ -81,7 +82,7 @@ const VisibilityModal = ({
|
|
|
81
82
|
label: 'Restricted',
|
|
82
83
|
value: isProfileOpen
|
|
83
84
|
},
|
|
84
|
-
radioColor:
|
|
85
|
+
radioColor: theme.primary,
|
|
85
86
|
checked: isProfileOpen === false,
|
|
86
87
|
onChange: () => setIsProfileOpen(false)
|
|
87
88
|
})
|
|
@@ -99,7 +100,7 @@ const VisibilityModal = ({
|
|
|
99
100
|
label: 'Full (default)',
|
|
100
101
|
value: isAssetsOpen
|
|
101
102
|
},
|
|
102
|
-
radioColor:
|
|
103
|
+
radioColor: theme.primary,
|
|
103
104
|
checked: isAssetsOpen === true,
|
|
104
105
|
onChange: () => setIsAssetsOpen(true)
|
|
105
106
|
})
|
|
@@ -111,7 +112,7 @@ const VisibilityModal = ({
|
|
|
111
112
|
label: 'InViewidual',
|
|
112
113
|
value: isAssetsOpen
|
|
113
114
|
},
|
|
114
|
-
radioColor:
|
|
115
|
+
radioColor: theme.primary,
|
|
115
116
|
checked: isAssetsOpen === false,
|
|
116
117
|
onChange: () => setIsAssetsOpen(false)
|
|
117
118
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useState","RadioGroup","RadioLabel","ModalHeaderComponent","useDispatch","useSelector","setUser","Notification","updateMe","ModalContainerFullScreen","SharedSettingsCenterContainer","SharedSettingsColumnContainer","SharedSettingsLabelData","SharedSettingsStyledLabel","RadioInput","jsx","_jsx","jsxs","_jsxs","VisibilityModal","handleCloseModal","dispatch","user","
|
|
1
|
+
{"version":3,"names":["useEffect","useState","RadioGroup","RadioLabel","ModalHeaderComponent","useDispatch","useSelector","setUser","Notification","updateMe","ModalContainerFullScreen","SharedSettingsCenterContainer","SharedSettingsColumnContainer","SharedSettingsLabelData","SharedSettingsStyledLabel","RadioInput","useTheme","jsx","_jsx","jsxs","_jsxs","VisibilityModal","handleCloseModal","dispatch","user","state","chatSettingStore","theme","doUpdateUser","isProfileOpen","setIsProfileOpen","isAssetsOpen","setIsAssetsOpen","notification","setNotification","showNotification","message","type","setTimeout","then","data","catch","children","headerTitle","option","label","value","radioColor","primary","checked","onChange"],"sourceRoot":"../../../../../../src","sources":["components/Modals/SettingsModals/Visibility/VisibilityModal.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,UAAU,EAAEC,UAAU,QAAQ,oBAAoB;AAC3D,OAAOC,oBAAoB,MAAM,4BAA4B;AAC7D,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AAEtD,SAASC,OAAO,QAAQ,yCAAyC;AACjE,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,QAAQ,QAAQ,8CAA8C;AAEvE,SAASC,wBAAwB,QAAQ,6BAA6B;AACtE,SACEC,6BAA6B,EAC7BC,6BAA6B,EAC7BC,uBAAuB,EACvBC,yBAAyB,QACpB,2BAA2B;AAClC,SAASC,UAAU,QAAQ,cAAc;AACzC,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