@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,506 @@
|
|
|
1
|
+
import React, { memo, useEffect, useState } from 'react';
|
|
2
|
+
import { I18nManager, Image, Platform, StyleSheet, Text, useWindowDimensions, View } from 'react-native';
|
|
3
|
+
import { GestureDetector, Touchable, useCompetingGestures, usePanGesture } from 'react-native-gesture-handler';
|
|
4
|
+
import Animated, { Easing, FadeIn, FadeOut, runOnJS, useAnimatedStyle, useDerivedValue, useSharedValue, withSequence, withTiming } from 'react-native-reanimated';
|
|
5
|
+
import { useChatContext } from '../ChatContext';
|
|
6
|
+
import { selectionHaptic } from '../components/haptics';
|
|
7
|
+
import { Icon } from '../components/Icon';
|
|
8
|
+
import { TypingStatus } from '../components/TypingStatus';
|
|
9
|
+
import { useRowSwipe } from '../gestures/useRowSwipe';
|
|
10
|
+
import { useLabels } from '../hooks/useLabels';
|
|
11
|
+
import { useTheme } from '../hooks/useTheme';
|
|
12
|
+
import { ChatListAvatar } from './ChatListAvatar';
|
|
13
|
+
import { formatChatListDate, getChatPreview } from './utils';
|
|
14
|
+
|
|
15
|
+
// A two-line row 70 tall: the avatar 11 in and 52 across, the text from 76.
|
|
16
|
+
export const CHAT_LIST_ROW_HEIGHT = 70;
|
|
17
|
+
const ROW_HEIGHT = CHAT_LIST_ROW_HEIGHT;
|
|
18
|
+
const AVATAR_SIZE = 52;
|
|
19
|
+
const AVATAR_START = 11;
|
|
20
|
+
const TEXT_START = 76;
|
|
21
|
+
/** The divider starts 72 in and runs to the edge. */
|
|
22
|
+
const DIVIDER_INSET = 72;
|
|
23
|
+
|
|
24
|
+
/** Past 0.45 of the row's width the swipe ticks and reveals; a fast fling completes it too. */
|
|
25
|
+
const SWIPE_THRESHOLD = 0.45;
|
|
26
|
+
const SWIPE_ESCAPE_VELOCITY = 1200;
|
|
27
|
+
/** A cancelled swipe slides back over 200ms. */
|
|
28
|
+
const SWIPE_CANCEL = {
|
|
29
|
+
duration: 200,
|
|
30
|
+
easing: Easing.out(Easing.quad)
|
|
31
|
+
};
|
|
32
|
+
/** The reveal circle grows over 300ms, accelerating. */
|
|
33
|
+
const REVEAL = {
|
|
34
|
+
duration: 300,
|
|
35
|
+
easing: Easing.in(Easing.quad)
|
|
36
|
+
};
|
|
37
|
+
/** The swipe's icon is centred 43 from the row's end. */
|
|
38
|
+
const ICON_END = 43;
|
|
39
|
+
|
|
40
|
+
// Reordering pinned chats: a long press (the platform's 400ms) lifts the row, the others make
|
|
41
|
+
// way as it passes their middle, and it settles into its slot when let go.
|
|
42
|
+
const LONG_PRESS_MS = 400;
|
|
43
|
+
const MAKE_WAY = {
|
|
44
|
+
duration: 250,
|
|
45
|
+
easing: Easing.bezier(0.199, 0.011, 0.279, 0.91)
|
|
46
|
+
};
|
|
47
|
+
const SETTLE = {
|
|
48
|
+
duration: 200,
|
|
49
|
+
easing: Easing.inOut(Easing.sin)
|
|
50
|
+
};
|
|
51
|
+
/** The reorder handle and the badge or pin it replaces cross-fade over 170ms. */
|
|
52
|
+
const HANDLE_FADE = {
|
|
53
|
+
duration: 170,
|
|
54
|
+
easing: Easing.linear
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** Where the dragged row would land. */
|
|
58
|
+
const hoverIndex = (drag, count) => {
|
|
59
|
+
'worklet';
|
|
60
|
+
|
|
61
|
+
return Math.max(0, Math.min(count - 1, drag.from.value + Math.round(drag.y.value / ROW_HEIGHT)));
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* A chat's row: avatar, name, time, the last message (or a draft, or who is typing), the unread
|
|
66
|
+
* counter or pin, a swipe to archive, and dragging when pinned chats can be reordered.
|
|
67
|
+
*/
|
|
68
|
+
function ChatListCellInner({
|
|
69
|
+
chat,
|
|
70
|
+
user,
|
|
71
|
+
isSelected,
|
|
72
|
+
isSelectionMode,
|
|
73
|
+
onPress,
|
|
74
|
+
onLongPress,
|
|
75
|
+
onSwipe,
|
|
76
|
+
isLast,
|
|
77
|
+
reorder,
|
|
78
|
+
isReordering = false
|
|
79
|
+
}) {
|
|
80
|
+
// The gesture callbacks read shared values; React Compiler would memoize them into render.
|
|
81
|
+
'use no memo';
|
|
82
|
+
|
|
83
|
+
const theme = useTheme();
|
|
84
|
+
const colors = theme.chatList;
|
|
85
|
+
const labels = useLabels();
|
|
86
|
+
const {
|
|
87
|
+
getLocale
|
|
88
|
+
} = useChatContext();
|
|
89
|
+
const {
|
|
90
|
+
width
|
|
91
|
+
} = useWindowDimensions();
|
|
92
|
+
|
|
93
|
+
// The row swipes towards the start edge, revealing the action at the end.
|
|
94
|
+
const direction = I18nManager.isRTL ? 1 : -1;
|
|
95
|
+
const reveal = useSharedValue(0);
|
|
96
|
+
const iconScale = useSharedValue(1);
|
|
97
|
+
const {
|
|
98
|
+
gesture: pan,
|
|
99
|
+
offset: translateX
|
|
100
|
+
} = useRowSwipe({
|
|
101
|
+
isEnabled: !isSelectionMode && !!onSwipe,
|
|
102
|
+
sign: direction,
|
|
103
|
+
activeOffsetX: 15,
|
|
104
|
+
failOffsetY: 12,
|
|
105
|
+
threshold: width * SWIPE_THRESHOLD,
|
|
106
|
+
onThresholdChange: past => {
|
|
107
|
+
'worklet';
|
|
108
|
+
|
|
109
|
+
reveal.value = withTiming(past ? 1 : 0, REVEAL);
|
|
110
|
+
if (past) iconScale.value = withSequence(withTiming(1.2, {
|
|
111
|
+
duration: 85
|
|
112
|
+
}), withTiming(1, {
|
|
113
|
+
duration: 85
|
|
114
|
+
}));
|
|
115
|
+
runOnJS(selectionHaptic)();
|
|
116
|
+
},
|
|
117
|
+
onRelease: (isPast, velocity, rowOffset) => {
|
|
118
|
+
'worklet';
|
|
119
|
+
|
|
120
|
+
const isFling = velocity > SWIPE_ESCAPE_VELOCITY;
|
|
121
|
+
if (onSwipe && (isPast || isFling)) {
|
|
122
|
+
rowOffset.value = withTiming(width * direction, SWIPE_CANCEL, isFinished => {
|
|
123
|
+
if (isFinished) runOnJS(onSwipe)(chat);
|
|
124
|
+
});
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
rowOffset.value = withTiming(0, SWIPE_CANCEL);
|
|
128
|
+
reveal.value = withTiming(0, SWIPE_CANCEL);
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
const drag = reorder?.drag;
|
|
132
|
+
const index = reorder?.index ?? 0;
|
|
133
|
+
const count = reorder?.count ?? 0;
|
|
134
|
+
const onDragStart = reorder?.onStart;
|
|
135
|
+
const onDrop = reorder?.onDrop;
|
|
136
|
+
const chatKey = String(chat.id);
|
|
137
|
+
// How far this row has moved to make way for the dragged one.
|
|
138
|
+
const shift = useSharedValue(0);
|
|
139
|
+
const dragPan = usePanGesture({
|
|
140
|
+
enabled: !!reorder,
|
|
141
|
+
activateAfterLongPress: LONG_PRESS_MS,
|
|
142
|
+
onActivate: () => {
|
|
143
|
+
if (!drag) return;
|
|
144
|
+
drag.id.set(chatKey);
|
|
145
|
+
drag.from.set(index);
|
|
146
|
+
drag.y.set(0);
|
|
147
|
+
drag.isActive.set(true);
|
|
148
|
+
if (onDragStart) runOnJS(onDragStart)(chat);
|
|
149
|
+
},
|
|
150
|
+
onUpdate: event => {
|
|
151
|
+
if (!drag) return;
|
|
152
|
+
// Kept to the pinned rows, give or take half a row.
|
|
153
|
+
const min = -(index + 0.5) * ROW_HEIGHT;
|
|
154
|
+
const max = (count - 1 - index + 0.5) * ROW_HEIGHT;
|
|
155
|
+
drag.y.set(Math.max(min, Math.min(max, event.translationY)));
|
|
156
|
+
},
|
|
157
|
+
onDeactivate: () => {
|
|
158
|
+
if (!drag || drag.id.value !== chatKey) return;
|
|
159
|
+
const to = hoverIndex(drag, count);
|
|
160
|
+
drag.y.set(withTiming((to - index) * ROW_HEIGHT, SETTLE, () => {
|
|
161
|
+
if (onDrop) runOnJS(onDrop)(chat, to);
|
|
162
|
+
}));
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
const gesture = useCompetingGestures(pan, dragPan);
|
|
166
|
+
|
|
167
|
+
// Where this row should sit, eased there while a drag is on and dropped at once after it.
|
|
168
|
+
const lastTarget = useSharedValue(0);
|
|
169
|
+
useDerivedValue(() => {
|
|
170
|
+
let target = 0;
|
|
171
|
+
if (drag && drag.isActive.value && drag.id.value !== chatKey) {
|
|
172
|
+
const from = drag.from.value;
|
|
173
|
+
const to_0 = hoverIndex(drag, count);
|
|
174
|
+
if (from < index && index <= to_0) target = -ROW_HEIGHT;else if (to_0 <= index && index < from) target = ROW_HEIGHT;
|
|
175
|
+
}
|
|
176
|
+
if (target === lastTarget.value) return;
|
|
177
|
+
lastTarget.value = target;
|
|
178
|
+
shift.value = drag?.isActive.value ? withTiming(target, MAKE_WAY) : target;
|
|
179
|
+
});
|
|
180
|
+
const isLifted = useDerivedValue(() => !!drag && drag.isActive.value && drag.id.value === chatKey);
|
|
181
|
+
const dragStyle = useAnimatedStyle(() => ({
|
|
182
|
+
transform: [{
|
|
183
|
+
translateY: isLifted.value && drag ? drag.y.value : shift.value
|
|
184
|
+
}],
|
|
185
|
+
elevation: isLifted.value ? 6 : 0,
|
|
186
|
+
shadowOpacity: isLifted.value ? 0.18 : 0
|
|
187
|
+
}));
|
|
188
|
+
const handleProgress = useSharedValue(isReordering ? 1 : 0);
|
|
189
|
+
useEffect(() => {
|
|
190
|
+
handleProgress.value = withTiming(isReordering ? 1 : 0, HANDLE_FADE);
|
|
191
|
+
}, [isReordering, handleProgress]);
|
|
192
|
+
const handleStyle = useAnimatedStyle(() => ({
|
|
193
|
+
opacity: handleProgress.value
|
|
194
|
+
}));
|
|
195
|
+
const trailingStyle = useAnimatedStyle(() => ({
|
|
196
|
+
opacity: 1 - handleProgress.value
|
|
197
|
+
}));
|
|
198
|
+
const rowStyle = useAnimatedStyle(() => ({
|
|
199
|
+
transform: [{
|
|
200
|
+
translateX: translateX.value
|
|
201
|
+
}]
|
|
202
|
+
}));
|
|
203
|
+
const revealStyle = useAnimatedStyle(() => ({
|
|
204
|
+
transform: [{
|
|
205
|
+
scale: reveal.value
|
|
206
|
+
}]
|
|
207
|
+
}));
|
|
208
|
+
const iconStyle = useAnimatedStyle(() => ({
|
|
209
|
+
transform: [{
|
|
210
|
+
scale: iconScale.value
|
|
211
|
+
}]
|
|
212
|
+
}));
|
|
213
|
+
|
|
214
|
+
// Archive: the accent, with the grey circle growing past the threshold. Unarchive swaps them.
|
|
215
|
+
const background = chat.isArchived ? colors.swipeUnarchive : colors.swipeArchive;
|
|
216
|
+
const revealColor = chat.isArchived ? colors.swipeArchive : colors.swipeUnarchive;
|
|
217
|
+
// The circle reaches the far corner of the row from the icon's centre.
|
|
218
|
+
const revealRadius = Math.hypot(width - ICON_END, ROW_HEIGHT / 2);
|
|
219
|
+
const lastMessage = chat.lastMessage;
|
|
220
|
+
const preview = getChatPreview(chat, labels, user);
|
|
221
|
+
// A thumbnail that fails to load is dropped, so "Photo" does not sit after an empty gap.
|
|
222
|
+
const [failedThumbnail, setFailedThumbnail] = useState();
|
|
223
|
+
const thumbnail = preview.thumbnail && preview.thumbnail !== failedThumbnail ? preview.thumbnail : undefined;
|
|
224
|
+
const typingUsers = chat.typingUsers ?? [];
|
|
225
|
+
const isOutgoing = !!user && lastMessage?.user?._id === user._id && chat.kind !== 'channel' && !lastMessage?.system;
|
|
226
|
+
const unreadCount = chat.unreadCount ?? 0;
|
|
227
|
+
const rowBackground = isSelected ? colors.selectedRow : 'transparent';
|
|
228
|
+
const statusIcon = lastMessage?.pending ? 'clock' : lastMessage?.received ? 'checkAll' : 'check';
|
|
229
|
+
return <GestureDetector gesture={gesture}>
|
|
230
|
+
<Animated.View style={[styles.row, styles.liftShadow, dragStyle]}>
|
|
231
|
+
{!!onSwipe && <View style={[StyleSheet.absoluteFill, {
|
|
232
|
+
backgroundColor: background
|
|
233
|
+
}]}>
|
|
234
|
+
<Animated.View style={[styles.reveal, {
|
|
235
|
+
width: revealRadius * 2,
|
|
236
|
+
height: revealRadius * 2,
|
|
237
|
+
borderRadius: revealRadius,
|
|
238
|
+
end: ICON_END - revealRadius,
|
|
239
|
+
top: ROW_HEIGHT / 2 - revealRadius,
|
|
240
|
+
backgroundColor: revealColor
|
|
241
|
+
}, revealStyle]} />
|
|
242
|
+
<Animated.View style={[styles.swipeAction, iconStyle]}>
|
|
243
|
+
<Icon name={chat.isArchived ? 'unarchive' : 'archive'} size={28} color='#FFFFFF' fallback={null} />
|
|
244
|
+
<Text style={styles.swipeLabel}>{chat.isArchived ? labels.chatListUnarchive : labels.chatListArchive}</Text>
|
|
245
|
+
</Animated.View>
|
|
246
|
+
</View>}
|
|
247
|
+
|
|
248
|
+
<Animated.View style={[styles.fill, {
|
|
249
|
+
backgroundColor: colors.background
|
|
250
|
+
}, rowStyle]}>
|
|
251
|
+
<Touchable style={[styles.fill, {
|
|
252
|
+
backgroundColor: rowBackground
|
|
253
|
+
}]} underlayColor={colors.pressed} activeUnderlayOpacity={1} onPress={() => onPress(chat)} onLongPress={() => onLongPress(chat)} accessibilityRole='button' accessibilityLabel={chat.title} accessibilityState={{
|
|
254
|
+
selected: isSelected
|
|
255
|
+
}}>
|
|
256
|
+
<View style={styles.avatar}>
|
|
257
|
+
<ChatListAvatar id={chat.id} title={chat.title} uri={chat.avatar} size={AVATAR_SIZE} isOnline={chat.isOnline} isSelected={isSelected} />
|
|
258
|
+
</View>
|
|
259
|
+
|
|
260
|
+
<View style={styles.content}>
|
|
261
|
+
<View style={styles.topLine}>
|
|
262
|
+
<View style={styles.nameRow}>
|
|
263
|
+
<Text style={[styles.name, {
|
|
264
|
+
color: colors.name
|
|
265
|
+
}]} numberOfLines={1}>{chat.title}</Text>
|
|
266
|
+
{chat.isVerified && <View style={styles.nameIcon}>
|
|
267
|
+
<Icon name='verified' size={16} color={colors.verified} fallback={null} />
|
|
268
|
+
</View>}
|
|
269
|
+
{chat.isMuted && <View style={styles.nameIcon}>
|
|
270
|
+
<Icon name='mute' size={15} color={colors.muteIcon} fallback={null} />
|
|
271
|
+
</View>}
|
|
272
|
+
</View>
|
|
273
|
+
{isOutgoing && !chat.draft && <View style={styles.checks}>
|
|
274
|
+
<Icon name={statusIcon} size={16} color={colors.check} fallback={null} />
|
|
275
|
+
</View>}
|
|
276
|
+
{lastMessage?.createdAt != null && <Text style={[styles.time, {
|
|
277
|
+
color: colors.date
|
|
278
|
+
}]}>{formatChatListDate(lastMessage.createdAt, getLocale())}</Text>}
|
|
279
|
+
</View>
|
|
280
|
+
|
|
281
|
+
<View style={styles.bottomLine}>
|
|
282
|
+
<View style={styles.previewBox}>
|
|
283
|
+
{typingUsers.length > 0 ? <Animated.View key='typing' entering={FadeIn.duration(200)} exiting={FadeOut.duration(200)} style={styles.previewLayer}>
|
|
284
|
+
<TypingStatus users={typingUsers} action={chat.typingAction} isGroup={chat.kind === 'group'} color={colors.typing} textStyle={styles.message} />
|
|
285
|
+
</Animated.View> : <Animated.View key='message' entering={FadeIn.duration(200)} exiting={FadeOut.duration(200)} style={styles.previewLayer}>
|
|
286
|
+
{chat.draft ? <Text style={[styles.message, {
|
|
287
|
+
color: colors.message
|
|
288
|
+
}]} numberOfLines={1}>
|
|
289
|
+
<Text style={{
|
|
290
|
+
color: colors.draft
|
|
291
|
+
}}>{labels.chatListDraft} </Text>
|
|
292
|
+
{chat.draft}
|
|
293
|
+
</Text> : <>
|
|
294
|
+
{!!preview.prefix && <Text style={[styles.message, styles.noShrink, {
|
|
295
|
+
color: colors.senderPrefix
|
|
296
|
+
}]}>{preview.prefix}</Text>}
|
|
297
|
+
{!!thumbnail && <Image source={{
|
|
298
|
+
uri: thumbnail
|
|
299
|
+
}} onError={() => setFailedThumbnail(thumbnail)} style={styles.thumbnail} />}
|
|
300
|
+
<Text style={[styles.message, styles.shrink, {
|
|
301
|
+
color: colors.message
|
|
302
|
+
}]} numberOfLines={1}>
|
|
303
|
+
{preview.attachment ? <Text style={{
|
|
304
|
+
color: colors.attachment
|
|
305
|
+
}}>{preview.attachment}</Text> : preview.text}
|
|
306
|
+
</Text>
|
|
307
|
+
</>}
|
|
308
|
+
</Animated.View>}
|
|
309
|
+
</View>
|
|
310
|
+
<Animated.View style={trailingStyle}>
|
|
311
|
+
{unreadCount > 0 ? <Animated.View entering={FadeIn.duration(150)} exiting={FadeOut.duration(150)} style={[styles.badge, {
|
|
312
|
+
backgroundColor: chat.isMuted ? colors.badgeMuted : colors.badge
|
|
313
|
+
}]}>
|
|
314
|
+
<Text style={[styles.badgeText, {
|
|
315
|
+
color: colors.badgeText
|
|
316
|
+
}]}>{unreadCount}</Text>
|
|
317
|
+
</Animated.View> : chat.isPinned && <View style={styles.pin}>
|
|
318
|
+
<Icon name='pushpin' size={16} color={colors.pinIcon} fallback={null} />
|
|
319
|
+
</View>}
|
|
320
|
+
</Animated.View>
|
|
321
|
+
{chat.isPinned && <Animated.View style={[styles.handle, handleStyle]} pointerEvents='none'>
|
|
322
|
+
<Icon name='reorder' size={20} color={colors.pinIcon} fallback={<Text style={{
|
|
323
|
+
color: colors.pinIcon
|
|
324
|
+
}}>≡</Text>} />
|
|
325
|
+
</Animated.View>}
|
|
326
|
+
</View>
|
|
327
|
+
</View>
|
|
328
|
+
|
|
329
|
+
{!isLast && <View style={[styles.divider, {
|
|
330
|
+
backgroundColor: colors.divider
|
|
331
|
+
}]} />}
|
|
332
|
+
</Touchable>
|
|
333
|
+
</Animated.View>
|
|
334
|
+
</Animated.View>
|
|
335
|
+
</GestureDetector>;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/** The drag props are rebuilt with the list; what matters is what they say. */
|
|
339
|
+
const isSameReorder = (a, b) => a === b || !!a && !!b && a.index === b.index && a.count === b.count && a.drag === b.drag && a.onStart === b.onStart && a.onDrop === b.onDrop;
|
|
340
|
+
const arePropsEqual = (previous, next) => previous.chat === next.chat && previous.user === next.user && previous.isSelected === next.isSelected && previous.isSelectionMode === next.isSelectionMode && previous.onPress === next.onPress && previous.onLongPress === next.onLongPress && previous.onSwipe === next.onSwipe && previous.isLast === next.isLast && previous.isReordering === next.isReordering && isSameReorder(previous.reorder, next.reorder);
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* A chat's row: avatar, name, time, the last message (or a draft, or who is typing), the unread
|
|
344
|
+
* counter or pin, a swipe to archive, and dragging when pinned chats can be reordered. Rows only
|
|
345
|
+
* re-render when their own chat or state changes.
|
|
346
|
+
*/
|
|
347
|
+
export const ChatListCell = memo(ChatListCellInner, arePropsEqual);
|
|
348
|
+
|
|
349
|
+
// Each line takes 20pt of the row, set rather than left to the font. On Android a text view
|
|
350
|
+
// clips its glyphs to its line box, and Roboto's descenders and colour emoji reach past 20, so
|
|
351
|
+
// there the box is 24 and gives the 4 back as negative margins: the glyphs draw whole, the row
|
|
352
|
+
// lays out as before, and the typing icon still centres on the text's middle.
|
|
353
|
+
const lineBox = Platform.select({
|
|
354
|
+
android: {
|
|
355
|
+
lineHeight: 24,
|
|
356
|
+
marginVertical: -2,
|
|
357
|
+
includeFontPadding: false
|
|
358
|
+
},
|
|
359
|
+
default: {
|
|
360
|
+
lineHeight: 20
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
const styles = StyleSheet.create({
|
|
364
|
+
row: {
|
|
365
|
+
height: ROW_HEIGHT,
|
|
366
|
+
overflow: 'hidden'
|
|
367
|
+
},
|
|
368
|
+
liftShadow: {
|
|
369
|
+
shadowColor: '#000000',
|
|
370
|
+
shadowOffset: {
|
|
371
|
+
width: 0,
|
|
372
|
+
height: 2
|
|
373
|
+
},
|
|
374
|
+
shadowRadius: 6
|
|
375
|
+
},
|
|
376
|
+
fill: {
|
|
377
|
+
flex: 1,
|
|
378
|
+
flexDirection: 'row'
|
|
379
|
+
},
|
|
380
|
+
reveal: {
|
|
381
|
+
position: 'absolute'
|
|
382
|
+
},
|
|
383
|
+
swipeAction: {
|
|
384
|
+
position: 'absolute',
|
|
385
|
+
end: ICON_END - 40,
|
|
386
|
+
top: 0,
|
|
387
|
+
bottom: 0,
|
|
388
|
+
width: 80,
|
|
389
|
+
alignItems: 'center',
|
|
390
|
+
justifyContent: 'center'
|
|
391
|
+
},
|
|
392
|
+
swipeLabel: {
|
|
393
|
+
color: '#FFFFFF',
|
|
394
|
+
fontSize: 13,
|
|
395
|
+
fontWeight: '500',
|
|
396
|
+
marginTop: 2
|
|
397
|
+
},
|
|
398
|
+
avatar: {
|
|
399
|
+
position: 'absolute',
|
|
400
|
+
start: AVATAR_START,
|
|
401
|
+
top: (ROW_HEIGHT - AVATAR_SIZE) / 2
|
|
402
|
+
},
|
|
403
|
+
content: {
|
|
404
|
+
flex: 1,
|
|
405
|
+
marginStart: TEXT_START,
|
|
406
|
+
paddingEnd: 15
|
|
407
|
+
},
|
|
408
|
+
// The name's box starts 14 down and the time's 16: both centre on the same line.
|
|
409
|
+
topLine: {
|
|
410
|
+
marginTop: 14,
|
|
411
|
+
height: 20,
|
|
412
|
+
flexDirection: 'row',
|
|
413
|
+
alignItems: 'center'
|
|
414
|
+
},
|
|
415
|
+
nameRow: {
|
|
416
|
+
flex: 1,
|
|
417
|
+
flexDirection: 'row',
|
|
418
|
+
alignItems: 'center'
|
|
419
|
+
},
|
|
420
|
+
name: {
|
|
421
|
+
flexShrink: 1,
|
|
422
|
+
fontSize: 16,
|
|
423
|
+
...lineBox,
|
|
424
|
+
fontWeight: '500',
|
|
425
|
+
textAlign: 'left'
|
|
426
|
+
},
|
|
427
|
+
nameIcon: {
|
|
428
|
+
marginStart: 4
|
|
429
|
+
},
|
|
430
|
+
// The checks sit 5 before the time.
|
|
431
|
+
checks: {
|
|
432
|
+
marginStart: 6,
|
|
433
|
+
marginEnd: 5
|
|
434
|
+
},
|
|
435
|
+
time: {
|
|
436
|
+
fontSize: 12,
|
|
437
|
+
marginStart: 6
|
|
438
|
+
},
|
|
439
|
+
bottomLine: {
|
|
440
|
+
marginTop: 4,
|
|
441
|
+
height: 20.666,
|
|
442
|
+
flexDirection: 'row',
|
|
443
|
+
alignItems: 'center'
|
|
444
|
+
},
|
|
445
|
+
previewBox: {
|
|
446
|
+
flex: 1,
|
|
447
|
+
height: 20.666,
|
|
448
|
+
marginEnd: 6
|
|
449
|
+
},
|
|
450
|
+
previewLayer: {
|
|
451
|
+
...StyleSheet.absoluteFill,
|
|
452
|
+
flexDirection: 'row',
|
|
453
|
+
alignItems: 'center'
|
|
454
|
+
},
|
|
455
|
+
message: {
|
|
456
|
+
fontSize: 15,
|
|
457
|
+
...lineBox,
|
|
458
|
+
textAlign: 'left'
|
|
459
|
+
},
|
|
460
|
+
noShrink: {
|
|
461
|
+
flexShrink: 0
|
|
462
|
+
},
|
|
463
|
+
shrink: {
|
|
464
|
+
flexShrink: 1
|
|
465
|
+
},
|
|
466
|
+
thumbnail: {
|
|
467
|
+
width: 18,
|
|
468
|
+
height: 18,
|
|
469
|
+
borderRadius: 2,
|
|
470
|
+
marginEnd: 4
|
|
471
|
+
},
|
|
472
|
+
// A circle until the count needs more room.
|
|
473
|
+
badge: {
|
|
474
|
+
minWidth: 20.666,
|
|
475
|
+
height: 20.666,
|
|
476
|
+
borderRadius: 11.5,
|
|
477
|
+
paddingHorizontal: 6.333,
|
|
478
|
+
alignItems: 'center',
|
|
479
|
+
justifyContent: 'center',
|
|
480
|
+
marginEnd: 0.666
|
|
481
|
+
},
|
|
482
|
+
badgeText: {
|
|
483
|
+
fontSize: 13,
|
|
484
|
+
fontWeight: '500'
|
|
485
|
+
},
|
|
486
|
+
// A tilted pushpin.
|
|
487
|
+
pin: {
|
|
488
|
+
transform: [{
|
|
489
|
+
rotate: '45deg'
|
|
490
|
+
}]
|
|
491
|
+
},
|
|
492
|
+
// In the pin's place, at the end of the second line.
|
|
493
|
+
handle: {
|
|
494
|
+
position: 'absolute',
|
|
495
|
+
end: 0,
|
|
496
|
+
top: 0
|
|
497
|
+
},
|
|
498
|
+
divider: {
|
|
499
|
+
position: 'absolute',
|
|
500
|
+
start: DIVIDER_INSET,
|
|
501
|
+
end: 0,
|
|
502
|
+
bottom: 0,
|
|
503
|
+
height: StyleSheet.hairlineWidth
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
//# sourceMappingURL=ChatListCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatListCell.js","names":["React","memo","useEffect","useState","I18nManager","Image","Platform","StyleSheet","Text","useWindowDimensions","View","GestureDetector","Touchable","useCompetingGestures","usePanGesture","Animated","Easing","FadeIn","FadeOut","runOnJS","useAnimatedStyle","useDerivedValue","useSharedValue","withSequence","withTiming","useChatContext","selectionHaptic","Icon","TypingStatus","useRowSwipe","useLabels","useTheme","ChatListAvatar","formatChatListDate","getChatPreview","CHAT_LIST_ROW_HEIGHT","ROW_HEIGHT","AVATAR_SIZE","AVATAR_START","TEXT_START","DIVIDER_INSET","SWIPE_THRESHOLD","SWIPE_ESCAPE_VELOCITY","SWIPE_CANCEL","duration","easing","out","quad","REVEAL","in","ICON_END","LONG_PRESS_MS","MAKE_WAY","bezier","SETTLE","inOut","sin","HANDLE_FADE","linear","hoverIndex","drag","count","Math","max","min","from","value","round","y","ChatListCellInner","chat","user","isSelected","isSelectionMode","onPress","onLongPress","onSwipe","isLast","reorder","isReordering","theme","colors","chatList","labels","getLocale","width","direction","isRTL","reveal","iconScale","gesture","pan","offset","translateX","isEnabled","sign","activeOffsetX","failOffsetY","threshold","onThresholdChange","past","onRelease","isPast","velocity","rowOffset","isFling","isFinished","index","onDragStart","onStart","onDrop","chatKey","String","id","shift","dragPan","enabled","activateAfterLongPress","onActivate","set","isActive","onUpdate","event","translationY","onDeactivate","to","lastTarget","target","isLifted","dragStyle","transform","translateY","elevation","shadowOpacity","handleProgress","handleStyle","opacity","trailingStyle","rowStyle","revealStyle","scale","iconStyle","background","isArchived","swipeUnarchive","swipeArchive","revealColor","revealRadius","hypot","lastMessage","preview","failedThumbnail","setFailedThumbnail","thumbnail","undefined","typingUsers","isOutgoing","_id","kind","system","unreadCount","rowBackground","selectedRow","statusIcon","pending","received","styles","row","liftShadow","absoluteFill","backgroundColor","height","borderRadius","end","top","swipeAction","swipeLabel","chatListUnarchive","chatListArchive","fill","pressed","title","selected","avatar","isOnline","content","topLine","nameRow","name","color","isVerified","nameIcon","verified","isMuted","muteIcon","draft","checks","check","createdAt","time","date","bottomLine","previewBox","length","previewLayer","typingAction","typing","message","chatListDraft","prefix","noShrink","senderPrefix","uri","shrink","attachment","text","badge","badgeMuted","badgeText","isPinned","pin","pinIcon","handle","divider","isSameReorder","a","b","arePropsEqual","previous","next","ChatListCell","lineBox","select","android","lineHeight","marginVertical","includeFontPadding","default","create","overflow","shadowColor","shadowOffset","shadowRadius","flex","flexDirection","position","bottom","alignItems","justifyContent","fontSize","fontWeight","marginTop","start","marginStart","paddingEnd","flexShrink","textAlign","marginEnd","minWidth","paddingHorizontal","rotate","hairlineWidth"],"sources":["../../src/ChatList/ChatListCell.tsx"],"sourcesContent":["import React, { memo, useEffect, useState } from 'react'\nimport { I18nManager, Image, Platform, StyleSheet, Text, useWindowDimensions, View } from 'react-native'\nimport { GestureDetector, Touchable, useCompetingGestures, usePanGesture } from 'react-native-gesture-handler'\nimport Animated, {\n Easing,\n FadeIn,\n FadeOut,\n runOnJS,\n useAnimatedStyle,\n useDerivedValue,\n useSharedValue,\n withSequence,\n withTiming,\n} from 'react-native-reanimated'\n\nimport { useChatContext } from '../ChatContext'\nimport { selectionHaptic } from '../components/haptics'\nimport { Icon } from '../components/Icon'\nimport { TypingStatus } from '../components/TypingStatus'\nimport { useRowSwipe } from '../gestures/useRowSwipe'\nimport { useLabels } from '../hooks/useLabels'\nimport { useTheme } from '../hooks/useTheme'\nimport { ChatListAvatar } from './ChatListAvatar'\nimport { ChatListCellProps, ChatListDrag, ChatListItem } from './types'\nimport { formatChatListDate, getChatPreview } from './utils'\n\n// A two-line row 70 tall: the avatar 11 in and 52 across, the text from 76.\nexport const CHAT_LIST_ROW_HEIGHT = 70\nconst ROW_HEIGHT = CHAT_LIST_ROW_HEIGHT\nconst AVATAR_SIZE = 52\nconst AVATAR_START = 11\nconst TEXT_START = 76\n/** The divider starts 72 in and runs to the edge. */\nconst DIVIDER_INSET = 72\n\n/** Past 0.45 of the row's width the swipe ticks and reveals; a fast fling completes it too. */\nconst SWIPE_THRESHOLD = 0.45\nconst SWIPE_ESCAPE_VELOCITY = 1200\n/** A cancelled swipe slides back over 200ms. */\nconst SWIPE_CANCEL = { duration: 200, easing: Easing.out(Easing.quad) }\n/** The reveal circle grows over 300ms, accelerating. */\nconst REVEAL = { duration: 300, easing: Easing.in(Easing.quad) }\n/** The swipe's icon is centred 43 from the row's end. */\nconst ICON_END = 43\n\n// Reordering pinned chats: a long press (the platform's 400ms) lifts the row, the others make\n// way as it passes their middle, and it settles into its slot when let go.\nconst LONG_PRESS_MS = 400\nconst MAKE_WAY = { duration: 250, easing: Easing.bezier(0.199, 0.011, 0.279, 0.91) }\nconst SETTLE = { duration: 200, easing: Easing.inOut(Easing.sin) }\n/** The reorder handle and the badge or pin it replaces cross-fade over 170ms. */\nconst HANDLE_FADE = { duration: 170, easing: Easing.linear }\n\n/** Where the dragged row would land. */\nconst hoverIndex = (drag: ChatListDrag, count: number) => {\n 'worklet'\n return Math.max(0, Math.min(count - 1, drag.from.value + Math.round(drag.y.value / ROW_HEIGHT)))\n}\n\n/**\n * A chat's row: avatar, name, time, the last message (or a draft, or who is typing), the unread\n * counter or pin, a swipe to archive, and dragging when pinned chats can be reordered.\n */\nfunction ChatListCellInner<TChat extends ChatListItem> ({\n chat,\n user,\n isSelected,\n isSelectionMode,\n onPress,\n onLongPress,\n onSwipe,\n isLast,\n reorder,\n isReordering = false,\n}: ChatListCellProps<TChat>) {\n // The gesture callbacks read shared values; React Compiler would memoize them into render.\n 'use no memo'\n const theme = useTheme()\n const colors = theme.chatList\n const labels = useLabels()\n const { getLocale } = useChatContext()\n const { width } = useWindowDimensions()\n\n // The row swipes towards the start edge, revealing the action at the end.\n const direction = I18nManager.isRTL ? 1 : -1\n const reveal = useSharedValue(0)\n const iconScale = useSharedValue(1)\n\n const { gesture: pan, offset: translateX } = useRowSwipe({\n isEnabled: !isSelectionMode && !!onSwipe,\n sign: direction,\n activeOffsetX: 15,\n failOffsetY: 12,\n threshold: width * SWIPE_THRESHOLD,\n onThresholdChange: past => {\n 'worklet'\n reveal.value = withTiming(past ? 1 : 0, REVEAL)\n if (past)\n iconScale.value = withSequence(withTiming(1.2, { duration: 85 }), withTiming(1, { duration: 85 }))\n runOnJS(selectionHaptic)()\n },\n onRelease: (isPast, velocity, rowOffset) => {\n 'worklet'\n const isFling = velocity > SWIPE_ESCAPE_VELOCITY\n if (onSwipe && (isPast || isFling)) {\n rowOffset.value = withTiming(width * direction, SWIPE_CANCEL, isFinished => {\n if (isFinished)\n runOnJS(onSwipe)(chat)\n })\n return\n }\n rowOffset.value = withTiming(0, SWIPE_CANCEL)\n reveal.value = withTiming(0, SWIPE_CANCEL)\n },\n })\n\n const drag = reorder?.drag\n const index = reorder?.index ?? 0\n const count = reorder?.count ?? 0\n const onDragStart = reorder?.onStart\n const onDrop = reorder?.onDrop\n const chatKey = String(chat.id)\n // How far this row has moved to make way for the dragged one.\n const shift = useSharedValue(0)\n const dragPan = usePanGesture({\n enabled: !!reorder,\n activateAfterLongPress: LONG_PRESS_MS,\n onActivate: () => {\n if (!drag)\n return\n drag.id.set(chatKey)\n drag.from.set(index)\n drag.y.set(0)\n drag.isActive.set(true)\n if (onDragStart)\n runOnJS(onDragStart)(chat)\n },\n onUpdate: event => {\n if (!drag)\n return\n // Kept to the pinned rows, give or take half a row.\n const min = -(index + 0.5) * ROW_HEIGHT\n const max = (count - 1 - index + 0.5) * ROW_HEIGHT\n drag.y.set(Math.max(min, Math.min(max, event.translationY)))\n },\n onDeactivate: () => {\n if (!drag || drag.id.value !== chatKey)\n return\n const to = hoverIndex(drag, count)\n drag.y.set(withTiming((to - index) * ROW_HEIGHT, SETTLE, () => {\n if (onDrop)\n runOnJS(onDrop)(chat, to)\n }))\n },\n })\n const gesture = useCompetingGestures(pan, dragPan)\n\n // Where this row should sit, eased there while a drag is on and dropped at once after it.\n const lastTarget = useSharedValue(0)\n useDerivedValue(() => {\n let target = 0\n if (drag && drag.isActive.value && drag.id.value !== chatKey) {\n const from = drag.from.value\n const to = hoverIndex(drag, count)\n if (from < index && index <= to)\n target = -ROW_HEIGHT\n else if (to <= index && index < from)\n target = ROW_HEIGHT\n }\n if (target === lastTarget.value)\n return\n lastTarget.value = target\n shift.value = drag?.isActive.value ? withTiming(target, MAKE_WAY) : target\n })\n const isLifted = useDerivedValue(() => !!drag && drag.isActive.value && drag.id.value === chatKey)\n const dragStyle = useAnimatedStyle(() => ({\n transform: [{ translateY: isLifted.value && drag ? drag.y.value : shift.value }],\n elevation: isLifted.value ? 6 : 0,\n shadowOpacity: isLifted.value ? 0.18 : 0,\n }))\n\n const handleProgress = useSharedValue(isReordering ? 1 : 0)\n useEffect(() => {\n handleProgress.value = withTiming(isReordering ? 1 : 0, HANDLE_FADE)\n }, [isReordering, handleProgress])\n const handleStyle = useAnimatedStyle(() => ({ opacity: handleProgress.value }))\n const trailingStyle = useAnimatedStyle(() => ({ opacity: 1 - handleProgress.value }))\n\n const rowStyle = useAnimatedStyle(() => ({ transform: [{ translateX: translateX.value }] }))\n const revealStyle = useAnimatedStyle(() => ({ transform: [{ scale: reveal.value }] }))\n const iconStyle = useAnimatedStyle(() => ({ transform: [{ scale: iconScale.value }] }))\n\n // Archive: the accent, with the grey circle growing past the threshold. Unarchive swaps them.\n const background = chat.isArchived ? colors.swipeUnarchive : colors.swipeArchive\n const revealColor = chat.isArchived ? colors.swipeArchive : colors.swipeUnarchive\n // The circle reaches the far corner of the row from the icon's centre.\n const revealRadius = Math.hypot(width - ICON_END, ROW_HEIGHT / 2)\n\n const lastMessage = chat.lastMessage\n const preview = getChatPreview(chat, labels, user)\n // A thumbnail that fails to load is dropped, so \"Photo\" does not sit after an empty gap.\n const [failedThumbnail, setFailedThumbnail] = useState<string>()\n const thumbnail = preview.thumbnail && preview.thumbnail !== failedThumbnail ? preview.thumbnail : undefined\n const typingUsers = chat.typingUsers ?? []\n const isOutgoing = !!user && lastMessage?.user?._id === user._id && chat.kind !== 'channel' && !lastMessage?.system\n const unreadCount = chat.unreadCount ?? 0\n const rowBackground = isSelected ? colors.selectedRow : 'transparent'\n const statusIcon = lastMessage?.pending ? 'clock' : lastMessage?.received ? 'checkAll' : 'check'\n\n return (\n <GestureDetector gesture={gesture}>\n <Animated.View style={[styles.row, styles.liftShadow, dragStyle]}>\n {!!onSwipe && (\n <View style={[StyleSheet.absoluteFill, { backgroundColor: background }]}>\n <Animated.View\n style={[\n styles.reveal,\n {\n width: revealRadius * 2,\n height: revealRadius * 2,\n borderRadius: revealRadius,\n end: ICON_END - revealRadius,\n top: ROW_HEIGHT / 2 - revealRadius,\n backgroundColor: revealColor,\n },\n revealStyle,\n ]}\n />\n <Animated.View style={[styles.swipeAction, iconStyle]}>\n <Icon name={chat.isArchived ? 'unarchive' : 'archive'} size={28} color='#FFFFFF' fallback={null} />\n <Text style={styles.swipeLabel}>{chat.isArchived ? labels.chatListUnarchive : labels.chatListArchive}</Text>\n </Animated.View>\n </View>\n )}\n\n <Animated.View style={[styles.fill, { backgroundColor: colors.background }, rowStyle]}>\n <Touchable\n style={[styles.fill, { backgroundColor: rowBackground }]}\n underlayColor={colors.pressed}\n activeUnderlayOpacity={1}\n onPress={() => onPress(chat)}\n onLongPress={() => onLongPress(chat)}\n accessibilityRole='button'\n accessibilityLabel={chat.title}\n accessibilityState={{ selected: isSelected }}\n >\n <View style={styles.avatar}>\n <ChatListAvatar\n id={chat.id}\n title={chat.title}\n uri={chat.avatar}\n size={AVATAR_SIZE}\n isOnline={chat.isOnline}\n isSelected={isSelected}\n />\n </View>\n\n <View style={styles.content}>\n <View style={styles.topLine}>\n <View style={styles.nameRow}>\n <Text style={[styles.name, { color: colors.name }]} numberOfLines={1}>{chat.title}</Text>\n {chat.isVerified && (\n <View style={styles.nameIcon}>\n <Icon name='verified' size={16} color={colors.verified} fallback={null} />\n </View>\n )}\n {chat.isMuted && (\n <View style={styles.nameIcon}>\n <Icon name='mute' size={15} color={colors.muteIcon} fallback={null} />\n </View>\n )}\n </View>\n {isOutgoing && !chat.draft && (\n <View style={styles.checks}>\n <Icon name={statusIcon} size={16} color={colors.check} fallback={null} />\n </View>\n )}\n {lastMessage?.createdAt != null && (\n <Text style={[styles.time, { color: colors.date }]}>{formatChatListDate(lastMessage.createdAt, getLocale())}</Text>\n )}\n </View>\n\n <View style={styles.bottomLine}>\n <View style={styles.previewBox}>\n {typingUsers.length > 0\n ? (\n <Animated.View key='typing' entering={FadeIn.duration(200)} exiting={FadeOut.duration(200)} style={styles.previewLayer}>\n <TypingStatus\n users={typingUsers}\n action={chat.typingAction}\n isGroup={chat.kind === 'group'}\n color={colors.typing}\n textStyle={styles.message}\n />\n </Animated.View>\n )\n : (\n <Animated.View key='message' entering={FadeIn.duration(200)} exiting={FadeOut.duration(200)} style={styles.previewLayer}>\n {chat.draft\n ? (\n <Text style={[styles.message, { color: colors.message }]} numberOfLines={1}>\n <Text style={{ color: colors.draft }}>{labels.chatListDraft} </Text>\n {chat.draft}\n </Text>\n )\n : (\n <>\n {!!preview.prefix && <Text style={[styles.message, styles.noShrink, { color: colors.senderPrefix }]}>{preview.prefix}</Text>}\n {!!thumbnail && <Image source={{ uri: thumbnail }} onError={() => setFailedThumbnail(thumbnail)} style={styles.thumbnail} />}\n <Text style={[styles.message, styles.shrink, { color: colors.message }]} numberOfLines={1}>\n {preview.attachment ? <Text style={{ color: colors.attachment }}>{preview.attachment}</Text> : preview.text}\n </Text>\n </>\n )}\n </Animated.View>\n )}\n </View>\n <Animated.View style={trailingStyle}>\n {unreadCount > 0\n ? (\n <Animated.View\n entering={FadeIn.duration(150)}\n exiting={FadeOut.duration(150)}\n style={[styles.badge, { backgroundColor: chat.isMuted ? colors.badgeMuted : colors.badge }]}\n >\n <Text style={[styles.badgeText, { color: colors.badgeText }]}>{unreadCount}</Text>\n </Animated.View>\n )\n : chat.isPinned && (\n <View style={styles.pin}>\n <Icon name='pushpin' size={16} color={colors.pinIcon} fallback={null} />\n </View>\n )}\n </Animated.View>\n {chat.isPinned && (\n <Animated.View style={[styles.handle, handleStyle]} pointerEvents='none'>\n <Icon name='reorder' size={20} color={colors.pinIcon} fallback={<Text style={{ color: colors.pinIcon }}>≡</Text>} />\n </Animated.View>\n )}\n </View>\n </View>\n\n {!isLast && <View style={[styles.divider, { backgroundColor: colors.divider }]} />}\n </Touchable>\n </Animated.View>\n </Animated.View>\n </GestureDetector>\n )\n}\n\n/** The drag props are rebuilt with the list; what matters is what they say. */\nconst isSameReorder = (a?: ChatListCellProps['reorder'], b?: ChatListCellProps['reorder']) =>\n a === b || (!!a && !!b && a.index === b.index && a.count === b.count && a.drag === b.drag &&\n a.onStart === b.onStart && a.onDrop === b.onDrop)\n\nconst arePropsEqual = (previous: ChatListCellProps, next: ChatListCellProps) =>\n previous.chat === next.chat &&\n previous.user === next.user &&\n previous.isSelected === next.isSelected &&\n previous.isSelectionMode === next.isSelectionMode &&\n previous.onPress === next.onPress &&\n previous.onLongPress === next.onLongPress &&\n previous.onSwipe === next.onSwipe &&\n previous.isLast === next.isLast &&\n previous.isReordering === next.isReordering &&\n isSameReorder(previous.reorder, next.reorder)\n\n/**\n * A chat's row: avatar, name, time, the last message (or a draft, or who is typing), the unread\n * counter or pin, a swipe to archive, and dragging when pinned chats can be reordered. Rows only\n * re-render when their own chat or state changes.\n */\nexport const ChatListCell = memo(ChatListCellInner, arePropsEqual as never) as typeof ChatListCellInner\n\n// Each line takes 20pt of the row, set rather than left to the font. On Android a text view\n// clips its glyphs to its line box, and Roboto's descenders and colour emoji reach past 20, so\n// there the box is 24 and gives the 4 back as negative margins: the glyphs draw whole, the row\n// lays out as before, and the typing icon still centres on the text's middle.\nconst lineBox = Platform.select({\n android: { lineHeight: 24, marginVertical: -2, includeFontPadding: false },\n default: { lineHeight: 20 },\n})\n\nconst styles = StyleSheet.create({\n row: {\n height: ROW_HEIGHT,\n overflow: 'hidden',\n },\n liftShadow: {\n shadowColor: '#000000',\n shadowOffset: { width: 0, height: 2 },\n shadowRadius: 6,\n },\n fill: {\n flex: 1,\n flexDirection: 'row',\n },\n reveal: {\n position: 'absolute',\n },\n swipeAction: {\n position: 'absolute',\n end: ICON_END - 40,\n top: 0,\n bottom: 0,\n width: 80,\n alignItems: 'center',\n justifyContent: 'center',\n },\n swipeLabel: {\n color: '#FFFFFF',\n fontSize: 13,\n fontWeight: '500',\n marginTop: 2,\n },\n avatar: {\n position: 'absolute',\n start: AVATAR_START,\n top: (ROW_HEIGHT - AVATAR_SIZE) / 2,\n },\n content: {\n flex: 1,\n marginStart: TEXT_START,\n paddingEnd: 15,\n },\n // The name's box starts 14 down and the time's 16: both centre on the same line.\n topLine: {\n marginTop: 14,\n height: 20,\n flexDirection: 'row',\n alignItems: 'center',\n },\n nameRow: {\n flex: 1,\n flexDirection: 'row',\n alignItems: 'center',\n },\n name: {\n flexShrink: 1,\n fontSize: 16,\n ...lineBox,\n fontWeight: '500',\n textAlign: 'left',\n },\n nameIcon: {\n marginStart: 4,\n },\n // The checks sit 5 before the time.\n checks: {\n marginStart: 6,\n marginEnd: 5,\n },\n time: {\n fontSize: 12,\n marginStart: 6,\n },\n bottomLine: {\n marginTop: 4,\n height: 20.666,\n flexDirection: 'row',\n alignItems: 'center',\n },\n previewBox: {\n flex: 1,\n height: 20.666,\n marginEnd: 6,\n },\n previewLayer: {\n ...StyleSheet.absoluteFill,\n flexDirection: 'row',\n alignItems: 'center',\n },\n message: {\n fontSize: 15,\n ...lineBox,\n textAlign: 'left',\n },\n noShrink: {\n flexShrink: 0,\n },\n shrink: {\n flexShrink: 1,\n },\n thumbnail: {\n width: 18,\n height: 18,\n borderRadius: 2,\n marginEnd: 4,\n },\n // A circle until the count needs more room.\n badge: {\n minWidth: 20.666,\n height: 20.666,\n borderRadius: 11.5,\n paddingHorizontal: 6.333,\n alignItems: 'center',\n justifyContent: 'center',\n marginEnd: 0.666,\n },\n badgeText: {\n fontSize: 13,\n fontWeight: '500',\n },\n // A tilted pushpin.\n pin: {\n transform: [{ rotate: '45deg' }],\n },\n // In the pin's place, at the end of the second line.\n handle: {\n position: 'absolute',\n end: 0,\n top: 0,\n },\n divider: {\n position: 'absolute',\n start: DIVIDER_INSET,\n end: 0,\n bottom: 0,\n height: StyleSheet.hairlineWidth,\n },\n})\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AACxD,SAASC,WAAW,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,mBAAmB,EAAEC,IAAI,QAAQ,cAAc;AACxG,SAASC,eAAe,EAAEC,SAAS,EAAEC,oBAAoB,EAAEC,aAAa,QAAQ,8BAA8B;AAC9G,OAAOC,QAAQ,IACbC,MAAM,EACNC,MAAM,EACNC,OAAO,EACPC,OAAO,EACPC,gBAAgB,EAChBC,eAAe,EACfC,cAAc,EACdC,YAAY,EACZC,UAAU,QACL,yBAAyB;AAEhC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SAASC,IAAI,QAAQ,oBAAoB;AACzC,SAASC,YAAY,QAAQ,4BAA4B;AACzD,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,SAASC,kBAAkB,EAAEC,cAAc,QAAQ,SAAS;;AAE5D;AACA,OAAO,MAAMC,oBAAoB,GAAG,EAAE;AACtC,MAAMC,UAAU,GAAGD,oBAAoB;AACvC,M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QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBS,SAAS,EAAE;EACb,CAAC;EACDvC,SAAS,EAAE;IACT+B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACD;EACA9B,GAAG,EAAE;IACH1F,SAAS,EAAE,CAAC;MAAEkI,MAAM,EAAE;IAAQ,CAAC;EACjC,CAAC;EACD;EACAtC,MAAM,EAAE;IACNuB,QAAQ,EAAE,UAAU;IACpBxE,GAAG,EAAE,CAAC;IACNC,GAAG,EAAE;EACP,CAAC;EACDiD,OAAO,EAAE;IACPsB,QAAQ,EAAE,UAAU;IACpBO,KAAK,EAAEpN,aAAa;IACpBqI,GAAG,EAAE,CAAC;IACNyE,MAAM,EAAE,CAAC;IACT3E,MAAM,EAAEpK,UAAU,CAAC8P;EACrB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatListShimmer.d.ts","sourceRoot":"","sources":["../../src/ChatList/ChatListShimmer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AA6BlD,wBAAgB,eAAe,sBAwF9B"}
|