@kesha-antonov/react-native-chat 5.0.0 → 6.0.0
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/README.md +533 -179
- package/lib/Actions.d.ts.map +1 -1
- package/lib/Actions.js +121 -42
- package/lib/Actions.js.map +1 -1
- package/lib/Avatar.d.ts.map +1 -1
- package/lib/Avatar.js +171 -86
- package/lib/Avatar.js.map +1 -1
- package/lib/Bubble/BubbleBody.d.ts +15 -0
- package/lib/Bubble/BubbleBody.d.ts.map +1 -0
- package/lib/Bubble/BubbleBody.js +218 -0
- package/lib/Bubble/BubbleBody.js.map +1 -0
- package/lib/Bubble/BubbleContent.d.ts +23 -0
- package/lib/Bubble/BubbleContent.d.ts.map +1 -0
- package/lib/Bubble/BubbleContent.js +446 -0
- package/lib/Bubble/BubbleContent.js.map +1 -0
- package/lib/Bubble/BubbleMenu.d.ts +45 -0
- package/lib/Bubble/BubbleMenu.d.ts.map +1 -0
- package/lib/Bubble/BubbleMenu.js +289 -0
- package/lib/Bubble/BubbleMenu.js.map +1 -0
- package/lib/Bubble/BubbleMeta.d.ts +17 -0
- package/lib/Bubble/BubbleMeta.d.ts.map +1 -0
- package/lib/Bubble/BubbleMeta.js +453 -0
- package/lib/Bubble/BubbleMeta.js.map +1 -0
- package/lib/Bubble/LiftedBubble.d.ts +18 -0
- package/lib/Bubble/LiftedBubble.d.ts.map +1 -0
- package/lib/Bubble/LiftedBubble.js +109 -0
- package/lib/Bubble/LiftedBubble.js.map +1 -0
- package/lib/Bubble/PressableBubbleRow.d.ts +33 -0
- package/lib/Bubble/PressableBubbleRow.d.ts.map +1 -0
- package/lib/Bubble/PressableBubbleRow.js +172 -0
- package/lib/Bubble/PressableBubbleRow.js.map +1 -0
- package/lib/Bubble/index.d.ts +6 -0
- package/lib/Bubble/index.d.ts.map +1 -1
- package/lib/Bubble/index.js +380 -494
- package/lib/Bubble/index.js.map +1 -1
- package/lib/Bubble/layout.d.ts +47 -0
- package/lib/Bubble/layout.d.ts.map +1 -0
- package/lib/Bubble/layout.js +258 -0
- package/lib/Bubble/layout.js.map +1 -0
- package/lib/Bubble/styles.d.ts +108 -16
- package/lib/Bubble/styles.d.ts.map +1 -1
- package/lib/Bubble/styles.js +227 -107
- package/lib/Bubble/styles.js.map +1 -1
- package/lib/Bubble/types.d.ts +19 -3
- package/lib/Bubble/types.d.ts.map +1 -1
- package/lib/Bubble/types.js.map +1 -1
- package/lib/Chat/Chat.d.ts +5 -0
- package/lib/Chat/Chat.d.ts.map +1 -0
- package/lib/Chat/Chat.js +464 -0
- package/lib/Chat/Chat.js.map +1 -0
- package/lib/Chat/ChatBackground.d.ts +16 -0
- package/lib/Chat/ChatBackground.d.ts.map +1 -0
- package/lib/Chat/ChatBackground.js +43 -0
- package/lib/Chat/ChatBackground.js.map +1 -0
- package/lib/Chat/ChatKeyboardAvoidingView.js +19 -4
- package/lib/Chat/ChatKeyboardAvoidingView.js.map +1 -1
- package/lib/Chat/ChatMessageList.d.ts +27 -0
- package/lib/Chat/ChatMessageList.d.ts.map +1 -0
- package/lib/Chat/ChatMessageList.js +220 -0
- package/lib/Chat/ChatMessageList.js.map +1 -0
- package/lib/Chat/ChatProviders.d.ts +18 -0
- package/lib/Chat/ChatProviders.d.ts.map +1 -0
- package/lib/Chat/ChatProviders.js +87 -0
- package/lib/Chat/ChatProviders.js.map +1 -0
- package/lib/Chat/ChatSafeAreaProvider.d.ts +35 -0
- package/lib/Chat/ChatSafeAreaProvider.d.ts.map +1 -0
- package/lib/Chat/ChatSafeAreaProvider.js +123 -0
- package/lib/Chat/ChatSafeAreaProvider.js.map +1 -0
- package/lib/Chat/ChatSelectionBar.d.ts +20 -0
- package/lib/Chat/ChatSelectionBar.d.ts.map +1 -0
- package/lib/Chat/ChatSelectionBar.js +141 -0
- package/lib/Chat/ChatSelectionBar.js.map +1 -0
- package/lib/Chat/ChatWrapper.d.ts +11 -0
- package/lib/Chat/ChatWrapper.d.ts.map +1 -0
- package/lib/Chat/ChatWrapper.js +98 -0
- package/lib/Chat/ChatWrapper.js.map +1 -0
- package/lib/Chat/ComposerHost.d.ts +20 -0
- package/lib/Chat/ComposerHost.d.ts.map +1 -0
- package/lib/Chat/ComposerHost.js +118 -0
- package/lib/Chat/ComposerHost.js.map +1 -0
- package/lib/Chat/index.d.ts +1 -8
- package/lib/Chat/index.d.ts.map +1 -1
- package/lib/Chat/index.js +1 -337
- package/lib/Chat/index.js.map +1 -1
- package/lib/Chat/styles.d.ts +14 -2
- package/lib/Chat/styles.d.ts.map +1 -1
- package/lib/Chat/styles.js +19 -9
- package/lib/Chat/styles.js.map +1 -1
- package/lib/Chat/types.d.ts +145 -11
- package/lib/Chat/types.d.ts.map +1 -1
- package/lib/Chat/types.js.map +1 -1
- package/lib/Chat/useChatContextValue.d.ts +19 -0
- package/lib/Chat/useChatContextValue.d.ts.map +1 -0
- package/lib/Chat/useChatContextValue.js +158 -0
- package/lib/Chat/useChatContextValue.js.map +1 -0
- package/lib/Chat/useChatMedia.d.ts +22 -0
- package/lib/Chat/useChatMedia.d.ts.map +1 -0
- package/lib/Chat/useChatMedia.js +127 -0
- package/lib/Chat/useChatMedia.js.map +1 -0
- package/lib/Chat/useChatSelection.d.ts +15 -0
- package/lib/Chat/useChatSelection.d.ts.map +1 -0
- package/lib/Chat/useChatSelection.js +106 -0
- package/lib/Chat/useChatSelection.js.map +1 -0
- package/lib/Chat/useComposerHandlers.d.ts +34 -0
- package/lib/Chat/useComposerHandlers.d.ts.map +1 -0
- package/lib/Chat/useComposerHandlers.js +330 -0
- package/lib/Chat/useComposerHandlers.js.map +1 -0
- package/lib/Chat/useComposerState.d.ts +27 -0
- package/lib/Chat/useComposerState.d.ts.map +1 -0
- package/lib/Chat/useComposerState.js +272 -0
- package/lib/Chat/useComposerState.js.map +1 -0
- package/lib/Chat/useInitialLayout.d.ts +19 -0
- package/lib/Chat/useInitialLayout.d.ts.map +1 -0
- package/lib/Chat/useInitialLayout.js +70 -0
- package/lib/Chat/useInitialLayout.js.map +1 -0
- package/lib/Chat/useMessageActions.d.ts +37 -0
- package/lib/Chat/useMessageActions.d.ts.map +1 -0
- package/lib/Chat/useMessageActions.js +323 -0
- package/lib/Chat/useMessageActions.js.map +1 -0
- package/lib/Chat/useMessageNavigation.d.ts +21 -0
- package/lib/Chat/useMessageNavigation.d.ts.map +1 -0
- package/lib/Chat/useMessageNavigation.js +149 -0
- package/lib/Chat/useMessageNavigation.js.map +1 -0
- package/lib/Chat/useOptionalPeerHints.d.ts +6 -0
- package/lib/Chat/useOptionalPeerHints.d.ts.map +1 -0
- package/lib/Chat/useOptionalPeerHints.js +63 -0
- package/lib/Chat/useOptionalPeerHints.js.map +1 -0
- package/lib/Chat/useResolvedReactions.d.ts +31 -0
- package/lib/Chat/useResolvedReactions.d.ts.map +1 -0
- package/lib/Chat/useResolvedReactions.js +95 -0
- package/lib/Chat/useResolvedReactions.js.map +1 -0
- package/lib/ChatAvatar.d.ts.map +1 -1
- package/lib/ChatAvatar.js +229 -84
- package/lib/ChatAvatar.js.map +1 -1
- package/lib/ChatContext.js +20 -10
- package/lib/ChatContext.js.map +1 -1
- package/lib/ChatList/ChatListAvatar.d.ts +21 -0
- package/lib/ChatList/ChatListAvatar.d.ts.map +1 -0
- package/lib/ChatList/ChatListAvatar.js +178 -0
- package/lib/ChatList/ChatListAvatar.js.map +1 -0
- package/lib/ChatList/ChatListCell.d.ts +16 -0
- package/lib/ChatList/ChatListCell.d.ts.map +1 -0
- package/lib/ChatList/ChatListCell.js +506 -0
- package/lib/ChatList/ChatListCell.js.map +1 -0
- package/lib/ChatList/ChatListShimmer.d.ts +3 -0
- package/lib/ChatList/ChatListShimmer.d.ts.map +1 -0
- package/lib/ChatList/ChatListShimmer.js +235 -0
- package/lib/ChatList/ChatListShimmer.js.map +1 -0
- package/lib/ChatList/index.d.ts +16 -0
- package/lib/ChatList/index.d.ts.map +1 -0
- package/lib/ChatList/index.js +1301 -0
- package/lib/ChatList/index.js.map +1 -0
- package/lib/ChatList/types.d.ts +128 -0
- package/lib/ChatList/types.d.ts.map +1 -0
- package/lib/ChatList/types.js +2 -0
- package/lib/ChatList/types.js.map +1 -0
- package/lib/ChatList/useChatList.d.ts +30 -0
- package/lib/ChatList/useChatList.d.ts.map +1 -0
- package/lib/ChatList/useChatList.js +211 -0
- package/lib/ChatList/useChatList.js.map +1 -0
- package/lib/ChatList/utils.d.ts +28 -0
- package/lib/ChatList/utils.d.ts.map +1 -0
- package/lib/ChatList/utils.js +60 -0
- package/lib/ChatList/utils.js.map +1 -0
- package/lib/Color.js +19 -19
- package/lib/Color.js.map +1 -1
- package/lib/Composer.d.ts.map +1 -1
- package/lib/Composer.js +148 -70
- package/lib/Composer.js.map +1 -1
- package/lib/Constant.js +4 -4
- package/lib/Constant.js.map +1 -1
- package/lib/Day/index.d.ts.map +1 -1
- package/lib/Day/index.js +115 -28
- package/lib/Day/index.js.map +1 -1
- package/lib/Day/styles.d.ts +3 -3
- package/lib/Day/styles.d.ts.map +1 -1
- package/lib/Day/styles.js +20 -17
- package/lib/Day/styles.js.map +1 -1
- package/lib/Day/types.js.map +1 -1
- package/lib/Icons.d.ts +1 -1
- package/lib/Icons.d.ts.map +1 -1
- package/lib/Icons.js.map +1 -1
- package/lib/InputToolbar/FieldGroup.d.ts +28 -0
- package/lib/InputToolbar/FieldGroup.d.ts.map +1 -0
- package/lib/InputToolbar/FieldGroup.js +143 -0
- package/lib/InputToolbar/FieldGroup.js.map +1 -0
- package/lib/InputToolbar/TakePreviewBar.d.ts +17 -0
- package/lib/InputToolbar/TakePreviewBar.d.ts.map +1 -0
- package/lib/InputToolbar/TakePreviewBar.js +126 -0
- package/lib/InputToolbar/TakePreviewBar.js.map +1 -0
- package/lib/InputToolbar/animations.d.ts +105 -0
- package/lib/InputToolbar/animations.d.ts.map +1 -0
- package/lib/InputToolbar/animations.js +238 -0
- package/lib/InputToolbar/animations.js.map +1 -0
- package/lib/InputToolbar/fragments.d.ts +13 -0
- package/lib/InputToolbar/fragments.d.ts.map +1 -0
- package/lib/InputToolbar/fragments.js +207 -0
- package/lib/InputToolbar/fragments.js.map +1 -0
- package/lib/InputToolbar/index.d.ts +7 -0
- package/lib/InputToolbar/index.d.ts.map +1 -0
- package/lib/InputToolbar/index.js +444 -0
- package/lib/InputToolbar/index.js.map +1 -0
- package/lib/InputToolbar/recordingOptions.d.ts +14 -0
- package/lib/InputToolbar/recordingOptions.d.ts.map +1 -0
- package/lib/InputToolbar/recordingOptions.js +38 -0
- package/lib/InputToolbar/recordingOptions.js.map +1 -0
- package/lib/InputToolbar/styles.d.ts +118 -0
- package/lib/InputToolbar/styles.d.ts.map +1 -0
- package/lib/InputToolbar/styles.js +139 -0
- package/lib/InputToolbar/styles.js.map +1 -0
- package/lib/InputToolbar/types.d.ts +77 -0
- package/lib/InputToolbar/types.d.ts.map +1 -0
- package/lib/InputToolbar/types.js +2 -0
- package/lib/InputToolbar/types.js.map +1 -0
- package/lib/InputToolbar/useActionsFragment.d.ts +6 -0
- package/lib/InputToolbar/useActionsFragment.d.ts.map +1 -0
- package/lib/InputToolbar/useActionsFragment.js +139 -0
- package/lib/InputToolbar/useActionsFragment.js.map +1 -0
- package/lib/InputToolbar/useComposerEditing.d.ts +11 -0
- package/lib/InputToolbar/useComposerEditing.d.ts.map +1 -0
- package/lib/InputToolbar/useComposerEditing.js +116 -0
- package/lib/InputToolbar/useComposerEditing.js.map +1 -0
- package/lib/InputToolbar/useEmojiButton.d.ts +14 -0
- package/lib/InputToolbar/useEmojiButton.d.ts.map +1 -0
- package/lib/InputToolbar/useEmojiButton.js +120 -0
- package/lib/InputToolbar/useEmojiButton.js.map +1 -0
- package/lib/InputToolbar/useKeyboardInset.d.ts +9 -0
- package/lib/InputToolbar/useKeyboardInset.d.ts.map +1 -0
- package/lib/InputToolbar/useKeyboardInset.js +25 -0
- package/lib/InputToolbar/useKeyboardInset.js.map +1 -0
- package/lib/InputToolbar/useRecordMode.d.ts +19 -0
- package/lib/InputToolbar/useRecordMode.d.ts.map +1 -0
- package/lib/InputToolbar/useRecordMode.js +124 -0
- package/lib/InputToolbar/useRecordMode.js.map +1 -0
- package/lib/InputToolbar/useRecordTake.d.ts +46 -0
- package/lib/InputToolbar/useRecordTake.d.ts.map +1 -0
- package/lib/InputToolbar/useRecordTake.js +315 -0
- package/lib/InputToolbar/useRecordTake.js.map +1 -0
- package/lib/InputToolbar/useReturnAnimations.d.ts +18 -0
- package/lib/InputToolbar/useReturnAnimations.d.ts.map +1 -0
- package/lib/InputToolbar/useReturnAnimations.js +30 -0
- package/lib/InputToolbar/useReturnAnimations.js.map +1 -0
- package/lib/InputToolbar/useRightControl.d.ts +40 -0
- package/lib/InputToolbar/useRightControl.d.ts.map +1 -0
- package/lib/InputToolbar/useRightControl.js +129 -0
- package/lib/InputToolbar/useRightControl.js.map +1 -0
- package/lib/LoadEarlierMessages.d.ts +2 -0
- package/lib/LoadEarlierMessages.d.ts.map +1 -1
- package/lib/LoadEarlierMessages.js +153 -40
- package/lib/LoadEarlierMessages.js.map +1 -1
- package/lib/Message/SwipeToReply.d.ts +23 -0
- package/lib/Message/SwipeToReply.d.ts.map +1 -0
- package/lib/Message/SwipeToReply.js +337 -0
- package/lib/Message/SwipeToReply.js.map +1 -0
- package/lib/Message/index.d.ts.map +1 -1
- package/lib/Message/index.js +415 -176
- package/lib/Message/index.js.map +1 -1
- package/lib/Message/styles.d.ts +2 -2
- package/lib/Message/styles.js +14 -14
- package/lib/Message/styles.js.map +1 -1
- package/lib/Message/types.d.ts +5 -0
- package/lib/Message/types.d.ts.map +1 -1
- package/lib/Message/types.js.map +1 -1
- package/lib/MessageAudio.d.ts.map +1 -1
- package/lib/MessageAudio.js +647 -107
- package/lib/MessageAudio.js.map +1 -1
- package/lib/MessageFile.d.ts +11 -0
- package/lib/MessageFile.d.ts.map +1 -0
- package/lib/MessageFile.js +315 -0
- package/lib/MessageFile.js.map +1 -0
- package/lib/MessageImage.d.ts +2 -0
- package/lib/MessageImage.d.ts.map +1 -1
- package/lib/MessageImage.js +430 -156
- package/lib/MessageImage.js.map +1 -1
- package/lib/MessageLocation.d.ts.map +1 -1
- package/lib/MessageLocation.js +180 -68
- package/lib/MessageLocation.js.map +1 -1
- package/lib/MessageText.d.ts +8 -1
- package/lib/MessageText.d.ts.map +1 -1
- package/lib/MessageText.js +261 -69
- package/lib/MessageText.js.map +1 -1
- package/lib/MessageVideo/ExpoVideoPlayer.d.ts +6 -0
- package/lib/MessageVideo/ExpoVideoPlayer.d.ts.map +1 -0
- package/lib/MessageVideo/ExpoVideoPlayer.js +68 -0
- package/lib/MessageVideo/ExpoVideoPlayer.js.map +1 -0
- package/lib/MessageVideo/MirroredVideo.d.ts +17 -0
- package/lib/MessageVideo/MirroredVideo.d.ts.map +1 -0
- package/lib/MessageVideo/MirroredVideo.js +223 -0
- package/lib/MessageVideo/MirroredVideo.js.map +1 -0
- package/lib/MessageVideo/RoundNotePlayer.d.ts +4 -0
- package/lib/MessageVideo/RoundNotePlayer.d.ts.map +1 -0
- package/lib/MessageVideo/RoundNotePlayer.js +560 -0
- package/lib/MessageVideo/RoundNotePlayer.js.map +1 -0
- package/lib/MessageVideo/RoundTranscription.d.ts +27 -0
- package/lib/MessageVideo/RoundTranscription.d.ts.map +1 -0
- package/lib/MessageVideo/RoundTranscription.js +151 -0
- package/lib/MessageVideo/RoundTranscription.js.map +1 -0
- package/lib/MessageVideo/VideoTransferOverlay.d.ts +11 -0
- package/lib/MessageVideo/VideoTransferOverlay.d.ts.map +1 -0
- package/lib/MessageVideo/VideoTransferOverlay.js +88 -0
- package/lib/MessageVideo/VideoTransferOverlay.js.map +1 -0
- package/lib/MessageVideo/constants.d.ts +13 -0
- package/lib/MessageVideo/constants.d.ts.map +1 -0
- package/lib/MessageVideo/constants.js +15 -0
- package/lib/MessageVideo/constants.js.map +1 -0
- package/lib/{MessageVideo.d.ts → MessageVideo/index.d.ts} +2 -2
- package/lib/MessageVideo/index.d.ts.map +1 -0
- package/lib/MessageVideo/index.js +92 -0
- package/lib/MessageVideo/index.js.map +1 -0
- package/lib/MessageVideo/liftedMedia.d.ts +13 -0
- package/lib/MessageVideo/liftedMedia.d.ts.map +1 -0
- package/lib/MessageVideo/liftedMedia.js +106 -0
- package/lib/MessageVideo/liftedMedia.js.map +1 -0
- package/lib/MessageVideo/styles.d.ts +71 -0
- package/lib/MessageVideo/styles.d.ts.map +1 -0
- package/lib/MessageVideo/styles.js +78 -0
- package/lib/MessageVideo/styles.js.map +1 -0
- package/lib/MessageVideo/types.d.ts +27 -0
- package/lib/MessageVideo/types.d.ts.map +1 -0
- package/lib/MessageVideo/types.js +2 -0
- package/lib/MessageVideo/types.js.map +1 -0
- package/lib/MessageVideo/useNoteGrow.d.ts +16 -0
- package/lib/MessageVideo/useNoteGrow.d.ts.map +1 -0
- package/lib/MessageVideo/useNoteGrow.js +122 -0
- package/lib/MessageVideo/useNoteGrow.js.map +1 -0
- package/lib/MessageVideo/useNotePlayer.d.ts +14 -0
- package/lib/MessageVideo/useNotePlayer.d.ts.map +1 -0
- package/lib/MessageVideo/useNotePlayer.js +142 -0
- package/lib/MessageVideo/useNotePlayer.js.map +1 -0
- package/lib/MessageVideo/useRingSeek.d.ts +16 -0
- package/lib/MessageVideo/useRingSeek.d.ts.map +1 -0
- package/lib/MessageVideo/useRingSeek.js +157 -0
- package/lib/MessageVideo/useRingSeek.js.map +1 -0
- package/lib/MessageVideo/useRoundNotePlayback.d.ts +46 -0
- package/lib/MessageVideo/useRoundNotePlayback.d.ts.map +1 -0
- package/lib/MessageVideo/useRoundNotePlayback.js +508 -0
- package/lib/MessageVideo/useRoundNotePlayback.js.map +1 -0
- package/lib/MessageVideo/useSendFlightReveal.d.ts +9 -0
- package/lib/MessageVideo/useSendFlightReveal.d.ts.map +1 -0
- package/lib/MessageVideo/useSendFlightReveal.js +85 -0
- package/lib/MessageVideo/useSendFlightReveal.js.map +1 -0
- package/lib/MessageVideo/videoPlayers.d.ts +8 -0
- package/lib/MessageVideo/videoPlayers.d.ts.map +1 -0
- package/lib/MessageVideo/videoPlayers.js +33 -0
- package/lib/MessageVideo/videoPlayers.js.map +1 -0
- package/lib/MessagesContainer/components/DayAnimated/debug.js +38 -24
- package/lib/MessagesContainer/components/DayAnimated/debug.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.d.ts +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.js +244 -112
- package/lib/MessagesContainer/components/DayAnimated/index.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/styles.d.ts +3 -3
- package/lib/MessagesContainer/components/DayAnimated/styles.js +8 -8
- package/lib/MessagesContainer/components/DayAnimated/styles.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/types.d.ts +4 -2
- package/lib/MessagesContainer/components/DayAnimated/types.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/types.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.js +34 -25
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.js.map +1 -1
- package/lib/MessagesContainer/components/Item/index.d.ts +3 -4
- package/lib/MessagesContainer/components/Item/index.d.ts.map +1 -1
- package/lib/MessagesContainer/components/Item/index.js +290 -99
- package/lib/MessagesContainer/components/Item/index.js.map +1 -1
- package/lib/MessagesContainer/components/Item/types.d.ts +5 -0
- package/lib/MessagesContainer/components/Item/types.d.ts.map +1 -1
- package/lib/MessagesContainer/components/Item/types.js.map +1 -1
- package/lib/MessagesContainer/components/PageDownCounter.d.ts +14 -0
- package/lib/MessagesContainer/components/PageDownCounter.d.ts.map +1 -0
- package/lib/MessagesContainer/components/PageDownCounter.js +209 -0
- package/lib/MessagesContainer/components/PageDownCounter.js.map +1 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.d.ts +21 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.d.ts.map +1 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.js +195 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.js.map +1 -0
- package/lib/MessagesContainer/components/dayLayout.d.ts +2 -2
- package/lib/MessagesContainer/components/dayLayout.d.ts.map +1 -1
- package/lib/MessagesContainer/components/dayLayout.js +18 -13
- package/lib/MessagesContainer/components/dayLayout.js.map +1 -1
- package/lib/MessagesContainer/index.d.ts.map +1 -1
- package/lib/MessagesContainer/index.js +361 -420
- package/lib/MessagesContainer/index.js.map +1 -1
- package/lib/MessagesContainer/listState.d.ts +18 -0
- package/lib/MessagesContainer/listState.d.ts.map +1 -0
- package/lib/MessagesContainer/listState.js +25 -0
- package/lib/MessagesContainer/listState.js.map +1 -0
- package/lib/MessagesContainer/listTransitions.d.ts +10 -0
- package/lib/MessagesContainer/listTransitions.d.ts.map +1 -0
- package/lib/MessagesContainer/listTransitions.js +12 -0
- package/lib/MessagesContainer/listTransitions.js.map +1 -0
- package/lib/MessagesContainer/pageDownReturn.d.ts +11 -0
- package/lib/MessagesContainer/pageDownReturn.d.ts.map +1 -0
- package/lib/MessagesContainer/pageDownReturn.js +9 -0
- package/lib/MessagesContainer/pageDownReturn.js.map +1 -0
- package/lib/MessagesContainer/rowConfig.d.ts +39 -0
- package/lib/MessagesContainer/rowConfig.d.ts.map +1 -0
- package/lib/MessagesContainer/rowConfig.js +161 -0
- package/lib/MessagesContainer/rowConfig.js.map +1 -0
- package/lib/MessagesContainer/rowStore.d.ts +37 -0
- package/lib/MessagesContainer/rowStore.d.ts.map +1 -0
- package/lib/MessagesContainer/rowStore.js +140 -0
- package/lib/MessagesContainer/rowStore.js.map +1 -0
- package/lib/MessagesContainer/styles.d.ts +37 -31
- package/lib/MessagesContainer/styles.d.ts.map +1 -1
- package/lib/MessagesContainer/styles.js +75 -54
- package/lib/MessagesContainer/styles.js.map +1 -1
- package/lib/MessagesContainer/types.d.ts +33 -30
- package/lib/MessagesContainer/types.d.ts.map +1 -1
- package/lib/MessagesContainer/types.js +1 -9
- package/lib/MessagesContainer/types.js.map +1 -1
- package/lib/MessagesContainer/useCellLayouts.d.ts +17 -0
- package/lib/MessagesContainer/useCellLayouts.d.ts.map +1 -0
- package/lib/MessagesContainer/useCellLayouts.js +133 -0
- package/lib/MessagesContainer/useCellLayouts.js.map +1 -0
- package/lib/MessagesContainer/useDaysPositions.d.ts +18 -0
- package/lib/MessagesContainer/useDaysPositions.d.ts.map +1 -0
- package/lib/MessagesContainer/useDaysPositions.js +109 -0
- package/lib/MessagesContainer/useDaysPositions.js.map +1 -0
- package/lib/MessagesContainer/useListChrome.d.ts +14 -0
- package/lib/MessagesContainer/useListChrome.d.ts.map +1 -0
- package/lib/MessagesContainer/useListChrome.js +176 -0
- package/lib/MessagesContainer/useListChrome.js.map +1 -0
- package/lib/MessagesContainer/useListMetrics.d.ts +32 -0
- package/lib/MessagesContainer/useListMetrics.d.ts.map +1 -0
- package/lib/MessagesContainer/useListMetrics.js +176 -0
- package/lib/MessagesContainer/useListMetrics.js.map +1 -0
- package/lib/MessagesContainer/useMessageRows.d.ts +46 -0
- package/lib/MessagesContainer/useMessageRows.d.ts.map +1 -0
- package/lib/MessagesContainer/useMessageRows.js +228 -0
- package/lib/MessagesContainer/useMessageRows.js.map +1 -0
- package/lib/MessagesContainer/usePageDownUnread.d.ts +27 -0
- package/lib/MessagesContainer/usePageDownUnread.d.ts.map +1 -0
- package/lib/MessagesContainer/usePageDownUnread.js +152 -0
- package/lib/MessagesContainer/usePageDownUnread.js.map +1 -0
- package/lib/MessagesContainer/useScrollActivity.d.ts +13 -0
- package/lib/MessagesContainer/useScrollActivity.d.ts.map +1 -0
- package/lib/MessagesContainer/useScrollActivity.js +84 -0
- package/lib/MessagesContainer/useScrollActivity.js.map +1 -0
- package/lib/MessagesContainer/useScrollToBottom.d.ts +26 -0
- package/lib/MessagesContainer/useScrollToBottom.d.ts.map +1 -0
- package/lib/MessagesContainer/useScrollToBottom.js +164 -0
- package/lib/MessagesContainer/useScrollToBottom.js.map +1 -0
- package/lib/MessagesContainer/useTapToClosePanels.d.ts +7 -0
- package/lib/MessagesContainer/useTapToClosePanels.d.ts.map +1 -0
- package/lib/MessagesContainer/useTapToClosePanels.js +55 -0
- package/lib/MessagesContainer/useTapToClosePanels.js.map +1 -0
- package/lib/MessagesContainer/viewability.d.ts +9 -0
- package/lib/MessagesContainer/viewability.d.ts.map +1 -0
- package/lib/MessagesContainer/viewability.js +110 -0
- package/lib/MessagesContainer/viewability.js.map +1 -0
- package/lib/Models.d.ts +188 -3
- package/lib/Models.d.ts.map +1 -1
- package/lib/Models.js.map +1 -1
- package/lib/QuickReplies.js +234 -101
- package/lib/QuickReplies.js.map +1 -1
- package/lib/Reactions/MessageReactions.d.ts +5 -0
- package/lib/Reactions/MessageReactions.d.ts.map +1 -1
- package/lib/Reactions/MessageReactions.js +359 -80
- package/lib/Reactions/MessageReactions.js.map +1 -1
- package/lib/Reactions/ReactionPicker.d.ts +5 -3
- package/lib/Reactions/ReactionPicker.d.ts.map +1 -1
- package/lib/Reactions/ReactionPicker.js +68 -82
- package/lib/Reactions/ReactionPicker.js.map +1 -1
- package/lib/Reactions/index.js +1 -0
- package/lib/Reactions/index.js.map +1 -1
- package/lib/Reactions/types.d.ts +49 -5
- package/lib/Reactions/types.d.ts.map +1 -1
- package/lib/Reactions/types.js.map +1 -1
- package/lib/Reply/index.js.map +1 -1
- package/lib/Reply/types.d.ts +19 -3
- package/lib/Reply/types.d.ts.map +1 -1
- package/lib/Reply/types.js.map +1 -1
- package/lib/Send.d.ts +2 -2
- package/lib/Send.d.ts.map +1 -1
- package/lib/Send.js +218 -47
- package/lib/Send.js.map +1 -1
- package/lib/SystemMessage.d.ts.map +1 -1
- package/lib/SystemMessage.js +106 -37
- package/lib/SystemMessage.js.map +1 -1
- package/lib/Theme.d.ts +320 -23
- package/lib/Theme.d.ts.map +1 -1
- package/lib/Theme.js +548 -119
- package/lib/Theme.js.map +1 -1
- package/lib/Time.d.ts +7 -0
- package/lib/Time.d.ts.map +1 -1
- package/lib/Time.js +122 -30
- package/lib/Time.js.map +1 -1
- package/lib/TypingIndicator/index.d.ts +9 -1
- package/lib/TypingIndicator/index.d.ts.map +1 -1
- package/lib/TypingIndicator/index.js +318 -94
- package/lib/TypingIndicator/index.js.map +1 -1
- package/lib/TypingIndicator/styles.d.ts +6 -2
- package/lib/TypingIndicator/styles.d.ts.map +1 -1
- package/lib/TypingIndicator/styles.js +22 -18
- package/lib/TypingIndicator/styles.js.map +1 -1
- package/lib/TypingIndicator/types.js.map +1 -1
- package/lib/attachments/AttachmentButton.d.ts +18 -0
- package/lib/attachments/AttachmentButton.d.ts.map +1 -0
- package/lib/attachments/AttachmentButton.js +110 -0
- package/lib/attachments/AttachmentButton.js.map +1 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.d.ts +15 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.js +165 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.js.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.js +267 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.js.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.d.ts +18 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.js +184 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabBar.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/TabBar.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabBar.js +127 -0
- package/lib/attachments/AttachmentMenu/TabBar.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabButton.d.ts +15 -0
- package/lib/attachments/AttachmentMenu/TabButton.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabButton.js +219 -0
- package/lib/attachments/AttachmentMenu/TabButton.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabPanel.d.ts +17 -0
- package/lib/attachments/AttachmentMenu/TabPanel.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabPanel.js +170 -0
- package/lib/attachments/AttachmentMenu/TabPanel.js.map +1 -0
- package/lib/attachments/AttachmentMenu/constants.d.ts +54 -0
- package/lib/attachments/AttachmentMenu/constants.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/constants.js +79 -0
- package/lib/attachments/AttachmentMenu/constants.js.map +1 -0
- package/lib/attachments/AttachmentMenu/index.d.ts +16 -0
- package/lib/attachments/AttachmentMenu/index.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/index.js +498 -0
- package/lib/attachments/AttachmentMenu/index.js.map +1 -0
- package/lib/attachments/AttachmentMenu/styles.d.ts +259 -0
- package/lib/attachments/AttachmentMenu/styles.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/styles.js +262 -0
- package/lib/attachments/AttachmentMenu/styles.js.map +1 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.js +74 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.js.map +1 -0
- package/lib/attachments/buildMessages.d.ts +36 -0
- package/lib/attachments/buildMessages.d.ts.map +1 -0
- package/lib/attachments/buildMessages.js +192 -0
- package/lib/attachments/buildMessages.js.map +1 -0
- package/lib/attachments/gallery.d.ts +28 -0
- package/lib/attachments/gallery.d.ts.map +1 -0
- package/lib/attachments/gallery.js +245 -0
- package/lib/attachments/gallery.js.map +1 -0
- package/lib/attachments/types.d.ts +69 -0
- package/lib/attachments/types.d.ts.map +1 -0
- package/lib/attachments/types.js +2 -0
- package/lib/attachments/types.js.map +1 -0
- package/lib/colorUtils.d.ts +24 -0
- package/lib/colorUtils.d.ts.map +1 -0
- package/lib/colorUtils.js +71 -0
- package/lib/colorUtils.js.map +1 -0
- package/lib/components/AttachmentSheet.d.ts +1 -1
- package/lib/components/AttachmentSheet.d.ts.map +1 -1
- package/lib/components/AttachmentSheet.js +515 -155
- package/lib/components/AttachmentSheet.js.map +1 -1
- package/lib/components/BasicMarkdown.d.ts +7 -1
- package/lib/components/BasicMarkdown.d.ts.map +1 -1
- package/lib/components/BasicMarkdown.js +234 -184
- package/lib/components/BasicMarkdown.js.map +1 -1
- package/lib/components/BubbleBackground.d.ts +55 -0
- package/lib/components/BubbleBackground.d.ts.map +1 -0
- package/lib/components/BubbleBackground.js +513 -0
- package/lib/components/BubbleBackground.js.map +1 -0
- package/lib/components/ChatEmpty.d.ts +18 -0
- package/lib/components/ChatEmpty.d.ts.map +1 -0
- package/lib/components/ChatEmpty.js +125 -0
- package/lib/components/ChatEmpty.js.map +1 -0
- package/lib/components/ChatLoadingOverlay.d.ts +10 -0
- package/lib/components/ChatLoadingOverlay.d.ts.map +1 -0
- package/lib/components/ChatLoadingOverlay.js +89 -0
- package/lib/components/ChatLoadingOverlay.js.map +1 -0
- package/lib/components/ChatOverlay.d.ts +9 -0
- package/lib/components/ChatOverlay.d.ts.map +1 -0
- package/lib/components/ChatOverlay.js +60 -0
- package/lib/components/ChatOverlay.js.map +1 -0
- package/lib/components/ChatWallpaper.d.ts +32 -0
- package/lib/components/ChatWallpaper.d.ts.map +1 -0
- package/lib/components/ChatWallpaper.js +277 -0
- package/lib/components/ChatWallpaper.js.map +1 -0
- package/lib/components/ContextMenu/MenuCard.d.ts +21 -0
- package/lib/components/ContextMenu/MenuCard.d.ts.map +1 -0
- package/lib/components/ContextMenu/MenuCard.js +265 -0
- package/lib/components/ContextMenu/MenuCard.js.map +1 -0
- package/lib/components/ContextMenu/ReactionButton.d.ts +15 -0
- package/lib/components/ContextMenu/ReactionButton.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionButton.js +116 -0
- package/lib/components/ContextMenu/ReactionButton.js.map +1 -0
- package/lib/components/ContextMenu/ReactionFlight.d.ts +14 -0
- package/lib/components/ContextMenu/ReactionFlight.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionFlight.js +111 -0
- package/lib/components/ContextMenu/ReactionFlight.js.map +1 -0
- package/lib/components/ContextMenu/ReactionsBar.d.ts +35 -0
- package/lib/components/ContextMenu/ReactionsBar.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionsBar.js +354 -0
- package/lib/components/ContextMenu/ReactionsBar.js.map +1 -0
- package/lib/components/ContextMenu/constants.d.ts +68 -0
- package/lib/components/ContextMenu/constants.d.ts.map +1 -0
- package/lib/components/ContextMenu/constants.js +105 -0
- package/lib/components/ContextMenu/constants.js.map +1 -0
- package/lib/components/ContextMenu/index.d.ts +12 -0
- package/lib/components/ContextMenu/index.d.ts.map +1 -0
- package/lib/components/ContextMenu/index.js +476 -0
- package/lib/components/ContextMenu/index.js.map +1 -0
- package/lib/components/ContextMenu/placement.d.ts +50 -0
- package/lib/components/ContextMenu/placement.d.ts.map +1 -0
- package/lib/components/ContextMenu/placement.js +117 -0
- package/lib/components/ContextMenu/placement.js.map +1 -0
- package/lib/components/ContextMenu/styles.d.ts +199 -0
- package/lib/components/ContextMenu/styles.d.ts.map +1 -0
- package/lib/components/ContextMenu/styles.js +169 -0
- package/lib/components/ContextMenu/styles.js.map +1 -0
- package/lib/components/ContextMenu/types.d.ts +62 -0
- package/lib/components/ContextMenu/types.d.ts.map +1 -0
- package/lib/components/ContextMenu/types.js +2 -0
- package/lib/components/ContextMenu/types.js.map +1 -0
- package/lib/components/ContextMenu/useExpandPanel.d.ts +11 -0
- package/lib/components/ContextMenu/useExpandPanel.d.ts.map +1 -0
- package/lib/components/ContextMenu/useExpandPanel.js +81 -0
- package/lib/components/ContextMenu/useExpandPanel.js.map +1 -0
- package/lib/components/ContextMenu/useMenuPresence.d.ts +17 -0
- package/lib/components/ContextMenu/useMenuPresence.d.ts.map +1 -0
- package/lib/components/ContextMenu/useMenuPresence.js +125 -0
- package/lib/components/ContextMenu/useMenuPresence.js.map +1 -0
- package/lib/components/FloatingRoundNote.d.ts +13 -0
- package/lib/components/FloatingRoundNote.d.ts.map +1 -0
- package/lib/components/FloatingRoundNote.js +541 -0
- package/lib/components/FloatingRoundNote.js.map +1 -0
- package/lib/components/GlassSurface.d.ts +16 -0
- package/lib/components/GlassSurface.d.ts.map +1 -0
- package/lib/components/GlassSurface.js +114 -0
- package/lib/components/GlassSurface.js.map +1 -0
- package/lib/components/Icon.js +57 -8
- package/lib/components/Icon.js.map +1 -1
- package/lib/components/LinkPreviewCard.d.ts +36 -0
- package/lib/components/LinkPreviewCard.d.ts.map +1 -0
- package/lib/components/LinkPreviewCard.js +416 -0
- package/lib/components/LinkPreviewCard.js.map +1 -0
- package/lib/components/LucideIcon.d.ts.map +1 -1
- package/lib/components/LucideIcon.js +103 -106
- package/lib/components/LucideIcon.js.map +1 -1
- package/lib/components/MarkdownMessageText.d.ts +17 -2
- package/lib/components/MarkdownMessageText.d.ts.map +1 -1
- package/lib/components/MarkdownMessageText.js +270 -22
- package/lib/components/MarkdownMessageText.js.map +1 -1
- package/lib/components/MediaCard.d.ts.map +1 -1
- package/lib/components/MediaCard.js +223 -85
- package/lib/components/MediaCard.js.map +1 -1
- package/lib/components/MediaControls.js +1094 -450
- package/lib/components/MediaControls.js.map +1 -1
- package/lib/components/MediaLoader.d.ts +21 -0
- package/lib/components/MediaLoader.d.ts.map +1 -0
- package/lib/components/MediaLoader.js +61 -0
- package/lib/components/MediaLoader.js.map +1 -0
- package/lib/components/MessageReply.d.ts +2 -2
- package/lib/components/MessageReply.d.ts.map +1 -1
- package/lib/components/MessageReply.js +266 -83
- package/lib/components/MessageReply.js.map +1 -1
- package/lib/components/MessageStatus.d.ts +23 -0
- package/lib/components/MessageStatus.d.ts.map +1 -0
- package/lib/components/MessageStatus.js +499 -0
- package/lib/components/MessageStatus.js.map +1 -0
- package/lib/components/NoteIndicators.d.ts +25 -0
- package/lib/components/NoteIndicators.d.ts.map +1 -0
- package/lib/components/NoteIndicators.js +206 -0
- package/lib/components/NoteIndicators.js.map +1 -0
- package/lib/components/NowPlayingBar.d.ts +15 -0
- package/lib/components/NowPlayingBar.d.ts.map +1 -0
- package/lib/components/NowPlayingBar.js +261 -0
- package/lib/components/NowPlayingBar.js.map +1 -0
- package/lib/components/PlayPauseIcon.d.ts +13 -0
- package/lib/components/PlayPauseIcon.d.ts.map +1 -0
- package/lib/components/PlayPauseIcon.js +187 -0
- package/lib/components/PlayPauseIcon.js.map +1 -0
- package/lib/components/PlaybackSpeedPill.d.ts +11 -0
- package/lib/components/PlaybackSpeedPill.d.ts.map +1 -0
- package/lib/components/PlaybackSpeedPill.js +350 -0
- package/lib/components/PlaybackSpeedPill.js.map +1 -0
- package/lib/components/RadialProgress.d.ts +70 -0
- package/lib/components/RadialProgress.d.ts.map +1 -0
- package/lib/components/RadialProgress.js +864 -0
- package/lib/components/RadialProgress.js.map +1 -0
- package/lib/components/RecordButton/LockPill.d.ts +27 -0
- package/lib/components/RecordButton/LockPill.d.ts.map +1 -0
- package/lib/components/RecordButton/LockPill.js +182 -0
- package/lib/components/RecordButton/LockPill.js.map +1 -0
- package/lib/components/RecordButton/ModeButton.d.ts +18 -0
- package/lib/components/RecordButton/ModeButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ModeButton.js +154 -0
- package/lib/components/RecordButton/ModeButton.js.map +1 -0
- package/lib/components/RecordButton/ResumeButton.d.ts +20 -0
- package/lib/components/RecordButton/ResumeButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ResumeButton.js +63 -0
- package/lib/components/RecordButton/ResumeButton.js.map +1 -0
- package/lib/components/RecordButton/Tooltips.d.ts +20 -0
- package/lib/components/RecordButton/Tooltips.d.ts.map +1 -0
- package/lib/components/RecordButton/Tooltips.js +191 -0
- package/lib/components/RecordButton/Tooltips.js.map +1 -0
- package/lib/components/RecordButton/ViewOnceButton.d.ts +16 -0
- package/lib/components/RecordButton/ViewOnceButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ViewOnceButton.js +96 -0
- package/lib/components/RecordButton/ViewOnceButton.js.map +1 -0
- package/lib/components/RecordButton/constants.d.ts +52 -0
- package/lib/components/RecordButton/constants.d.ts.map +1 -0
- package/lib/components/RecordButton/constants.js +58 -0
- package/lib/components/RecordButton/constants.js.map +1 -0
- package/lib/components/RecordButton/index.d.ts +14 -0
- package/lib/components/RecordButton/index.d.ts.map +1 -0
- package/lib/components/RecordButton/index.js +382 -0
- package/lib/components/RecordButton/index.js.map +1 -0
- package/lib/components/RecordButton/styles.d.ts +155 -0
- package/lib/components/RecordButton/styles.d.ts.map +1 -0
- package/lib/components/RecordButton/styles.js +161 -0
- package/lib/components/RecordButton/styles.js.map +1 -0
- package/lib/components/RecordButton/types.d.ts +63 -0
- package/lib/components/RecordButton/types.d.ts.map +1 -0
- package/lib/components/RecordButton/types.js +2 -0
- package/lib/components/RecordButton/types.js.map +1 -0
- package/lib/components/RecordButton/useRecordGesture.d.ts +28 -0
- package/lib/components/RecordButton/useRecordGesture.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordGesture.js +263 -0
- package/lib/components/RecordButton/useRecordGesture.js.map +1 -0
- package/lib/components/RecordButton/useRecordHints.d.ts +27 -0
- package/lib/components/RecordButton/useRecordHints.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordHints.js +210 -0
- package/lib/components/RecordButton/useRecordHints.js.map +1 -0
- package/lib/components/RecordButton/useRecordSlideDistance.d.ts +3 -0
- package/lib/components/RecordButton/useRecordSlideDistance.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordSlideDistance.js +15 -0
- package/lib/components/RecordButton/useRecordSlideDistance.js.map +1 -0
- package/lib/components/RecordButton/useRecordTake.d.ts +41 -0
- package/lib/components/RecordButton/useRecordTake.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordTake.js +349 -0
- package/lib/components/RecordButton/useRecordTake.js.map +1 -0
- package/lib/components/RecordButton/useSendFlight.d.ts +25 -0
- package/lib/components/RecordButton/useSendFlight.d.ts.map +1 -0
- package/lib/components/RecordButton/useSendFlight.js +162 -0
- package/lib/components/RecordButton/useSendFlight.js.map +1 -0
- package/lib/components/RecordCircle.d.ts +92 -0
- package/lib/components/RecordCircle.d.ts.map +1 -0
- package/lib/components/RecordCircle.js +629 -0
- package/lib/components/RecordCircle.js.map +1 -0
- package/lib/components/RecordingBar.d.ts +24 -0
- package/lib/components/RecordingBar.d.ts.map +1 -0
- package/lib/components/RecordingBar.js +766 -0
- package/lib/components/RecordingBar.js.map +1 -0
- package/lib/components/ReplyPreview.js +318 -135
- package/lib/components/ReplyPreview.js.map +1 -1
- package/lib/components/SelectionBar.d.ts +17 -0
- package/lib/components/SelectionBar.d.ts.map +1 -0
- package/lib/components/SelectionBar.js +214 -0
- package/lib/components/SelectionBar.js.map +1 -0
- package/lib/components/SelectionCheckbox.d.ts +12 -0
- package/lib/components/SelectionCheckbox.d.ts.map +1 -0
- package/lib/components/SelectionCheckbox.js +104 -0
- package/lib/components/SelectionCheckbox.js.map +1 -0
- package/lib/components/SendIcon.js +60 -26
- package/lib/components/SendIcon.js.map +1 -1
- package/lib/components/ServiceSpinner.d.ts +17 -0
- package/lib/components/ServiceSpinner.d.ts.map +1 -0
- package/lib/components/ServiceSpinner.js +77 -0
- package/lib/components/ServiceSpinner.js.map +1 -0
- package/lib/components/Spinner.d.ts +18 -0
- package/lib/components/Spinner.d.ts.map +1 -0
- package/lib/components/Spinner.js +169 -0
- package/lib/components/Spinner.js.map +1 -0
- package/lib/components/StreamingCursor.js +54 -9
- package/lib/components/StreamingCursor.js.map +1 -1
- package/lib/components/Ticks.d.ts +6 -5
- package/lib/components/Ticks.d.ts.map +1 -1
- package/lib/components/Ticks.js +272 -82
- package/lib/components/Ticks.js.map +1 -1
- package/lib/components/TouchableOpacity.d.ts.map +1 -1
- package/lib/components/TouchableOpacity.js +154 -48
- package/lib/components/TouchableOpacity.js.map +1 -1
- package/lib/components/TranscribeButton.d.ts +45 -0
- package/lib/components/TranscribeButton.d.ts.map +1 -0
- package/lib/components/TranscribeButton.js +549 -0
- package/lib/components/TranscribeButton.js.map +1 -0
- package/lib/components/TypingStatus.d.ts +29 -0
- package/lib/components/TypingStatus.d.ts.map +1 -0
- package/lib/components/TypingStatus.js +446 -0
- package/lib/components/TypingStatus.js.map +1 -0
- package/lib/components/UnreadSeparator.d.ts +8 -0
- package/lib/components/UnreadSeparator.d.ts.map +1 -0
- package/lib/components/UnreadSeparator.js +101 -0
- package/lib/components/UnreadSeparator.js.map +1 -0
- package/lib/components/VideoNoteCapture/ProgressRing.d.ts +16 -0
- package/lib/components/VideoNoteCapture/ProgressRing.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/ProgressRing.js +75 -0
- package/lib/components/VideoNoteCapture/ProgressRing.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.d.ts +31 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.js +500 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.d.ts +12 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.js +105 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.d.ts +12 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.js +95 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.js.map +1 -0
- package/lib/components/VideoNoteCapture/constants.d.ts +50 -0
- package/lib/components/VideoNoteCapture/constants.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/constants.js +53 -0
- package/lib/components/VideoNoteCapture/constants.js.map +1 -0
- package/lib/components/VideoNoteCapture/index.d.ts +3 -0
- package/lib/components/VideoNoteCapture/index.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/index.js +2 -0
- package/lib/components/VideoNoteCapture/index.js.map +1 -0
- package/lib/components/VideoNoteCapture/optional.d.ts +6 -0
- package/lib/components/VideoNoteCapture/optional.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/optional.js +15 -0
- package/lib/components/VideoNoteCapture/optional.js.map +1 -0
- package/lib/components/VideoNoteCapture/sessionState.d.ts +10 -0
- package/lib/components/VideoNoteCapture/sessionState.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/sessionState.js +19 -0
- package/lib/components/VideoNoteCapture/sessionState.js.map +1 -0
- package/lib/components/VideoNoteCapture/styles.d.ts +84 -0
- package/lib/components/VideoNoteCapture/styles.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/styles.js +86 -0
- package/lib/components/VideoNoteCapture/styles.js.map +1 -0
- package/lib/components/VideoNoteCapture/types.d.ts +54 -0
- package/lib/components/VideoNoteCapture/types.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/types.js +2 -0
- package/lib/components/VideoNoteCapture/types.js.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.d.ts +47 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.js +216 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.js.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.d.ts +14 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.js +61 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.js.map +1 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.d.ts +25 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.js +611 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.js.map +1 -0
- package/lib/components/VideoNoteOverlay.d.ts +42 -11
- package/lib/components/VideoNoteOverlay.d.ts.map +1 -1
- package/lib/components/VideoNoteOverlay.js +722 -135
- package/lib/components/VideoNoteOverlay.js.map +1 -1
- package/lib/components/VideoNoteRecorder/LiveVideoNote.d.ts +6 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.js +205 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.js.map +1 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.d.ts +35 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.js +350 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.js.map +1 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.d.ts +10 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.js +52 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.js.map +1 -0
- package/lib/components/VideoNoteRecorder/constants.d.ts +16 -0
- package/lib/components/VideoNoteRecorder/constants.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/constants.js +30 -0
- package/lib/components/VideoNoteRecorder/constants.js.map +1 -0
- package/lib/components/{VideoNoteRecorder.d.ts → VideoNoteRecorder/index.d.ts} +5 -10
- package/lib/components/VideoNoteRecorder/index.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/index.js +26 -0
- package/lib/components/VideoNoteRecorder/index.js.map +1 -0
- package/lib/components/VideoNoteRecorder/styles.d.ts +159 -0
- package/lib/components/VideoNoteRecorder/styles.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/styles.js +170 -0
- package/lib/components/VideoNoteRecorder/styles.js.map +1 -0
- package/lib/components/VideoNoteRecorder/types.d.ts +7 -0
- package/lib/components/VideoNoteRecorder/types.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/types.js +2 -0
- package/lib/components/VideoNoteRecorder/types.js.map +1 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.d.ts +10 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.js +134 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.js.map +1 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.d.ts +28 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.js +287 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.js.map +1 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.d.ts +6 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.js +11 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.js.map +1 -0
- package/lib/components/VideoRecordButton.d.ts +1 -1
- package/lib/components/VideoRecordButton.d.ts.map +1 -1
- package/lib/components/VideoRecordButton.js +221 -92
- package/lib/components/VideoRecordButton.js.map +1 -1
- package/lib/components/ViewOnceBadge.d.ts +23 -0
- package/lib/components/ViewOnceBadge.d.ts.map +1 -0
- package/lib/components/ViewOnceBadge.js +233 -0
- package/lib/components/ViewOnceBadge.js.map +1 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.d.ts +16 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.js +503 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.js.map +1 -0
- package/lib/components/VoiceMessageInput/constants.d.ts +16 -0
- package/lib/components/VoiceMessageInput/constants.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/constants.js +22 -0
- package/lib/components/VoiceMessageInput/constants.js.map +1 -0
- package/lib/components/VoiceMessageInput/formatElapsed.d.ts +2 -0
- package/lib/components/VoiceMessageInput/formatElapsed.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/formatElapsed.js +7 -0
- package/lib/components/VoiceMessageInput/formatElapsed.js.map +1 -0
- package/lib/components/VoiceMessageInput/index.d.ts +9 -0
- package/lib/components/VoiceMessageInput/index.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/index.js +148 -0
- package/lib/components/VoiceMessageInput/index.js.map +1 -0
- package/lib/components/VoiceMessageInput/previewStyles.d.ts +77 -0
- package/lib/components/VoiceMessageInput/previewStyles.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/previewStyles.js +80 -0
- package/lib/components/VoiceMessageInput/previewStyles.js.map +1 -0
- package/lib/components/VoiceMessageInput/previewWaveform.d.ts +15 -0
- package/lib/components/VoiceMessageInput/previewWaveform.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/previewWaveform.js +27 -0
- package/lib/components/VoiceMessageInput/previewWaveform.js.map +1 -0
- package/lib/components/VoiceMessageInput/recorder.d.ts +18 -0
- package/lib/components/VoiceMessageInput/recorder.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/recorder.js +80 -0
- package/lib/components/VoiceMessageInput/recorder.js.map +1 -0
- package/lib/components/VoiceMessageInput/types.d.ts +56 -0
- package/lib/components/VoiceMessageInput/types.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/types.js +2 -0
- package/lib/components/VoiceMessageInput/types.js.map +1 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.d.ts +7 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.js +61 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.js.map +1 -0
- package/lib/components/VoiceMessageInput/useStateReport.d.ts +16 -0
- package/lib/components/VoiceMessageInput/useStateReport.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useStateReport.js +81 -0
- package/lib/components/VoiceMessageInput/useStateReport.js.map +1 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.d.ts +34 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.js +207 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.js.map +1 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.d.ts +25 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.js +424 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.js.map +1 -0
- package/lib/components/WaveformPlayer/Bars.d.ts +30 -0
- package/lib/components/WaveformPlayer/Bars.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/Bars.js +171 -0
- package/lib/components/WaveformPlayer/Bars.js.map +1 -0
- package/lib/components/WaveformPlayer/VoiceButton.d.ts +23 -0
- package/lib/components/WaveformPlayer/VoiceButton.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/VoiceButton.js +111 -0
- package/lib/components/WaveformPlayer/VoiceButton.js.map +1 -0
- package/lib/components/WaveformPlayer/WaveformTrack.d.ts +31 -0
- package/lib/components/WaveformPlayer/WaveformTrack.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/WaveformTrack.js +199 -0
- package/lib/components/WaveformPlayer/WaveformTrack.js.map +1 -0
- package/lib/components/WaveformPlayer/audio.d.ts +23 -0
- package/lib/components/WaveformPlayer/audio.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/audio.js +97 -0
- package/lib/components/WaveformPlayer/audio.js.map +1 -0
- package/lib/components/WaveformPlayer/index.d.ts +13 -0
- package/lib/components/WaveformPlayer/index.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/index.js +475 -0
- package/lib/components/WaveformPlayer/index.js.map +1 -0
- package/lib/components/WaveformPlayer/styles.d.ts +257 -0
- package/lib/components/WaveformPlayer/styles.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/styles.js +120 -0
- package/lib/components/WaveformPlayer/styles.js.map +1 -0
- package/lib/components/WaveformPlayer/types.d.ts +32 -0
- package/lib/components/WaveformPlayer/types.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/types.js +2 -0
- package/lib/components/WaveformPlayer/types.js.map +1 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.d.ts +21 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.js +105 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.js.map +1 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.d.ts +39 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.js +401 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.js.map +1 -0
- package/lib/components/WaveformPlayer/useVoiceSource.d.ts +38 -0
- package/lib/components/WaveformPlayer/useVoiceSource.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useVoiceSource.js +244 -0
- package/lib/components/WaveformPlayer/useVoiceSource.js.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.d.ts +16 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.js +135 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.js.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.d.ts +16 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.js +168 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.js.map +1 -0
- package/lib/components/composerPanels.d.ts +13 -0
- package/lib/components/composerPanels.d.ts.map +1 -0
- package/lib/components/composerPanels.js +22 -0
- package/lib/components/composerPanels.js.map +1 -0
- package/lib/components/defaultMessageActions.d.ts +30 -0
- package/lib/components/defaultMessageActions.d.ts.map +1 -0
- package/lib/components/defaultMessageActions.js +124 -0
- package/lib/components/defaultMessageActions.js.map +1 -0
- package/lib/components/earpiece.d.ts +56 -0
- package/lib/components/earpiece.d.ts.map +1 -0
- package/lib/components/earpiece.js +218 -0
- package/lib/components/earpiece.js.map +1 -0
- package/lib/components/floatingNoteMath.d.ts +66 -0
- package/lib/components/floatingNoteMath.d.ts.map +1 -0
- package/lib/components/floatingNoteMath.js +143 -0
- package/lib/components/floatingNoteMath.js.map +1 -0
- package/lib/components/haptics.d.ts +5 -0
- package/lib/components/haptics.d.ts.map +1 -0
- package/lib/components/haptics.js +26 -0
- package/lib/components/haptics.js.map +1 -0
- package/lib/components/mediaDownload.d.ts +14 -0
- package/lib/components/mediaDownload.d.ts.map +1 -0
- package/lib/components/mediaDownload.js +43 -0
- package/lib/components/mediaDownload.js.map +1 -0
- package/lib/components/mediaPalette.d.ts +7 -2
- package/lib/components/mediaPalette.d.ts.map +1 -1
- package/lib/components/mediaPalette.js +27 -15
- package/lib/components/mediaPalette.js.map +1 -1
- package/lib/components/mediaPlayback.d.ts +204 -5
- package/lib/components/mediaPlayback.d.ts.map +1 -1
- package/lib/components/mediaPlayback.js +746 -17
- package/lib/components/mediaPlayback.js.map +1 -1
- package/lib/components/mediaTransfer.d.ts +29 -0
- package/lib/components/mediaTransfer.d.ts.map +1 -0
- package/lib/components/mediaTransfer.js +52 -0
- package/lib/components/mediaTransfer.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewer.d.ts +17 -0
- package/lib/components/mediaViewer/MediaViewer.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewer.js +347 -0
- package/lib/components/mediaViewer/MediaViewer.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerChrome.d.ts +14 -0
- package/lib/components/mediaViewer/MediaViewerChrome.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerChrome.js +164 -0
- package/lib/components/mediaViewer/MediaViewerChrome.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerHost.d.ts +10 -0
- package/lib/components/mediaViewer/MediaViewerHost.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerHost.js +76 -0
- package/lib/components/mediaViewer/MediaViewerHost.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerPage.d.ts +25 -0
- package/lib/components/mediaViewer/MediaViewerPage.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerPage.js +194 -0
- package/lib/components/mediaViewer/MediaViewerPage.js.map +1 -0
- package/lib/components/mediaViewer/gallery.d.ts +27 -0
- package/lib/components/mediaViewer/gallery.d.ts.map +1 -0
- package/lib/components/mediaViewer/gallery.js +41 -0
- package/lib/components/mediaViewer/gallery.js.map +1 -0
- package/lib/components/messageHighlight.d.ts +41 -0
- package/lib/components/messageHighlight.d.ts.map +1 -0
- package/lib/components/messageHighlight.js +157 -0
- package/lib/components/messageHighlight.js.map +1 -0
- package/lib/components/messagePress.d.ts +14 -0
- package/lib/components/messagePress.d.ts.map +1 -0
- package/lib/components/messagePress.js +18 -0
- package/lib/components/messagePress.js.map +1 -0
- package/lib/components/messageSelection.d.ts +39 -0
- package/lib/components/messageSelection.d.ts.map +1 -0
- package/lib/components/messageSelection.js +135 -0
- package/lib/components/messageSelection.js.map +1 -0
- package/lib/components/recordingFeedback.d.ts +22 -0
- package/lib/components/recordingFeedback.d.ts.map +1 -0
- package/lib/components/recordingFeedback.js +80 -0
- package/lib/components/recordingFeedback.js.map +1 -0
- package/lib/components/recordingMeter.d.ts +19 -0
- package/lib/components/recordingMeter.d.ts.map +1 -0
- package/lib/components/recordingMeter.js +21 -0
- package/lib/components/recordingMeter.js.map +1 -0
- package/lib/components/roundNoteChrome.d.ts +107 -0
- package/lib/components/roundNoteChrome.d.ts.map +1 -0
- package/lib/components/roundNoteChrome.js +249 -0
- package/lib/components/roundNoteChrome.js.map +1 -0
- package/lib/components/roundNotePlayers.d.ts +78 -0
- package/lib/components/roundNotePlayers.d.ts.map +1 -0
- package/lib/components/roundNotePlayers.js +230 -0
- package/lib/components/roundNotePlayers.js.map +1 -0
- package/lib/components/sendFlight.d.ts +88 -0
- package/lib/components/sendFlight.d.ts.map +1 -0
- package/lib/components/sendFlight.js +146 -0
- package/lib/components/sendFlight.js.map +1 -0
- package/lib/components/viewOnce.d.ts +27 -0
- package/lib/components/viewOnce.d.ts.map +1 -0
- package/lib/components/viewOnce.js +168 -0
- package/lib/components/viewOnce.js.map +1 -0
- package/lib/components/visionCamera.d.ts +45 -0
- package/lib/components/visionCamera.d.ts.map +1 -0
- package/lib/components/visionCamera.js +117 -0
- package/lib/components/visionCamera.js.map +1 -0
- package/lib/components/voiceEditing.d.ts +34 -0
- package/lib/components/voiceEditing.d.ts.map +1 -0
- package/lib/components/voiceEditing.js +159 -0
- package/lib/components/voiceEditing.js.map +1 -0
- package/lib/components/voiceWaveform.d.ts +108 -0
- package/lib/components/voiceWaveform.d.ts.map +1 -0
- package/lib/components/voiceWaveform.js +165 -0
- package/lib/components/voiceWaveform.js.map +1 -0
- package/lib/components/wallpaperGradient.d.ts +16 -0
- package/lib/components/wallpaperGradient.d.ts.map +1 -0
- package/lib/components/wallpaperGradient.js +186 -0
- package/lib/components/wallpaperGradient.js.map +1 -0
- package/lib/components/windowInsets.d.ts +11 -0
- package/lib/components/windowInsets.d.ts.map +1 -0
- package/lib/components/windowInsets.js +44 -0
- package/lib/components/windowInsets.js.map +1 -0
- package/lib/dayjsLocales.js +15 -2
- package/lib/dayjsLocales.js.map +1 -1
- package/lib/emoji/EmojiGrid/BackspaceButton.d.ts +11 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.js +111 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.js.map +1 -0
- package/lib/emoji/EmojiGrid/EmojiRow.d.ts +15 -0
- package/lib/emoji/EmojiGrid/EmojiRow.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/EmojiRow.js +71 -0
- package/lib/emoji/EmojiGrid/EmojiRow.js.map +1 -0
- package/lib/emoji/EmojiGrid/Search.d.ts +29 -0
- package/lib/emoji/EmojiGrid/Search.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/Search.js +234 -0
- package/lib/emoji/EmojiGrid/Search.js.map +1 -0
- package/lib/emoji/EmojiGrid/TabStrip.d.ts +16 -0
- package/lib/emoji/EmojiGrid/TabStrip.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/TabStrip.js +237 -0
- package/lib/emoji/EmojiGrid/TabStrip.js.map +1 -0
- package/lib/emoji/EmojiGrid/TonePopup.d.ts +12 -0
- package/lib/emoji/EmojiGrid/TonePopup.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/TonePopup.js +137 -0
- package/lib/emoji/EmojiGrid/TonePopup.js.map +1 -0
- package/lib/emoji/EmojiGrid/constants.d.ts +29 -0
- package/lib/emoji/EmojiGrid/constants.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/constants.js +65 -0
- package/lib/emoji/EmojiGrid/constants.js.map +1 -0
- package/lib/emoji/EmojiGrid/index.d.ts +10 -0
- package/lib/emoji/EmojiGrid/index.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/index.js +450 -0
- package/lib/emoji/EmojiGrid/index.js.map +1 -0
- package/lib/emoji/EmojiGrid/items.d.ts +25 -0
- package/lib/emoji/EmojiGrid/items.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/items.js +75 -0
- package/lib/emoji/EmojiGrid/items.js.map +1 -0
- package/lib/emoji/EmojiGrid/styles.d.ts +181 -0
- package/lib/emoji/EmojiGrid/styles.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/styles.js +184 -0
- package/lib/emoji/EmojiGrid/styles.js.map +1 -0
- package/lib/emoji/EmojiGrid/types.d.ts +53 -0
- package/lib/emoji/EmojiGrid/types.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/types.js +2 -0
- package/lib/emoji/EmojiGrid/types.js.map +1 -0
- package/lib/emoji/EmojiGrid/useTabScroll.d.ts +19 -0
- package/lib/emoji/EmojiGrid/useTabScroll.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/useTabScroll.js +124 -0
- package/lib/emoji/EmojiGrid/useTabScroll.js.map +1 -0
- package/lib/emoji/EmojiKeyboard.d.ts +79 -0
- package/lib/emoji/EmojiKeyboard.d.ts.map +1 -0
- package/lib/emoji/EmojiKeyboard.js +445 -0
- package/lib/emoji/EmojiKeyboard.js.map +1 -0
- package/lib/emoji/defaultExpandedPicker.d.ts +5 -0
- package/lib/emoji/defaultExpandedPicker.d.ts.map +1 -0
- package/lib/emoji/defaultExpandedPicker.js +11 -0
- package/lib/emoji/defaultExpandedPicker.js.map +1 -0
- package/lib/emoji/emojiData.d.ts +2 -0
- package/lib/emoji/emojiData.d.ts.map +1 -0
- package/lib/emoji/emojiData.js +5 -0
- package/lib/emoji/emojiData.js.map +1 -0
- package/lib/emoji/emojiStore.d.ts +70 -0
- package/lib/emoji/emojiStore.d.ts.map +1 -0
- package/lib/emoji/emojiStore.js +246 -0
- package/lib/emoji/emojiStore.js.map +1 -0
- package/lib/emoji/textEditing.d.ts +20 -0
- package/lib/emoji/textEditing.d.ts.map +1 -0
- package/lib/emoji/textEditing.js +97 -0
- package/lib/emoji/textEditing.js.map +1 -0
- package/lib/emojiOnly.d.ts +11 -0
- package/lib/emojiOnly.d.ts.map +1 -0
- package/lib/emojiOnly.js +79 -0
- package/lib/emojiOnly.js.map +1 -0
- package/lib/gestures/useRowSwipe.d.ts +43 -0
- package/lib/gestures/useRowSwipe.d.ts.map +1 -0
- package/lib/gestures/useRowSwipe.js +74 -0
- package/lib/gestures/useRowSwipe.js.map +1 -0
- package/lib/hooks/useAnimatedPresence.d.ts +22 -0
- package/lib/hooks/useAnimatedPresence.d.ts.map +1 -0
- package/lib/hooks/useAnimatedPresence.js +97 -0
- package/lib/hooks/useAnimatedPresence.js.map +1 -0
- package/lib/hooks/useChatMessages.d.ts +39 -0
- package/lib/hooks/useChatMessages.d.ts.map +1 -0
- package/lib/hooks/useChatMessages.js +125 -0
- package/lib/hooks/useChatMessages.js.map +1 -0
- package/lib/hooks/useColorScheme.d.ts +7 -1
- package/lib/hooks/useColorScheme.d.ts.map +1 -1
- package/lib/hooks/useColorScheme.js +46 -8
- package/lib/hooks/useColorScheme.js.map +1 -1
- package/lib/hooks/useHasKeyboardProvider.js +18 -7
- package/lib/hooks/useHasKeyboardProvider.js.map +1 -1
- package/lib/hooks/useIcons.js +15 -2
- package/lib/hooks/useIcons.js.map +1 -1
- package/lib/hooks/useIsKeyboardVisible.js +39 -17
- package/lib/hooks/useIsKeyboardVisible.js.map +1 -1
- package/lib/hooks/useIsRTL.js +15 -2
- package/lib/hooks/useIsRTL.js.map +1 -1
- package/lib/hooks/useKeyboardVerticalOffset.d.ts +5 -3
- package/lib/hooks/useKeyboardVerticalOffset.d.ts.map +1 -1
- package/lib/hooks/useKeyboardVerticalOffset.js +52 -18
- package/lib/hooks/useKeyboardVerticalOffset.js.map +1 -1
- package/lib/hooks/useLabels.js +15 -2
- package/lib/hooks/useLabels.js.map +1 -1
- package/lib/hooks/useStreamingMessages.js +200 -86
- package/lib/hooks/useStreamingMessages.js.map +1 -1
- package/lib/hooks/useTheme.js +56 -7
- package/lib/hooks/useTheme.js.map +1 -1
- package/lib/hooks/useUpdateLayoutEffect.d.ts.map +1 -1
- package/lib/hooks/useUpdateLayoutEffect.js +35 -11
- package/lib/hooks/useUpdateLayoutEffect.js.map +1 -1
- package/lib/i18n.d.ts +182 -0
- package/lib/i18n.d.ts.map +1 -1
- package/lib/i18n.js +121 -23
- package/lib/i18n.js.map +1 -1
- package/lib/index.d.ts +31 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -1
- package/lib/index.js.map +1 -1
- package/lib/linkParser.d.ts +2 -1
- package/lib/linkParser.d.ts.map +1 -1
- package/lib/linkParser.js +323 -185
- package/lib/linkParser.js.map +1 -1
- package/lib/locales/ar.d.ts.map +1 -1
- package/lib/locales/ar.js +110 -19
- package/lib/locales/ar.js.map +1 -1
- package/lib/locales/de.d.ts.map +1 -1
- package/lib/locales/de.js +110 -19
- package/lib/locales/de.js.map +1 -1
- package/lib/locales/es.d.ts.map +1 -1
- package/lib/locales/es.js +110 -19
- package/lib/locales/es.js.map +1 -1
- package/lib/locales/fr.d.ts.map +1 -1
- package/lib/locales/fr.js +110 -19
- package/lib/locales/fr.js.map +1 -1
- package/lib/locales/hi.d.ts.map +1 -1
- package/lib/locales/hi.js +110 -19
- package/lib/locales/hi.js.map +1 -1
- package/lib/locales/id.d.ts.map +1 -1
- package/lib/locales/id.js +110 -19
- package/lib/locales/id.js.map +1 -1
- package/lib/locales/index.js +19 -5
- package/lib/locales/index.js.map +1 -1
- package/lib/locales/it.d.ts.map +1 -1
- package/lib/locales/it.js +110 -19
- package/lib/locales/it.js.map +1 -1
- package/lib/locales/ja.d.ts.map +1 -1
- package/lib/locales/ja.js +110 -19
- package/lib/locales/ja.js.map +1 -1
- package/lib/locales/ko.d.ts.map +1 -1
- package/lib/locales/ko.js +110 -19
- package/lib/locales/ko.js.map +1 -1
- package/lib/locales/nl.d.ts.map +1 -1
- package/lib/locales/nl.js +110 -19
- package/lib/locales/nl.js.map +1 -1
- package/lib/locales/pl.d.ts.map +1 -1
- package/lib/locales/pl.js +110 -19
- package/lib/locales/pl.js.map +1 -1
- package/lib/locales/pt.d.ts.map +1 -1
- package/lib/locales/pt.js +110 -19
- package/lib/locales/pt.js.map +1 -1
- package/lib/locales/ru.d.ts.map +1 -1
- package/lib/locales/ru.js +110 -19
- package/lib/locales/ru.js.map +1 -1
- package/lib/locales/tr.d.ts.map +1 -1
- package/lib/locales/tr.js +110 -19
- package/lib/locales/tr.js.map +1 -1
- package/lib/locales/zh.d.ts.map +1 -1
- package/lib/locales/zh.js +110 -19
- package/lib/locales/zh.js.map +1 -1
- package/lib/logging.d.ts +5 -0
- package/lib/logging.d.ts.map +1 -1
- package/lib/logging.js +13 -1
- package/lib/logging.js.map +1 -1
- package/lib/messageUtils.d.ts +19 -0
- package/lib/messageUtils.d.ts.map +1 -0
- package/lib/messageUtils.js +61 -0
- package/lib/messageUtils.js.map +1 -0
- package/lib/motion.d.ts +21 -0
- package/lib/motion.d.ts.map +1 -0
- package/lib/motion.js +30 -0
- package/lib/motion.js.map +1 -0
- package/lib/optional/index.d.ts +99 -0
- package/lib/optional/index.d.ts.map +1 -0
- package/lib/optional/index.js +284 -0
- package/lib/optional/index.js.map +1 -0
- package/lib/rtl.js +7 -5
- package/lib/rtl.js.map +1 -1
- package/lib/store.d.ts +40 -0
- package/lib/store.d.ts.map +1 -0
- package/lib/store.js +127 -0
- package/lib/store.js.map +1 -0
- package/lib/styles.d.ts +2 -2
- package/lib/styles.d.ts.map +1 -1
- package/lib/styles.js +15 -15
- package/lib/styles.js.map +1 -1
- package/lib/types.js +1 -0
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +15 -0
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +199 -94
- package/lib/utils.js.map +1 -1
- package/llms.txt +133 -31
- package/package.json +89 -46
- package/lib/InputToolbar.d.ts +0 -49
- package/lib/InputToolbar.d.ts.map +0 -1
- package/lib/InputToolbar.js +0 -338
- package/lib/InputToolbar.js.map +0 -1
- package/lib/MessageVideo.d.ts.map +0 -1
- package/lib/MessageVideo.js +0 -162
- package/lib/MessageVideo.js.map +0 -1
- package/lib/MessagesContainer/FlashList.d.ts +0 -9
- package/lib/MessagesContainer/FlashList.d.ts.map +0 -1
- package/lib/MessagesContainer/FlashList.js +0 -23
- package/lib/MessagesContainer/FlashList.js.map +0 -1
- package/lib/components/ContextMenu.d.ts +0 -25
- package/lib/components/ContextMenu.d.ts.map +0 -1
- package/lib/components/ContextMenu.js +0 -122
- package/lib/components/ContextMenu.js.map +0 -1
- package/lib/components/VideoNoteRecorder.d.ts.map +0 -1
- package/lib/components/VideoNoteRecorder.js +0 -634
- package/lib/components/VideoNoteRecorder.js.map +0 -1
- package/lib/components/VoiceMessageInput.d.ts +0 -33
- package/lib/components/VoiceMessageInput.d.ts.map +0 -1
- package/lib/components/VoiceMessageInput.js +0 -403
- package/lib/components/VoiceMessageInput.js.map +0 -1
- package/lib/components/WaveformPlayer.d.ts +0 -19
- package/lib/components/WaveformPlayer.d.ts.map +0 -1
- package/lib/components/WaveformPlayer.js +0 -367
- package/lib/components/WaveformPlayer.js.map +0 -1
|
@@ -0,0 +1,1301 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import React, { useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
3
|
+
import { Alert, BackHandler, Pressable, StyleSheet, Text, TextInput, useColorScheme, View } from 'react-native';
|
|
4
|
+
import { GestureHandlerRootView, Touchable } from 'react-native-gesture-handler';
|
|
5
|
+
import Animated, { Easing, FadeIn, FadeOut, LinearTransition, useAnimatedScrollHandler, useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
6
|
+
import { SafeAreaInsetsContext } from 'react-native-safe-area-context';
|
|
7
|
+
import { ChatContext } from '../ChatContext';
|
|
8
|
+
import { impactHaptic } from '../components/haptics';
|
|
9
|
+
import { Icon } from '../components/Icon';
|
|
10
|
+
import { normalizeColorScheme } from '../hooks/useColorScheme';
|
|
11
|
+
import { formatLabel, resolveLabels } from '../i18n';
|
|
12
|
+
import { isRTLLocale } from '../rtl';
|
|
13
|
+
import { resolveTheme } from '../Theme';
|
|
14
|
+
import { ChatListAvatar } from './ChatListAvatar';
|
|
15
|
+
import { CHAT_LIST_ROW_HEIGHT, ChatListCell } from './ChatListCell';
|
|
16
|
+
import { ChatListShimmer } from './ChatListShimmer';
|
|
17
|
+
import { matchesChatQuery, sortChats } from './utils';
|
|
18
|
+
export * from './types';
|
|
19
|
+
export { ChatListAvatar } from './ChatListAvatar';
|
|
20
|
+
export { ChatListCell, CHAT_LIST_ROW_HEIGHT } from './ChatListCell';
|
|
21
|
+
export { ChatListShimmer } from './ChatListShimmer';
|
|
22
|
+
export { formatChatListDate, getChatPreview, getInitials, matchesChatQuery, sortChats } from './utils';
|
|
23
|
+
export { useChatList } from './useChatList';
|
|
24
|
+
|
|
25
|
+
/** Rows move over 250ms on bezier(0.199, 0.011, 0.279, 0.91). */
|
|
26
|
+
const LIST_TRANSITION = LinearTransition.duration(250).easing(Easing.bezier(0.199, 0.011, 0.279, 0.91));
|
|
27
|
+
/** The new-chat button hides and shows over 380ms on an ease-out-quint curve... */
|
|
28
|
+
const FAB_TIMING = {
|
|
29
|
+
duration: 380,
|
|
30
|
+
easing: Easing.bezier(0.23, 1, 0.32, 1)
|
|
31
|
+
};
|
|
32
|
+
/** ...moving its size, its 14 margin and 40 more. */
|
|
33
|
+
const FAB_SIZE = 48;
|
|
34
|
+
const FAB_HIDDEN_OFFSET = FAB_SIZE + 14 + 40;
|
|
35
|
+
const HEADER_HEIGHT = 56;
|
|
36
|
+
const ARCHIVE_ROW_ID = '__chat-list-archive__';
|
|
37
|
+
const isArchiveRow = row => row.id === ARCHIVE_ROW_ID;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A list of chats with everything a messenger's main screen has: a header with search and a
|
|
41
|
+
* selection bar (pin, mute, archive, delete), an "Archived Chats" folder, swipe to archive,
|
|
42
|
+
* pinned chats you can drag into order, unread counters, typing and drafts, a loading
|
|
43
|
+
* placeholder and a new-chat button. Feed it your chats and wire the callbacks to your backend.
|
|
44
|
+
*/
|
|
45
|
+
export function ChatList(props) {
|
|
46
|
+
const $ = _c(36);
|
|
47
|
+
const {
|
|
48
|
+
theme,
|
|
49
|
+
darkTheme,
|
|
50
|
+
colorScheme: colorSchemeProp,
|
|
51
|
+
locale,
|
|
52
|
+
labels,
|
|
53
|
+
icons
|
|
54
|
+
} = props;
|
|
55
|
+
const systemColorScheme = useColorScheme();
|
|
56
|
+
const t0 = colorSchemeProp !== undefined ? colorSchemeProp : systemColorScheme;
|
|
57
|
+
let t1;
|
|
58
|
+
if ($[0] !== t0) {
|
|
59
|
+
t1 = normalizeColorScheme(t0);
|
|
60
|
+
$[0] = t0;
|
|
61
|
+
$[1] = t1;
|
|
62
|
+
} else {
|
|
63
|
+
t1 = $[1];
|
|
64
|
+
}
|
|
65
|
+
const colorScheme = t1;
|
|
66
|
+
let t2;
|
|
67
|
+
if ($[2] !== colorScheme || $[3] !== darkTheme || $[4] !== theme) {
|
|
68
|
+
t2 = resolveTheme(colorScheme, theme, darkTheme);
|
|
69
|
+
$[2] = colorScheme;
|
|
70
|
+
$[3] = darkTheme;
|
|
71
|
+
$[4] = theme;
|
|
72
|
+
$[5] = t2;
|
|
73
|
+
} else {
|
|
74
|
+
t2 = $[5];
|
|
75
|
+
}
|
|
76
|
+
const resolvedTheme = t2;
|
|
77
|
+
let t3;
|
|
78
|
+
if ($[6] !== labels || $[7] !== locale) {
|
|
79
|
+
t3 = resolveLabels(locale, labels);
|
|
80
|
+
$[6] = labels;
|
|
81
|
+
$[7] = locale;
|
|
82
|
+
$[8] = t3;
|
|
83
|
+
} else {
|
|
84
|
+
t3 = $[8];
|
|
85
|
+
}
|
|
86
|
+
const resolvedLabels = t3;
|
|
87
|
+
let t4;
|
|
88
|
+
if ($[9] !== locale) {
|
|
89
|
+
t4 = isRTLLocale(locale);
|
|
90
|
+
$[9] = locale;
|
|
91
|
+
$[10] = t4;
|
|
92
|
+
} else {
|
|
93
|
+
t4 = $[10];
|
|
94
|
+
}
|
|
95
|
+
const isRTL = t4;
|
|
96
|
+
let t5;
|
|
97
|
+
if ($[11] !== locale) {
|
|
98
|
+
t5 = () => locale ?? "en";
|
|
99
|
+
$[11] = locale;
|
|
100
|
+
$[12] = t5;
|
|
101
|
+
} else {
|
|
102
|
+
t5 = $[12];
|
|
103
|
+
}
|
|
104
|
+
let t6;
|
|
105
|
+
if ($[13] !== isRTL) {
|
|
106
|
+
t6 = () => isRTL;
|
|
107
|
+
$[13] = isRTL;
|
|
108
|
+
$[14] = t6;
|
|
109
|
+
} else {
|
|
110
|
+
t6 = $[14];
|
|
111
|
+
}
|
|
112
|
+
let t7;
|
|
113
|
+
if ($[15] !== colorScheme) {
|
|
114
|
+
t7 = () => colorScheme;
|
|
115
|
+
$[15] = colorScheme;
|
|
116
|
+
$[16] = t7;
|
|
117
|
+
} else {
|
|
118
|
+
t7 = $[16];
|
|
119
|
+
}
|
|
120
|
+
let t8;
|
|
121
|
+
if ($[17] !== resolvedTheme) {
|
|
122
|
+
t8 = () => resolvedTheme;
|
|
123
|
+
$[17] = resolvedTheme;
|
|
124
|
+
$[18] = t8;
|
|
125
|
+
} else {
|
|
126
|
+
t8 = $[18];
|
|
127
|
+
}
|
|
128
|
+
let t9;
|
|
129
|
+
if ($[19] !== icons) {
|
|
130
|
+
t9 = () => icons;
|
|
131
|
+
$[19] = icons;
|
|
132
|
+
$[20] = t9;
|
|
133
|
+
} else {
|
|
134
|
+
t9 = $[20];
|
|
135
|
+
}
|
|
136
|
+
let t10;
|
|
137
|
+
if ($[21] !== resolvedLabels) {
|
|
138
|
+
t10 = () => resolvedLabels;
|
|
139
|
+
$[21] = resolvedLabels;
|
|
140
|
+
$[22] = t10;
|
|
141
|
+
} else {
|
|
142
|
+
t10 = $[22];
|
|
143
|
+
}
|
|
144
|
+
let t11;
|
|
145
|
+
if ($[23] !== t10 || $[24] !== t5 || $[25] !== t6 || $[26] !== t7 || $[27] !== t8 || $[28] !== t9) {
|
|
146
|
+
t11 = {
|
|
147
|
+
actionSheet: _temp2,
|
|
148
|
+
getLocale: t5,
|
|
149
|
+
getIsRTL: t6,
|
|
150
|
+
getColorScheme: t7,
|
|
151
|
+
getTheme: t8,
|
|
152
|
+
getIcons: t9,
|
|
153
|
+
getLabels: t10
|
|
154
|
+
};
|
|
155
|
+
$[23] = t10;
|
|
156
|
+
$[24] = t5;
|
|
157
|
+
$[25] = t6;
|
|
158
|
+
$[26] = t7;
|
|
159
|
+
$[27] = t8;
|
|
160
|
+
$[28] = t9;
|
|
161
|
+
$[29] = t11;
|
|
162
|
+
} else {
|
|
163
|
+
t11 = $[29];
|
|
164
|
+
}
|
|
165
|
+
const context = t11;
|
|
166
|
+
let t12;
|
|
167
|
+
if ($[30] !== props || $[31] !== resolvedTheme) {
|
|
168
|
+
t12 = <ChatListContent {...props} resolvedTheme={resolvedTheme} />;
|
|
169
|
+
$[30] = props;
|
|
170
|
+
$[31] = resolvedTheme;
|
|
171
|
+
$[32] = t12;
|
|
172
|
+
} else {
|
|
173
|
+
t12 = $[32];
|
|
174
|
+
}
|
|
175
|
+
let t13;
|
|
176
|
+
if ($[33] !== context || $[34] !== t12) {
|
|
177
|
+
t13 = <GestureHandlerRootView style={styles.fill}><ChatContext.Provider value={context}>{t12}</ChatContext.Provider></GestureHandlerRootView>;
|
|
178
|
+
$[33] = context;
|
|
179
|
+
$[34] = t12;
|
|
180
|
+
$[35] = t13;
|
|
181
|
+
} else {
|
|
182
|
+
t13 = $[35];
|
|
183
|
+
}
|
|
184
|
+
return t13;
|
|
185
|
+
}
|
|
186
|
+
function _temp2() {
|
|
187
|
+
return {
|
|
188
|
+
showActionSheetWithOptions: _temp
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function _temp() {}
|
|
192
|
+
function ChatListContent(t0) {
|
|
193
|
+
const $ = _c(170);
|
|
194
|
+
const {
|
|
195
|
+
chats,
|
|
196
|
+
user,
|
|
197
|
+
onPressChat,
|
|
198
|
+
onLongPressChat,
|
|
199
|
+
onPinChats,
|
|
200
|
+
onMuteChats,
|
|
201
|
+
onArchiveChats,
|
|
202
|
+
onDeleteChats,
|
|
203
|
+
onReorderPinnedChats,
|
|
204
|
+
onPressNewChat,
|
|
205
|
+
isDeleteConfirmed: t1,
|
|
206
|
+
isSwipeEnabled: t2,
|
|
207
|
+
isLoading: t3,
|
|
208
|
+
isSortEnabled: t4,
|
|
209
|
+
isHeaderVisible: t5,
|
|
210
|
+
title,
|
|
211
|
+
renderHeaderRight,
|
|
212
|
+
isTopInsetApplied: t6,
|
|
213
|
+
isSearchEnabled: t7,
|
|
214
|
+
filterChat: t8,
|
|
215
|
+
onSearchChange,
|
|
216
|
+
isArchiveOpen: isArchiveOpenProp,
|
|
217
|
+
onArchiveOpenChange,
|
|
218
|
+
renderChat,
|
|
219
|
+
renderEmpty,
|
|
220
|
+
listProps,
|
|
221
|
+
style,
|
|
222
|
+
resolvedTheme
|
|
223
|
+
} = t0;
|
|
224
|
+
const isDeleteConfirmed = t1 === undefined ? true : t1;
|
|
225
|
+
const isSwipeEnabled = t2 === undefined ? true : t2;
|
|
226
|
+
const isLoading = t3 === undefined ? false : t3;
|
|
227
|
+
const isSortEnabled = t4 === undefined ? true : t4;
|
|
228
|
+
const isHeaderVisible = t5 === undefined ? true : t5;
|
|
229
|
+
const isTopInsetApplied = t6 === undefined ? true : t6;
|
|
230
|
+
const isSearchEnabled = t7 === undefined ? true : t7;
|
|
231
|
+
const filterChat = t8 === undefined ? matchesChatQuery : t8;
|
|
232
|
+
const colors = resolvedTheme.chatList;
|
|
233
|
+
const {
|
|
234
|
+
getLabels
|
|
235
|
+
} = useContext(ChatContext);
|
|
236
|
+
let t9;
|
|
237
|
+
if ($[0] !== getLabels) {
|
|
238
|
+
t9 = getLabels();
|
|
239
|
+
$[0] = getLabels;
|
|
240
|
+
$[1] = t9;
|
|
241
|
+
} else {
|
|
242
|
+
t9 = $[1];
|
|
243
|
+
}
|
|
244
|
+
const labels = t9;
|
|
245
|
+
const insets = useContext(SafeAreaInsetsContext);
|
|
246
|
+
const topInset = isHeaderVisible && isTopInsetApplied ? insets?.top ?? 0 : 0;
|
|
247
|
+
const [isArchiveOpenState, setIsArchiveOpenState] = useState(false);
|
|
248
|
+
const isArchiveOpen = isArchiveOpenProp ?? isArchiveOpenState;
|
|
249
|
+
let t10;
|
|
250
|
+
if ($[2] !== onArchiveOpenChange) {
|
|
251
|
+
t10 = isOpen => {
|
|
252
|
+
setIsArchiveOpenState(isOpen);
|
|
253
|
+
onArchiveOpenChange?.(isOpen);
|
|
254
|
+
};
|
|
255
|
+
$[2] = onArchiveOpenChange;
|
|
256
|
+
$[3] = t10;
|
|
257
|
+
} else {
|
|
258
|
+
t10 = $[3];
|
|
259
|
+
}
|
|
260
|
+
const setIsArchiveOpen = t10;
|
|
261
|
+
let t11;
|
|
262
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
263
|
+
t11 = [];
|
|
264
|
+
$[4] = t11;
|
|
265
|
+
} else {
|
|
266
|
+
t11 = $[4];
|
|
267
|
+
}
|
|
268
|
+
const [selectedIds, setSelectedIds] = useState(t11);
|
|
269
|
+
const [query, setQueryState] = useState(null);
|
|
270
|
+
let t12;
|
|
271
|
+
if ($[5] !== onSearchChange) {
|
|
272
|
+
t12 = next => {
|
|
273
|
+
setQueryState(next);
|
|
274
|
+
onSearchChange?.(next);
|
|
275
|
+
};
|
|
276
|
+
$[5] = onSearchChange;
|
|
277
|
+
$[6] = t12;
|
|
278
|
+
} else {
|
|
279
|
+
t12 = $[6];
|
|
280
|
+
}
|
|
281
|
+
const setQuery = t12;
|
|
282
|
+
const isSelectionMode = selectedIds.length > 0;
|
|
283
|
+
let t13;
|
|
284
|
+
if ($[7] !== chats || $[8] !== isSortEnabled) {
|
|
285
|
+
t13 = isSortEnabled ? sortChats(chats) : chats;
|
|
286
|
+
$[7] = chats;
|
|
287
|
+
$[8] = isSortEnabled;
|
|
288
|
+
$[9] = t13;
|
|
289
|
+
} else {
|
|
290
|
+
t13 = $[9];
|
|
291
|
+
}
|
|
292
|
+
const sorted = t13;
|
|
293
|
+
let t14;
|
|
294
|
+
if ($[10] !== sorted) {
|
|
295
|
+
t14 = sorted.filter(_temp3);
|
|
296
|
+
$[10] = sorted;
|
|
297
|
+
$[11] = t14;
|
|
298
|
+
} else {
|
|
299
|
+
t14 = $[11];
|
|
300
|
+
}
|
|
301
|
+
const mainChats = t14;
|
|
302
|
+
let t15;
|
|
303
|
+
if ($[12] !== sorted) {
|
|
304
|
+
t15 = sorted.filter(_temp4);
|
|
305
|
+
$[12] = sorted;
|
|
306
|
+
$[13] = t15;
|
|
307
|
+
} else {
|
|
308
|
+
t15 = $[13];
|
|
309
|
+
}
|
|
310
|
+
const archivedChats = t15;
|
|
311
|
+
let t16;
|
|
312
|
+
bb0: {
|
|
313
|
+
const source = isArchiveOpen ? archivedChats : mainChats;
|
|
314
|
+
if (query) {
|
|
315
|
+
let t17;
|
|
316
|
+
if ($[14] !== filterChat || $[15] !== query || $[16] !== source) {
|
|
317
|
+
let t18;
|
|
318
|
+
if ($[18] !== filterChat || $[19] !== query) {
|
|
319
|
+
t18 = chat_1 => filterChat(chat_1, query);
|
|
320
|
+
$[18] = filterChat;
|
|
321
|
+
$[19] = query;
|
|
322
|
+
$[20] = t18;
|
|
323
|
+
} else {
|
|
324
|
+
t18 = $[20];
|
|
325
|
+
}
|
|
326
|
+
t17 = source.filter(t18);
|
|
327
|
+
$[14] = filterChat;
|
|
328
|
+
$[15] = query;
|
|
329
|
+
$[16] = source;
|
|
330
|
+
$[17] = t17;
|
|
331
|
+
} else {
|
|
332
|
+
t17 = $[17];
|
|
333
|
+
}
|
|
334
|
+
t16 = t17;
|
|
335
|
+
break bb0;
|
|
336
|
+
}
|
|
337
|
+
if (!isArchiveOpen && archivedChats.length) {
|
|
338
|
+
let t17;
|
|
339
|
+
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
340
|
+
t17 = {
|
|
341
|
+
id: ARCHIVE_ROW_ID
|
|
342
|
+
};
|
|
343
|
+
$[21] = t17;
|
|
344
|
+
} else {
|
|
345
|
+
t17 = $[21];
|
|
346
|
+
}
|
|
347
|
+
let t18;
|
|
348
|
+
if ($[22] !== source) {
|
|
349
|
+
t18 = [t17, ...source];
|
|
350
|
+
$[22] = source;
|
|
351
|
+
$[23] = t18;
|
|
352
|
+
} else {
|
|
353
|
+
t18 = $[23];
|
|
354
|
+
}
|
|
355
|
+
t16 = t18;
|
|
356
|
+
break bb0;
|
|
357
|
+
}
|
|
358
|
+
t16 = source;
|
|
359
|
+
}
|
|
360
|
+
const rows = t16;
|
|
361
|
+
let t17;
|
|
362
|
+
let t18;
|
|
363
|
+
if ($[24] !== chats) {
|
|
364
|
+
t17 = () => {
|
|
365
|
+
setSelectedIds(ids => {
|
|
366
|
+
const kept = ids.filter(id => chats.some(chat_2 => chat_2.id === id));
|
|
367
|
+
return kept.length === ids.length ? ids : kept;
|
|
368
|
+
});
|
|
369
|
+
};
|
|
370
|
+
t18 = [chats];
|
|
371
|
+
$[24] = chats;
|
|
372
|
+
$[25] = t17;
|
|
373
|
+
$[26] = t18;
|
|
374
|
+
} else {
|
|
375
|
+
t17 = $[25];
|
|
376
|
+
t18 = $[26];
|
|
377
|
+
}
|
|
378
|
+
useEffect(t17, t18);
|
|
379
|
+
let t19;
|
|
380
|
+
if ($[27] !== chats || $[28] !== selectedIds) {
|
|
381
|
+
let t20;
|
|
382
|
+
if ($[30] !== chats) {
|
|
383
|
+
t20 = id_0 => chats.find(chat_3 => chat_3.id === id_0);
|
|
384
|
+
$[30] = chats;
|
|
385
|
+
$[31] = t20;
|
|
386
|
+
} else {
|
|
387
|
+
t20 = $[31];
|
|
388
|
+
}
|
|
389
|
+
t19 = selectedIds.map(t20).filter(_temp5);
|
|
390
|
+
$[27] = chats;
|
|
391
|
+
$[28] = selectedIds;
|
|
392
|
+
$[29] = t19;
|
|
393
|
+
} else {
|
|
394
|
+
t19 = $[29];
|
|
395
|
+
}
|
|
396
|
+
const selectedChats = t19;
|
|
397
|
+
let t20;
|
|
398
|
+
if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
|
|
399
|
+
t20 = () => setSelectedIds([]);
|
|
400
|
+
$[32] = t20;
|
|
401
|
+
} else {
|
|
402
|
+
t20 = $[32];
|
|
403
|
+
}
|
|
404
|
+
const clearSelection = t20;
|
|
405
|
+
let t21;
|
|
406
|
+
let t22;
|
|
407
|
+
if ($[33] !== isArchiveOpen || $[34] !== isSelectionMode || $[35] !== query || $[36] !== setIsArchiveOpen || $[37] !== setQuery) {
|
|
408
|
+
t21 = () => {
|
|
409
|
+
const subscription = BackHandler.addEventListener("hardwareBackPress", () => {
|
|
410
|
+
if (isSelectionMode) {
|
|
411
|
+
clearSelection();
|
|
412
|
+
} else {
|
|
413
|
+
if (query !== null) {
|
|
414
|
+
setQuery(null);
|
|
415
|
+
} else {
|
|
416
|
+
if (isArchiveOpen) {
|
|
417
|
+
setIsArchiveOpen(false);
|
|
418
|
+
} else {
|
|
419
|
+
return false;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
return true;
|
|
424
|
+
});
|
|
425
|
+
return () => subscription.remove();
|
|
426
|
+
};
|
|
427
|
+
t22 = [isSelectionMode, query, isArchiveOpen, clearSelection, setQuery, setIsArchiveOpen];
|
|
428
|
+
$[33] = isArchiveOpen;
|
|
429
|
+
$[34] = isSelectionMode;
|
|
430
|
+
$[35] = query;
|
|
431
|
+
$[36] = setIsArchiveOpen;
|
|
432
|
+
$[37] = setQuery;
|
|
433
|
+
$[38] = t21;
|
|
434
|
+
$[39] = t22;
|
|
435
|
+
} else {
|
|
436
|
+
t21 = $[38];
|
|
437
|
+
t22 = $[39];
|
|
438
|
+
}
|
|
439
|
+
useEffect(t21, t22);
|
|
440
|
+
let t23;
|
|
441
|
+
if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
|
|
442
|
+
t23 = chat_5 => {
|
|
443
|
+
setSelectedIds(ids_0 => ids_0.includes(chat_5.id) ? ids_0.filter(id_1 => id_1 !== chat_5.id) : [...ids_0, chat_5.id]);
|
|
444
|
+
};
|
|
445
|
+
$[40] = t23;
|
|
446
|
+
} else {
|
|
447
|
+
t23 = $[40];
|
|
448
|
+
}
|
|
449
|
+
const toggleSelected = t23;
|
|
450
|
+
let t24;
|
|
451
|
+
if ($[41] !== isSelectionMode || $[42] !== onPressChat) {
|
|
452
|
+
t24 = chat_6 => {
|
|
453
|
+
if (isSelectionMode) {
|
|
454
|
+
toggleSelected(chat_6);
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
onPressChat?.(chat_6);
|
|
458
|
+
};
|
|
459
|
+
$[41] = isSelectionMode;
|
|
460
|
+
$[42] = onPressChat;
|
|
461
|
+
$[43] = t24;
|
|
462
|
+
} else {
|
|
463
|
+
t24 = $[43];
|
|
464
|
+
}
|
|
465
|
+
const onPressRow = t24;
|
|
466
|
+
let t25;
|
|
467
|
+
if ($[44] !== onLongPressChat) {
|
|
468
|
+
t25 = chat_7 => {
|
|
469
|
+
if (onLongPressChat) {
|
|
470
|
+
onLongPressChat(chat_7);
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
impactHaptic("Medium");
|
|
474
|
+
toggleSelected(chat_7);
|
|
475
|
+
};
|
|
476
|
+
$[44] = onLongPressChat;
|
|
477
|
+
$[45] = t25;
|
|
478
|
+
} else {
|
|
479
|
+
t25 = $[45];
|
|
480
|
+
}
|
|
481
|
+
const onLongPressRow = t25;
|
|
482
|
+
let t26;
|
|
483
|
+
if ($[46] !== onArchiveChats) {
|
|
484
|
+
t26 = chat_8 => {
|
|
485
|
+
onArchiveChats?.([chat_8], !chat_8.isArchived);
|
|
486
|
+
};
|
|
487
|
+
$[46] = onArchiveChats;
|
|
488
|
+
$[47] = t26;
|
|
489
|
+
} else {
|
|
490
|
+
t26 = $[47];
|
|
491
|
+
}
|
|
492
|
+
const onSwipeRow = t26;
|
|
493
|
+
let t27;
|
|
494
|
+
if ($[48] !== mainChats) {
|
|
495
|
+
t27 = mainChats.filter(_temp6).map(_temp7);
|
|
496
|
+
$[48] = mainChats;
|
|
497
|
+
$[49] = t27;
|
|
498
|
+
} else {
|
|
499
|
+
t27 = $[49];
|
|
500
|
+
}
|
|
501
|
+
const pinnedIds = t27;
|
|
502
|
+
const canReorder = !!onReorderPinnedChats && !isArchiveOpen && !query;
|
|
503
|
+
const dragId = useSharedValue("");
|
|
504
|
+
const dragFrom = useSharedValue(0);
|
|
505
|
+
const dragY = useSharedValue(0);
|
|
506
|
+
const isDragActive = useSharedValue(false);
|
|
507
|
+
let t28;
|
|
508
|
+
if ($[50] !== dragFrom || $[51] !== dragId || $[52] !== dragY || $[53] !== isDragActive) {
|
|
509
|
+
t28 = {
|
|
510
|
+
id: dragId,
|
|
511
|
+
from: dragFrom,
|
|
512
|
+
y: dragY,
|
|
513
|
+
isActive: isDragActive
|
|
514
|
+
};
|
|
515
|
+
$[50] = dragFrom;
|
|
516
|
+
$[51] = dragId;
|
|
517
|
+
$[52] = dragY;
|
|
518
|
+
$[53] = isDragActive;
|
|
519
|
+
$[54] = t28;
|
|
520
|
+
} else {
|
|
521
|
+
t28 = $[54];
|
|
522
|
+
}
|
|
523
|
+
const drag = t28;
|
|
524
|
+
const [liftedId, setLiftedId] = useState(null);
|
|
525
|
+
const [isSettling, setIsSettling] = useState(false);
|
|
526
|
+
const [dropCount, setDropCount] = useState(0);
|
|
527
|
+
let t29;
|
|
528
|
+
if ($[55] !== selectedIds) {
|
|
529
|
+
t29 = chat_11 => {
|
|
530
|
+
setLiftedId(String(chat_11.id));
|
|
531
|
+
setIsSettling(true);
|
|
532
|
+
if (!selectedIds.includes(chat_11.id)) {
|
|
533
|
+
impactHaptic("Medium");
|
|
534
|
+
toggleSelected(chat_11);
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
$[55] = selectedIds;
|
|
538
|
+
$[56] = t29;
|
|
539
|
+
} else {
|
|
540
|
+
t29 = $[56];
|
|
541
|
+
}
|
|
542
|
+
const onDragStart = t29;
|
|
543
|
+
let t30;
|
|
544
|
+
if ($[57] !== onReorderPinnedChats || $[58] !== pinnedIds) {
|
|
545
|
+
t30 = (chat_12, toIndex) => {
|
|
546
|
+
const order = pinnedIds.filter(id_2 => id_2 !== chat_12.id);
|
|
547
|
+
order.splice(toIndex, 0, chat_12.id);
|
|
548
|
+
if (order.some((id_3, index) => id_3 !== pinnedIds[index])) {
|
|
549
|
+
onReorderPinnedChats?.(order);
|
|
550
|
+
}
|
|
551
|
+
setLiftedId(null);
|
|
552
|
+
setDropCount(_temp8);
|
|
553
|
+
};
|
|
554
|
+
$[57] = onReorderPinnedChats;
|
|
555
|
+
$[58] = pinnedIds;
|
|
556
|
+
$[59] = t30;
|
|
557
|
+
} else {
|
|
558
|
+
t30 = $[59];
|
|
559
|
+
}
|
|
560
|
+
const onDrop = t30;
|
|
561
|
+
let t31;
|
|
562
|
+
let t32;
|
|
563
|
+
if ($[60] !== dragId || $[61] !== dragY || $[62] !== dropCount || $[63] !== isDragActive) {
|
|
564
|
+
t31 = () => {
|
|
565
|
+
if (!dropCount) {
|
|
566
|
+
return;
|
|
567
|
+
}
|
|
568
|
+
isDragActive.set(false);
|
|
569
|
+
dragY.set(0);
|
|
570
|
+
dragId.set("");
|
|
571
|
+
const timer = setTimeout(() => setIsSettling(false), 50);
|
|
572
|
+
return () => clearTimeout(timer);
|
|
573
|
+
};
|
|
574
|
+
t32 = [dropCount, isDragActive, dragY, dragId];
|
|
575
|
+
$[60] = dragId;
|
|
576
|
+
$[61] = dragY;
|
|
577
|
+
$[62] = dropCount;
|
|
578
|
+
$[63] = isDragActive;
|
|
579
|
+
$[64] = t31;
|
|
580
|
+
$[65] = t32;
|
|
581
|
+
} else {
|
|
582
|
+
t31 = $[64];
|
|
583
|
+
t32 = $[65];
|
|
584
|
+
}
|
|
585
|
+
useLayoutEffect(t31, t32);
|
|
586
|
+
let t33;
|
|
587
|
+
if ($[66] !== onDragStart || $[67] !== onDrop) {
|
|
588
|
+
t33 = {
|
|
589
|
+
onDragStart,
|
|
590
|
+
onDrop
|
|
591
|
+
};
|
|
592
|
+
$[66] = onDragStart;
|
|
593
|
+
$[67] = onDrop;
|
|
594
|
+
$[68] = t33;
|
|
595
|
+
} else {
|
|
596
|
+
t33 = $[68];
|
|
597
|
+
}
|
|
598
|
+
const dragHandlersRef = useRef(t33);
|
|
599
|
+
let t34;
|
|
600
|
+
if ($[69] !== onDragStart || $[70] !== onDrop) {
|
|
601
|
+
t34 = () => {
|
|
602
|
+
dragHandlersRef.current = {
|
|
603
|
+
onDragStart,
|
|
604
|
+
onDrop
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
$[69] = onDragStart;
|
|
608
|
+
$[70] = onDrop;
|
|
609
|
+
$[71] = t34;
|
|
610
|
+
} else {
|
|
611
|
+
t34 = $[71];
|
|
612
|
+
}
|
|
613
|
+
useLayoutEffect(t34);
|
|
614
|
+
let t35;
|
|
615
|
+
if ($[72] === Symbol.for("react.memo_cache_sentinel")) {
|
|
616
|
+
t35 = chat_13 => dragHandlersRef.current.onDragStart(chat_13);
|
|
617
|
+
$[72] = t35;
|
|
618
|
+
} else {
|
|
619
|
+
t35 = $[72];
|
|
620
|
+
}
|
|
621
|
+
const stableOnStart = t35;
|
|
622
|
+
let t36;
|
|
623
|
+
if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
|
|
624
|
+
t36 = (chat_14, toIndex_0) => dragHandlersRef.current.onDrop(chat_14, toIndex_0);
|
|
625
|
+
$[73] = t36;
|
|
626
|
+
} else {
|
|
627
|
+
t36 = $[73];
|
|
628
|
+
}
|
|
629
|
+
const stableOnDrop = t36;
|
|
630
|
+
let t37;
|
|
631
|
+
if ($[74] !== canReorder || $[75] !== drag || $[76] !== pinnedIds) {
|
|
632
|
+
t37 = chat_15 => {
|
|
633
|
+
const index_0 = pinnedIds.indexOf(chat_15.id);
|
|
634
|
+
if (!canReorder || index_0 < 0) {
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
return {
|
|
638
|
+
index: index_0,
|
|
639
|
+
count: pinnedIds.length,
|
|
640
|
+
drag,
|
|
641
|
+
onStart: stableOnStart,
|
|
642
|
+
onDrop: stableOnDrop
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
$[74] = canReorder;
|
|
646
|
+
$[75] = drag;
|
|
647
|
+
$[76] = pinnedIds;
|
|
648
|
+
$[77] = t37;
|
|
649
|
+
} else {
|
|
650
|
+
t37 = $[77];
|
|
651
|
+
}
|
|
652
|
+
const reorderFor = t37;
|
|
653
|
+
let t38;
|
|
654
|
+
if ($[78] !== selectedChats) {
|
|
655
|
+
t38 = action => {
|
|
656
|
+
action(selectedChats);
|
|
657
|
+
clearSelection();
|
|
658
|
+
};
|
|
659
|
+
$[78] = selectedChats;
|
|
660
|
+
$[79] = t38;
|
|
661
|
+
} else {
|
|
662
|
+
t38 = $[79];
|
|
663
|
+
}
|
|
664
|
+
const runOnSelection = t38;
|
|
665
|
+
let t39;
|
|
666
|
+
if ($[80] !== isDeleteConfirmed || $[81] !== labels || $[82] !== onDeleteChats || $[83] !== runOnSelection || $[84] !== selectedChats.length) {
|
|
667
|
+
t39 = () => {
|
|
668
|
+
if (!onDeleteChats) {
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
if (!isDeleteConfirmed) {
|
|
672
|
+
runOnSelection(onDeleteChats);
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
const count_0 = selectedChats.length;
|
|
676
|
+
Alert.alert(count_0 === 1 ? labels.chatListDeleteTitle : formatLabel(labels.chatListDeleteManyTitle, {
|
|
677
|
+
count: count_0
|
|
678
|
+
}), labels.chatListDeleteMessage, [{
|
|
679
|
+
text: labels.cancel,
|
|
680
|
+
style: "cancel"
|
|
681
|
+
}, {
|
|
682
|
+
text: labels.actionDelete,
|
|
683
|
+
style: "destructive",
|
|
684
|
+
onPress: () => runOnSelection(onDeleteChats)
|
|
685
|
+
}]);
|
|
686
|
+
};
|
|
687
|
+
$[80] = isDeleteConfirmed;
|
|
688
|
+
$[81] = labels;
|
|
689
|
+
$[82] = onDeleteChats;
|
|
690
|
+
$[83] = runOnSelection;
|
|
691
|
+
$[84] = selectedChats.length;
|
|
692
|
+
$[85] = t39;
|
|
693
|
+
} else {
|
|
694
|
+
t39 = $[85];
|
|
695
|
+
}
|
|
696
|
+
const onDeleteSelected = t39;
|
|
697
|
+
const fabOffset = useSharedValue(0);
|
|
698
|
+
const lastScrollY = useSharedValue(0);
|
|
699
|
+
const onScroll = useAnimatedScrollHandler(event => {
|
|
700
|
+
const y = event.contentOffset.y;
|
|
701
|
+
const delta = y - lastScrollY.value;
|
|
702
|
+
lastScrollY.value = y;
|
|
703
|
+
if (Math.abs(delta) < 2) {
|
|
704
|
+
return;
|
|
705
|
+
}
|
|
706
|
+
const target = delta > 0 && y > CHAT_LIST_ROW_HEIGHT ? FAB_HIDDEN_OFFSET : 0;
|
|
707
|
+
if (target !== fabOffset.value) {
|
|
708
|
+
fabOffset.value = withTiming(target, FAB_TIMING);
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
const fabStyle = useAnimatedStyle(() => ({
|
|
712
|
+
transform: [{
|
|
713
|
+
translateY: fabOffset.value
|
|
714
|
+
}]
|
|
715
|
+
}));
|
|
716
|
+
let t40;
|
|
717
|
+
if ($[86] !== archivedChats || $[87] !== canReorder || $[88] !== isSelectionMode || $[89] !== isSwipeEnabled || $[90] !== onArchiveChats || $[91] !== onLongPressRow || $[92] !== onPressRow || $[93] !== onSwipeRow || $[94] !== pinnedIds.length || $[95] !== renderChat || $[96] !== reorderFor || $[97] !== rows.length || $[98] !== selectedIds || $[99] !== setIsArchiveOpen || $[100] !== user) {
|
|
718
|
+
t40 = t41 => {
|
|
719
|
+
const {
|
|
720
|
+
item,
|
|
721
|
+
index: index_1
|
|
722
|
+
} = t41;
|
|
723
|
+
if (isArchiveRow(item)) {
|
|
724
|
+
return <ArchiveRow chats={archivedChats} onPress={() => setIsArchiveOpen(true)} />;
|
|
725
|
+
}
|
|
726
|
+
const cellProps = {
|
|
727
|
+
chat: item,
|
|
728
|
+
user,
|
|
729
|
+
isSelected: selectedIds.includes(item.id),
|
|
730
|
+
isSelectionMode,
|
|
731
|
+
onPress: onPressRow,
|
|
732
|
+
onLongPress: onLongPressRow,
|
|
733
|
+
onSwipe: onArchiveChats && isSwipeEnabled ? onSwipeRow : undefined,
|
|
734
|
+
isLast: index_1 === rows.length - 1,
|
|
735
|
+
reorder: reorderFor(item),
|
|
736
|
+
isReordering: isSelectionMode && canReorder && pinnedIds.length > 1 && !!item.isPinned
|
|
737
|
+
};
|
|
738
|
+
return renderChat ? <>{renderChat(cellProps)}</> : <ChatListCell {...cellProps} />;
|
|
739
|
+
};
|
|
740
|
+
$[86] = archivedChats;
|
|
741
|
+
$[87] = canReorder;
|
|
742
|
+
$[88] = isSelectionMode;
|
|
743
|
+
$[89] = isSwipeEnabled;
|
|
744
|
+
$[90] = onArchiveChats;
|
|
745
|
+
$[91] = onLongPressRow;
|
|
746
|
+
$[92] = onPressRow;
|
|
747
|
+
$[93] = onSwipeRow;
|
|
748
|
+
$[94] = pinnedIds.length;
|
|
749
|
+
$[95] = renderChat;
|
|
750
|
+
$[96] = reorderFor;
|
|
751
|
+
$[97] = rows.length;
|
|
752
|
+
$[98] = selectedIds;
|
|
753
|
+
$[99] = setIsArchiveOpen;
|
|
754
|
+
$[100] = user;
|
|
755
|
+
$[101] = t40;
|
|
756
|
+
} else {
|
|
757
|
+
t40 = $[101];
|
|
758
|
+
}
|
|
759
|
+
const renderItem = t40;
|
|
760
|
+
let t41;
|
|
761
|
+
if ($[102] !== selectedChats) {
|
|
762
|
+
t41 = selectedChats.length > 0 && selectedChats.every(_temp9);
|
|
763
|
+
$[102] = selectedChats;
|
|
764
|
+
$[103] = t41;
|
|
765
|
+
} else {
|
|
766
|
+
t41 = $[103];
|
|
767
|
+
}
|
|
768
|
+
const isAllPinned = t41;
|
|
769
|
+
let t42;
|
|
770
|
+
if ($[104] !== selectedChats) {
|
|
771
|
+
t42 = selectedChats.length > 0 && selectedChats.every(_temp0);
|
|
772
|
+
$[104] = selectedChats;
|
|
773
|
+
$[105] = t42;
|
|
774
|
+
} else {
|
|
775
|
+
t42 = $[105];
|
|
776
|
+
}
|
|
777
|
+
const isAllMuted = t42;
|
|
778
|
+
const headerTitle = isArchiveOpen ? labels.chatListArchived : title ?? labels.chatListTitle;
|
|
779
|
+
let t43;
|
|
780
|
+
if ($[106] !== colors.message || $[107] !== labels || $[108] !== query || $[109] !== renderEmpty) {
|
|
781
|
+
t43 = renderEmpty ? <>{renderEmpty(!!query)}</> : <Text style={[styles.empty, {
|
|
782
|
+
color: colors.message
|
|
783
|
+
}]}>{query ? labels.chatListNoResults : labels.chatListEmpty}</Text>;
|
|
784
|
+
$[106] = colors.message;
|
|
785
|
+
$[107] = labels;
|
|
786
|
+
$[108] = query;
|
|
787
|
+
$[109] = renderEmpty;
|
|
788
|
+
$[110] = t43;
|
|
789
|
+
} else {
|
|
790
|
+
t43 = $[110];
|
|
791
|
+
}
|
|
792
|
+
const empty = t43;
|
|
793
|
+
let t44;
|
|
794
|
+
if ($[111] !== colors.background) {
|
|
795
|
+
t44 = {
|
|
796
|
+
backgroundColor: colors.background
|
|
797
|
+
};
|
|
798
|
+
$[111] = colors.background;
|
|
799
|
+
$[112] = t44;
|
|
800
|
+
} else {
|
|
801
|
+
t44 = $[112];
|
|
802
|
+
}
|
|
803
|
+
let t45;
|
|
804
|
+
if ($[113] !== style || $[114] !== t44) {
|
|
805
|
+
t45 = [styles.fill, t44, style];
|
|
806
|
+
$[113] = style;
|
|
807
|
+
$[114] = t44;
|
|
808
|
+
$[115] = t45;
|
|
809
|
+
} else {
|
|
810
|
+
t45 = $[115];
|
|
811
|
+
}
|
|
812
|
+
let t46;
|
|
813
|
+
if ($[116] !== colors.headerBackground || $[117] !== colors.headerText || $[118] !== colors.message || $[119] !== headerTitle || $[120] !== isAllMuted || $[121] !== isAllPinned || $[122] !== isArchiveOpen || $[123] !== isHeaderVisible || $[124] !== isSearchEnabled || $[125] !== isSelectionMode || $[126] !== labels || $[127] !== onArchiveChats || $[128] !== onDeleteChats || $[129] !== onDeleteSelected || $[130] !== onMuteChats || $[131] !== onPinChats || $[132] !== query || $[133] !== renderHeaderRight || $[134] !== runOnSelection || $[135] !== selectedIds.length || $[136] !== setIsArchiveOpen || $[137] !== setQuery || $[138] !== topInset) {
|
|
814
|
+
t46 = isHeaderVisible && <View style={[styles.header, {
|
|
815
|
+
paddingTop: topInset,
|
|
816
|
+
backgroundColor: colors.headerBackground
|
|
817
|
+
}]}><View style={styles.headerBar}>{isSelectionMode ? <Animated.View key="selection" entering={FadeIn.duration(150)} exiting={FadeOut.duration(150)} style={styles.headerContent}><HeaderButton icon="close" color={colors.headerText} onPress={clearSelection} label={labels.cancelSelection} /><Text style={[styles.headerTitle, styles.selectionCount, {
|
|
818
|
+
color: colors.headerText
|
|
819
|
+
}]}>{selectedIds.length}</Text><View style={styles.spacer} />{onPinChats && !isArchiveOpen && <HeaderButton icon={isAllPinned ? "pinOff" : "pushpin"} color={colors.headerText} label={isAllPinned ? labels.actionUnpin : labels.actionPin} onPress={() => runOnSelection(selection => onPinChats(selection, !isAllPinned))} />}{onMuteChats && <HeaderButton icon={isAllMuted ? "unmute" : "mute"} color={colors.headerText} label={isAllMuted ? labels.chatListUnmute : labels.chatListMute} onPress={() => runOnSelection(selection_0 => onMuteChats(selection_0, !isAllMuted))} />}{onArchiveChats && <HeaderButton icon={isArchiveOpen ? "unarchive" : "archive"} color={colors.headerText} label={isArchiveOpen ? labels.chatListUnarchive : labels.chatListArchive} onPress={() => runOnSelection(selection_1 => onArchiveChats(selection_1, !isArchiveOpen))} />}{onDeleteChats && <HeaderButton icon="trash" color={colors.headerText} label={labels.actionDelete} onPress={onDeleteSelected} />}</Animated.View> : query !== null ? <Animated.View key="search" entering={FadeIn.duration(150)} exiting={FadeOut.duration(150)} style={styles.headerContent}><HeaderButton icon="arrowLeft" color={colors.headerText} onPress={() => setQuery(null)} label={labels.chatListBack} /><TextInput autoFocus={true} value={query} onChangeText={setQuery} placeholder={labels.chatListSearch} placeholderTextColor={colors.message} style={[styles.searchInput, {
|
|
820
|
+
color: colors.headerText
|
|
821
|
+
}]} returnKeyType="search" /></Animated.View> : <Animated.View key={isArchiveOpen ? "archive" : "main"} entering={FadeIn.duration(150)} exiting={FadeOut.duration(150)} style={styles.headerContent}>{isArchiveOpen && <HeaderButton icon="arrowLeft" color={colors.headerText} onPress={() => setIsArchiveOpen(false)} label={labels.chatListBack} />}<Text style={[styles.headerTitle, !isArchiveOpen && styles.headerTitleStart, {
|
|
822
|
+
color: colors.headerText
|
|
823
|
+
}]} numberOfLines={1}>{headerTitle}</Text><View style={styles.spacer} />{renderHeaderRight?.()}{isSearchEnabled && <HeaderButton icon="search" color={colors.headerText} onPress={() => setQuery("")} label={labels.chatListSearch} />}</Animated.View>}</View></View>;
|
|
824
|
+
$[116] = colors.headerBackground;
|
|
825
|
+
$[117] = colors.headerText;
|
|
826
|
+
$[118] = colors.message;
|
|
827
|
+
$[119] = headerTitle;
|
|
828
|
+
$[120] = isAllMuted;
|
|
829
|
+
$[121] = isAllPinned;
|
|
830
|
+
$[122] = isArchiveOpen;
|
|
831
|
+
$[123] = isHeaderVisible;
|
|
832
|
+
$[124] = isSearchEnabled;
|
|
833
|
+
$[125] = isSelectionMode;
|
|
834
|
+
$[126] = labels;
|
|
835
|
+
$[127] = onArchiveChats;
|
|
836
|
+
$[128] = onDeleteChats;
|
|
837
|
+
$[129] = onDeleteSelected;
|
|
838
|
+
$[130] = onMuteChats;
|
|
839
|
+
$[131] = onPinChats;
|
|
840
|
+
$[132] = query;
|
|
841
|
+
$[133] = renderHeaderRight;
|
|
842
|
+
$[134] = runOnSelection;
|
|
843
|
+
$[135] = selectedIds.length;
|
|
844
|
+
$[136] = setIsArchiveOpen;
|
|
845
|
+
$[137] = setQuery;
|
|
846
|
+
$[138] = topInset;
|
|
847
|
+
$[139] = t46;
|
|
848
|
+
} else {
|
|
849
|
+
t46 = $[139];
|
|
850
|
+
}
|
|
851
|
+
const t47 = isLoading ? EMPTY_ROWS : rows;
|
|
852
|
+
const t48 = isSettling ? undefined : LIST_TRANSITION;
|
|
853
|
+
let t49;
|
|
854
|
+
if ($[140] !== liftedId) {
|
|
855
|
+
t49 = t50 => {
|
|
856
|
+
const {
|
|
857
|
+
item: item_1
|
|
858
|
+
} = t50;
|
|
859
|
+
return String(item_1.id) === liftedId ? styles.liftedCell : undefined;
|
|
860
|
+
};
|
|
861
|
+
$[140] = liftedId;
|
|
862
|
+
$[141] = t49;
|
|
863
|
+
} else {
|
|
864
|
+
t49 = $[141];
|
|
865
|
+
}
|
|
866
|
+
const t50 = onPressNewChat ? styles.listContentWithFab : undefined;
|
|
867
|
+
const t51 = isLoading ? undefined : empty;
|
|
868
|
+
const t52 = listProps;
|
|
869
|
+
let t53;
|
|
870
|
+
if ($[142] !== liftedId || $[143] !== onScroll || $[144] !== renderItem || $[145] !== t47 || $[146] !== t48 || $[147] !== t49 || $[148] !== t50 || $[149] !== t51 || $[150] !== t52) {
|
|
871
|
+
t53 = <Animated.FlatList data={t47} keyExtractor={_temp1} renderItem={renderItem} itemLayoutAnimation={t48} extraData={liftedId} CellRendererComponentStyle={t49} onScroll={onScroll} scrollEventThrottle={16} keyboardShouldPersistTaps="handled" contentContainerStyle={t50} ListEmptyComponent={t51} {...t52} />;
|
|
872
|
+
$[142] = liftedId;
|
|
873
|
+
$[143] = onScroll;
|
|
874
|
+
$[144] = renderItem;
|
|
875
|
+
$[145] = t47;
|
|
876
|
+
$[146] = t48;
|
|
877
|
+
$[147] = t49;
|
|
878
|
+
$[148] = t50;
|
|
879
|
+
$[149] = t51;
|
|
880
|
+
$[150] = t52;
|
|
881
|
+
$[151] = t53;
|
|
882
|
+
} else {
|
|
883
|
+
t53 = $[151];
|
|
884
|
+
}
|
|
885
|
+
let t54;
|
|
886
|
+
if ($[152] !== isLoading) {
|
|
887
|
+
t54 = isLoading && <Animated.View exiting={FadeOut.duration(150)} style={StyleSheet.absoluteFill} pointerEvents="none"><ChatListShimmer /></Animated.View>;
|
|
888
|
+
$[152] = isLoading;
|
|
889
|
+
$[153] = t54;
|
|
890
|
+
} else {
|
|
891
|
+
t54 = $[153];
|
|
892
|
+
}
|
|
893
|
+
let t55;
|
|
894
|
+
if ($[154] !== t53 || $[155] !== t54) {
|
|
895
|
+
t55 = <View style={styles.fill}>{t53}{t54}</View>;
|
|
896
|
+
$[154] = t53;
|
|
897
|
+
$[155] = t54;
|
|
898
|
+
$[156] = t55;
|
|
899
|
+
} else {
|
|
900
|
+
t55 = $[156];
|
|
901
|
+
}
|
|
902
|
+
let t56;
|
|
903
|
+
if ($[157] !== colors.fab || $[158] !== colors.fabIcon || $[159] !== fabStyle || $[160] !== isArchiveOpen || $[161] !== isSelectionMode || $[162] !== labels || $[163] !== onPressNewChat) {
|
|
904
|
+
t56 = onPressNewChat && !isArchiveOpen && !isSelectionMode && <Animated.View entering={FadeIn.duration(200)} exiting={FadeOut.duration(200)} style={[styles.fabWrap, fabStyle]}><Touchable style={[styles.fab, {
|
|
905
|
+
backgroundColor: colors.fab
|
|
906
|
+
}]} activeScale={0.9} onPress={onPressNewChat} accessibilityRole="button" accessibilityLabel={labels.chatListNewChat}><Icon name="pencil" size={24} color={colors.fabIcon} fallback={<Text style={{
|
|
907
|
+
color: colors.fabIcon
|
|
908
|
+
}}>+</Text>} /></Touchable></Animated.View>;
|
|
909
|
+
$[157] = colors.fab;
|
|
910
|
+
$[158] = colors.fabIcon;
|
|
911
|
+
$[159] = fabStyle;
|
|
912
|
+
$[160] = isArchiveOpen;
|
|
913
|
+
$[161] = isSelectionMode;
|
|
914
|
+
$[162] = labels;
|
|
915
|
+
$[163] = onPressNewChat;
|
|
916
|
+
$[164] = t56;
|
|
917
|
+
} else {
|
|
918
|
+
t56 = $[164];
|
|
919
|
+
}
|
|
920
|
+
let t57;
|
|
921
|
+
if ($[165] !== t45 || $[166] !== t46 || $[167] !== t55 || $[168] !== t56) {
|
|
922
|
+
t57 = <View style={t45}>{t46}{t55}{t56}</View>;
|
|
923
|
+
$[165] = t45;
|
|
924
|
+
$[166] = t46;
|
|
925
|
+
$[167] = t55;
|
|
926
|
+
$[168] = t56;
|
|
927
|
+
$[169] = t57;
|
|
928
|
+
} else {
|
|
929
|
+
t57 = $[169];
|
|
930
|
+
}
|
|
931
|
+
return t57;
|
|
932
|
+
}
|
|
933
|
+
function _temp1(item_0) {
|
|
934
|
+
return String(item_0.id);
|
|
935
|
+
}
|
|
936
|
+
function _temp0(chat_17) {
|
|
937
|
+
return chat_17.isMuted;
|
|
938
|
+
}
|
|
939
|
+
function _temp9(chat_16) {
|
|
940
|
+
return chat_16.isPinned;
|
|
941
|
+
}
|
|
942
|
+
function _temp8(count) {
|
|
943
|
+
return count + 1;
|
|
944
|
+
}
|
|
945
|
+
function _temp7(chat_10) {
|
|
946
|
+
return chat_10.id;
|
|
947
|
+
}
|
|
948
|
+
function _temp6(chat_9) {
|
|
949
|
+
return chat_9.isPinned;
|
|
950
|
+
}
|
|
951
|
+
function _temp5(chat_4) {
|
|
952
|
+
return !!chat_4;
|
|
953
|
+
}
|
|
954
|
+
function _temp4(chat_0) {
|
|
955
|
+
return chat_0.isArchived;
|
|
956
|
+
}
|
|
957
|
+
function _temp3(chat) {
|
|
958
|
+
return !chat.isArchived;
|
|
959
|
+
}
|
|
960
|
+
function HeaderButton(t0) {
|
|
961
|
+
const $ = _c(15);
|
|
962
|
+
const {
|
|
963
|
+
icon,
|
|
964
|
+
color,
|
|
965
|
+
label,
|
|
966
|
+
onPress
|
|
967
|
+
} = t0;
|
|
968
|
+
let t1;
|
|
969
|
+
if ($[0] !== color) {
|
|
970
|
+
t1 = {
|
|
971
|
+
color
|
|
972
|
+
};
|
|
973
|
+
$[0] = color;
|
|
974
|
+
$[1] = t1;
|
|
975
|
+
} else {
|
|
976
|
+
t1 = $[1];
|
|
977
|
+
}
|
|
978
|
+
let t2;
|
|
979
|
+
if ($[2] !== label) {
|
|
980
|
+
t2 = label.slice(0, 1);
|
|
981
|
+
$[2] = label;
|
|
982
|
+
$[3] = t2;
|
|
983
|
+
} else {
|
|
984
|
+
t2 = $[3];
|
|
985
|
+
}
|
|
986
|
+
let t3;
|
|
987
|
+
if ($[4] !== t1 || $[5] !== t2) {
|
|
988
|
+
t3 = <Text style={t1}>{t2}</Text>;
|
|
989
|
+
$[4] = t1;
|
|
990
|
+
$[5] = t2;
|
|
991
|
+
$[6] = t3;
|
|
992
|
+
} else {
|
|
993
|
+
t3 = $[6];
|
|
994
|
+
}
|
|
995
|
+
let t4;
|
|
996
|
+
if ($[7] !== color || $[8] !== icon || $[9] !== t3) {
|
|
997
|
+
t4 = <Icon name={icon} size={24} color={color} fallback={t3} />;
|
|
998
|
+
$[7] = color;
|
|
999
|
+
$[8] = icon;
|
|
1000
|
+
$[9] = t3;
|
|
1001
|
+
$[10] = t4;
|
|
1002
|
+
} else {
|
|
1003
|
+
t4 = $[10];
|
|
1004
|
+
}
|
|
1005
|
+
let t5;
|
|
1006
|
+
if ($[11] !== label || $[12] !== onPress || $[13] !== t4) {
|
|
1007
|
+
t5 = <Pressable onPress={onPress} hitSlop={4} style={styles.headerButton} accessibilityRole="button" accessibilityLabel={label}>{t4}</Pressable>;
|
|
1008
|
+
$[11] = label;
|
|
1009
|
+
$[12] = onPress;
|
|
1010
|
+
$[13] = t4;
|
|
1011
|
+
$[14] = t5;
|
|
1012
|
+
} else {
|
|
1013
|
+
t5 = $[14];
|
|
1014
|
+
}
|
|
1015
|
+
return t5;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/** The "Archived Chats" folder row: a grey archive avatar and the names inside. */
|
|
1019
|
+
function ArchiveRow(t0) {
|
|
1020
|
+
const $ = _c(40);
|
|
1021
|
+
const {
|
|
1022
|
+
chats,
|
|
1023
|
+
onPress
|
|
1024
|
+
} = t0;
|
|
1025
|
+
const {
|
|
1026
|
+
getTheme,
|
|
1027
|
+
getLabels
|
|
1028
|
+
} = useContext(ChatContext);
|
|
1029
|
+
let t1;
|
|
1030
|
+
if ($[0] !== getTheme) {
|
|
1031
|
+
t1 = getTheme();
|
|
1032
|
+
$[0] = getTheme;
|
|
1033
|
+
$[1] = t1;
|
|
1034
|
+
} else {
|
|
1035
|
+
t1 = $[1];
|
|
1036
|
+
}
|
|
1037
|
+
const colors = t1.chatList;
|
|
1038
|
+
let t2;
|
|
1039
|
+
if ($[2] !== getLabels) {
|
|
1040
|
+
t2 = getLabels();
|
|
1041
|
+
$[2] = getLabels;
|
|
1042
|
+
$[3] = t2;
|
|
1043
|
+
} else {
|
|
1044
|
+
t2 = $[3];
|
|
1045
|
+
}
|
|
1046
|
+
const labels = t2;
|
|
1047
|
+
const unread = chats.reduce(_temp10, 0);
|
|
1048
|
+
let t3;
|
|
1049
|
+
if ($[4] !== colors.background) {
|
|
1050
|
+
t3 = [styles.archiveRow, {
|
|
1051
|
+
backgroundColor: colors.background
|
|
1052
|
+
}];
|
|
1053
|
+
$[4] = colors.background;
|
|
1054
|
+
$[5] = t3;
|
|
1055
|
+
} else {
|
|
1056
|
+
t3 = $[5];
|
|
1057
|
+
}
|
|
1058
|
+
const t4 = colors.pressed;
|
|
1059
|
+
const t5 = labels.chatListArchived;
|
|
1060
|
+
let t6;
|
|
1061
|
+
if ($[6] !== labels.chatListArchived) {
|
|
1062
|
+
t6 = <View style={styles.archiveAvatar}><ChatListAvatar id="archive" title={labels.chatListArchived} size={52} isArchive={true} /></View>;
|
|
1063
|
+
$[6] = labels.chatListArchived;
|
|
1064
|
+
$[7] = t6;
|
|
1065
|
+
} else {
|
|
1066
|
+
t6 = $[7];
|
|
1067
|
+
}
|
|
1068
|
+
let t7;
|
|
1069
|
+
if ($[8] !== colors.name) {
|
|
1070
|
+
t7 = [styles.archiveTitle, {
|
|
1071
|
+
color: colors.name
|
|
1072
|
+
}];
|
|
1073
|
+
$[8] = colors.name;
|
|
1074
|
+
$[9] = t7;
|
|
1075
|
+
} else {
|
|
1076
|
+
t7 = $[9];
|
|
1077
|
+
}
|
|
1078
|
+
let t8;
|
|
1079
|
+
if ($[10] !== labels.chatListArchived || $[11] !== t7) {
|
|
1080
|
+
t8 = <Text style={t7} numberOfLines={1}>{labels.chatListArchived}</Text>;
|
|
1081
|
+
$[10] = labels.chatListArchived;
|
|
1082
|
+
$[11] = t7;
|
|
1083
|
+
$[12] = t8;
|
|
1084
|
+
} else {
|
|
1085
|
+
t8 = $[12];
|
|
1086
|
+
}
|
|
1087
|
+
let t9;
|
|
1088
|
+
if ($[13] !== colors.message) {
|
|
1089
|
+
t9 = [styles.archivePreview, {
|
|
1090
|
+
color: colors.message
|
|
1091
|
+
}];
|
|
1092
|
+
$[13] = colors.message;
|
|
1093
|
+
$[14] = t9;
|
|
1094
|
+
} else {
|
|
1095
|
+
t9 = $[14];
|
|
1096
|
+
}
|
|
1097
|
+
let t10;
|
|
1098
|
+
if ($[15] !== chats) {
|
|
1099
|
+
t10 = chats.map(_temp11).join(", ");
|
|
1100
|
+
$[15] = chats;
|
|
1101
|
+
$[16] = t10;
|
|
1102
|
+
} else {
|
|
1103
|
+
t10 = $[16];
|
|
1104
|
+
}
|
|
1105
|
+
let t11;
|
|
1106
|
+
if ($[17] !== t10 || $[18] !== t9) {
|
|
1107
|
+
t11 = <Text style={t9} numberOfLines={1}>{t10}</Text>;
|
|
1108
|
+
$[17] = t10;
|
|
1109
|
+
$[18] = t9;
|
|
1110
|
+
$[19] = t11;
|
|
1111
|
+
} else {
|
|
1112
|
+
t11 = $[19];
|
|
1113
|
+
}
|
|
1114
|
+
let t12;
|
|
1115
|
+
if ($[20] !== colors.badgeMuted || $[21] !== colors.badgeText || $[22] !== unread) {
|
|
1116
|
+
t12 = unread > 0 && <View style={[styles.archiveBadge, {
|
|
1117
|
+
backgroundColor: colors.badgeMuted
|
|
1118
|
+
}]}><Text style={[styles.archiveBadgeText, {
|
|
1119
|
+
color: colors.badgeText
|
|
1120
|
+
}]}>{unread}</Text></View>;
|
|
1121
|
+
$[20] = colors.badgeMuted;
|
|
1122
|
+
$[21] = colors.badgeText;
|
|
1123
|
+
$[22] = unread;
|
|
1124
|
+
$[23] = t12;
|
|
1125
|
+
} else {
|
|
1126
|
+
t12 = $[23];
|
|
1127
|
+
}
|
|
1128
|
+
let t13;
|
|
1129
|
+
if ($[24] !== t11 || $[25] !== t12) {
|
|
1130
|
+
t13 = <View style={styles.archiveBottom}>{t11}{t12}</View>;
|
|
1131
|
+
$[24] = t11;
|
|
1132
|
+
$[25] = t12;
|
|
1133
|
+
$[26] = t13;
|
|
1134
|
+
} else {
|
|
1135
|
+
t13 = $[26];
|
|
1136
|
+
}
|
|
1137
|
+
let t14;
|
|
1138
|
+
if ($[27] !== t13 || $[28] !== t8) {
|
|
1139
|
+
t14 = <View style={styles.archiveContent}>{t8}{t13}</View>;
|
|
1140
|
+
$[27] = t13;
|
|
1141
|
+
$[28] = t8;
|
|
1142
|
+
$[29] = t14;
|
|
1143
|
+
} else {
|
|
1144
|
+
t14 = $[29];
|
|
1145
|
+
}
|
|
1146
|
+
let t15;
|
|
1147
|
+
if ($[30] !== colors.divider) {
|
|
1148
|
+
t15 = <View style={[styles.archiveDivider, {
|
|
1149
|
+
backgroundColor: colors.divider
|
|
1150
|
+
}]} />;
|
|
1151
|
+
$[30] = colors.divider;
|
|
1152
|
+
$[31] = t15;
|
|
1153
|
+
} else {
|
|
1154
|
+
t15 = $[31];
|
|
1155
|
+
}
|
|
1156
|
+
let t16;
|
|
1157
|
+
if ($[32] !== colors.pressed || $[33] !== labels.chatListArchived || $[34] !== onPress || $[35] !== t14 || $[36] !== t15 || $[37] !== t3 || $[38] !== t6) {
|
|
1158
|
+
t16 = <Touchable style={t3} underlayColor={t4} activeUnderlayOpacity={1} onPress={onPress} accessibilityRole="button" accessibilityLabel={t5}>{t6}{t14}{t15}</Touchable>;
|
|
1159
|
+
$[32] = colors.pressed;
|
|
1160
|
+
$[33] = labels.chatListArchived;
|
|
1161
|
+
$[34] = onPress;
|
|
1162
|
+
$[35] = t14;
|
|
1163
|
+
$[36] = t15;
|
|
1164
|
+
$[37] = t3;
|
|
1165
|
+
$[38] = t6;
|
|
1166
|
+
$[39] = t16;
|
|
1167
|
+
} else {
|
|
1168
|
+
t16 = $[39];
|
|
1169
|
+
}
|
|
1170
|
+
return t16;
|
|
1171
|
+
}
|
|
1172
|
+
function _temp11(chat_0) {
|
|
1173
|
+
return chat_0.title;
|
|
1174
|
+
}
|
|
1175
|
+
function _temp10(sum, chat) {
|
|
1176
|
+
return sum + (chat.unreadCount ?? 0);
|
|
1177
|
+
}
|
|
1178
|
+
const EMPTY_ROWS = [];
|
|
1179
|
+
const styles = StyleSheet.create({
|
|
1180
|
+
fill: {
|
|
1181
|
+
flex: 1
|
|
1182
|
+
},
|
|
1183
|
+
liftedCell: {
|
|
1184
|
+
zIndex: 1
|
|
1185
|
+
},
|
|
1186
|
+
header: {
|
|
1187
|
+
zIndex: 1
|
|
1188
|
+
},
|
|
1189
|
+
headerBar: {
|
|
1190
|
+
height: HEADER_HEIGHT
|
|
1191
|
+
},
|
|
1192
|
+
headerContent: {
|
|
1193
|
+
...StyleSheet.absoluteFill,
|
|
1194
|
+
flexDirection: 'row',
|
|
1195
|
+
alignItems: 'center',
|
|
1196
|
+
paddingHorizontal: 4
|
|
1197
|
+
},
|
|
1198
|
+
headerButton: {
|
|
1199
|
+
width: 48,
|
|
1200
|
+
height: 48,
|
|
1201
|
+
alignItems: 'center',
|
|
1202
|
+
justifyContent: 'center'
|
|
1203
|
+
},
|
|
1204
|
+
headerTitle: {
|
|
1205
|
+
flexShrink: 1,
|
|
1206
|
+
fontSize: 20,
|
|
1207
|
+
fontWeight: '500',
|
|
1208
|
+
marginStart: 8
|
|
1209
|
+
},
|
|
1210
|
+
headerTitleStart: {
|
|
1211
|
+
marginStart: 14
|
|
1212
|
+
},
|
|
1213
|
+
selectionCount: {
|
|
1214
|
+
fontSize: 18,
|
|
1215
|
+
marginStart: 14
|
|
1216
|
+
},
|
|
1217
|
+
spacer: {
|
|
1218
|
+
flex: 1
|
|
1219
|
+
},
|
|
1220
|
+
searchInput: {
|
|
1221
|
+
flex: 1,
|
|
1222
|
+
fontSize: 18,
|
|
1223
|
+
marginStart: 8,
|
|
1224
|
+
textAlign: 'auto'
|
|
1225
|
+
},
|
|
1226
|
+
listContentWithFab: {
|
|
1227
|
+
paddingBottom: FAB_SIZE + 40
|
|
1228
|
+
},
|
|
1229
|
+
empty: {
|
|
1230
|
+
textAlign: 'center',
|
|
1231
|
+
marginTop: 48,
|
|
1232
|
+
fontSize: 15
|
|
1233
|
+
},
|
|
1234
|
+
// 20 from the end, 14 from the bottom.
|
|
1235
|
+
fabWrap: {
|
|
1236
|
+
position: 'absolute',
|
|
1237
|
+
end: 20,
|
|
1238
|
+
bottom: 14
|
|
1239
|
+
},
|
|
1240
|
+
fab: {
|
|
1241
|
+
width: FAB_SIZE,
|
|
1242
|
+
height: FAB_SIZE,
|
|
1243
|
+
borderRadius: FAB_SIZE / 2,
|
|
1244
|
+
alignItems: 'center',
|
|
1245
|
+
justifyContent: 'center',
|
|
1246
|
+
boxShadow: '0 1px 2px rgba(0, 0, 0, 0.2)'
|
|
1247
|
+
},
|
|
1248
|
+
archiveRow: {
|
|
1249
|
+
height: CHAT_LIST_ROW_HEIGHT,
|
|
1250
|
+
flexDirection: 'row'
|
|
1251
|
+
},
|
|
1252
|
+
archiveAvatar: {
|
|
1253
|
+
position: 'absolute',
|
|
1254
|
+
start: 11,
|
|
1255
|
+
top: 9
|
|
1256
|
+
},
|
|
1257
|
+
archiveContent: {
|
|
1258
|
+
flex: 1,
|
|
1259
|
+
marginStart: 76,
|
|
1260
|
+
paddingEnd: 15
|
|
1261
|
+
},
|
|
1262
|
+
archiveTitle: {
|
|
1263
|
+
marginTop: 14,
|
|
1264
|
+
height: 19,
|
|
1265
|
+
fontSize: 16,
|
|
1266
|
+
fontWeight: '500',
|
|
1267
|
+
textAlign: 'left'
|
|
1268
|
+
},
|
|
1269
|
+
archiveBottom: {
|
|
1270
|
+
marginTop: 5,
|
|
1271
|
+
height: 20.666,
|
|
1272
|
+
flexDirection: 'row',
|
|
1273
|
+
alignItems: 'center'
|
|
1274
|
+
},
|
|
1275
|
+
archivePreview: {
|
|
1276
|
+
flex: 1,
|
|
1277
|
+
fontSize: 15,
|
|
1278
|
+
textAlign: 'left'
|
|
1279
|
+
},
|
|
1280
|
+
archiveBadge: {
|
|
1281
|
+
minWidth: 20.666,
|
|
1282
|
+
height: 20.666,
|
|
1283
|
+
borderRadius: 11.5,
|
|
1284
|
+
paddingHorizontal: 6.333,
|
|
1285
|
+
marginStart: 6,
|
|
1286
|
+
alignItems: 'center',
|
|
1287
|
+
justifyContent: 'center'
|
|
1288
|
+
},
|
|
1289
|
+
archiveBadgeText: {
|
|
1290
|
+
fontSize: 13,
|
|
1291
|
+
fontWeight: '500'
|
|
1292
|
+
},
|
|
1293
|
+
archiveDivider: {
|
|
1294
|
+
position: 'absolute',
|
|
1295
|
+
start: 72,
|
|
1296
|
+
end: 0,
|
|
1297
|
+
bottom: 0,
|
|
1298
|
+
height: StyleSheet.hairlineWidth
|
|
1299
|
+
}
|
|
1300
|
+
});
|
|
1301
|
+
//# sourceMappingURL=index.js.map
|