@kesha-antonov/react-native-chat 5.0.1 → 6.0.1
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 +486 -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 -13
- package/lib/Bubble/index.d.ts.map +1 -1
- package/lib/Bubble/index.js +379 -509
- 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 -161
- 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 +289 -119
- 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 +153 -51
- 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.js +318 -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,176 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import { useDerivedValue, useSharedValue } from 'react-native-reanimated';
|
|
4
|
+
import { CONTENT_PADDING_BOTTOM } from './listState';
|
|
5
|
+
const LAYOUT_SETTLE_MS = 500;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The list's size and scroll position as shared values, and the layout and content-size
|
|
9
|
+
* handlers that keep them current.
|
|
10
|
+
*/
|
|
11
|
+
export function useListMetrics(listProps) {
|
|
12
|
+
const $ = _c(29);
|
|
13
|
+
const [isListLaidOut, setIsListLaidOut] = useState(false);
|
|
14
|
+
const [isLayoutAnimated, setIsLayoutAnimated] = useState(false);
|
|
15
|
+
let t0;
|
|
16
|
+
let t1;
|
|
17
|
+
if ($[0] !== isLayoutAnimated || $[1] !== isListLaidOut) {
|
|
18
|
+
t0 = () => {
|
|
19
|
+
if (!isListLaidOut || isLayoutAnimated) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const timer = setTimeout(() => setIsLayoutAnimated(true), LAYOUT_SETTLE_MS);
|
|
23
|
+
return () => clearTimeout(timer);
|
|
24
|
+
};
|
|
25
|
+
t1 = [isListLaidOut, isLayoutAnimated];
|
|
26
|
+
$[0] = isLayoutAnimated;
|
|
27
|
+
$[1] = isListLaidOut;
|
|
28
|
+
$[2] = t0;
|
|
29
|
+
$[3] = t1;
|
|
30
|
+
} else {
|
|
31
|
+
t0 = $[2];
|
|
32
|
+
t1 = $[3];
|
|
33
|
+
}
|
|
34
|
+
useEffect(t0, t1);
|
|
35
|
+
const listHeight = useSharedValue(0);
|
|
36
|
+
const contentHeight = useSharedValue(0);
|
|
37
|
+
const scrollOffset = useSharedValue(0);
|
|
38
|
+
let t2;
|
|
39
|
+
if ($[4] !== scrollOffset) {
|
|
40
|
+
t2 = {
|
|
41
|
+
scrollOffset
|
|
42
|
+
};
|
|
43
|
+
$[4] = scrollOffset;
|
|
44
|
+
$[5] = t2;
|
|
45
|
+
} else {
|
|
46
|
+
t2 = $[5];
|
|
47
|
+
}
|
|
48
|
+
const sharedValues = t2;
|
|
49
|
+
const rowsHeight = useSharedValue(0);
|
|
50
|
+
const footerSize = useSharedValue(0);
|
|
51
|
+
const scrolledY = useDerivedValue(() => scrollOffset.value - (contentHeight.value - rowsHeight.value - footerSize.value - CONTENT_PADDING_BOTTOM));
|
|
52
|
+
let t3;
|
|
53
|
+
if ($[6] !== listHeight || $[7] !== listProps?.onLayout) {
|
|
54
|
+
t3 = event => {
|
|
55
|
+
listHeight.set(event.nativeEvent.layout.height);
|
|
56
|
+
setIsListLaidOut(true);
|
|
57
|
+
const onLayoutProp = listProps?.onLayout;
|
|
58
|
+
onLayoutProp?.(event);
|
|
59
|
+
};
|
|
60
|
+
$[6] = listHeight;
|
|
61
|
+
$[7] = listProps?.onLayout;
|
|
62
|
+
$[8] = t3;
|
|
63
|
+
} else {
|
|
64
|
+
t3 = $[8];
|
|
65
|
+
}
|
|
66
|
+
const onLayoutList = t3;
|
|
67
|
+
const [isContentShort, setIsContentShort] = useState(true);
|
|
68
|
+
let t4;
|
|
69
|
+
if ($[9] !== contentHeight || $[10] !== listHeight) {
|
|
70
|
+
t4 = (_width, height) => {
|
|
71
|
+
contentHeight.set(height);
|
|
72
|
+
const isShort = height <= listHeight.get() + 1;
|
|
73
|
+
setIsContentShort(previous => previous === isShort ? previous : isShort);
|
|
74
|
+
};
|
|
75
|
+
$[9] = contentHeight;
|
|
76
|
+
$[10] = listHeight;
|
|
77
|
+
$[11] = t4;
|
|
78
|
+
} else {
|
|
79
|
+
t4 = $[11];
|
|
80
|
+
}
|
|
81
|
+
const onContentSizeChange = t4;
|
|
82
|
+
let t5;
|
|
83
|
+
if ($[12] !== footerSize) {
|
|
84
|
+
t5 = metrics => {
|
|
85
|
+
footerSize.set(metrics.footerSize);
|
|
86
|
+
};
|
|
87
|
+
$[12] = footerSize;
|
|
88
|
+
$[13] = t5;
|
|
89
|
+
} else {
|
|
90
|
+
t5 = $[13];
|
|
91
|
+
}
|
|
92
|
+
const onMetricsChange = t5;
|
|
93
|
+
const t6 = !isContentShort;
|
|
94
|
+
let t7;
|
|
95
|
+
if ($[14] !== t6) {
|
|
96
|
+
t7 = {
|
|
97
|
+
animated: t6
|
|
98
|
+
};
|
|
99
|
+
$[14] = t6;
|
|
100
|
+
$[15] = t7;
|
|
101
|
+
} else {
|
|
102
|
+
t7 = $[15];
|
|
103
|
+
}
|
|
104
|
+
const maintainScrollAtEnd = t7;
|
|
105
|
+
let t8;
|
|
106
|
+
if ($[16] !== contentHeight || $[17] !== isLayoutAnimated || $[18] !== isListLaidOut || $[19] !== listHeight || $[20] !== maintainScrollAtEnd || $[21] !== onContentSizeChange || $[22] !== onLayoutList || $[23] !== onMetricsChange || $[24] !== rowsHeight || $[25] !== scrollOffset || $[26] !== scrolledY || $[27] !== sharedValues) {
|
|
107
|
+
t8 = {
|
|
108
|
+
isListLaidOut,
|
|
109
|
+
isLayoutAnimated,
|
|
110
|
+
listHeight,
|
|
111
|
+
contentHeight,
|
|
112
|
+
scrollOffset,
|
|
113
|
+
sharedValues,
|
|
114
|
+
rowsHeight,
|
|
115
|
+
scrolledY,
|
|
116
|
+
onLayoutList,
|
|
117
|
+
onContentSizeChange,
|
|
118
|
+
onMetricsChange,
|
|
119
|
+
maintainScrollAtEnd
|
|
120
|
+
};
|
|
121
|
+
$[16] = contentHeight;
|
|
122
|
+
$[17] = isLayoutAnimated;
|
|
123
|
+
$[18] = isListLaidOut;
|
|
124
|
+
$[19] = listHeight;
|
|
125
|
+
$[20] = maintainScrollAtEnd;
|
|
126
|
+
$[21] = onContentSizeChange;
|
|
127
|
+
$[22] = onLayoutList;
|
|
128
|
+
$[23] = onMetricsChange;
|
|
129
|
+
$[24] = rowsHeight;
|
|
130
|
+
$[25] = scrollOffset;
|
|
131
|
+
$[26] = scrolledY;
|
|
132
|
+
$[27] = sharedValues;
|
|
133
|
+
$[28] = t8;
|
|
134
|
+
} else {
|
|
135
|
+
t8 = $[28];
|
|
136
|
+
}
|
|
137
|
+
return t8;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** Keeps `rowsHeight` at the rows' total height, which `scrolledY` measures from. */
|
|
141
|
+
export function useRowsHeight(isListLaidOut, listState, rowsHeight, orderedData) {
|
|
142
|
+
const $ = _c(6);
|
|
143
|
+
let t0;
|
|
144
|
+
let t1;
|
|
145
|
+
if ($[0] !== isListLaidOut || $[1] !== listState || $[2] !== orderedData || $[3] !== rowsHeight) {
|
|
146
|
+
t0 = () => {
|
|
147
|
+
const state = isListLaidOut ? listState() : undefined;
|
|
148
|
+
if (!state) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const lastMessage = orderedData[orderedData.length - 1];
|
|
152
|
+
if (lastMessage) {
|
|
153
|
+
const lastId = String(lastMessage._id);
|
|
154
|
+
const position = state.positionByKey(lastId);
|
|
155
|
+
if (position != null) {
|
|
156
|
+
rowsHeight.set(position + (state.sizes.get(lastId) ?? 0));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return state.listen("totalSize", size => {
|
|
160
|
+
rowsHeight.set(size);
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
t1 = [isListLaidOut, listState, rowsHeight, orderedData];
|
|
164
|
+
$[0] = isListLaidOut;
|
|
165
|
+
$[1] = listState;
|
|
166
|
+
$[2] = orderedData;
|
|
167
|
+
$[3] = rowsHeight;
|
|
168
|
+
$[4] = t0;
|
|
169
|
+
$[5] = t1;
|
|
170
|
+
} else {
|
|
171
|
+
t0 = $[4];
|
|
172
|
+
t1 = $[5];
|
|
173
|
+
}
|
|
174
|
+
useEffect(t0, t1);
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=useListMetrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useListMetrics.js","names":["useCallback","useEffect","useMemo","useState","useDerivedValue","useSharedValue","CONTENT_PADDING_BOTTOM","LAYOUT_SETTLE_MS","useListMetrics","listProps","$","_c","isListLaidOut","setIsListLaidOut","isLayoutAnimated","setIsLayoutAnimated","t0","t1","timer","setTimeout","clearTimeout","listHeight","contentHeight","scrollOffset","t2","sharedValues","rowsHeight","footerSize","scrolledY","value","t3","onLayout","event","set","nativeEvent","layout","height","onLayoutProp","onLayoutList","isContentShort","setIsContentShort","t4","_width","isShort","get","previous","onContentSizeChange","t5","metrics","onMetricsChange","t6","t7","animated","maintainScrollAtEnd","t8","useRowsHeight","listState","orderedData","state","undefined","lastMessage","length","lastId","String","_id","position","positionByKey","sizes","listen","size"],"sources":["../../src/MessagesContainer/useListMetrics.ts"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState } from 'react'\nimport { LayoutChangeEvent } from 'react-native'\nimport { SharedValue, useDerivedValue, useSharedValue } from 'react-native-reanimated'\n\nimport { IMessage } from '../Models'\nimport { CONTENT_PADDING_BOTTOM, ListState } from './listState'\nimport { AnimatedListProps } from './types'\n\nconst LAYOUT_SETTLE_MS = 500\n\n/**\n * The list's size and scroll position as shared values, and the layout and content-size\n * handlers that keep them current.\n */\nexport function useListMetrics<TMessage extends IMessage> (listProps: AnimatedListProps<TMessage> | undefined) {\n const [isListLaidOut, setIsListLaidOut] = useState(false)\n // Rows slide when they move, but not while the list first lays itself out: it places rows at\n // an estimated height and moves them once they are measured, and on Android those corrections\n // played as messages sliding in each time a chat opened. A chat should open with everything\n // already in place, as Telegram's does, so the slide starts once the first layout has settled.\n const [isLayoutAnimated, setIsLayoutAnimated] = useState(false)\n useEffect(() => {\n if (!isListLaidOut || isLayoutAnimated)\n return\n const timer = setTimeout(() => setIsLayoutAnimated(true), LAYOUT_SETTLE_MS)\n return () => clearTimeout(timer)\n }, [isListLaidOut, isLayoutAnimated])\n\n const listHeight = useSharedValue(0)\n const contentHeight = useSharedValue(0)\n // The list's scroll offset, from the top, kept on the UI thread by the list itself.\n const scrollOffset = useSharedValue(0)\n const sharedValues = useMemo(() => ({ scrollOffset }), [scrollOffset])\n // Rows' positions count from the first row; the scroll offset counts from the very top, above\n // the list's header (\"Load earlier\") and, in a conversation shorter than the list, the space\n // that holds it at the bottom. The rows end where the content does, less the footer and the\n // bottom padding, so the offset in the rows' terms is measured from there. The day header, the\n // inline separators and the gradient bubbles read it.\n const rowsHeight = useSharedValue(0)\n const footerSize = useSharedValue(0)\n const scrolledY = useDerivedValue(() =>\n scrollOffset.value - (contentHeight.value - rowsHeight.value - footerSize.value - CONTENT_PADDING_BOTTOM))\n\n const onLayoutList = useCallback((event: LayoutChangeEvent) => {\n listHeight.set(event.nativeEvent.layout.height)\n setIsListLaidOut(true)\n\n const onLayoutProp = listProps?.onLayout as ((event: LayoutChangeEvent) => void) | undefined\n onLayoutProp?.(event)\n }, [listHeight, listProps])\n\n // Whether the whole conversation still fits the list (see `maintainScrollAtEnd` below).\n const [isContentShort, setIsContentShort] = useState(true)\n const onContentSizeChange = useCallback((_width: number, height: number) => {\n contentHeight.set(height)\n // The space holding a short chat at the bottom makes its content exactly as tall as the list.\n const isShort = height <= listHeight.get() + 1\n setIsContentShort(previous => previous === isShort ? previous : isShort)\n }, [contentHeight, listHeight])\n const onMetricsChange = useCallback((metrics: { footerSize: number }) => {\n footerSize.set(metrics.footerSize)\n }, [footerSize])\n\n // New messages keep the list at the newest one while it is there (or near), and the newest\n // message comes up from below with the scroll, as the rows above it make room. While the\n // whole conversation still fits, the follow is immediate: an animated one holds back the space\n // that keeps a short chat at the bottom until it ends, and a reply streaming in restarts it\n // every few frames, so the reply grew off screen until it was done.\n const maintainScrollAtEnd = useMemo(() => ({ animated: !isContentShort }), [isContentShort])\n\n return {\n isListLaidOut,\n isLayoutAnimated,\n listHeight,\n contentHeight,\n scrollOffset,\n sharedValues,\n rowsHeight,\n scrolledY,\n onLayoutList,\n onContentSizeChange,\n onMetricsChange,\n maintainScrollAtEnd,\n }\n}\n\n/** Keeps `rowsHeight` at the rows' total height, which `scrolledY` measures from. */\nexport function useRowsHeight (\n isListLaidOut: boolean,\n listState: () => ListState | undefined,\n rowsHeight: SharedValue<number>,\n orderedData: IMessage[]\n) {\n useEffect(() => {\n const state = isListLaidOut ? listState() : undefined\n if (!state)\n return\n // The listener only hears changes. On iOS the rows' height has usually settled before this\n // subscribes, so it never fired and the height stayed 0 - putting every gradient bubble a\n // content height off, all of them the gradient's last colour. Start from the last row's end.\n const lastMessage = orderedData[orderedData.length - 1]\n if (lastMessage) {\n const lastId = String(lastMessage._id)\n const position = state.positionByKey(lastId)\n if (position != null)\n rowsHeight.set(position + (state.sizes.get(lastId) ?? 0))\n }\n return state.listen('totalSize', size => {\n rowsHeight.set(size)\n })\n }, [isListLaidOut, listState, rowsHeight, orderedData])\n}\n"],"mappings":";AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAEjE,SAAsBC,eAAe,EAAEC,cAAc,QAAQ,yBAAyB;AAGtF,SAASC,sBAAsB,QAAmB,aAAa;AAG/D,MAAMC,gBAAgB,GAAG,GAAG;;AAE5B;AACA;AACA;AACA;AACA,OAAO,SAAAC,eAAAC,SAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EACL,OAAAC,aAAA,EAAAC,gBAAA,IAA0CV,QAAQ,CAAC,KAAK,CAAC;EAKzD,OAAAW,gBAAA,EAAAC,mBAAA,IAAgDZ,QAAQ,CAAC,KAAK,CAAC;EAAA,IAAAa,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAP,CAAA,QAAAI,gBAAA,IAAAJ,CAAA,QAAAE,aAAA;IACrDI,EAAA,GA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AAAM,EAAA;IAAAN,CAAA,MAAAO,EAAA;EAAA;IAAAD,EAAA,GAAAN,CAAA;IAAAO,EAAA,GAAAP,CAAA;EAAA;EAjBtDT,SAAS,CAACe,EAiBT,EAAEC,EAAmD,CAAC;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SharedValue } from 'react-native-reanimated';
|
|
3
|
+
import { IMessage } from '../Models';
|
|
4
|
+
import { RowTargets } from './rowConfig';
|
|
5
|
+
import { MessageRowStore } from './rowStore';
|
|
6
|
+
import { DaysPositions, MessagesContainerProps } from './types';
|
|
7
|
+
/** The list's shared values every row reads through the row config. */
|
|
8
|
+
interface RowSharedValues {
|
|
9
|
+
scrolledY: SharedValue<number>;
|
|
10
|
+
daysPositions: SharedValue<DaysPositions>;
|
|
11
|
+
listHeight: SharedValue<number>;
|
|
12
|
+
floatingRenderedDate: SharedValue<number | undefined>;
|
|
13
|
+
floatingDayOpacity: SharedValue<number>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* What the rows read: the row store, the shared row config and the per-row targets, plus the
|
|
17
|
+
* list's data in display order and where it opens.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useMessageRows<TMessage extends IMessage>(props: MessagesContainerProps<TMessage>, sharedValues: RowSharedValues): {
|
|
20
|
+
rowStore: MessageRowStore<TMessage>;
|
|
21
|
+
orderedData: TMessage[];
|
|
22
|
+
initialScroll: {
|
|
23
|
+
initialScrollIndex: {
|
|
24
|
+
index: number;
|
|
25
|
+
viewPosition: number;
|
|
26
|
+
};
|
|
27
|
+
initialScrollAtEnd?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
initialScrollAtEnd: boolean;
|
|
30
|
+
initialScrollIndex?: undefined;
|
|
31
|
+
};
|
|
32
|
+
rowConfig: {
|
|
33
|
+
scrolledY: SharedValue<number>;
|
|
34
|
+
daysPositions: SharedValue<DaysPositions>;
|
|
35
|
+
listHeight: SharedValue<number>;
|
|
36
|
+
floatingRenderedDate: SharedValue<number | undefined>;
|
|
37
|
+
floatingDayOpacity: SharedValue<number>;
|
|
38
|
+
};
|
|
39
|
+
rowTargets: import("../store").Store<RowTargets>;
|
|
40
|
+
renderItem: ({ item }: {
|
|
41
|
+
item: unknown;
|
|
42
|
+
}) => React.ReactElement;
|
|
43
|
+
keyExtractor: (item: unknown) => string;
|
|
44
|
+
};
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=useMessageRows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMessageRows.d.ts","sourceRoot":"","sources":["../../src/MessagesContainer/useMessageRows.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAA;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAGpC,OAAO,EAAE,UAAU,EAAsB,MAAM,aAAa,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAa,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAE/D,uEAAuE;AACvE,UAAU,eAAe;IACvB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC9B,aAAa,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;IACzC,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/B,oBAAoB,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrD,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACxC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,SAAS,QAAQ,EACtD,KAAK,EAAE,sBAAsB,CAAC,QAAQ,CAAC,EACvC,YAAY,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;2BAyFa;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAG,KAAK,CAAC,YAAY;yBAIxC,OAAO;EAGhD"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import React, { useCallback, useLayoutEffect, useMemo, useState } from 'react';
|
|
3
|
+
import { createStore } from '../store';
|
|
4
|
+
import { MessageRow } from './components/Item';
|
|
5
|
+
import { useStableRowConfig } from './rowConfig';
|
|
6
|
+
import { MessageRowStore, sameOrder } from './rowStore';
|
|
7
|
+
|
|
8
|
+
/** The list's shared values every row reads through the row config. */
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* What the rows read: the row store, the shared row config and the per-row targets, plus the
|
|
12
|
+
* list's data in display order and where it opens.
|
|
13
|
+
*/
|
|
14
|
+
export function useMessageRows(props, sharedValues) {
|
|
15
|
+
const $ = _c(38);
|
|
16
|
+
const {
|
|
17
|
+
messages: t0,
|
|
18
|
+
isInverted: t1,
|
|
19
|
+
isDayAnimationEnabled: t2,
|
|
20
|
+
firstUnreadMessageId
|
|
21
|
+
} = props;
|
|
22
|
+
let t3;
|
|
23
|
+
if ($[0] !== t0) {
|
|
24
|
+
t3 = t0 === undefined ? [] : t0;
|
|
25
|
+
$[0] = t0;
|
|
26
|
+
$[1] = t3;
|
|
27
|
+
} else {
|
|
28
|
+
t3 = $[1];
|
|
29
|
+
}
|
|
30
|
+
const messages = t3;
|
|
31
|
+
const isInverted = t1 === undefined ? true : t1;
|
|
32
|
+
const isDayAnimationEnabled = t2 === undefined ? true : t2;
|
|
33
|
+
const {
|
|
34
|
+
scrolledY,
|
|
35
|
+
daysPositions,
|
|
36
|
+
listHeight,
|
|
37
|
+
floatingRenderedDate,
|
|
38
|
+
floatingDayOpacity
|
|
39
|
+
} = sharedValues;
|
|
40
|
+
const [rowStore] = useState(_temp);
|
|
41
|
+
rowStore.sync(messages, isInverted);
|
|
42
|
+
let t4;
|
|
43
|
+
if ($[2] !== rowStore) {
|
|
44
|
+
t4 = () => {
|
|
45
|
+
rowStore.flush();
|
|
46
|
+
};
|
|
47
|
+
$[2] = rowStore;
|
|
48
|
+
$[3] = t4;
|
|
49
|
+
} else {
|
|
50
|
+
t4 = $[3];
|
|
51
|
+
}
|
|
52
|
+
useLayoutEffect(t4);
|
|
53
|
+
const [previousListData, setPreviousListData] = useState(messages);
|
|
54
|
+
let t5;
|
|
55
|
+
if ($[4] !== messages || $[5] !== previousListData) {
|
|
56
|
+
t5 = sameOrder(previousListData, messages);
|
|
57
|
+
$[4] = messages;
|
|
58
|
+
$[5] = previousListData;
|
|
59
|
+
$[6] = t5;
|
|
60
|
+
} else {
|
|
61
|
+
t5 = $[6];
|
|
62
|
+
}
|
|
63
|
+
const listData = t5;
|
|
64
|
+
if (listData !== previousListData) {
|
|
65
|
+
setPreviousListData(listData);
|
|
66
|
+
}
|
|
67
|
+
let t6;
|
|
68
|
+
if ($[7] !== isInverted || $[8] !== listData) {
|
|
69
|
+
t6 = isInverted ? [...listData].reverse() : listData;
|
|
70
|
+
$[7] = isInverted;
|
|
71
|
+
$[8] = listData;
|
|
72
|
+
$[9] = t6;
|
|
73
|
+
} else {
|
|
74
|
+
t6 = $[9];
|
|
75
|
+
}
|
|
76
|
+
const orderedData = t6;
|
|
77
|
+
let t7;
|
|
78
|
+
if ($[10] !== firstUnreadMessageId || $[11] !== orderedData) {
|
|
79
|
+
t7 = () => {
|
|
80
|
+
const index = firstUnreadMessageId != null ? orderedData.findIndex(message => message._id === firstUnreadMessageId) : -1;
|
|
81
|
+
return index >= 0 && index < orderedData.length - 1 ? {
|
|
82
|
+
initialScrollIndex: {
|
|
83
|
+
index,
|
|
84
|
+
viewPosition: 0
|
|
85
|
+
}
|
|
86
|
+
} : {
|
|
87
|
+
initialScrollAtEnd: true
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
$[10] = firstUnreadMessageId;
|
|
91
|
+
$[11] = orderedData;
|
|
92
|
+
$[12] = t7;
|
|
93
|
+
} else {
|
|
94
|
+
t7 = $[12];
|
|
95
|
+
}
|
|
96
|
+
const [initialScroll] = useState(t7);
|
|
97
|
+
let sharedRowProps;
|
|
98
|
+
if ($[13] !== props) {
|
|
99
|
+
const {
|
|
100
|
+
messages: _messages,
|
|
101
|
+
forwardRef: _forwardRef,
|
|
102
|
+
listProps: _listProps,
|
|
103
|
+
isTyping: _isTyping,
|
|
104
|
+
renderChatEmpty: _renderChatEmpty,
|
|
105
|
+
renderFooter: _renderFooter,
|
|
106
|
+
renderLoadEarlier: _renderLoadEarlier,
|
|
107
|
+
loadEarlierMessagesProps: _loadEarlierMessagesProps,
|
|
108
|
+
renderTypingIndicator: _renderTypingIndicator,
|
|
109
|
+
typingIndicatorStyle: _typingIndicatorStyle,
|
|
110
|
+
scrollToBottomComponent: _scrollToBottomComponent,
|
|
111
|
+
scrollToBottomStyle: _scrollToBottomStyle,
|
|
112
|
+
scrollToBottomContentStyle: _scrollToBottomContentStyle,
|
|
113
|
+
scrollToBottomOffset: _scrollToBottomOffset,
|
|
114
|
+
isScrollToBottomEnabled: _isScrollToBottomEnabled,
|
|
115
|
+
isScrollToBottomBadgeEnabled: _isScrollToBottomBadgeEnabled,
|
|
116
|
+
isAlignedTop: _isAlignedTop,
|
|
117
|
+
firstUnreadMessageId: _firstUnreadMessageId,
|
|
118
|
+
...t8
|
|
119
|
+
} = props;
|
|
120
|
+
sharedRowProps = t8;
|
|
121
|
+
$[13] = props;
|
|
122
|
+
$[14] = sharedRowProps;
|
|
123
|
+
} else {
|
|
124
|
+
sharedRowProps = $[14];
|
|
125
|
+
}
|
|
126
|
+
let t8;
|
|
127
|
+
if ($[15] !== isDayAnimationEnabled || $[16] !== isInverted || $[17] !== sharedRowProps) {
|
|
128
|
+
t8 = {
|
|
129
|
+
...sharedRowProps,
|
|
130
|
+
isInverted,
|
|
131
|
+
isDayAnimationEnabled
|
|
132
|
+
};
|
|
133
|
+
$[15] = isDayAnimationEnabled;
|
|
134
|
+
$[16] = isInverted;
|
|
135
|
+
$[17] = sharedRowProps;
|
|
136
|
+
$[18] = t8;
|
|
137
|
+
} else {
|
|
138
|
+
t8 = $[18];
|
|
139
|
+
}
|
|
140
|
+
const stableRowProps = useStableRowConfig(t8);
|
|
141
|
+
let t9;
|
|
142
|
+
if ($[19] !== daysPositions || $[20] !== floatingDayOpacity || $[21] !== floatingRenderedDate || $[22] !== listHeight || $[23] !== scrolledY || $[24] !== stableRowProps) {
|
|
143
|
+
t9 = {
|
|
144
|
+
...stableRowProps,
|
|
145
|
+
scrolledY,
|
|
146
|
+
daysPositions,
|
|
147
|
+
listHeight,
|
|
148
|
+
floatingRenderedDate,
|
|
149
|
+
floatingDayOpacity
|
|
150
|
+
};
|
|
151
|
+
$[19] = daysPositions;
|
|
152
|
+
$[20] = floatingDayOpacity;
|
|
153
|
+
$[21] = floatingRenderedDate;
|
|
154
|
+
$[22] = listHeight;
|
|
155
|
+
$[23] = scrolledY;
|
|
156
|
+
$[24] = stableRowProps;
|
|
157
|
+
$[25] = t9;
|
|
158
|
+
} else {
|
|
159
|
+
t9 = $[25];
|
|
160
|
+
}
|
|
161
|
+
const rowConfig = t9;
|
|
162
|
+
let t10;
|
|
163
|
+
if ($[26] !== firstUnreadMessageId) {
|
|
164
|
+
t10 = () => createStore({
|
|
165
|
+
firstUnreadMessageId
|
|
166
|
+
});
|
|
167
|
+
$[26] = firstUnreadMessageId;
|
|
168
|
+
$[27] = t10;
|
|
169
|
+
} else {
|
|
170
|
+
t10 = $[27];
|
|
171
|
+
}
|
|
172
|
+
const [rowTargets] = useState(t10);
|
|
173
|
+
let t11;
|
|
174
|
+
let t12;
|
|
175
|
+
if ($[28] !== firstUnreadMessageId || $[29] !== rowTargets) {
|
|
176
|
+
t11 = () => {
|
|
177
|
+
rowTargets.set(prev => prev.firstUnreadMessageId === firstUnreadMessageId ? prev : {
|
|
178
|
+
...prev,
|
|
179
|
+
firstUnreadMessageId
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
t12 = [rowTargets, firstUnreadMessageId];
|
|
183
|
+
$[28] = firstUnreadMessageId;
|
|
184
|
+
$[29] = rowTargets;
|
|
185
|
+
$[30] = t11;
|
|
186
|
+
$[31] = t12;
|
|
187
|
+
} else {
|
|
188
|
+
t11 = $[30];
|
|
189
|
+
t12 = $[31];
|
|
190
|
+
}
|
|
191
|
+
useLayoutEffect(t11, t12);
|
|
192
|
+
const renderItem = _temp2;
|
|
193
|
+
const keyExtractor = _temp3;
|
|
194
|
+
let t13;
|
|
195
|
+
if ($[32] !== initialScroll || $[33] !== orderedData || $[34] !== rowConfig || $[35] !== rowStore || $[36] !== rowTargets) {
|
|
196
|
+
t13 = {
|
|
197
|
+
rowStore,
|
|
198
|
+
orderedData,
|
|
199
|
+
initialScroll,
|
|
200
|
+
rowConfig,
|
|
201
|
+
rowTargets,
|
|
202
|
+
renderItem,
|
|
203
|
+
keyExtractor
|
|
204
|
+
};
|
|
205
|
+
$[32] = initialScroll;
|
|
206
|
+
$[33] = orderedData;
|
|
207
|
+
$[34] = rowConfig;
|
|
208
|
+
$[35] = rowStore;
|
|
209
|
+
$[36] = rowTargets;
|
|
210
|
+
$[37] = t13;
|
|
211
|
+
} else {
|
|
212
|
+
t13 = $[37];
|
|
213
|
+
}
|
|
214
|
+
return t13;
|
|
215
|
+
}
|
|
216
|
+
function _temp3(item_0) {
|
|
217
|
+
return item_0._id.toString();
|
|
218
|
+
}
|
|
219
|
+
function _temp2(t0) {
|
|
220
|
+
const {
|
|
221
|
+
item
|
|
222
|
+
} = t0;
|
|
223
|
+
return <MessageRow id={String(item._id)} />;
|
|
224
|
+
}
|
|
225
|
+
function _temp() {
|
|
226
|
+
return new MessageRowStore();
|
|
227
|
+
}
|
|
228
|
+
//# sourceMappingURL=useMessageRows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMessageRows.js","names":["React","useCallback","useLayoutEffect","useMemo","useState","createStore","MessageRow","useStableRowConfig","MessageRowStore","sameOrder","useMessageRows","props","sharedValues","$","_c","messages","t0","isInverted","t1","isDayAnimationEnabled","t2","firstUnreadMessageId","t3","undefined","scrolledY","daysPositions","listHeight","floatingRenderedDate","floatingDayOpacity","rowStore","_temp","sync","t4","flush","previousListData","setPreviousListData","t5","listData","t6","reverse","orderedData","t7","index","findIndex","message","_id","length","initialScrollIndex","viewPosition","initialScrollAtEnd","initialScroll","sharedRowProps","_messages","forwardRef","_forwardRef","listProps","_listProps","isTyping","_isTyping","renderChatEmpty","_renderChatEmpty","renderFooter","_renderFooter","renderLoadEarlier","_renderLoadEarlier","loadEarlierMessagesProps","_loadEarlierMessagesProps","renderTypingIndicator","_renderTypingIndicator","typingIndicatorStyle","_typingIndicatorStyle","scrollToBottomComponent","_scrollToBottomComponent","scrollToBottomStyle","_scrollToBottomStyle","scrollToBottomContentStyle","_scrollToBottomContentStyle","scrollToBottomOffset","_scrollToBottomOffset","isScrollToBottomEnabled","_isScrollToBottomEnabled","isScrollToBottomBadgeEnabled","_isScrollToBottomBadgeEnabled","isAlignedTop","_isAlignedTop","_firstUnreadMessageId","t8","stableRowProps","t9","rowConfig","t10","rowTargets","t11","t12","set","prev","renderItem","_temp2","keyExtractor","_temp3","t13","item_0","item","toString","String"],"sources":["../../src/MessagesContainer/useMessageRows.tsx"],"sourcesContent":["import React, { useCallback, useLayoutEffect, useMemo, useState } from 'react'\nimport { SharedValue } from 'react-native-reanimated'\n\nimport { IMessage } from '../Models'\nimport { createStore } from '../store'\nimport { MessageRow } from './components/Item'\nimport { RowTargets, useStableRowConfig } from './rowConfig'\nimport { MessageRowStore, sameOrder } from './rowStore'\nimport { DaysPositions, MessagesContainerProps } from './types'\n\n/** The list's shared values every row reads through the row config. */\ninterface RowSharedValues {\n scrolledY: SharedValue<number>\n daysPositions: SharedValue<DaysPositions>\n listHeight: SharedValue<number>\n floatingRenderedDate: SharedValue<number | undefined>\n floatingDayOpacity: SharedValue<number>\n}\n\n/**\n * What the rows read: the row store, the shared row config and the per-row targets, plus the\n * list's data in display order and where it opens.\n */\nexport function useMessageRows<TMessage extends IMessage> (\n props: MessagesContainerProps<TMessage>,\n sharedValues: RowSharedValues\n) {\n const {\n messages = [],\n isInverted = true,\n isDayAnimationEnabled = true,\n firstUnreadMessageId,\n } = props\n const { scrolledY, daysPositions, listHeight, floatingRenderedDate, floatingDayOpacity } = sharedValues\n\n // The messages by id, for the rows to subscribe to (see rowStore). Synced while rendering so\n // rows mounting now read the new messages; rows already on screen hear about it on commit.\n const [rowStore] = useState(() => new MessageRowStore<TMessage>())\n rowStore.sync(messages, isInverted)\n useLayoutEffect(() => {\n rowStore.flush()\n })\n\n // The list's data keeps its identity while the ids and their order do: a status change,\n // a reaction or a streamed token then leaves the list and its cells alone.\n // Kept in state, not a ref: a render that changes the order stores the new array (React\n // re-runs that render once, before any child renders).\n const [previousListData, setPreviousListData] = useState(messages)\n const listData = sameOrder(previousListData, messages)\n if (listData !== previousListData)\n setPreviousListData(listData)\n // The list renders oldest first; `messages` comes newest first unless `isInverted` is off.\n const orderedData = useMemo(() => isInverted ? [...listData].reverse() : listData, [listData, isInverted])\n\n // A chat with unread messages opens on its \"Unread Messages\" bar, at the top of the screen,\n // and one without them at the newest message. Decided once, when the list first renders.\n const [initialScroll] = useState(() => {\n const index = firstUnreadMessageId != null\n ? orderedData.findIndex(message => message._id === firstUnreadMessageId)\n : -1\n // The newest message already is the first unread one: the list starts there anyway.\n return index >= 0 && index < orderedData.length - 1\n ? { initialScrollIndex: { index, viewPosition: 0 } }\n : { initialScrollAtEnd: true }\n })\n\n // What every row shares, kept stable across renders that change nothing a row can see.\n const {\n /* eslint-disable @typescript-eslint/no-unused-vars */\n messages: _messages,\n forwardRef: _forwardRef,\n listProps: _listProps,\n // The list's own chrome; no row draws any of it.\n isTyping: _isTyping,\n renderChatEmpty: _renderChatEmpty,\n renderFooter: _renderFooter,\n renderLoadEarlier: _renderLoadEarlier,\n loadEarlierMessagesProps: _loadEarlierMessagesProps,\n renderTypingIndicator: _renderTypingIndicator,\n typingIndicatorStyle: _typingIndicatorStyle,\n scrollToBottomComponent: _scrollToBottomComponent,\n scrollToBottomStyle: _scrollToBottomStyle,\n scrollToBottomContentStyle: _scrollToBottomContentStyle,\n scrollToBottomOffset: _scrollToBottomOffset,\n isScrollToBottomEnabled: _isScrollToBottomEnabled,\n isScrollToBottomBadgeEnabled: _isScrollToBottomBadgeEnabled,\n isAlignedTop: _isAlignedTop,\n // Concerns two rows at most: read through `useRowSettings` (rowTargets below).\n firstUnreadMessageId: _firstUnreadMessageId,\n /* eslint-enable @typescript-eslint/no-unused-vars */\n ...sharedRowProps\n } = props\n const stableRowProps = useStableRowConfig({\n ...sharedRowProps,\n isInverted,\n isDayAnimationEnabled,\n })\n // The list's shared values join outside the comparison: they keep their identity anyway, and\n // the comparison must only see what the props hand it (see useStableRowConfig).\n const rowConfig = useMemo(() => ({\n ...stableRowProps,\n scrolledY,\n daysPositions,\n listHeight,\n floatingRenderedDate,\n floatingDayOpacity,\n }), [stableRowProps, scrolledY, daysPositions, listHeight, floatingRenderedDate, floatingDayOpacity])\n\n const [rowTargets] = useState(() => createStore<RowTargets>({ firstUnreadMessageId }))\n // Before paint, so the bar never shows on both rows or neither.\n useLayoutEffect(() => {\n rowTargets.set(prev => prev.firstUnreadMessageId === firstUnreadMessageId ? prev : { ...prev, firstUnreadMessageId })\n }, [rowTargets, firstUnreadMessageId])\n\n const renderItem = useCallback(({ item }: { item: unknown }): React.ReactElement =>\n <MessageRow id={String((item as TMessage)._id)} />\n , [])\n\n const keyExtractor = useCallback((item: unknown) => (item as TMessage)._id.toString(), [])\n\n return { rowStore, orderedData, initialScroll, rowConfig, rowTargets, renderItem, keyExtractor }\n}\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,eAAe,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAI9E,SAASC,WAAW,QAAQ,UAAU;AACtC,SAASC,UAAU,QAAQ,mBAAmB;AAC9C,SAAqBC,kBAAkB,QAAQ,aAAa;AAC5D,SAAS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import { IMessage } from '../Models';
|
|
3
|
+
import { ListState } from './listState';
|
|
4
|
+
import { PageDownReturn } from './pageDownReturn';
|
|
5
|
+
interface PageDownUnreadOptions<TMessage extends IMessage> {
|
|
6
|
+
messages: TMessage[];
|
|
7
|
+
isInverted: boolean;
|
|
8
|
+
userId: string | number | undefined;
|
|
9
|
+
isScrollToBottomEnabled: boolean;
|
|
10
|
+
isScrollToBottomBadgeEnabled: boolean;
|
|
11
|
+
isScrollToBottomVisible: boolean;
|
|
12
|
+
distanceFromNewestSV: SharedValue<number>;
|
|
13
|
+
isShownByScroll: SharedValue<boolean>;
|
|
14
|
+
isScrollToBottomShown: SharedValue<boolean>;
|
|
15
|
+
listState: () => ListState | undefined;
|
|
16
|
+
pageDownReturn: PageDownReturn | null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The counter on the scroll-to-bottom button: messages that arrive while away from the newest
|
|
20
|
+
* one, less those scrolled into view since.
|
|
21
|
+
*/
|
|
22
|
+
export declare function usePageDownUnread<TMessage extends IMessage>({ messages, isInverted, userId, isScrollToBottomEnabled, isScrollToBottomBadgeEnabled, isScrollToBottomVisible, distanceFromNewestSV, isShownByScroll, isScrollToBottomShown, listState, pageDownReturn, }: PageDownUnreadOptions<TMessage>): {
|
|
23
|
+
unreadCount: number;
|
|
24
|
+
markRowsSeen: (ids: (string | number)[]) => void;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=usePageDownUnread.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePageDownUnread.d.ts","sourceRoot":"","sources":["../../src/MessagesContainer/usePageDownUnread.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,EAAE,SAAS,EAAe,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,UAAU,qBAAqB,CAAC,QAAQ,SAAS,QAAQ;IACvD,QAAQ,EAAE,QAAQ,EAAE,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IACnC,uBAAuB,EAAE,OAAO,CAAA;IAChC,4BAA4B,EAAE,OAAO,CAAA;IACrC,uBAAuB,EAAE,OAAO,CAAA;IAChC,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACzC,eAAe,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IACrC,qBAAqB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3C,SAAS,EAAE,MAAM,SAAS,GAAG,SAAS,CAAA;IACtC,cAAc,EAAE,cAAc,GAAG,IAAI,CAAA;CACtC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,SAAS,QAAQ,EAAG,EAC5D,QAAQ,EACR,UAAU,EACV,MAAM,EACN,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,SAAS,EACT,cAAc,GACf,EAAE,qBAAqB,CAAC,QAAQ,CAAC;;wBAgDO,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;EA6B3D"}
|