@kesha-antonov/react-native-chat 5.0.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +533 -179
- package/lib/Actions.d.ts.map +1 -1
- package/lib/Actions.js +121 -42
- package/lib/Actions.js.map +1 -1
- package/lib/Avatar.d.ts.map +1 -1
- package/lib/Avatar.js +171 -86
- package/lib/Avatar.js.map +1 -1
- package/lib/Bubble/BubbleBody.d.ts +15 -0
- package/lib/Bubble/BubbleBody.d.ts.map +1 -0
- package/lib/Bubble/BubbleBody.js +218 -0
- package/lib/Bubble/BubbleBody.js.map +1 -0
- package/lib/Bubble/BubbleContent.d.ts +23 -0
- package/lib/Bubble/BubbleContent.d.ts.map +1 -0
- package/lib/Bubble/BubbleContent.js +446 -0
- package/lib/Bubble/BubbleContent.js.map +1 -0
- package/lib/Bubble/BubbleMenu.d.ts +45 -0
- package/lib/Bubble/BubbleMenu.d.ts.map +1 -0
- package/lib/Bubble/BubbleMenu.js +289 -0
- package/lib/Bubble/BubbleMenu.js.map +1 -0
- package/lib/Bubble/BubbleMeta.d.ts +17 -0
- package/lib/Bubble/BubbleMeta.d.ts.map +1 -0
- package/lib/Bubble/BubbleMeta.js +453 -0
- package/lib/Bubble/BubbleMeta.js.map +1 -0
- package/lib/Bubble/LiftedBubble.d.ts +18 -0
- package/lib/Bubble/LiftedBubble.d.ts.map +1 -0
- package/lib/Bubble/LiftedBubble.js +109 -0
- package/lib/Bubble/LiftedBubble.js.map +1 -0
- package/lib/Bubble/PressableBubbleRow.d.ts +33 -0
- package/lib/Bubble/PressableBubbleRow.d.ts.map +1 -0
- package/lib/Bubble/PressableBubbleRow.js +172 -0
- package/lib/Bubble/PressableBubbleRow.js.map +1 -0
- package/lib/Bubble/index.d.ts +6 -0
- package/lib/Bubble/index.d.ts.map +1 -1
- package/lib/Bubble/index.js +380 -494
- package/lib/Bubble/index.js.map +1 -1
- package/lib/Bubble/layout.d.ts +47 -0
- package/lib/Bubble/layout.d.ts.map +1 -0
- package/lib/Bubble/layout.js +258 -0
- package/lib/Bubble/layout.js.map +1 -0
- package/lib/Bubble/styles.d.ts +108 -16
- package/lib/Bubble/styles.d.ts.map +1 -1
- package/lib/Bubble/styles.js +227 -107
- package/lib/Bubble/styles.js.map +1 -1
- package/lib/Bubble/types.d.ts +19 -3
- package/lib/Bubble/types.d.ts.map +1 -1
- package/lib/Bubble/types.js.map +1 -1
- package/lib/Chat/Chat.d.ts +5 -0
- package/lib/Chat/Chat.d.ts.map +1 -0
- package/lib/Chat/Chat.js +464 -0
- package/lib/Chat/Chat.js.map +1 -0
- package/lib/Chat/ChatBackground.d.ts +16 -0
- package/lib/Chat/ChatBackground.d.ts.map +1 -0
- package/lib/Chat/ChatBackground.js +43 -0
- package/lib/Chat/ChatBackground.js.map +1 -0
- package/lib/Chat/ChatKeyboardAvoidingView.js +19 -4
- package/lib/Chat/ChatKeyboardAvoidingView.js.map +1 -1
- package/lib/Chat/ChatMessageList.d.ts +27 -0
- package/lib/Chat/ChatMessageList.d.ts.map +1 -0
- package/lib/Chat/ChatMessageList.js +220 -0
- package/lib/Chat/ChatMessageList.js.map +1 -0
- package/lib/Chat/ChatProviders.d.ts +18 -0
- package/lib/Chat/ChatProviders.d.ts.map +1 -0
- package/lib/Chat/ChatProviders.js +87 -0
- package/lib/Chat/ChatProviders.js.map +1 -0
- package/lib/Chat/ChatSafeAreaProvider.d.ts +35 -0
- package/lib/Chat/ChatSafeAreaProvider.d.ts.map +1 -0
- package/lib/Chat/ChatSafeAreaProvider.js +123 -0
- package/lib/Chat/ChatSafeAreaProvider.js.map +1 -0
- package/lib/Chat/ChatSelectionBar.d.ts +20 -0
- package/lib/Chat/ChatSelectionBar.d.ts.map +1 -0
- package/lib/Chat/ChatSelectionBar.js +141 -0
- package/lib/Chat/ChatSelectionBar.js.map +1 -0
- package/lib/Chat/ChatWrapper.d.ts +11 -0
- package/lib/Chat/ChatWrapper.d.ts.map +1 -0
- package/lib/Chat/ChatWrapper.js +98 -0
- package/lib/Chat/ChatWrapper.js.map +1 -0
- package/lib/Chat/ComposerHost.d.ts +20 -0
- package/lib/Chat/ComposerHost.d.ts.map +1 -0
- package/lib/Chat/ComposerHost.js +118 -0
- package/lib/Chat/ComposerHost.js.map +1 -0
- package/lib/Chat/index.d.ts +1 -8
- package/lib/Chat/index.d.ts.map +1 -1
- package/lib/Chat/index.js +1 -337
- package/lib/Chat/index.js.map +1 -1
- package/lib/Chat/styles.d.ts +14 -2
- package/lib/Chat/styles.d.ts.map +1 -1
- package/lib/Chat/styles.js +19 -9
- package/lib/Chat/styles.js.map +1 -1
- package/lib/Chat/types.d.ts +145 -11
- package/lib/Chat/types.d.ts.map +1 -1
- package/lib/Chat/types.js.map +1 -1
- package/lib/Chat/useChatContextValue.d.ts +19 -0
- package/lib/Chat/useChatContextValue.d.ts.map +1 -0
- package/lib/Chat/useChatContextValue.js +158 -0
- package/lib/Chat/useChatContextValue.js.map +1 -0
- package/lib/Chat/useChatMedia.d.ts +22 -0
- package/lib/Chat/useChatMedia.d.ts.map +1 -0
- package/lib/Chat/useChatMedia.js +127 -0
- package/lib/Chat/useChatMedia.js.map +1 -0
- package/lib/Chat/useChatSelection.d.ts +15 -0
- package/lib/Chat/useChatSelection.d.ts.map +1 -0
- package/lib/Chat/useChatSelection.js +106 -0
- package/lib/Chat/useChatSelection.js.map +1 -0
- package/lib/Chat/useComposerHandlers.d.ts +34 -0
- package/lib/Chat/useComposerHandlers.d.ts.map +1 -0
- package/lib/Chat/useComposerHandlers.js +330 -0
- package/lib/Chat/useComposerHandlers.js.map +1 -0
- package/lib/Chat/useComposerState.d.ts +27 -0
- package/lib/Chat/useComposerState.d.ts.map +1 -0
- package/lib/Chat/useComposerState.js +272 -0
- package/lib/Chat/useComposerState.js.map +1 -0
- package/lib/Chat/useInitialLayout.d.ts +19 -0
- package/lib/Chat/useInitialLayout.d.ts.map +1 -0
- package/lib/Chat/useInitialLayout.js +70 -0
- package/lib/Chat/useInitialLayout.js.map +1 -0
- package/lib/Chat/useMessageActions.d.ts +37 -0
- package/lib/Chat/useMessageActions.d.ts.map +1 -0
- package/lib/Chat/useMessageActions.js +323 -0
- package/lib/Chat/useMessageActions.js.map +1 -0
- package/lib/Chat/useMessageNavigation.d.ts +21 -0
- package/lib/Chat/useMessageNavigation.d.ts.map +1 -0
- package/lib/Chat/useMessageNavigation.js +149 -0
- package/lib/Chat/useMessageNavigation.js.map +1 -0
- package/lib/Chat/useOptionalPeerHints.d.ts +6 -0
- package/lib/Chat/useOptionalPeerHints.d.ts.map +1 -0
- package/lib/Chat/useOptionalPeerHints.js +63 -0
- package/lib/Chat/useOptionalPeerHints.js.map +1 -0
- package/lib/Chat/useResolvedReactions.d.ts +31 -0
- package/lib/Chat/useResolvedReactions.d.ts.map +1 -0
- package/lib/Chat/useResolvedReactions.js +95 -0
- package/lib/Chat/useResolvedReactions.js.map +1 -0
- package/lib/ChatAvatar.d.ts.map +1 -1
- package/lib/ChatAvatar.js +229 -84
- package/lib/ChatAvatar.js.map +1 -1
- package/lib/ChatContext.js +20 -10
- package/lib/ChatContext.js.map +1 -1
- package/lib/ChatList/ChatListAvatar.d.ts +21 -0
- package/lib/ChatList/ChatListAvatar.d.ts.map +1 -0
- package/lib/ChatList/ChatListAvatar.js +178 -0
- package/lib/ChatList/ChatListAvatar.js.map +1 -0
- package/lib/ChatList/ChatListCell.d.ts +16 -0
- package/lib/ChatList/ChatListCell.d.ts.map +1 -0
- package/lib/ChatList/ChatListCell.js +506 -0
- package/lib/ChatList/ChatListCell.js.map +1 -0
- package/lib/ChatList/ChatListShimmer.d.ts +3 -0
- package/lib/ChatList/ChatListShimmer.d.ts.map +1 -0
- package/lib/ChatList/ChatListShimmer.js +235 -0
- package/lib/ChatList/ChatListShimmer.js.map +1 -0
- package/lib/ChatList/index.d.ts +16 -0
- package/lib/ChatList/index.d.ts.map +1 -0
- package/lib/ChatList/index.js +1301 -0
- package/lib/ChatList/index.js.map +1 -0
- package/lib/ChatList/types.d.ts +128 -0
- package/lib/ChatList/types.d.ts.map +1 -0
- package/lib/ChatList/types.js +2 -0
- package/lib/ChatList/types.js.map +1 -0
- package/lib/ChatList/useChatList.d.ts +30 -0
- package/lib/ChatList/useChatList.d.ts.map +1 -0
- package/lib/ChatList/useChatList.js +211 -0
- package/lib/ChatList/useChatList.js.map +1 -0
- package/lib/ChatList/utils.d.ts +28 -0
- package/lib/ChatList/utils.d.ts.map +1 -0
- package/lib/ChatList/utils.js +60 -0
- package/lib/ChatList/utils.js.map +1 -0
- package/lib/Color.js +19 -19
- package/lib/Color.js.map +1 -1
- package/lib/Composer.d.ts.map +1 -1
- package/lib/Composer.js +148 -70
- package/lib/Composer.js.map +1 -1
- package/lib/Constant.js +4 -4
- package/lib/Constant.js.map +1 -1
- package/lib/Day/index.d.ts.map +1 -1
- package/lib/Day/index.js +115 -28
- package/lib/Day/index.js.map +1 -1
- package/lib/Day/styles.d.ts +3 -3
- package/lib/Day/styles.d.ts.map +1 -1
- package/lib/Day/styles.js +20 -17
- package/lib/Day/styles.js.map +1 -1
- package/lib/Day/types.js.map +1 -1
- package/lib/Icons.d.ts +1 -1
- package/lib/Icons.d.ts.map +1 -1
- package/lib/Icons.js.map +1 -1
- package/lib/InputToolbar/FieldGroup.d.ts +28 -0
- package/lib/InputToolbar/FieldGroup.d.ts.map +1 -0
- package/lib/InputToolbar/FieldGroup.js +143 -0
- package/lib/InputToolbar/FieldGroup.js.map +1 -0
- package/lib/InputToolbar/TakePreviewBar.d.ts +17 -0
- package/lib/InputToolbar/TakePreviewBar.d.ts.map +1 -0
- package/lib/InputToolbar/TakePreviewBar.js +126 -0
- package/lib/InputToolbar/TakePreviewBar.js.map +1 -0
- package/lib/InputToolbar/animations.d.ts +105 -0
- package/lib/InputToolbar/animations.d.ts.map +1 -0
- package/lib/InputToolbar/animations.js +238 -0
- package/lib/InputToolbar/animations.js.map +1 -0
- package/lib/InputToolbar/fragments.d.ts +13 -0
- package/lib/InputToolbar/fragments.d.ts.map +1 -0
- package/lib/InputToolbar/fragments.js +207 -0
- package/lib/InputToolbar/fragments.js.map +1 -0
- package/lib/InputToolbar/index.d.ts +7 -0
- package/lib/InputToolbar/index.d.ts.map +1 -0
- package/lib/InputToolbar/index.js +444 -0
- package/lib/InputToolbar/index.js.map +1 -0
- package/lib/InputToolbar/recordingOptions.d.ts +14 -0
- package/lib/InputToolbar/recordingOptions.d.ts.map +1 -0
- package/lib/InputToolbar/recordingOptions.js +38 -0
- package/lib/InputToolbar/recordingOptions.js.map +1 -0
- package/lib/InputToolbar/styles.d.ts +118 -0
- package/lib/InputToolbar/styles.d.ts.map +1 -0
- package/lib/InputToolbar/styles.js +139 -0
- package/lib/InputToolbar/styles.js.map +1 -0
- package/lib/InputToolbar/types.d.ts +77 -0
- package/lib/InputToolbar/types.d.ts.map +1 -0
- package/lib/InputToolbar/types.js +2 -0
- package/lib/InputToolbar/types.js.map +1 -0
- package/lib/InputToolbar/useActionsFragment.d.ts +6 -0
- package/lib/InputToolbar/useActionsFragment.d.ts.map +1 -0
- package/lib/InputToolbar/useActionsFragment.js +139 -0
- package/lib/InputToolbar/useActionsFragment.js.map +1 -0
- package/lib/InputToolbar/useComposerEditing.d.ts +11 -0
- package/lib/InputToolbar/useComposerEditing.d.ts.map +1 -0
- package/lib/InputToolbar/useComposerEditing.js +116 -0
- package/lib/InputToolbar/useComposerEditing.js.map +1 -0
- package/lib/InputToolbar/useEmojiButton.d.ts +14 -0
- package/lib/InputToolbar/useEmojiButton.d.ts.map +1 -0
- package/lib/InputToolbar/useEmojiButton.js +120 -0
- package/lib/InputToolbar/useEmojiButton.js.map +1 -0
- package/lib/InputToolbar/useKeyboardInset.d.ts +9 -0
- package/lib/InputToolbar/useKeyboardInset.d.ts.map +1 -0
- package/lib/InputToolbar/useKeyboardInset.js +25 -0
- package/lib/InputToolbar/useKeyboardInset.js.map +1 -0
- package/lib/InputToolbar/useRecordMode.d.ts +19 -0
- package/lib/InputToolbar/useRecordMode.d.ts.map +1 -0
- package/lib/InputToolbar/useRecordMode.js +124 -0
- package/lib/InputToolbar/useRecordMode.js.map +1 -0
- package/lib/InputToolbar/useRecordTake.d.ts +46 -0
- package/lib/InputToolbar/useRecordTake.d.ts.map +1 -0
- package/lib/InputToolbar/useRecordTake.js +315 -0
- package/lib/InputToolbar/useRecordTake.js.map +1 -0
- package/lib/InputToolbar/useReturnAnimations.d.ts +18 -0
- package/lib/InputToolbar/useReturnAnimations.d.ts.map +1 -0
- package/lib/InputToolbar/useReturnAnimations.js +30 -0
- package/lib/InputToolbar/useReturnAnimations.js.map +1 -0
- package/lib/InputToolbar/useRightControl.d.ts +40 -0
- package/lib/InputToolbar/useRightControl.d.ts.map +1 -0
- package/lib/InputToolbar/useRightControl.js +129 -0
- package/lib/InputToolbar/useRightControl.js.map +1 -0
- package/lib/LoadEarlierMessages.d.ts +2 -0
- package/lib/LoadEarlierMessages.d.ts.map +1 -1
- package/lib/LoadEarlierMessages.js +153 -40
- package/lib/LoadEarlierMessages.js.map +1 -1
- package/lib/Message/SwipeToReply.d.ts +23 -0
- package/lib/Message/SwipeToReply.d.ts.map +1 -0
- package/lib/Message/SwipeToReply.js +337 -0
- package/lib/Message/SwipeToReply.js.map +1 -0
- package/lib/Message/index.d.ts.map +1 -1
- package/lib/Message/index.js +415 -176
- package/lib/Message/index.js.map +1 -1
- package/lib/Message/styles.d.ts +2 -2
- package/lib/Message/styles.js +14 -14
- package/lib/Message/styles.js.map +1 -1
- package/lib/Message/types.d.ts +5 -0
- package/lib/Message/types.d.ts.map +1 -1
- package/lib/Message/types.js.map +1 -1
- package/lib/MessageAudio.d.ts.map +1 -1
- package/lib/MessageAudio.js +647 -107
- package/lib/MessageAudio.js.map +1 -1
- package/lib/MessageFile.d.ts +11 -0
- package/lib/MessageFile.d.ts.map +1 -0
- package/lib/MessageFile.js +315 -0
- package/lib/MessageFile.js.map +1 -0
- package/lib/MessageImage.d.ts +2 -0
- package/lib/MessageImage.d.ts.map +1 -1
- package/lib/MessageImage.js +430 -156
- package/lib/MessageImage.js.map +1 -1
- package/lib/MessageLocation.d.ts.map +1 -1
- package/lib/MessageLocation.js +180 -68
- package/lib/MessageLocation.js.map +1 -1
- package/lib/MessageText.d.ts +8 -1
- package/lib/MessageText.d.ts.map +1 -1
- package/lib/MessageText.js +261 -69
- package/lib/MessageText.js.map +1 -1
- package/lib/MessageVideo/ExpoVideoPlayer.d.ts +6 -0
- package/lib/MessageVideo/ExpoVideoPlayer.d.ts.map +1 -0
- package/lib/MessageVideo/ExpoVideoPlayer.js +68 -0
- package/lib/MessageVideo/ExpoVideoPlayer.js.map +1 -0
- package/lib/MessageVideo/MirroredVideo.d.ts +17 -0
- package/lib/MessageVideo/MirroredVideo.d.ts.map +1 -0
- package/lib/MessageVideo/MirroredVideo.js +223 -0
- package/lib/MessageVideo/MirroredVideo.js.map +1 -0
- package/lib/MessageVideo/RoundNotePlayer.d.ts +4 -0
- package/lib/MessageVideo/RoundNotePlayer.d.ts.map +1 -0
- package/lib/MessageVideo/RoundNotePlayer.js +560 -0
- package/lib/MessageVideo/RoundNotePlayer.js.map +1 -0
- package/lib/MessageVideo/RoundTranscription.d.ts +27 -0
- package/lib/MessageVideo/RoundTranscription.d.ts.map +1 -0
- package/lib/MessageVideo/RoundTranscription.js +151 -0
- package/lib/MessageVideo/RoundTranscription.js.map +1 -0
- package/lib/MessageVideo/VideoTransferOverlay.d.ts +11 -0
- package/lib/MessageVideo/VideoTransferOverlay.d.ts.map +1 -0
- package/lib/MessageVideo/VideoTransferOverlay.js +88 -0
- package/lib/MessageVideo/VideoTransferOverlay.js.map +1 -0
- package/lib/MessageVideo/constants.d.ts +13 -0
- package/lib/MessageVideo/constants.d.ts.map +1 -0
- package/lib/MessageVideo/constants.js +15 -0
- package/lib/MessageVideo/constants.js.map +1 -0
- package/lib/{MessageVideo.d.ts → MessageVideo/index.d.ts} +2 -2
- package/lib/MessageVideo/index.d.ts.map +1 -0
- package/lib/MessageVideo/index.js +92 -0
- package/lib/MessageVideo/index.js.map +1 -0
- package/lib/MessageVideo/liftedMedia.d.ts +13 -0
- package/lib/MessageVideo/liftedMedia.d.ts.map +1 -0
- package/lib/MessageVideo/liftedMedia.js +106 -0
- package/lib/MessageVideo/liftedMedia.js.map +1 -0
- package/lib/MessageVideo/styles.d.ts +71 -0
- package/lib/MessageVideo/styles.d.ts.map +1 -0
- package/lib/MessageVideo/styles.js +78 -0
- package/lib/MessageVideo/styles.js.map +1 -0
- package/lib/MessageVideo/types.d.ts +27 -0
- package/lib/MessageVideo/types.d.ts.map +1 -0
- package/lib/MessageVideo/types.js +2 -0
- package/lib/MessageVideo/types.js.map +1 -0
- package/lib/MessageVideo/useNoteGrow.d.ts +16 -0
- package/lib/MessageVideo/useNoteGrow.d.ts.map +1 -0
- package/lib/MessageVideo/useNoteGrow.js +122 -0
- package/lib/MessageVideo/useNoteGrow.js.map +1 -0
- package/lib/MessageVideo/useNotePlayer.d.ts +14 -0
- package/lib/MessageVideo/useNotePlayer.d.ts.map +1 -0
- package/lib/MessageVideo/useNotePlayer.js +142 -0
- package/lib/MessageVideo/useNotePlayer.js.map +1 -0
- package/lib/MessageVideo/useRingSeek.d.ts +16 -0
- package/lib/MessageVideo/useRingSeek.d.ts.map +1 -0
- package/lib/MessageVideo/useRingSeek.js +157 -0
- package/lib/MessageVideo/useRingSeek.js.map +1 -0
- package/lib/MessageVideo/useRoundNotePlayback.d.ts +46 -0
- package/lib/MessageVideo/useRoundNotePlayback.d.ts.map +1 -0
- package/lib/MessageVideo/useRoundNotePlayback.js +508 -0
- package/lib/MessageVideo/useRoundNotePlayback.js.map +1 -0
- package/lib/MessageVideo/useSendFlightReveal.d.ts +9 -0
- package/lib/MessageVideo/useSendFlightReveal.d.ts.map +1 -0
- package/lib/MessageVideo/useSendFlightReveal.js +85 -0
- package/lib/MessageVideo/useSendFlightReveal.js.map +1 -0
- package/lib/MessageVideo/videoPlayers.d.ts +8 -0
- package/lib/MessageVideo/videoPlayers.d.ts.map +1 -0
- package/lib/MessageVideo/videoPlayers.js +33 -0
- package/lib/MessageVideo/videoPlayers.js.map +1 -0
- package/lib/MessagesContainer/components/DayAnimated/debug.js +38 -24
- package/lib/MessagesContainer/components/DayAnimated/debug.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.d.ts +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.js +244 -112
- package/lib/MessagesContainer/components/DayAnimated/index.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/styles.d.ts +3 -3
- package/lib/MessagesContainer/components/DayAnimated/styles.js +8 -8
- package/lib/MessagesContainer/components/DayAnimated/styles.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/types.d.ts +4 -2
- package/lib/MessagesContainer/components/DayAnimated/types.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/types.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.js +34 -25
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.js.map +1 -1
- package/lib/MessagesContainer/components/Item/index.d.ts +3 -4
- package/lib/MessagesContainer/components/Item/index.d.ts.map +1 -1
- package/lib/MessagesContainer/components/Item/index.js +290 -99
- package/lib/MessagesContainer/components/Item/index.js.map +1 -1
- package/lib/MessagesContainer/components/Item/types.d.ts +5 -0
- package/lib/MessagesContainer/components/Item/types.d.ts.map +1 -1
- package/lib/MessagesContainer/components/Item/types.js.map +1 -1
- package/lib/MessagesContainer/components/PageDownCounter.d.ts +14 -0
- package/lib/MessagesContainer/components/PageDownCounter.d.ts.map +1 -0
- package/lib/MessagesContainer/components/PageDownCounter.js +209 -0
- package/lib/MessagesContainer/components/PageDownCounter.js.map +1 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.d.ts +21 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.d.ts.map +1 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.js +195 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.js.map +1 -0
- package/lib/MessagesContainer/components/dayLayout.d.ts +2 -2
- package/lib/MessagesContainer/components/dayLayout.d.ts.map +1 -1
- package/lib/MessagesContainer/components/dayLayout.js +18 -13
- package/lib/MessagesContainer/components/dayLayout.js.map +1 -1
- package/lib/MessagesContainer/index.d.ts.map +1 -1
- package/lib/MessagesContainer/index.js +361 -420
- package/lib/MessagesContainer/index.js.map +1 -1
- package/lib/MessagesContainer/listState.d.ts +18 -0
- package/lib/MessagesContainer/listState.d.ts.map +1 -0
- package/lib/MessagesContainer/listState.js +25 -0
- package/lib/MessagesContainer/listState.js.map +1 -0
- package/lib/MessagesContainer/listTransitions.d.ts +10 -0
- package/lib/MessagesContainer/listTransitions.d.ts.map +1 -0
- package/lib/MessagesContainer/listTransitions.js +12 -0
- package/lib/MessagesContainer/listTransitions.js.map +1 -0
- package/lib/MessagesContainer/pageDownReturn.d.ts +11 -0
- package/lib/MessagesContainer/pageDownReturn.d.ts.map +1 -0
- package/lib/MessagesContainer/pageDownReturn.js +9 -0
- package/lib/MessagesContainer/pageDownReturn.js.map +1 -0
- package/lib/MessagesContainer/rowConfig.d.ts +39 -0
- package/lib/MessagesContainer/rowConfig.d.ts.map +1 -0
- package/lib/MessagesContainer/rowConfig.js +161 -0
- package/lib/MessagesContainer/rowConfig.js.map +1 -0
- package/lib/MessagesContainer/rowStore.d.ts +37 -0
- package/lib/MessagesContainer/rowStore.d.ts.map +1 -0
- package/lib/MessagesContainer/rowStore.js +140 -0
- package/lib/MessagesContainer/rowStore.js.map +1 -0
- package/lib/MessagesContainer/styles.d.ts +37 -31
- package/lib/MessagesContainer/styles.d.ts.map +1 -1
- package/lib/MessagesContainer/styles.js +75 -54
- package/lib/MessagesContainer/styles.js.map +1 -1
- package/lib/MessagesContainer/types.d.ts +33 -30
- package/lib/MessagesContainer/types.d.ts.map +1 -1
- package/lib/MessagesContainer/types.js +1 -9
- package/lib/MessagesContainer/types.js.map +1 -1
- package/lib/MessagesContainer/useCellLayouts.d.ts +17 -0
- package/lib/MessagesContainer/useCellLayouts.d.ts.map +1 -0
- package/lib/MessagesContainer/useCellLayouts.js +133 -0
- package/lib/MessagesContainer/useCellLayouts.js.map +1 -0
- package/lib/MessagesContainer/useDaysPositions.d.ts +18 -0
- package/lib/MessagesContainer/useDaysPositions.d.ts.map +1 -0
- package/lib/MessagesContainer/useDaysPositions.js +109 -0
- package/lib/MessagesContainer/useDaysPositions.js.map +1 -0
- package/lib/MessagesContainer/useListChrome.d.ts +14 -0
- package/lib/MessagesContainer/useListChrome.d.ts.map +1 -0
- package/lib/MessagesContainer/useListChrome.js +176 -0
- package/lib/MessagesContainer/useListChrome.js.map +1 -0
- package/lib/MessagesContainer/useListMetrics.d.ts +32 -0
- package/lib/MessagesContainer/useListMetrics.d.ts.map +1 -0
- package/lib/MessagesContainer/useListMetrics.js +176 -0
- package/lib/MessagesContainer/useListMetrics.js.map +1 -0
- package/lib/MessagesContainer/useMessageRows.d.ts +46 -0
- package/lib/MessagesContainer/useMessageRows.d.ts.map +1 -0
- package/lib/MessagesContainer/useMessageRows.js +228 -0
- package/lib/MessagesContainer/useMessageRows.js.map +1 -0
- package/lib/MessagesContainer/usePageDownUnread.d.ts +27 -0
- package/lib/MessagesContainer/usePageDownUnread.d.ts.map +1 -0
- package/lib/MessagesContainer/usePageDownUnread.js +152 -0
- package/lib/MessagesContainer/usePageDownUnread.js.map +1 -0
- package/lib/MessagesContainer/useScrollActivity.d.ts +13 -0
- package/lib/MessagesContainer/useScrollActivity.d.ts.map +1 -0
- package/lib/MessagesContainer/useScrollActivity.js +84 -0
- package/lib/MessagesContainer/useScrollActivity.js.map +1 -0
- package/lib/MessagesContainer/useScrollToBottom.d.ts +26 -0
- package/lib/MessagesContainer/useScrollToBottom.d.ts.map +1 -0
- package/lib/MessagesContainer/useScrollToBottom.js +164 -0
- package/lib/MessagesContainer/useScrollToBottom.js.map +1 -0
- package/lib/MessagesContainer/useTapToClosePanels.d.ts +7 -0
- package/lib/MessagesContainer/useTapToClosePanels.d.ts.map +1 -0
- package/lib/MessagesContainer/useTapToClosePanels.js +55 -0
- package/lib/MessagesContainer/useTapToClosePanels.js.map +1 -0
- package/lib/MessagesContainer/viewability.d.ts +9 -0
- package/lib/MessagesContainer/viewability.d.ts.map +1 -0
- package/lib/MessagesContainer/viewability.js +110 -0
- package/lib/MessagesContainer/viewability.js.map +1 -0
- package/lib/Models.d.ts +188 -3
- package/lib/Models.d.ts.map +1 -1
- package/lib/Models.js.map +1 -1
- package/lib/QuickReplies.js +234 -101
- package/lib/QuickReplies.js.map +1 -1
- package/lib/Reactions/MessageReactions.d.ts +5 -0
- package/lib/Reactions/MessageReactions.d.ts.map +1 -1
- package/lib/Reactions/MessageReactions.js +359 -80
- package/lib/Reactions/MessageReactions.js.map +1 -1
- package/lib/Reactions/ReactionPicker.d.ts +5 -3
- package/lib/Reactions/ReactionPicker.d.ts.map +1 -1
- package/lib/Reactions/ReactionPicker.js +68 -82
- package/lib/Reactions/ReactionPicker.js.map +1 -1
- package/lib/Reactions/index.js +1 -0
- package/lib/Reactions/index.js.map +1 -1
- package/lib/Reactions/types.d.ts +49 -5
- package/lib/Reactions/types.d.ts.map +1 -1
- package/lib/Reactions/types.js.map +1 -1
- package/lib/Reply/index.js.map +1 -1
- package/lib/Reply/types.d.ts +19 -3
- package/lib/Reply/types.d.ts.map +1 -1
- package/lib/Reply/types.js.map +1 -1
- package/lib/Send.d.ts +2 -2
- package/lib/Send.d.ts.map +1 -1
- package/lib/Send.js +218 -47
- package/lib/Send.js.map +1 -1
- package/lib/SystemMessage.d.ts.map +1 -1
- package/lib/SystemMessage.js +106 -37
- package/lib/SystemMessage.js.map +1 -1
- package/lib/Theme.d.ts +320 -23
- package/lib/Theme.d.ts.map +1 -1
- package/lib/Theme.js +548 -119
- package/lib/Theme.js.map +1 -1
- package/lib/Time.d.ts +7 -0
- package/lib/Time.d.ts.map +1 -1
- package/lib/Time.js +122 -30
- package/lib/Time.js.map +1 -1
- package/lib/TypingIndicator/index.d.ts +9 -1
- package/lib/TypingIndicator/index.d.ts.map +1 -1
- package/lib/TypingIndicator/index.js +318 -94
- package/lib/TypingIndicator/index.js.map +1 -1
- package/lib/TypingIndicator/styles.d.ts +6 -2
- package/lib/TypingIndicator/styles.d.ts.map +1 -1
- package/lib/TypingIndicator/styles.js +22 -18
- package/lib/TypingIndicator/styles.js.map +1 -1
- package/lib/TypingIndicator/types.js.map +1 -1
- package/lib/attachments/AttachmentButton.d.ts +18 -0
- package/lib/attachments/AttachmentButton.d.ts.map +1 -0
- package/lib/attachments/AttachmentButton.js +110 -0
- package/lib/attachments/AttachmentButton.js.map +1 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.d.ts +15 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.js +165 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.js.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.js +267 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.js.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.d.ts +18 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.js +184 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabBar.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/TabBar.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabBar.js +127 -0
- package/lib/attachments/AttachmentMenu/TabBar.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabButton.d.ts +15 -0
- package/lib/attachments/AttachmentMenu/TabButton.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabButton.js +219 -0
- package/lib/attachments/AttachmentMenu/TabButton.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabPanel.d.ts +17 -0
- package/lib/attachments/AttachmentMenu/TabPanel.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabPanel.js +170 -0
- package/lib/attachments/AttachmentMenu/TabPanel.js.map +1 -0
- package/lib/attachments/AttachmentMenu/constants.d.ts +54 -0
- package/lib/attachments/AttachmentMenu/constants.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/constants.js +79 -0
- package/lib/attachments/AttachmentMenu/constants.js.map +1 -0
- package/lib/attachments/AttachmentMenu/index.d.ts +16 -0
- package/lib/attachments/AttachmentMenu/index.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/index.js +498 -0
- package/lib/attachments/AttachmentMenu/index.js.map +1 -0
- package/lib/attachments/AttachmentMenu/styles.d.ts +259 -0
- package/lib/attachments/AttachmentMenu/styles.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/styles.js +262 -0
- package/lib/attachments/AttachmentMenu/styles.js.map +1 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.js +74 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.js.map +1 -0
- package/lib/attachments/buildMessages.d.ts +36 -0
- package/lib/attachments/buildMessages.d.ts.map +1 -0
- package/lib/attachments/buildMessages.js +192 -0
- package/lib/attachments/buildMessages.js.map +1 -0
- package/lib/attachments/gallery.d.ts +28 -0
- package/lib/attachments/gallery.d.ts.map +1 -0
- package/lib/attachments/gallery.js +245 -0
- package/lib/attachments/gallery.js.map +1 -0
- package/lib/attachments/types.d.ts +69 -0
- package/lib/attachments/types.d.ts.map +1 -0
- package/lib/attachments/types.js +2 -0
- package/lib/attachments/types.js.map +1 -0
- package/lib/colorUtils.d.ts +24 -0
- package/lib/colorUtils.d.ts.map +1 -0
- package/lib/colorUtils.js +71 -0
- package/lib/colorUtils.js.map +1 -0
- package/lib/components/AttachmentSheet.d.ts +1 -1
- package/lib/components/AttachmentSheet.d.ts.map +1 -1
- package/lib/components/AttachmentSheet.js +515 -155
- package/lib/components/AttachmentSheet.js.map +1 -1
- package/lib/components/BasicMarkdown.d.ts +7 -1
- package/lib/components/BasicMarkdown.d.ts.map +1 -1
- package/lib/components/BasicMarkdown.js +234 -184
- package/lib/components/BasicMarkdown.js.map +1 -1
- package/lib/components/BubbleBackground.d.ts +55 -0
- package/lib/components/BubbleBackground.d.ts.map +1 -0
- package/lib/components/BubbleBackground.js +513 -0
- package/lib/components/BubbleBackground.js.map +1 -0
- package/lib/components/ChatEmpty.d.ts +18 -0
- package/lib/components/ChatEmpty.d.ts.map +1 -0
- package/lib/components/ChatEmpty.js +125 -0
- package/lib/components/ChatEmpty.js.map +1 -0
- package/lib/components/ChatLoadingOverlay.d.ts +10 -0
- package/lib/components/ChatLoadingOverlay.d.ts.map +1 -0
- package/lib/components/ChatLoadingOverlay.js +89 -0
- package/lib/components/ChatLoadingOverlay.js.map +1 -0
- package/lib/components/ChatOverlay.d.ts +9 -0
- package/lib/components/ChatOverlay.d.ts.map +1 -0
- package/lib/components/ChatOverlay.js +60 -0
- package/lib/components/ChatOverlay.js.map +1 -0
- package/lib/components/ChatWallpaper.d.ts +32 -0
- package/lib/components/ChatWallpaper.d.ts.map +1 -0
- package/lib/components/ChatWallpaper.js +277 -0
- package/lib/components/ChatWallpaper.js.map +1 -0
- package/lib/components/ContextMenu/MenuCard.d.ts +21 -0
- package/lib/components/ContextMenu/MenuCard.d.ts.map +1 -0
- package/lib/components/ContextMenu/MenuCard.js +265 -0
- package/lib/components/ContextMenu/MenuCard.js.map +1 -0
- package/lib/components/ContextMenu/ReactionButton.d.ts +15 -0
- package/lib/components/ContextMenu/ReactionButton.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionButton.js +116 -0
- package/lib/components/ContextMenu/ReactionButton.js.map +1 -0
- package/lib/components/ContextMenu/ReactionFlight.d.ts +14 -0
- package/lib/components/ContextMenu/ReactionFlight.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionFlight.js +111 -0
- package/lib/components/ContextMenu/ReactionFlight.js.map +1 -0
- package/lib/components/ContextMenu/ReactionsBar.d.ts +35 -0
- package/lib/components/ContextMenu/ReactionsBar.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionsBar.js +354 -0
- package/lib/components/ContextMenu/ReactionsBar.js.map +1 -0
- package/lib/components/ContextMenu/constants.d.ts +68 -0
- package/lib/components/ContextMenu/constants.d.ts.map +1 -0
- package/lib/components/ContextMenu/constants.js +105 -0
- package/lib/components/ContextMenu/constants.js.map +1 -0
- package/lib/components/ContextMenu/index.d.ts +12 -0
- package/lib/components/ContextMenu/index.d.ts.map +1 -0
- package/lib/components/ContextMenu/index.js +476 -0
- package/lib/components/ContextMenu/index.js.map +1 -0
- package/lib/components/ContextMenu/placement.d.ts +50 -0
- package/lib/components/ContextMenu/placement.d.ts.map +1 -0
- package/lib/components/ContextMenu/placement.js +117 -0
- package/lib/components/ContextMenu/placement.js.map +1 -0
- package/lib/components/ContextMenu/styles.d.ts +199 -0
- package/lib/components/ContextMenu/styles.d.ts.map +1 -0
- package/lib/components/ContextMenu/styles.js +169 -0
- package/lib/components/ContextMenu/styles.js.map +1 -0
- package/lib/components/ContextMenu/types.d.ts +62 -0
- package/lib/components/ContextMenu/types.d.ts.map +1 -0
- package/lib/components/ContextMenu/types.js +2 -0
- package/lib/components/ContextMenu/types.js.map +1 -0
- package/lib/components/ContextMenu/useExpandPanel.d.ts +11 -0
- package/lib/components/ContextMenu/useExpandPanel.d.ts.map +1 -0
- package/lib/components/ContextMenu/useExpandPanel.js +81 -0
- package/lib/components/ContextMenu/useExpandPanel.js.map +1 -0
- package/lib/components/ContextMenu/useMenuPresence.d.ts +17 -0
- package/lib/components/ContextMenu/useMenuPresence.d.ts.map +1 -0
- package/lib/components/ContextMenu/useMenuPresence.js +125 -0
- package/lib/components/ContextMenu/useMenuPresence.js.map +1 -0
- package/lib/components/FloatingRoundNote.d.ts +13 -0
- package/lib/components/FloatingRoundNote.d.ts.map +1 -0
- package/lib/components/FloatingRoundNote.js +541 -0
- package/lib/components/FloatingRoundNote.js.map +1 -0
- package/lib/components/GlassSurface.d.ts +16 -0
- package/lib/components/GlassSurface.d.ts.map +1 -0
- package/lib/components/GlassSurface.js +114 -0
- package/lib/components/GlassSurface.js.map +1 -0
- package/lib/components/Icon.js +57 -8
- package/lib/components/Icon.js.map +1 -1
- package/lib/components/LinkPreviewCard.d.ts +36 -0
- package/lib/components/LinkPreviewCard.d.ts.map +1 -0
- package/lib/components/LinkPreviewCard.js +416 -0
- package/lib/components/LinkPreviewCard.js.map +1 -0
- package/lib/components/LucideIcon.d.ts.map +1 -1
- package/lib/components/LucideIcon.js +103 -106
- package/lib/components/LucideIcon.js.map +1 -1
- package/lib/components/MarkdownMessageText.d.ts +17 -2
- package/lib/components/MarkdownMessageText.d.ts.map +1 -1
- package/lib/components/MarkdownMessageText.js +270 -22
- package/lib/components/MarkdownMessageText.js.map +1 -1
- package/lib/components/MediaCard.d.ts.map +1 -1
- package/lib/components/MediaCard.js +223 -85
- package/lib/components/MediaCard.js.map +1 -1
- package/lib/components/MediaControls.js +1094 -450
- package/lib/components/MediaControls.js.map +1 -1
- package/lib/components/MediaLoader.d.ts +21 -0
- package/lib/components/MediaLoader.d.ts.map +1 -0
- package/lib/components/MediaLoader.js +61 -0
- package/lib/components/MediaLoader.js.map +1 -0
- package/lib/components/MessageReply.d.ts +2 -2
- package/lib/components/MessageReply.d.ts.map +1 -1
- package/lib/components/MessageReply.js +266 -83
- package/lib/components/MessageReply.js.map +1 -1
- package/lib/components/MessageStatus.d.ts +23 -0
- package/lib/components/MessageStatus.d.ts.map +1 -0
- package/lib/components/MessageStatus.js +499 -0
- package/lib/components/MessageStatus.js.map +1 -0
- package/lib/components/NoteIndicators.d.ts +25 -0
- package/lib/components/NoteIndicators.d.ts.map +1 -0
- package/lib/components/NoteIndicators.js +206 -0
- package/lib/components/NoteIndicators.js.map +1 -0
- package/lib/components/NowPlayingBar.d.ts +15 -0
- package/lib/components/NowPlayingBar.d.ts.map +1 -0
- package/lib/components/NowPlayingBar.js +261 -0
- package/lib/components/NowPlayingBar.js.map +1 -0
- package/lib/components/PlayPauseIcon.d.ts +13 -0
- package/lib/components/PlayPauseIcon.d.ts.map +1 -0
- package/lib/components/PlayPauseIcon.js +187 -0
- package/lib/components/PlayPauseIcon.js.map +1 -0
- package/lib/components/PlaybackSpeedPill.d.ts +11 -0
- package/lib/components/PlaybackSpeedPill.d.ts.map +1 -0
- package/lib/components/PlaybackSpeedPill.js +350 -0
- package/lib/components/PlaybackSpeedPill.js.map +1 -0
- package/lib/components/RadialProgress.d.ts +70 -0
- package/lib/components/RadialProgress.d.ts.map +1 -0
- package/lib/components/RadialProgress.js +864 -0
- package/lib/components/RadialProgress.js.map +1 -0
- package/lib/components/RecordButton/LockPill.d.ts +27 -0
- package/lib/components/RecordButton/LockPill.d.ts.map +1 -0
- package/lib/components/RecordButton/LockPill.js +182 -0
- package/lib/components/RecordButton/LockPill.js.map +1 -0
- package/lib/components/RecordButton/ModeButton.d.ts +18 -0
- package/lib/components/RecordButton/ModeButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ModeButton.js +154 -0
- package/lib/components/RecordButton/ModeButton.js.map +1 -0
- package/lib/components/RecordButton/ResumeButton.d.ts +20 -0
- package/lib/components/RecordButton/ResumeButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ResumeButton.js +63 -0
- package/lib/components/RecordButton/ResumeButton.js.map +1 -0
- package/lib/components/RecordButton/Tooltips.d.ts +20 -0
- package/lib/components/RecordButton/Tooltips.d.ts.map +1 -0
- package/lib/components/RecordButton/Tooltips.js +191 -0
- package/lib/components/RecordButton/Tooltips.js.map +1 -0
- package/lib/components/RecordButton/ViewOnceButton.d.ts +16 -0
- package/lib/components/RecordButton/ViewOnceButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ViewOnceButton.js +96 -0
- package/lib/components/RecordButton/ViewOnceButton.js.map +1 -0
- package/lib/components/RecordButton/constants.d.ts +52 -0
- package/lib/components/RecordButton/constants.d.ts.map +1 -0
- package/lib/components/RecordButton/constants.js +58 -0
- package/lib/components/RecordButton/constants.js.map +1 -0
- package/lib/components/RecordButton/index.d.ts +14 -0
- package/lib/components/RecordButton/index.d.ts.map +1 -0
- package/lib/components/RecordButton/index.js +382 -0
- package/lib/components/RecordButton/index.js.map +1 -0
- package/lib/components/RecordButton/styles.d.ts +155 -0
- package/lib/components/RecordButton/styles.d.ts.map +1 -0
- package/lib/components/RecordButton/styles.js +161 -0
- package/lib/components/RecordButton/styles.js.map +1 -0
- package/lib/components/RecordButton/types.d.ts +63 -0
- package/lib/components/RecordButton/types.d.ts.map +1 -0
- package/lib/components/RecordButton/types.js +2 -0
- package/lib/components/RecordButton/types.js.map +1 -0
- package/lib/components/RecordButton/useRecordGesture.d.ts +28 -0
- package/lib/components/RecordButton/useRecordGesture.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordGesture.js +263 -0
- package/lib/components/RecordButton/useRecordGesture.js.map +1 -0
- package/lib/components/RecordButton/useRecordHints.d.ts +27 -0
- package/lib/components/RecordButton/useRecordHints.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordHints.js +210 -0
- package/lib/components/RecordButton/useRecordHints.js.map +1 -0
- package/lib/components/RecordButton/useRecordSlideDistance.d.ts +3 -0
- package/lib/components/RecordButton/useRecordSlideDistance.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordSlideDistance.js +15 -0
- package/lib/components/RecordButton/useRecordSlideDistance.js.map +1 -0
- package/lib/components/RecordButton/useRecordTake.d.ts +41 -0
- package/lib/components/RecordButton/useRecordTake.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordTake.js +349 -0
- package/lib/components/RecordButton/useRecordTake.js.map +1 -0
- package/lib/components/RecordButton/useSendFlight.d.ts +25 -0
- package/lib/components/RecordButton/useSendFlight.d.ts.map +1 -0
- package/lib/components/RecordButton/useSendFlight.js +162 -0
- package/lib/components/RecordButton/useSendFlight.js.map +1 -0
- package/lib/components/RecordCircle.d.ts +92 -0
- package/lib/components/RecordCircle.d.ts.map +1 -0
- package/lib/components/RecordCircle.js +629 -0
- package/lib/components/RecordCircle.js.map +1 -0
- package/lib/components/RecordingBar.d.ts +24 -0
- package/lib/components/RecordingBar.d.ts.map +1 -0
- package/lib/components/RecordingBar.js +766 -0
- package/lib/components/RecordingBar.js.map +1 -0
- package/lib/components/ReplyPreview.js +318 -135
- package/lib/components/ReplyPreview.js.map +1 -1
- package/lib/components/SelectionBar.d.ts +17 -0
- package/lib/components/SelectionBar.d.ts.map +1 -0
- package/lib/components/SelectionBar.js +214 -0
- package/lib/components/SelectionBar.js.map +1 -0
- package/lib/components/SelectionCheckbox.d.ts +12 -0
- package/lib/components/SelectionCheckbox.d.ts.map +1 -0
- package/lib/components/SelectionCheckbox.js +104 -0
- package/lib/components/SelectionCheckbox.js.map +1 -0
- package/lib/components/SendIcon.js +60 -26
- package/lib/components/SendIcon.js.map +1 -1
- package/lib/components/ServiceSpinner.d.ts +17 -0
- package/lib/components/ServiceSpinner.d.ts.map +1 -0
- package/lib/components/ServiceSpinner.js +77 -0
- package/lib/components/ServiceSpinner.js.map +1 -0
- package/lib/components/Spinner.d.ts +18 -0
- package/lib/components/Spinner.d.ts.map +1 -0
- package/lib/components/Spinner.js +169 -0
- package/lib/components/Spinner.js.map +1 -0
- package/lib/components/StreamingCursor.js +54 -9
- package/lib/components/StreamingCursor.js.map +1 -1
- package/lib/components/Ticks.d.ts +6 -5
- package/lib/components/Ticks.d.ts.map +1 -1
- package/lib/components/Ticks.js +272 -82
- package/lib/components/Ticks.js.map +1 -1
- package/lib/components/TouchableOpacity.d.ts.map +1 -1
- package/lib/components/TouchableOpacity.js +154 -48
- package/lib/components/TouchableOpacity.js.map +1 -1
- package/lib/components/TranscribeButton.d.ts +45 -0
- package/lib/components/TranscribeButton.d.ts.map +1 -0
- package/lib/components/TranscribeButton.js +549 -0
- package/lib/components/TranscribeButton.js.map +1 -0
- package/lib/components/TypingStatus.d.ts +29 -0
- package/lib/components/TypingStatus.d.ts.map +1 -0
- package/lib/components/TypingStatus.js +446 -0
- package/lib/components/TypingStatus.js.map +1 -0
- package/lib/components/UnreadSeparator.d.ts +8 -0
- package/lib/components/UnreadSeparator.d.ts.map +1 -0
- package/lib/components/UnreadSeparator.js +101 -0
- package/lib/components/UnreadSeparator.js.map +1 -0
- package/lib/components/VideoNoteCapture/ProgressRing.d.ts +16 -0
- package/lib/components/VideoNoteCapture/ProgressRing.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/ProgressRing.js +75 -0
- package/lib/components/VideoNoteCapture/ProgressRing.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.d.ts +31 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.js +500 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.d.ts +12 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.js +105 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.d.ts +12 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.js +95 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.js.map +1 -0
- package/lib/components/VideoNoteCapture/constants.d.ts +50 -0
- package/lib/components/VideoNoteCapture/constants.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/constants.js +53 -0
- package/lib/components/VideoNoteCapture/constants.js.map +1 -0
- package/lib/components/VideoNoteCapture/index.d.ts +3 -0
- package/lib/components/VideoNoteCapture/index.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/index.js +2 -0
- package/lib/components/VideoNoteCapture/index.js.map +1 -0
- package/lib/components/VideoNoteCapture/optional.d.ts +6 -0
- package/lib/components/VideoNoteCapture/optional.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/optional.js +15 -0
- package/lib/components/VideoNoteCapture/optional.js.map +1 -0
- package/lib/components/VideoNoteCapture/sessionState.d.ts +10 -0
- package/lib/components/VideoNoteCapture/sessionState.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/sessionState.js +19 -0
- package/lib/components/VideoNoteCapture/sessionState.js.map +1 -0
- package/lib/components/VideoNoteCapture/styles.d.ts +84 -0
- package/lib/components/VideoNoteCapture/styles.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/styles.js +86 -0
- package/lib/components/VideoNoteCapture/styles.js.map +1 -0
- package/lib/components/VideoNoteCapture/types.d.ts +54 -0
- package/lib/components/VideoNoteCapture/types.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/types.js +2 -0
- package/lib/components/VideoNoteCapture/types.js.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.d.ts +47 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.js +216 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.js.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.d.ts +14 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.js +61 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.js.map +1 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.d.ts +25 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.js +611 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.js.map +1 -0
- package/lib/components/VideoNoteOverlay.d.ts +42 -11
- package/lib/components/VideoNoteOverlay.d.ts.map +1 -1
- package/lib/components/VideoNoteOverlay.js +722 -135
- package/lib/components/VideoNoteOverlay.js.map +1 -1
- package/lib/components/VideoNoteRecorder/LiveVideoNote.d.ts +6 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.js +205 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.js.map +1 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.d.ts +35 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.js +350 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.js.map +1 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.d.ts +10 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.js +52 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.js.map +1 -0
- package/lib/components/VideoNoteRecorder/constants.d.ts +16 -0
- package/lib/components/VideoNoteRecorder/constants.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/constants.js +30 -0
- package/lib/components/VideoNoteRecorder/constants.js.map +1 -0
- package/lib/components/{VideoNoteRecorder.d.ts → VideoNoteRecorder/index.d.ts} +5 -10
- package/lib/components/VideoNoteRecorder/index.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/index.js +26 -0
- package/lib/components/VideoNoteRecorder/index.js.map +1 -0
- package/lib/components/VideoNoteRecorder/styles.d.ts +159 -0
- package/lib/components/VideoNoteRecorder/styles.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/styles.js +170 -0
- package/lib/components/VideoNoteRecorder/styles.js.map +1 -0
- package/lib/components/VideoNoteRecorder/types.d.ts +7 -0
- package/lib/components/VideoNoteRecorder/types.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/types.js +2 -0
- package/lib/components/VideoNoteRecorder/types.js.map +1 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.d.ts +10 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.js +134 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.js.map +1 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.d.ts +28 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.js +287 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.js.map +1 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.d.ts +6 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.js +11 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.js.map +1 -0
- package/lib/components/VideoRecordButton.d.ts +1 -1
- package/lib/components/VideoRecordButton.d.ts.map +1 -1
- package/lib/components/VideoRecordButton.js +221 -92
- package/lib/components/VideoRecordButton.js.map +1 -1
- package/lib/components/ViewOnceBadge.d.ts +23 -0
- package/lib/components/ViewOnceBadge.d.ts.map +1 -0
- package/lib/components/ViewOnceBadge.js +233 -0
- package/lib/components/ViewOnceBadge.js.map +1 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.d.ts +16 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.js +503 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.js.map +1 -0
- package/lib/components/VoiceMessageInput/constants.d.ts +16 -0
- package/lib/components/VoiceMessageInput/constants.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/constants.js +22 -0
- package/lib/components/VoiceMessageInput/constants.js.map +1 -0
- package/lib/components/VoiceMessageInput/formatElapsed.d.ts +2 -0
- package/lib/components/VoiceMessageInput/formatElapsed.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/formatElapsed.js +7 -0
- package/lib/components/VoiceMessageInput/formatElapsed.js.map +1 -0
- package/lib/components/VoiceMessageInput/index.d.ts +9 -0
- package/lib/components/VoiceMessageInput/index.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/index.js +148 -0
- package/lib/components/VoiceMessageInput/index.js.map +1 -0
- package/lib/components/VoiceMessageInput/previewStyles.d.ts +77 -0
- package/lib/components/VoiceMessageInput/previewStyles.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/previewStyles.js +80 -0
- package/lib/components/VoiceMessageInput/previewStyles.js.map +1 -0
- package/lib/components/VoiceMessageInput/previewWaveform.d.ts +15 -0
- package/lib/components/VoiceMessageInput/previewWaveform.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/previewWaveform.js +27 -0
- package/lib/components/VoiceMessageInput/previewWaveform.js.map +1 -0
- package/lib/components/VoiceMessageInput/recorder.d.ts +18 -0
- package/lib/components/VoiceMessageInput/recorder.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/recorder.js +80 -0
- package/lib/components/VoiceMessageInput/recorder.js.map +1 -0
- package/lib/components/VoiceMessageInput/types.d.ts +56 -0
- package/lib/components/VoiceMessageInput/types.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/types.js +2 -0
- package/lib/components/VoiceMessageInput/types.js.map +1 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.d.ts +7 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.js +61 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.js.map +1 -0
- package/lib/components/VoiceMessageInput/useStateReport.d.ts +16 -0
- package/lib/components/VoiceMessageInput/useStateReport.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useStateReport.js +81 -0
- package/lib/components/VoiceMessageInput/useStateReport.js.map +1 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.d.ts +34 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.js +207 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.js.map +1 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.d.ts +25 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.js +424 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.js.map +1 -0
- package/lib/components/WaveformPlayer/Bars.d.ts +30 -0
- package/lib/components/WaveformPlayer/Bars.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/Bars.js +171 -0
- package/lib/components/WaveformPlayer/Bars.js.map +1 -0
- package/lib/components/WaveformPlayer/VoiceButton.d.ts +23 -0
- package/lib/components/WaveformPlayer/VoiceButton.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/VoiceButton.js +111 -0
- package/lib/components/WaveformPlayer/VoiceButton.js.map +1 -0
- package/lib/components/WaveformPlayer/WaveformTrack.d.ts +31 -0
- package/lib/components/WaveformPlayer/WaveformTrack.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/WaveformTrack.js +199 -0
- package/lib/components/WaveformPlayer/WaveformTrack.js.map +1 -0
- package/lib/components/WaveformPlayer/audio.d.ts +23 -0
- package/lib/components/WaveformPlayer/audio.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/audio.js +97 -0
- package/lib/components/WaveformPlayer/audio.js.map +1 -0
- package/lib/components/WaveformPlayer/index.d.ts +13 -0
- package/lib/components/WaveformPlayer/index.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/index.js +475 -0
- package/lib/components/WaveformPlayer/index.js.map +1 -0
- package/lib/components/WaveformPlayer/styles.d.ts +257 -0
- package/lib/components/WaveformPlayer/styles.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/styles.js +120 -0
- package/lib/components/WaveformPlayer/styles.js.map +1 -0
- package/lib/components/WaveformPlayer/types.d.ts +32 -0
- package/lib/components/WaveformPlayer/types.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/types.js +2 -0
- package/lib/components/WaveformPlayer/types.js.map +1 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.d.ts +21 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.js +105 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.js.map +1 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.d.ts +39 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.js +401 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.js.map +1 -0
- package/lib/components/WaveformPlayer/useVoiceSource.d.ts +38 -0
- package/lib/components/WaveformPlayer/useVoiceSource.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useVoiceSource.js +244 -0
- package/lib/components/WaveformPlayer/useVoiceSource.js.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.d.ts +16 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.js +135 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.js.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.d.ts +16 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.js +168 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.js.map +1 -0
- package/lib/components/composerPanels.d.ts +13 -0
- package/lib/components/composerPanels.d.ts.map +1 -0
- package/lib/components/composerPanels.js +22 -0
- package/lib/components/composerPanels.js.map +1 -0
- package/lib/components/defaultMessageActions.d.ts +30 -0
- package/lib/components/defaultMessageActions.d.ts.map +1 -0
- package/lib/components/defaultMessageActions.js +124 -0
- package/lib/components/defaultMessageActions.js.map +1 -0
- package/lib/components/earpiece.d.ts +56 -0
- package/lib/components/earpiece.d.ts.map +1 -0
- package/lib/components/earpiece.js +218 -0
- package/lib/components/earpiece.js.map +1 -0
- package/lib/components/floatingNoteMath.d.ts +66 -0
- package/lib/components/floatingNoteMath.d.ts.map +1 -0
- package/lib/components/floatingNoteMath.js +143 -0
- package/lib/components/floatingNoteMath.js.map +1 -0
- package/lib/components/haptics.d.ts +5 -0
- package/lib/components/haptics.d.ts.map +1 -0
- package/lib/components/haptics.js +26 -0
- package/lib/components/haptics.js.map +1 -0
- package/lib/components/mediaDownload.d.ts +14 -0
- package/lib/components/mediaDownload.d.ts.map +1 -0
- package/lib/components/mediaDownload.js +43 -0
- package/lib/components/mediaDownload.js.map +1 -0
- package/lib/components/mediaPalette.d.ts +7 -2
- package/lib/components/mediaPalette.d.ts.map +1 -1
- package/lib/components/mediaPalette.js +27 -15
- package/lib/components/mediaPalette.js.map +1 -1
- package/lib/components/mediaPlayback.d.ts +204 -5
- package/lib/components/mediaPlayback.d.ts.map +1 -1
- package/lib/components/mediaPlayback.js +746 -17
- package/lib/components/mediaPlayback.js.map +1 -1
- package/lib/components/mediaTransfer.d.ts +29 -0
- package/lib/components/mediaTransfer.d.ts.map +1 -0
- package/lib/components/mediaTransfer.js +52 -0
- package/lib/components/mediaTransfer.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewer.d.ts +17 -0
- package/lib/components/mediaViewer/MediaViewer.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewer.js +347 -0
- package/lib/components/mediaViewer/MediaViewer.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerChrome.d.ts +14 -0
- package/lib/components/mediaViewer/MediaViewerChrome.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerChrome.js +164 -0
- package/lib/components/mediaViewer/MediaViewerChrome.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerHost.d.ts +10 -0
- package/lib/components/mediaViewer/MediaViewerHost.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerHost.js +76 -0
- package/lib/components/mediaViewer/MediaViewerHost.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerPage.d.ts +25 -0
- package/lib/components/mediaViewer/MediaViewerPage.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerPage.js +194 -0
- package/lib/components/mediaViewer/MediaViewerPage.js.map +1 -0
- package/lib/components/mediaViewer/gallery.d.ts +27 -0
- package/lib/components/mediaViewer/gallery.d.ts.map +1 -0
- package/lib/components/mediaViewer/gallery.js +41 -0
- package/lib/components/mediaViewer/gallery.js.map +1 -0
- package/lib/components/messageHighlight.d.ts +41 -0
- package/lib/components/messageHighlight.d.ts.map +1 -0
- package/lib/components/messageHighlight.js +157 -0
- package/lib/components/messageHighlight.js.map +1 -0
- package/lib/components/messagePress.d.ts +14 -0
- package/lib/components/messagePress.d.ts.map +1 -0
- package/lib/components/messagePress.js +18 -0
- package/lib/components/messagePress.js.map +1 -0
- package/lib/components/messageSelection.d.ts +39 -0
- package/lib/components/messageSelection.d.ts.map +1 -0
- package/lib/components/messageSelection.js +135 -0
- package/lib/components/messageSelection.js.map +1 -0
- package/lib/components/recordingFeedback.d.ts +22 -0
- package/lib/components/recordingFeedback.d.ts.map +1 -0
- package/lib/components/recordingFeedback.js +80 -0
- package/lib/components/recordingFeedback.js.map +1 -0
- package/lib/components/recordingMeter.d.ts +19 -0
- package/lib/components/recordingMeter.d.ts.map +1 -0
- package/lib/components/recordingMeter.js +21 -0
- package/lib/components/recordingMeter.js.map +1 -0
- package/lib/components/roundNoteChrome.d.ts +107 -0
- package/lib/components/roundNoteChrome.d.ts.map +1 -0
- package/lib/components/roundNoteChrome.js +249 -0
- package/lib/components/roundNoteChrome.js.map +1 -0
- package/lib/components/roundNotePlayers.d.ts +78 -0
- package/lib/components/roundNotePlayers.d.ts.map +1 -0
- package/lib/components/roundNotePlayers.js +230 -0
- package/lib/components/roundNotePlayers.js.map +1 -0
- package/lib/components/sendFlight.d.ts +88 -0
- package/lib/components/sendFlight.d.ts.map +1 -0
- package/lib/components/sendFlight.js +146 -0
- package/lib/components/sendFlight.js.map +1 -0
- package/lib/components/viewOnce.d.ts +27 -0
- package/lib/components/viewOnce.d.ts.map +1 -0
- package/lib/components/viewOnce.js +168 -0
- package/lib/components/viewOnce.js.map +1 -0
- package/lib/components/visionCamera.d.ts +45 -0
- package/lib/components/visionCamera.d.ts.map +1 -0
- package/lib/components/visionCamera.js +117 -0
- package/lib/components/visionCamera.js.map +1 -0
- package/lib/components/voiceEditing.d.ts +34 -0
- package/lib/components/voiceEditing.d.ts.map +1 -0
- package/lib/components/voiceEditing.js +159 -0
- package/lib/components/voiceEditing.js.map +1 -0
- package/lib/components/voiceWaveform.d.ts +108 -0
- package/lib/components/voiceWaveform.d.ts.map +1 -0
- package/lib/components/voiceWaveform.js +165 -0
- package/lib/components/voiceWaveform.js.map +1 -0
- package/lib/components/wallpaperGradient.d.ts +16 -0
- package/lib/components/wallpaperGradient.d.ts.map +1 -0
- package/lib/components/wallpaperGradient.js +186 -0
- package/lib/components/wallpaperGradient.js.map +1 -0
- package/lib/components/windowInsets.d.ts +11 -0
- package/lib/components/windowInsets.d.ts.map +1 -0
- package/lib/components/windowInsets.js +44 -0
- package/lib/components/windowInsets.js.map +1 -0
- package/lib/dayjsLocales.js +15 -2
- package/lib/dayjsLocales.js.map +1 -1
- package/lib/emoji/EmojiGrid/BackspaceButton.d.ts +11 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.js +111 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.js.map +1 -0
- package/lib/emoji/EmojiGrid/EmojiRow.d.ts +15 -0
- package/lib/emoji/EmojiGrid/EmojiRow.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/EmojiRow.js +71 -0
- package/lib/emoji/EmojiGrid/EmojiRow.js.map +1 -0
- package/lib/emoji/EmojiGrid/Search.d.ts +29 -0
- package/lib/emoji/EmojiGrid/Search.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/Search.js +234 -0
- package/lib/emoji/EmojiGrid/Search.js.map +1 -0
- package/lib/emoji/EmojiGrid/TabStrip.d.ts +16 -0
- package/lib/emoji/EmojiGrid/TabStrip.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/TabStrip.js +237 -0
- package/lib/emoji/EmojiGrid/TabStrip.js.map +1 -0
- package/lib/emoji/EmojiGrid/TonePopup.d.ts +12 -0
- package/lib/emoji/EmojiGrid/TonePopup.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/TonePopup.js +137 -0
- package/lib/emoji/EmojiGrid/TonePopup.js.map +1 -0
- package/lib/emoji/EmojiGrid/constants.d.ts +29 -0
- package/lib/emoji/EmojiGrid/constants.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/constants.js +65 -0
- package/lib/emoji/EmojiGrid/constants.js.map +1 -0
- package/lib/emoji/EmojiGrid/index.d.ts +10 -0
- package/lib/emoji/EmojiGrid/index.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/index.js +450 -0
- package/lib/emoji/EmojiGrid/index.js.map +1 -0
- package/lib/emoji/EmojiGrid/items.d.ts +25 -0
- package/lib/emoji/EmojiGrid/items.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/items.js +75 -0
- package/lib/emoji/EmojiGrid/items.js.map +1 -0
- package/lib/emoji/EmojiGrid/styles.d.ts +181 -0
- package/lib/emoji/EmojiGrid/styles.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/styles.js +184 -0
- package/lib/emoji/EmojiGrid/styles.js.map +1 -0
- package/lib/emoji/EmojiGrid/types.d.ts +53 -0
- package/lib/emoji/EmojiGrid/types.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/types.js +2 -0
- package/lib/emoji/EmojiGrid/types.js.map +1 -0
- package/lib/emoji/EmojiGrid/useTabScroll.d.ts +19 -0
- package/lib/emoji/EmojiGrid/useTabScroll.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/useTabScroll.js +124 -0
- package/lib/emoji/EmojiGrid/useTabScroll.js.map +1 -0
- package/lib/emoji/EmojiKeyboard.d.ts +79 -0
- package/lib/emoji/EmojiKeyboard.d.ts.map +1 -0
- package/lib/emoji/EmojiKeyboard.js +445 -0
- package/lib/emoji/EmojiKeyboard.js.map +1 -0
- package/lib/emoji/defaultExpandedPicker.d.ts +5 -0
- package/lib/emoji/defaultExpandedPicker.d.ts.map +1 -0
- package/lib/emoji/defaultExpandedPicker.js +11 -0
- package/lib/emoji/defaultExpandedPicker.js.map +1 -0
- package/lib/emoji/emojiData.d.ts +2 -0
- package/lib/emoji/emojiData.d.ts.map +1 -0
- package/lib/emoji/emojiData.js +5 -0
- package/lib/emoji/emojiData.js.map +1 -0
- package/lib/emoji/emojiStore.d.ts +70 -0
- package/lib/emoji/emojiStore.d.ts.map +1 -0
- package/lib/emoji/emojiStore.js +246 -0
- package/lib/emoji/emojiStore.js.map +1 -0
- package/lib/emoji/textEditing.d.ts +20 -0
- package/lib/emoji/textEditing.d.ts.map +1 -0
- package/lib/emoji/textEditing.js +97 -0
- package/lib/emoji/textEditing.js.map +1 -0
- package/lib/emojiOnly.d.ts +11 -0
- package/lib/emojiOnly.d.ts.map +1 -0
- package/lib/emojiOnly.js +79 -0
- package/lib/emojiOnly.js.map +1 -0
- package/lib/gestures/useRowSwipe.d.ts +43 -0
- package/lib/gestures/useRowSwipe.d.ts.map +1 -0
- package/lib/gestures/useRowSwipe.js +74 -0
- package/lib/gestures/useRowSwipe.js.map +1 -0
- package/lib/hooks/useAnimatedPresence.d.ts +22 -0
- package/lib/hooks/useAnimatedPresence.d.ts.map +1 -0
- package/lib/hooks/useAnimatedPresence.js +97 -0
- package/lib/hooks/useAnimatedPresence.js.map +1 -0
- package/lib/hooks/useChatMessages.d.ts +39 -0
- package/lib/hooks/useChatMessages.d.ts.map +1 -0
- package/lib/hooks/useChatMessages.js +125 -0
- package/lib/hooks/useChatMessages.js.map +1 -0
- package/lib/hooks/useColorScheme.d.ts +7 -1
- package/lib/hooks/useColorScheme.d.ts.map +1 -1
- package/lib/hooks/useColorScheme.js +46 -8
- package/lib/hooks/useColorScheme.js.map +1 -1
- package/lib/hooks/useHasKeyboardProvider.js +18 -7
- package/lib/hooks/useHasKeyboardProvider.js.map +1 -1
- package/lib/hooks/useIcons.js +15 -2
- package/lib/hooks/useIcons.js.map +1 -1
- package/lib/hooks/useIsKeyboardVisible.js +39 -17
- package/lib/hooks/useIsKeyboardVisible.js.map +1 -1
- package/lib/hooks/useIsRTL.js +15 -2
- package/lib/hooks/useIsRTL.js.map +1 -1
- package/lib/hooks/useKeyboardVerticalOffset.d.ts +5 -3
- package/lib/hooks/useKeyboardVerticalOffset.d.ts.map +1 -1
- package/lib/hooks/useKeyboardVerticalOffset.js +52 -18
- package/lib/hooks/useKeyboardVerticalOffset.js.map +1 -1
- package/lib/hooks/useLabels.js +15 -2
- package/lib/hooks/useLabels.js.map +1 -1
- package/lib/hooks/useStreamingMessages.js +200 -86
- package/lib/hooks/useStreamingMessages.js.map +1 -1
- package/lib/hooks/useTheme.js +56 -7
- package/lib/hooks/useTheme.js.map +1 -1
- package/lib/hooks/useUpdateLayoutEffect.d.ts.map +1 -1
- package/lib/hooks/useUpdateLayoutEffect.js +35 -11
- package/lib/hooks/useUpdateLayoutEffect.js.map +1 -1
- package/lib/i18n.d.ts +182 -0
- package/lib/i18n.d.ts.map +1 -1
- package/lib/i18n.js +121 -23
- package/lib/i18n.js.map +1 -1
- package/lib/index.d.ts +31 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -1
- package/lib/index.js.map +1 -1
- package/lib/linkParser.d.ts +2 -1
- package/lib/linkParser.d.ts.map +1 -1
- package/lib/linkParser.js +323 -185
- package/lib/linkParser.js.map +1 -1
- package/lib/locales/ar.d.ts.map +1 -1
- package/lib/locales/ar.js +110 -19
- package/lib/locales/ar.js.map +1 -1
- package/lib/locales/de.d.ts.map +1 -1
- package/lib/locales/de.js +110 -19
- package/lib/locales/de.js.map +1 -1
- package/lib/locales/es.d.ts.map +1 -1
- package/lib/locales/es.js +110 -19
- package/lib/locales/es.js.map +1 -1
- package/lib/locales/fr.d.ts.map +1 -1
- package/lib/locales/fr.js +110 -19
- package/lib/locales/fr.js.map +1 -1
- package/lib/locales/hi.d.ts.map +1 -1
- package/lib/locales/hi.js +110 -19
- package/lib/locales/hi.js.map +1 -1
- package/lib/locales/id.d.ts.map +1 -1
- package/lib/locales/id.js +110 -19
- package/lib/locales/id.js.map +1 -1
- package/lib/locales/index.js +19 -5
- package/lib/locales/index.js.map +1 -1
- package/lib/locales/it.d.ts.map +1 -1
- package/lib/locales/it.js +110 -19
- package/lib/locales/it.js.map +1 -1
- package/lib/locales/ja.d.ts.map +1 -1
- package/lib/locales/ja.js +110 -19
- package/lib/locales/ja.js.map +1 -1
- package/lib/locales/ko.d.ts.map +1 -1
- package/lib/locales/ko.js +110 -19
- package/lib/locales/ko.js.map +1 -1
- package/lib/locales/nl.d.ts.map +1 -1
- package/lib/locales/nl.js +110 -19
- package/lib/locales/nl.js.map +1 -1
- package/lib/locales/pl.d.ts.map +1 -1
- package/lib/locales/pl.js +110 -19
- package/lib/locales/pl.js.map +1 -1
- package/lib/locales/pt.d.ts.map +1 -1
- package/lib/locales/pt.js +110 -19
- package/lib/locales/pt.js.map +1 -1
- package/lib/locales/ru.d.ts.map +1 -1
- package/lib/locales/ru.js +110 -19
- package/lib/locales/ru.js.map +1 -1
- package/lib/locales/tr.d.ts.map +1 -1
- package/lib/locales/tr.js +110 -19
- package/lib/locales/tr.js.map +1 -1
- package/lib/locales/zh.d.ts.map +1 -1
- package/lib/locales/zh.js +110 -19
- package/lib/locales/zh.js.map +1 -1
- package/lib/logging.d.ts +5 -0
- package/lib/logging.d.ts.map +1 -1
- package/lib/logging.js +13 -1
- package/lib/logging.js.map +1 -1
- package/lib/messageUtils.d.ts +19 -0
- package/lib/messageUtils.d.ts.map +1 -0
- package/lib/messageUtils.js +61 -0
- package/lib/messageUtils.js.map +1 -0
- package/lib/motion.d.ts +21 -0
- package/lib/motion.d.ts.map +1 -0
- package/lib/motion.js +30 -0
- package/lib/motion.js.map +1 -0
- package/lib/optional/index.d.ts +99 -0
- package/lib/optional/index.d.ts.map +1 -0
- package/lib/optional/index.js +284 -0
- package/lib/optional/index.js.map +1 -0
- package/lib/rtl.js +7 -5
- package/lib/rtl.js.map +1 -1
- package/lib/store.d.ts +40 -0
- package/lib/store.d.ts.map +1 -0
- package/lib/store.js +127 -0
- package/lib/store.js.map +1 -0
- package/lib/styles.d.ts +2 -2
- package/lib/styles.d.ts.map +1 -1
- package/lib/styles.js +15 -15
- package/lib/styles.js.map +1 -1
- package/lib/types.js +1 -0
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +15 -0
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +199 -94
- package/lib/utils.js.map +1 -1
- package/llms.txt +133 -31
- package/package.json +89 -46
- package/lib/InputToolbar.d.ts +0 -49
- package/lib/InputToolbar.d.ts.map +0 -1
- package/lib/InputToolbar.js +0 -338
- package/lib/InputToolbar.js.map +0 -1
- package/lib/MessageVideo.d.ts.map +0 -1
- package/lib/MessageVideo.js +0 -162
- package/lib/MessageVideo.js.map +0 -1
- package/lib/MessagesContainer/FlashList.d.ts +0 -9
- package/lib/MessagesContainer/FlashList.d.ts.map +0 -1
- package/lib/MessagesContainer/FlashList.js +0 -23
- package/lib/MessagesContainer/FlashList.js.map +0 -1
- package/lib/components/ContextMenu.d.ts +0 -25
- package/lib/components/ContextMenu.d.ts.map +0 -1
- package/lib/components/ContextMenu.js +0 -122
- package/lib/components/ContextMenu.js.map +0 -1
- package/lib/components/VideoNoteRecorder.d.ts.map +0 -1
- package/lib/components/VideoNoteRecorder.js +0 -634
- package/lib/components/VideoNoteRecorder.js.map +0 -1
- package/lib/components/VoiceMessageInput.d.ts +0 -33
- package/lib/components/VoiceMessageInput.d.ts.map +0 -1
- package/lib/components/VoiceMessageInput.js +0 -403
- package/lib/components/VoiceMessageInput.js.map +0 -1
- package/lib/components/WaveformPlayer.d.ts +0 -19
- package/lib/components/WaveformPlayer.d.ts.map +0 -1
- package/lib/components/WaveformPlayer.js +0 -367
- package/lib/components/WaveformPlayer.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/MessagesContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,EACL,IAAI,EAMJ,QAAQ,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,QAAQ,EAAE,EAAE,OAAO,EAAe,mBAAmB,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACrK,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,YAAY,MAAM,WAAW,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAExC,OAAO,EAAE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AC,CAAC,UAAU,CAAC,EAClC,CACH,CACH;MAAA,CAAC,qBAAqB,CAAC,AAAD,EACtB;MAAA,CAAC,qBAAqB,IAAI,CACxB,CAAC,WAAW,CACV,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,aAAa,CAAC,CAAC,aAAa,CAAC,CAC7B,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,cAAc,CAAC,CAAC,cAAc,CAAC,CAC/B,oBAAoB,CAAC,CAAC,oBAAoB,CAAC,CAC3C,SAAS,CAAC,CAAC,aAAa,CAAC,CACzB,SAAS,CAAC,CAAC,wBAAwB,EAAE,SAAS,IAAI,KAAK,CAAC,CACxD,UAAU,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAC7B,kBAAkB,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAC7C,CACH,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAA;AACH,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useContext","useMemo","View","AnimatedLegendList","useSharedValue","BubbleGradientContext","useIsKeyboardVisible","useTheme","useThemedStyles","stylesCommon","TypingIndicatorListAnimationContext","DayAnimated","ScrollToBottomButton","useListState","listCellTransition","PageDownReturnContext","MessageRowConfigContext","RowTargetsContext","MessageRowStoreContext","styles","createThemedStyles","useCellLayouts","useDaysPositions","useListChrome","useListMetrics","useRowsHeight","useMessageRows","usePageDownUnread","useScrollActivity","useScrollToBottom","useTapToClosePanels","useViewabilityPairs","MessagesContainer","props","$","_c","messages","t0","user","isInverted","t1","listProps","isScrollToBottomEnabled","t2","isScrollToBottomBadgeEnabled","t3","scrollToBottomOffset","t4","isAlignedTop","t5","scrollToBottomStyle","scrollToBottomContentStyle","loadEarlierMessagesProps","forwardRef","scrollToBottomComponent","scrollToBottomComponentProp","renderDay","renderDayProp","isDayAnimationEnabled","t6","t7","undefined","themedStyles","theme","isKeyboardVisible","isTopAligned","alignItemsAtEnd","isListLaidOut","isLayoutAnimated","listHeight","contentHeight","scrollOffset","sharedValues","rowsHeight","scrolledY","onLayoutList","onContentSizeChange","onMetricsChange","maintainScrollAtEnd","listState","cellLayout","onItemSizeChanged","daysPositions","floatingRenderedDate","isScrollActive","floatingDayOpacity","onScrollBeginDrag","onScrollEndDrag","onMomentumScrollBegin","onMomentumScrollEnd","isScreenGradient","bubble","outgoingGradient","length","outgoingGradientMode","t8","gradientStore","ListHeaderComponent","ListFooterComponent","renderChatEmpty","onStartReached","pageDownReturn","t9","scrollToBottomOpacity","isScrollToBottomVisible","isScrollToBottomShown","isShownByScroll","distanceFromNewestSV","handleScrollToBottomPress","t10","rowStore","orderedData","initialScroll","rowConfig","rowTargets","renderItem","keyExtractor","t11","_id","t12","userId","unreadCount","markRowsSeen","viewabilityPairs","t13","onListTouchStart","onListTouchEnd","t14","t15","fill","messagesContainer","listEngine","t16","root","contentContainerStyle","t17","t18","isLoading","dateFormat","dateFormatCalendar","t19","list","animatedList","t20","t21","t22","t23","t24"],"sources":["../../src/MessagesContainer/index.tsx"],"sourcesContent":["import React, { useContext, useMemo } from 'react'\nimport { View } from 'react-native'\nimport { AnimatedLegendList } from '@legendapp/list/reanimated'\nimport { useSharedValue } from 'react-native-reanimated'\nimport { BubbleGradientContext, BubbleGradientStore } from '../components/BubbleBackground'\nimport { useIsKeyboardVisible } from '../hooks/useIsKeyboardVisible'\nimport { useTheme, useThemedStyles } from '../hooks/useTheme'\nimport { IMessage } from '../Models'\nimport stylesCommon from '../styles'\nimport { TypingIndicatorListAnimationContext } from '../TypingIndicator'\nimport { DayAnimated } from './components/DayAnimated'\nimport { ScrollToBottomButton } from './components/ScrollToBottomButton'\nimport { useListState } from './listState'\nimport { listCellTransition } from './listTransitions'\nimport { PageDownReturnContext } from './pageDownReturn'\nimport { MessageRowConfigContext, RowTargetsContext } from './rowConfig'\nimport { MessageRowStore, MessageRowStoreContext } from './rowStore'\nimport styles, { createThemedStyles } from './styles'\nimport { MessagesContainerProps, DaysPositions } from './types'\nimport { useCellLayouts } from './useCellLayouts'\nimport { useDaysPositions } from './useDaysPositions'\nimport { useListChrome } from './useListChrome'\nimport { useListMetrics, useRowsHeight } from './useListMetrics'\nimport { useMessageRows } from './useMessageRows'\nimport { usePageDownUnread } from './usePageDownUnread'\nimport { useScrollActivity } from './useScrollActivity'\nimport { useScrollToBottom } from './useScrollToBottom'\nimport { useTapToClosePanels } from './useTapToClosePanels'\nimport { useViewabilityPairs } from './viewability'\n\n\nexport * from './types'\n\nexport const MessagesContainer = <TMessage extends IMessage>(props: MessagesContainerProps<TMessage>) => {\n const {\n messages = [],\n user,\n isInverted = true,\n listProps,\n isScrollToBottomEnabled = true,\n isScrollToBottomBadgeEnabled = true,\n // How far to scroll before the scroll-to-bottom button comes up.\n scrollToBottomOffset = 100,\n isAlignedTop = false,\n scrollToBottomStyle,\n scrollToBottomContentStyle,\n loadEarlierMessagesProps,\n forwardRef,\n scrollToBottomComponent: scrollToBottomComponentProp,\n renderDay: renderDayProp,\n isDayAnimationEnabled = true,\n } = props\n\n const themedStyles = useThemedStyles(createThemedStyles)\n const theme = useTheme()\n\n // `'auto'` is the only mode that cares about the keyboard, so the other two never\n // subscribe - and never re-render the whole list when the keyboard moves.\n const isKeyboardVisible = useIsKeyboardVisible(isAlignedTop === 'auto')\n\n const isTopAligned = isAlignedTop === 'auto'\n ? !isKeyboardVisible\n : isAlignedTop === true\n // The list renders oldest first, top to bottom, and a conversation shorter than the list sits\n // at its bottom - unless `isAlignedTop` says otherwise.\n const alignItemsAtEnd = !isTopAligned\n\n const {\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 } = useListMetrics(listProps)\n const listState = useListState(forwardRef)\n const { cellLayout, onItemSizeChanged } = useCellLayouts(listState, isListLaidOut)\n\n const daysPositions = useSharedValue<DaysPositions>({})\n // The date (createdAt ms) the floating day header is currently rendering. Used to\n // keep the inline separator visible until the header's text has caught up, hiding\n // the 1-frame JS-thread lag of the header on each day change.\n const floatingRenderedDate = useSharedValue<number | undefined>(undefined)\n const {\n isScrollActive,\n floatingDayOpacity,\n onScrollBeginDrag,\n onScrollEndDrag,\n onMomentumScrollBegin,\n onMomentumScrollEnd,\n } = useScrollActivity()\n\n const isScreenGradient = !!theme.bubble.outgoingGradient && theme.bubble.outgoingGradient.length > 1 &&\n theme.bubble.outgoingGradientMode === 'screen'\n const gradientStore = useMemo((): BubbleGradientStore | null => isScreenGradient\n ? { scrolledY, listHeight, cellLayout, isInverted: false }\n : null\n , [isScreenGradient, scrolledY, listHeight, cellLayout])\n\n const { ListHeaderComponent, ListFooterComponent, renderChatEmpty, onStartReached } = useListChrome(props)\n\n const pageDownReturn = useContext(PageDownReturnContext)\n const {\n scrollToBottomOpacity,\n isScrollToBottomVisible,\n isScrollToBottomShown,\n isShownByScroll,\n distanceFromNewestSV,\n handleScrollToBottomPress,\n } = useScrollToBottom({\n forwardRef,\n scrollOffset,\n contentHeight,\n listHeight,\n scrollToBottomOffset,\n pageDownReturn,\n })\n\n const { rowStore, orderedData, initialScroll, rowConfig, rowTargets, renderItem, keyExtractor } = useMessageRows(props, {\n scrolledY,\n daysPositions,\n listHeight,\n floatingRenderedDate,\n floatingDayOpacity,\n })\n\n const { unreadCount, markRowsSeen } = usePageDownUnread({\n messages,\n isInverted,\n userId: user?._id,\n isScrollToBottomEnabled,\n isScrollToBottomBadgeEnabled,\n isScrollToBottomVisible,\n distanceFromNewestSV,\n isShownByScroll,\n isScrollToBottomShown,\n listState,\n pageDownReturn,\n })\n\n const viewabilityPairs = useViewabilityPairs(listProps, markRowsSeen)\n\n useDaysPositions({\n messages,\n isInverted,\n isListLaidOut,\n isDayAnimationEnabled,\n listState,\n daysPositions,\n rowStore,\n })\n\n useRowsHeight(isListLaidOut, listState, rowsHeight, orderedData)\n\n const { onListTouchStart, onListTouchEnd } = useTapToClosePanels()\n\n // Memoized, so a render of the container that leaves the list's inputs alone - a status\n // change or a reaction, which keep the data's identity - does not walk the list's rows.\n const listEngine = useMemo(() => (\n <AnimatedLegendList\n ref={forwardRef}\n keyExtractor={keyExtractor}\n data={orderedData}\n renderItem={renderItem}\n estimatedItemSize={64}\n // Oldest first, top to bottom: no inverted list, no flipped rows.\n alignItemsAtEnd={alignItemsAtEnd}\n {...initialScroll}\n maintainScrollAtEnd={maintainScrollAtEnd}\n maintainVisibleContentPosition\n // Rows that move (a message arriving, a row growing a reaction, the typing bubble\n // coming or going) slide to their new place instead of jumping there.\n itemLayoutAnimation={isLayoutAnimated ? listCellTransition : undefined}\n sharedValues={sharedValues}\n style={stylesCommon.fill}\n contentContainerStyle={styles.messagesContainer}\n ListEmptyComponent={renderChatEmpty}\n ListHeaderComponent={ListHeaderComponent}\n ListFooterComponent={ListFooterComponent}\n onStartReached={onStartReached}\n onStartReachedThreshold={0.1}\n keyboardDismissMode='interactive'\n keyboardShouldPersistTaps='handled'\n {...listProps}\n onScrollBeginDrag={onScrollBeginDrag}\n onScrollEndDrag={onScrollEndDrag}\n onMomentumScrollBegin={onMomentumScrollBegin}\n onMomentumScrollEnd={onMomentumScrollEnd}\n onContentSizeChange={onContentSizeChange}\n onItemSizeChanged={onItemSizeChanged}\n onMetricsChange={onMetricsChange}\n onViewableItemsChanged={undefined}\n viewabilityConfig={undefined}\n viewabilityConfigCallbackPairs={viewabilityPairs}\n onLayout={onLayoutList}\n />\n ), [forwardRef, keyExtractor, orderedData, renderItem, alignItemsAtEnd, isLayoutAnimated, initialScroll, maintainScrollAtEnd, sharedValues, renderChatEmpty, ListHeaderComponent, ListFooterComponent, onStartReached, listProps, onScrollBeginDrag, onScrollEndDrag, onMomentumScrollBegin, onMomentumScrollEnd, onContentSizeChange, onItemSizeChanged, onMetricsChange, viewabilityPairs, onLayoutList])\n\n const list = (\n <View\n style={[styles.contentContainerStyle, themedStyles.root, stylesCommon.fill]}\n onTouchStart={onListTouchStart}\n onTouchEnd={onListTouchEnd}\n >\n {listEngine}\n <ScrollToBottomButton\n isEnabled={isScrollToBottomEnabled}\n isVisible={isScrollToBottomVisible}\n opacity={scrollToBottomOpacity}\n unreadCount={unreadCount}\n onPress={handleScrollToBottomPress}\n style={scrollToBottomStyle}\n contentStyle={scrollToBottomContentStyle}\n scrollToBottomComponent={scrollToBottomComponentProp}\n />\n {isDayAnimationEnabled && (\n <DayAnimated\n scrolledY={scrolledY}\n daysPositions={daysPositions}\n listHeight={listHeight}\n isScrollActive={isScrollActive}\n floatingRenderedDate={floatingRenderedDate}\n opacity={floatingDayOpacity}\n renderDay={renderDayProp}\n isLoading={loadEarlierMessagesProps?.isLoading ?? false}\n dateFormat={props.dateFormat}\n dateFormatCalendar={props.dateFormatCalendar}\n />\n )}\n </View>\n )\n\n const animatedList = (\n <TypingIndicatorListAnimationContext.Provider value>\n {list}\n </TypingIndicatorListAnimationContext.Provider>\n )\n\n // Always mounted, with `null` outside the screen-gradient theme: wrapping the list only in\n // that theme moved it in the tree whenever the color scheme flipped, and React remounted\n // the whole list - back at the newest message, wherever the user had scrolled.\n return (\n <BubbleGradientContext.Provider value={gradientStore}>\n <MessageRowStoreContext.Provider value={rowStore as unknown as MessageRowStore}>\n <MessageRowConfigContext.Provider value={rowConfig}>\n <RowTargetsContext.Provider value={rowTargets}>\n {animatedList}\n </RowTargetsContext.Provider>\n </MessageRowConfigContext.Provider>\n </MessageRowStoreContext.Provider>\n </BubbleGradientContext.Provider>\n )\n}\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAClD,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,kBAAkB,QAAQ,4BAA4B;AAC/D,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,qBAAqB,QAA6B,gCAAgC;AAC3F,SAASC,oBAAoB,QAAQ,+BAA+B;AACpE,SAASC,QAAQ,EAAEC,eAAe,QAAQ,mBAAmB;AAE7D,OAAOC,YAAY,MA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AC,CAC5E,CAAAE,GAIkC,CACpC,kCAAkC;IAAA/G,CAAA,QAAA6G,GAAA;IAAA7G,CAAA,QAAA+G,GAAA;IAAA/G,CAAA,QAAAgH,GAAA;EAAA;IAAAA,GAAA,GAAAhH,CAAA;EAAA;EAAA,IAAAiH,GAAA;EAAA,IAAAjH,CAAA,UAAA8D,aAAA,IAAA9D,CAAA,UAAAgH,GAAA;IAPpCC,GAAA,mCAAuCnD,KAAa,CAAbA,cAAY,CAAC,CAClD,CAAAkD,GAMiC,CACnC,iCAAiC;IAAAhH,CAAA,QAAA8D,aAAA;IAAA9D,CAAA,QAAAgH,GAAA;IAAAhH,CAAA,QAAAiH,GAAA;EAAA;IAAAA,GAAA,GAAAjH,CAAA;EAAA;EAAA,OARjCiH,GAQiC;AAAA,CAEpC","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { AnimatedList } from './types';
|
|
3
|
+
/** The parts of Legend List's state the container reads. */
|
|
4
|
+
export interface ListState {
|
|
5
|
+
positionByKey: (key: string) => number | undefined;
|
|
6
|
+
listenToPosition: (key: string, callback: (position: number) => void) => () => void;
|
|
7
|
+
listen: (type: 'totalSize', callback: (value: number) => void) => () => void;
|
|
8
|
+
sizes: Map<string, number>;
|
|
9
|
+
isFollowingEnd: boolean;
|
|
10
|
+
isNearEnd: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** The bottom padding of the list's content (`styles.messagesContainer`). */
|
|
13
|
+
export declare const CONTENT_PADDING_BOTTOM = 10;
|
|
14
|
+
/** The list counts as at the newest message within 5pt. */
|
|
15
|
+
export declare const NEWEST_SLOP = 5;
|
|
16
|
+
/** Reads Legend List's state through the list's ref, or `undefined` before it mounts. */
|
|
17
|
+
export declare function useListState(forwardRef: RefObject<AnimatedList | null> | undefined): () => ListState | undefined;
|
|
18
|
+
//# sourceMappingURL=listState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listState.d.ts","sourceRoot":"","sources":["../../src/MessagesContainer/listState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,OAAO,CAAA;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,4DAA4D;AAC5D,MAAM,WAAW,SAAS;IACxB,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;IAClD,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,KAAK,MAAM,IAAI,CAAA;IACnF,MAAM,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,KAAK,MAAM,IAAI,CAAA;IAC5E,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC1B,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,6EAA6E;AAC7E,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAExC,2DAA2D;AAC3D,eAAO,MAAM,WAAW,IAAI,CAAA;AAE5B,yFAAyF;AACzF,wBAAgB,YAAY,CAAE,UAAU,EAAE,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,SAAS,SAC3D,SAAS,GAAG,SAAS,CAG7C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
|
|
4
|
+
/** The parts of Legend List's state the container reads. */
|
|
5
|
+
|
|
6
|
+
/** The bottom padding of the list's content (`styles.messagesContainer`). */
|
|
7
|
+
export const CONTENT_PADDING_BOTTOM = 10;
|
|
8
|
+
|
|
9
|
+
/** The list counts as at the newest message within 5pt. */
|
|
10
|
+
export const NEWEST_SLOP = 5;
|
|
11
|
+
|
|
12
|
+
/** Reads Legend List's state through the list's ref, or `undefined` before it mounts. */
|
|
13
|
+
export function useListState(forwardRef) {
|
|
14
|
+
const $ = _c(2);
|
|
15
|
+
let t0;
|
|
16
|
+
if ($[0] !== forwardRef) {
|
|
17
|
+
t0 = () => forwardRef?.current?.getState?.();
|
|
18
|
+
$[0] = forwardRef;
|
|
19
|
+
$[1] = t0;
|
|
20
|
+
} else {
|
|
21
|
+
t0 = $[1];
|
|
22
|
+
}
|
|
23
|
+
return t0;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=listState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listState.js","names":["useCallback","CONTENT_PADDING_BOTTOM","NEWEST_SLOP","useListState","forwardRef","$","_c","t0","current","getState"],"sources":["../../src/MessagesContainer/listState.ts"],"sourcesContent":["import { RefObject, useCallback } from 'react'\n\nimport { AnimatedList } from './types'\n\n/** The parts of Legend List's state the container reads. */\nexport interface ListState {\n positionByKey: (key: string) => number | undefined\n listenToPosition: (key: string, callback: (position: number) => void) => () => void\n listen: (type: 'totalSize', callback: (value: number) => void) => () => void\n sizes: Map<string, number>\n isFollowingEnd: boolean\n isNearEnd: boolean\n}\n\n/** The bottom padding of the list's content (`styles.messagesContainer`). */\nexport const CONTENT_PADDING_BOTTOM = 10\n\n/** The list counts as at the newest message within 5pt. */\nexport const NEWEST_SLOP = 5\n\n/** Reads Legend List's state through the list's ref, or `undefined` before it mounts. */\nexport function useListState (forwardRef: RefObject<AnimatedList | null> | undefined) {\n return useCallback((): ListState | undefined =>\n (forwardRef?.current as unknown as { getState?: () => ListState } | null)?.getState?.()\n , [forwardRef])\n}\n"],"mappings":";AAAA,SAAoBA,WAAW,QAAQ,OAAO;;AAI9C;;AAUA;AACA,OAAO,MAAMC,sBAAsB,GAAG,EAAE;;AAExC;AACA,OAAO,MAAMC,WAAW,GAAG,CAAC;;AAE5B;AACA,OAAO,SAAAC,aAAAC,UAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAF,CAAA,QAAAD,UAAA;IACcG,EAAA,GAAAA,CAAA,KAChBH,UAAU,EAAAI,OAAS,EAAAC,QAAmE,GAAD,CAAC;IAAAJ,CAAA,MAAAD,UAAA;IAAAC,CAAA,MAAAE,EAAA;EAAA;IAAAA,EAAA,GAAAF,CAAA;EAAA;EAAA,OADlFE,EAEQ;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LinearTransition } from 'react-native-reanimated';
|
|
2
|
+
/**
|
|
3
|
+
* Every row that moves (a message arriving, the typing
|
|
4
|
+
* bubble coming or going, a row growing a reaction) slides to its new place over
|
|
5
|
+
* 250ms on `bezier(0.199, 0.011, 0.279, 0.910)`, instead of jumping there in one frame.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LIST_ITEM_DURATION = 250;
|
|
8
|
+
export declare const LIST_ITEM_EASING: import("react-native-reanimated").EasingFunctionFactory;
|
|
9
|
+
export declare const listCellTransition: LinearTransition;
|
|
10
|
+
//# sourceMappingURL=listTransitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listTransitions.d.ts","sourceRoot":"","sources":["../../src/MessagesContainer/listTransitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAG1D;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAA;AACrC,eAAO,MAAM,gBAAgB,yDAAc,CAAA;AAE3C,eAAO,MAAM,kBAAkB,kBAEJ,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LinearTransition } from 'react-native-reanimated';
|
|
2
|
+
import { EASE_LAYOUT } from '../motion';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Every row that moves (a message arriving, the typing
|
|
6
|
+
* bubble coming or going, a row growing a reaction) slides to its new place over
|
|
7
|
+
* 250ms on `bezier(0.199, 0.011, 0.279, 0.910)`, instead of jumping there in one frame.
|
|
8
|
+
*/
|
|
9
|
+
export const LIST_ITEM_DURATION = 250;
|
|
10
|
+
export const LIST_ITEM_EASING = EASE_LAYOUT;
|
|
11
|
+
export const listCellTransition = LinearTransition.duration(LIST_ITEM_DURATION).easing(LIST_ITEM_EASING);
|
|
12
|
+
//# sourceMappingURL=listTransitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listTransitions.js","names":["LinearTransition","EASE_LAYOUT","LIST_ITEM_DURATION","LIST_ITEM_EASING","listCellTransition","duration","easing"],"sources":["../../src/MessagesContainer/listTransitions.ts"],"sourcesContent":["import { LinearTransition } from 'react-native-reanimated'\nimport { EASE_LAYOUT } from '../motion'\n\n/**\n * Every row that moves (a message arriving, the typing\n * bubble coming or going, a row growing a reaction) slides to its new place over\n * 250ms on `bezier(0.199, 0.011, 0.279, 0.910)`, instead of jumping there in one frame.\n */\nexport const LIST_ITEM_DURATION = 250\nexport const LIST_ITEM_EASING = EASE_LAYOUT\n\nexport const listCellTransition = LinearTransition\n .duration(LIST_ITEM_DURATION)\n .easing(LIST_ITEM_EASING)\n"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,yBAAyB;AAC1D,SAASC,WAAW,QAAQ,WAAW;;AAEvC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,kBAAkB,GAAG,GAAG;AACrC,OAAO,MAAMC,gBAAgB,GAAGF,WAAW;AAE3C,OAAO,MAAMG,kBAAkB,GAAGJ,gBAAgB,CAC/CK,QAAQ,CAACH,kBAAkB,CAAC,CAC5BI,MAAM,CAACH,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* After a quote is tapped, the scroll-to-bottom button first
|
|
3
|
+
* takes you back to the message you tapped it in, and only then down to the newest one.
|
|
4
|
+
*/
|
|
5
|
+
export interface PageDownReturn {
|
|
6
|
+
messageId: string | number | null;
|
|
7
|
+
goBack: () => void;
|
|
8
|
+
clear: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const PageDownReturnContext: import("react").Context<PageDownReturn | null>;
|
|
11
|
+
//# sourceMappingURL=pageDownReturn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageDownReturn.d.ts","sourceRoot":"","sources":["../../src/MessagesContainer/pageDownReturn.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAED,eAAO,MAAM,qBAAqB,gDAA6C,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* After a quote is tapped, the scroll-to-bottom button first
|
|
5
|
+
* takes you back to the message you tapped it in, and only then down to the newest one.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const PageDownReturnContext = createContext(null);
|
|
9
|
+
//# sourceMappingURL=pageDownReturn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageDownReturn.js","names":["createContext","PageDownReturnContext"],"sources":["../../src/MessagesContainer/pageDownReturn.ts"],"sourcesContent":["import { createContext } from 'react'\n\n/**\n * After a quote is tapped, the scroll-to-bottom button first\n * takes you back to the message you tapped it in, and only then down to the newest one.\n */\nexport interface PageDownReturn {\n messageId: string | number | null\n goBack: () => void\n clear: () => void\n}\n\nexport const PageDownReturnContext = createContext<PageDownReturn | null>(null)\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,OAAO;;AAErC;AACA;AACA;AACA;;AAOA,OAAO,MAAMC,qBAAqB,GAAGD,aAAa,CAAwB,IAAI,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Store } from '../store';
|
|
2
|
+
/**
|
|
3
|
+
* The props every message row shares (render functions, styles, actions, labels...), handed to
|
|
4
|
+
* the rows through context rather than as row props, so a row's own props are just its id.
|
|
5
|
+
*
|
|
6
|
+
* Its identity is what decides whether every row re-renders, so it is kept stable across
|
|
7
|
+
* renders that change nothing a row can see:
|
|
8
|
+
* - event handlers (`onPress`, `onLongPressAvatar`, `reply.onPress`, an action's `onPress`...)
|
|
9
|
+
* are replaced by permanent proxies that call the latest handler, so a consumer's inline
|
|
10
|
+
* `onPressMessage={() => ...}` costs nothing
|
|
11
|
+
* - plain objects and arrays (styles, `messageTextProps`, `reactions`, `labels`) are compared
|
|
12
|
+
* by content, so an inline style object is free too
|
|
13
|
+
* - everything else - render functions above all - is compared by reference, because a new
|
|
14
|
+
* render function may well draw something new; memoize those you pass
|
|
15
|
+
*/
|
|
16
|
+
export type RowConfig = Record<string, unknown>;
|
|
17
|
+
export declare const MessageRowConfigContext: import("react").Context<RowConfig>;
|
|
18
|
+
type Read = () => unknown;
|
|
19
|
+
/**
|
|
20
|
+
* `next`, reusing `prev` (or any part of it) wherever nothing a row can see has changed.
|
|
21
|
+
* `read` reaches the same spot in the latest props, for the handler proxies.
|
|
22
|
+
*/
|
|
23
|
+
export declare function stabilize(prev: unknown, next: unknown, key: string, read: Read, depth?: number): unknown;
|
|
24
|
+
/** `config`, keeping the previous identity while nothing a row can see has changed. */
|
|
25
|
+
export declare function useStableRowConfig(config: RowConfig): RowConfig;
|
|
26
|
+
/**
|
|
27
|
+
* Row settings that concern only some rows, kept out of the shared config: a change there would
|
|
28
|
+
* re-render every row, while each row only needs to know whether it is the one concerned. A row
|
|
29
|
+
* reads them through `useRowSettings(selector)`, so it re-renders only when its own answer
|
|
30
|
+
* changes (the unread bar moving re-renders the row it leaves and the row it reaches).
|
|
31
|
+
*/
|
|
32
|
+
export interface RowTargets {
|
|
33
|
+
firstUnreadMessageId?: string | number | null;
|
|
34
|
+
}
|
|
35
|
+
export declare const RowTargetsContext: import("react").Context<Store<RowTargets> | null>;
|
|
36
|
+
/** A slice of the row targets; return a primitive, so only a changed answer re-renders. */
|
|
37
|
+
export declare function useRowSettings<S>(selector: (targets: RowTargets) => S): S;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=rowConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowConfig.d.ts","sourceRoot":"","sources":["../../src/MessagesContainer/rowConfig.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAY,MAAM,UAAU,CAAA;AAE1C;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE/C,eAAO,MAAM,uBAAuB,oCAA+B,CAAA;AASnE,KAAK,IAAI,GAAG,MAAM,OAAO,CAAA;AA0BzB;;;GAGG;AACH,wBAAgB,SAAS,CAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,SAAI,GAAG,OAAO,CA+BpG;AAiBD,uFAAuF;AACvF,wBAAgB,kBAAkB,CAAE,MAAM,EAAE,SAAS,GAAG,SAAS,CAkBhE;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;CAC9C;AAED,eAAO,MAAM,iBAAiB,mDAAgD,CAAA;AAI9E,2FAA2F;AAC3F,wBAAgB,cAAc,CAAC,CAAC,EAAG,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,CAAC,GAAG,CAAC,CAG1E"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { createContext, useContext, useInsertionEffect, useState } from 'react';
|
|
3
|
+
import { isSharedValue } from 'react-native-reanimated';
|
|
4
|
+
import { useStore } from '../store';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The props every message row shares (render functions, styles, actions, labels...), handed to
|
|
8
|
+
* the rows through context rather than as row props, so a row's own props are just its id.
|
|
9
|
+
*
|
|
10
|
+
* Its identity is what decides whether every row re-renders, so it is kept stable across
|
|
11
|
+
* renders that change nothing a row can see:
|
|
12
|
+
* - event handlers (`onPress`, `onLongPressAvatar`, `reply.onPress`, an action's `onPress`...)
|
|
13
|
+
* are replaced by permanent proxies that call the latest handler, so a consumer's inline
|
|
14
|
+
* `onPressMessage={() => ...}` costs nothing
|
|
15
|
+
* - plain objects and arrays (styles, `messageTextProps`, `reactions`, `labels`) are compared
|
|
16
|
+
* by content, so an inline style object is free too
|
|
17
|
+
* - everything else - render functions above all - is compared by reference, because a new
|
|
18
|
+
* render function may well draw something new; memoize those you pass
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
export const MessageRowConfigContext = createContext({});
|
|
22
|
+
const HANDLER = /^on[A-Z]/;
|
|
23
|
+
const MAX_DEPTH = 6;
|
|
24
|
+
const STABLE = Symbol('stableHandler');
|
|
25
|
+
|
|
26
|
+
/** Keys that are never walked: refs and list plumbing, compared by reference. */
|
|
27
|
+
const OPAQUE_KEYS = new Set(['forwardRef', 'messagesContainerRef', 'textInputRef', 'listProps']);
|
|
28
|
+
const isPlainObject = value => {
|
|
29
|
+
if (!value || typeof value !== 'object') return false;
|
|
30
|
+
if (Array.isArray(value)) return true;
|
|
31
|
+
if (value.$$typeof !== undefined || isSharedValue(value)) return false;
|
|
32
|
+
const proto = Object.getPrototypeOf(value);
|
|
33
|
+
return proto === Object.prototype || proto === null;
|
|
34
|
+
};
|
|
35
|
+
const makeHandler = read => {
|
|
36
|
+
const handler = (...args) => read()?.(...args);
|
|
37
|
+
handler[STABLE] = true;
|
|
38
|
+
return handler;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// `===`, except that NaN equals itself: `useStableRowConfig` stores a changed result and renders
|
|
42
|
+
// again, so a value that never equals itself (a NaN style) must not count as a change forever.
|
|
43
|
+
const isSameValue = (a, b) => a === b || a !== a && b !== b;
|
|
44
|
+
const isStableHandler = value => typeof value === 'function' && !!value[STABLE];
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* `next`, reusing `prev` (or any part of it) wherever nothing a row can see has changed.
|
|
48
|
+
* `read` reaches the same spot in the latest props, for the handler proxies.
|
|
49
|
+
*/
|
|
50
|
+
export function stabilize(prev, next, key, read, depth = 0) {
|
|
51
|
+
if (typeof next === 'function' && HANDLER.test(key)) return isStableHandler(prev) ? prev : makeHandler(read);
|
|
52
|
+
if (depth >= MAX_DEPTH || OPAQUE_KEYS.has(key) || !isPlainObject(next)) return next;
|
|
53
|
+
const isArray = Array.isArray(next);
|
|
54
|
+
const prevIsComparable = isPlainObject(prev) && Array.isArray(prev) === isArray;
|
|
55
|
+
const prevRecord = prevIsComparable ? prev : undefined;
|
|
56
|
+
const nextRecord = next;
|
|
57
|
+
const keys = Object.keys(nextRecord);
|
|
58
|
+
let isSame = !!prevRecord && Object.keys(prevRecord).length === keys.length;
|
|
59
|
+
const out = isArray ? [] : {};
|
|
60
|
+
for (const k of keys) {
|
|
61
|
+
const value = stabilize(prevRecord?.[k], nextRecord[k],
|
|
62
|
+
// Array items are named after their parent, so the handlers in `messageActions[i]` are
|
|
63
|
+
// still recognised by their own keys one level down.
|
|
64
|
+
isArray ? key : k, () => read()?.[k], depth + 1);
|
|
65
|
+
out[k] = value;
|
|
66
|
+
if (isSame && (!Object.prototype.hasOwnProperty.call(prevRecord, k) || !isSameValue(prevRecord[k], value))) isSame = false;
|
|
67
|
+
}
|
|
68
|
+
return isSame ? prev : out;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The latest props, for the handler proxies to read when a row event calls them. A ref would do,
|
|
73
|
+
* but every render hands its reader to `stabilize`, and React Compiler cannot tell that the
|
|
74
|
+
* reader is only called later, from events.
|
|
75
|
+
*/
|
|
76
|
+
const createLatest = initial => {
|
|
77
|
+
let value = initial;
|
|
78
|
+
return {
|
|
79
|
+
read: () => value,
|
|
80
|
+
write: next => {
|
|
81
|
+
value = next;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/** `config`, keeping the previous identity while nothing a row can see has changed. */
|
|
87
|
+
export function useStableRowConfig(config) {
|
|
88
|
+
const $ = _c(12);
|
|
89
|
+
let t0;
|
|
90
|
+
if ($[0] !== config) {
|
|
91
|
+
t0 = () => createLatest(config);
|
|
92
|
+
$[0] = config;
|
|
93
|
+
$[1] = t0;
|
|
94
|
+
} else {
|
|
95
|
+
t0 = $[1];
|
|
96
|
+
}
|
|
97
|
+
const [latest] = useState(t0);
|
|
98
|
+
let t1;
|
|
99
|
+
if ($[2] !== config || $[3] !== latest) {
|
|
100
|
+
t1 = () => {
|
|
101
|
+
latest.write(config);
|
|
102
|
+
};
|
|
103
|
+
$[2] = config;
|
|
104
|
+
$[3] = latest;
|
|
105
|
+
$[4] = t1;
|
|
106
|
+
} else {
|
|
107
|
+
t1 = $[4];
|
|
108
|
+
}
|
|
109
|
+
useInsertionEffect(t1);
|
|
110
|
+
let t2;
|
|
111
|
+
if ($[5] !== config || $[6] !== latest.read) {
|
|
112
|
+
t2 = () => stabilize(undefined, config, "", latest.read);
|
|
113
|
+
$[5] = config;
|
|
114
|
+
$[6] = latest.read;
|
|
115
|
+
$[7] = t2;
|
|
116
|
+
} else {
|
|
117
|
+
t2 = $[7];
|
|
118
|
+
}
|
|
119
|
+
const [stable, setStable] = useState(t2);
|
|
120
|
+
let t3;
|
|
121
|
+
if ($[8] !== config || $[9] !== latest.read || $[10] !== stable) {
|
|
122
|
+
t3 = stabilize(stable, config, "", latest.read);
|
|
123
|
+
$[8] = config;
|
|
124
|
+
$[9] = latest.read;
|
|
125
|
+
$[10] = stable;
|
|
126
|
+
$[11] = t3;
|
|
127
|
+
} else {
|
|
128
|
+
t3 = $[11];
|
|
129
|
+
}
|
|
130
|
+
const next = t3;
|
|
131
|
+
if (next !== stable) {
|
|
132
|
+
setStable(next);
|
|
133
|
+
}
|
|
134
|
+
return next;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Row settings that concern only some rows, kept out of the shared config: a change there would
|
|
139
|
+
* re-render every row, while each row only needs to know whether it is the one concerned. A row
|
|
140
|
+
* reads them through `useRowSettings(selector)`, so it re-renders only when its own answer
|
|
141
|
+
* changes (the unread bar moving re-renders the row it leaves and the row it reaches).
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
export const RowTargetsContext = createContext(null);
|
|
145
|
+
const NO_TARGETS = {};
|
|
146
|
+
|
|
147
|
+
/** A slice of the row targets; return a primitive, so only a changed answer re-renders. */
|
|
148
|
+
export function useRowSettings(selector) {
|
|
149
|
+
const $ = _c(2);
|
|
150
|
+
const store = useContext(RowTargetsContext);
|
|
151
|
+
let t0;
|
|
152
|
+
if ($[0] !== selector) {
|
|
153
|
+
t0 = selector(NO_TARGETS);
|
|
154
|
+
$[0] = selector;
|
|
155
|
+
$[1] = t0;
|
|
156
|
+
} else {
|
|
157
|
+
t0 = $[1];
|
|
158
|
+
}
|
|
159
|
+
return useStore(store, selector, t0);
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=rowConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowConfig.js","names":["createContext","useContext","useInsertionEffect","useState","isSharedValue","useStore","MessageRowConfigContext","HANDLER","MAX_DEPTH","STABLE","Symbol","OPAQUE_KEYS","Set","isPlainObject","value","Array","isArray","$$typeof","undefined","proto","Object","getPrototypeOf","prototype","makeHandler","read","handler","args","isSameValue","a","b","isStableHandler","stabilize","prev","next","key","depth","test","has","prevIsComparable","prevRecord","nextRecord","keys","isSame","length","out","k","hasOwnProperty","call","createLatest","initial","write","useStableRowConfig","config","$","_c","t0","latest","t1","t2","stable","setStable","t3","RowTargetsContext","NO_TARGETS","useRowSettings","selector","store"],"sources":["../../src/MessagesContainer/rowConfig.ts"],"sourcesContent":["import { createContext, useContext, useInsertionEffect, useState } from 'react'\nimport { isSharedValue } from 'react-native-reanimated'\n\nimport { Store, useStore } from '../store'\n\n/**\n * The props every message row shares (render functions, styles, actions, labels...), handed to\n * the rows through context rather than as row props, so a row's own props are just its id.\n *\n * Its identity is what decides whether every row re-renders, so it is kept stable across\n * renders that change nothing a row can see:\n * - event handlers (`onPress`, `onLongPressAvatar`, `reply.onPress`, an action's `onPress`...)\n * are replaced by permanent proxies that call the latest handler, so a consumer's inline\n * `onPressMessage={() => ...}` costs nothing\n * - plain objects and arrays (styles, `messageTextProps`, `reactions`, `labels`) are compared\n * by content, so an inline style object is free too\n * - everything else - render functions above all - is compared by reference, because a new\n * render function may well draw something new; memoize those you pass\n */\nexport type RowConfig = Record<string, unknown>\n\nexport const MessageRowConfigContext = createContext<RowConfig>({})\n\nconst HANDLER = /^on[A-Z]/\nconst MAX_DEPTH = 6\nconst STABLE = Symbol('stableHandler')\n\n/** Keys that are never walked: refs and list plumbing, compared by reference. */\nconst OPAQUE_KEYS = new Set(['forwardRef', 'messagesContainerRef', 'textInputRef', 'listProps'])\n\ntype Read = () => unknown\n\nconst isPlainObject = (value: unknown): value is Record<string, unknown> | unknown[] => {\n if (!value || typeof value !== 'object')\n return false\n if (Array.isArray(value))\n return true\n if ((value as { $$typeof?: unknown }).$$typeof !== undefined || isSharedValue(value))\n return false\n const proto = Object.getPrototypeOf(value)\n return proto === Object.prototype || proto === null\n}\n\nconst makeHandler = (read: Read) => {\n const handler = (...args: unknown[]) => (read() as ((...a: unknown[]) => unknown) | undefined)?.(...args)\n ;(handler as unknown as Record<symbol, boolean>)[STABLE] = true\n return handler\n}\n\n// `===`, except that NaN equals itself: `useStableRowConfig` stores a changed result and renders\n// again, so a value that never equals itself (a NaN style) must not count as a change forever.\nconst isSameValue = (a: unknown, b: unknown) => a === b || (a !== a && b !== b)\n\nconst isStableHandler = (value: unknown) =>\n typeof value === 'function' && !!(value as unknown as Record<symbol, boolean>)[STABLE]\n\n/**\n * `next`, reusing `prev` (or any part of it) wherever nothing a row can see has changed.\n * `read` reaches the same spot in the latest props, for the handler proxies.\n */\nexport function stabilize (prev: unknown, next: unknown, key: string, read: Read, depth = 0): unknown {\n if (typeof next === 'function' && HANDLER.test(key))\n return isStableHandler(prev) ? prev : makeHandler(read)\n\n if (depth >= MAX_DEPTH || OPAQUE_KEYS.has(key) || !isPlainObject(next))\n return next\n\n const isArray = Array.isArray(next)\n const prevIsComparable = isPlainObject(prev) && Array.isArray(prev) === isArray\n const prevRecord = prevIsComparable ? prev as Record<string, unknown> : undefined\n const nextRecord = next as Record<string, unknown>\n const keys = Object.keys(nextRecord)\n let isSame = !!prevRecord && Object.keys(prevRecord).length === keys.length\n const out: Record<string, unknown> = isArray ? [] as unknown as Record<string, unknown> : {}\n\n for (const k of keys) {\n const value = stabilize(\n prevRecord?.[k],\n nextRecord[k],\n // Array items are named after their parent, so the handlers in `messageActions[i]` are\n // still recognised by their own keys one level down.\n isArray ? key : k,\n () => (read() as Record<string, unknown> | undefined)?.[k],\n depth + 1\n )\n out[k] = value\n if (isSame && (!Object.prototype.hasOwnProperty.call(prevRecord, k) || !isSameValue(prevRecord![k], value)))\n isSame = false\n }\n\n return isSame ? prev : out\n}\n\n/**\n * The latest props, for the handler proxies to read when a row event calls them. A ref would do,\n * but every render hands its reader to `stabilize`, and React Compiler cannot tell that the\n * reader is only called later, from events.\n */\nconst createLatest = (initial: RowConfig) => {\n let value = initial\n return {\n read: () => value,\n write: (next: RowConfig) => {\n value = next\n },\n }\n}\n\n/** `config`, keeping the previous identity while nothing a row can see has changed. */\nexport function useStableRowConfig (config: RowConfig): RowConfig {\n const [latest] = useState(() => createLatest(config))\n // Before any layout effect, the rows' own included, so a handler a row calls while it commits\n // already reaches this render's props.\n useInsertionEffect(() => {\n latest.write(config)\n })\n const [stable, setStable] = useState(() => stabilize(undefined, config, '', latest.read) as RowConfig)\n // Recomputed on every render on purpose: it is one walk over the props, done once for the\n // whole list, and it is what spares every row its own comparison. The previous result lives\n // in state rather than a ref, so only a render that changes something a row can see stores a\n // new one (React re-runs that render once to apply it, before any child renders). That re-run\n // must reach the same result, so pass only what comes from props here, nothing this render\n // creates anew.\n const next = stabilize(stable, config, '', latest.read) as RowConfig\n if (next !== stable)\n setStable(next)\n return next\n}\n\n/**\n * Row settings that concern only some rows, kept out of the shared config: a change there would\n * re-render every row, while each row only needs to know whether it is the one concerned. A row\n * reads them through `useRowSettings(selector)`, so it re-renders only when its own answer\n * changes (the unread bar moving re-renders the row it leaves and the row it reaches).\n */\nexport interface RowTargets {\n firstUnreadMessageId?: string | number | null\n}\n\nexport const RowTargetsContext = createContext<Store<RowTargets> | null>(null)\n\nconst NO_TARGETS: RowTargets = {}\n\n/** A slice of the row targets; return a primitive, so only a changed answer re-renders. */\nexport function useRowSettings<S> (selector: (targets: RowTargets) => S): S {\n const store = useContext(RowTargetsContext)\n return useStore(store, selector, selector(NO_TARGETS))\n}\n"],"mappings":";AAAA,SAASA,aAAa,EAAEC,UAAU,EAAEC,kBAAkB,EAAEC,QAAQ,QAAQ,OAAO;AAC/E,SAASC,aAAa,QAAQ,yBAAyB;AAEvD,SAAgBC,QAAQ,QAAQ,UAAU;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAO,MAAMC,uBAAuB,GAAGN,aAAa,CAAY,CAAC,CAAC,CAAC;AAEnE,MAAMO,OAAO,GAAG,UAAU;AAC1B,MAAMC,SAAS,GAAG,CAAC;AACnB,MAAMC,MAAM,GAAGC,MAAM,CAAC,eAAe,CAAC;;AAEtC;AACA,MAAMC,WAAW,GAAG,IAAIC,GAAG,CAAC,CAAC,YAAY,EAAE,sBAAsB,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;AAIhG,MAAMC,aAAa,GAAIC,KAAc,IAAmD;EACtF,IAAI,CAACA,K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CAAC;EAAA,IAAAG,EAAA;EAAA,IAAAR,CAAA,QAAAD,MAAA,IAAAC,CAAA,QAAAG,MAAA,CAAAhC,IAAA,IAAA6B,CAAA,SAAAM,MAAA;IAOzFE,EAAA,GAAA9B,SAAS,CAAC4B,MAAM,EAAEP,MAAM,EAAE,EAAE,EAAEI,MAAM,CAAAhC,IAAK,CAAC;IAAA6B,CAAA,MAAAD,MAAA;IAAAC,CAAA,MAAAG,MAAA,CAAAhC,IAAA;IAAA6B,CAAA,OAAAM,MAAA;IAAAN,CAAA,OAAAQ,EAAA;EAAA;IAAAA,EAAA,GAAAR,CAAA;EAAA;EAAvD,MAAApB,IAAA,GAAa4B,EAA0C;EACvD,IAAI5B,IAAI,KAAK0B,MAAM;IACjBC,SAAS,CAAC3B,IAAI,CAAC;EAAA;EAAA,OACVA,IAAI;AAAA;;AAGb;AACA;AACA;AACA;AACA;AACA;;AAKA,OAAO,MAAM6B,iBAAiB,GAAG9D,aAAa,CAA2B,IAAI,CAAC;AAE9E,MAAM+D,UAAsB,GAAG,CAAC,CAAC;;AAEjC;AACA,OAAO,SAAAC,eAAAC,QAAA;EAAA,MAAAZ,CAAA,GAAAC,EAAA;EACL,MAAAY,KAAA,GAAcjE,UAAU,CAAC6D,iBAAiB,CAAC;EAAA,IAAAP,EAAA;EAAA,IAAAF,CAAA,QAAAY,QAAA;IACVV,EAAA,GAAAU,QAAQ,CAACF,UAAU,CAAC;IAAAV,CAAA,MAAAY,QAAA;IAAAZ,CAAA,MAAAE,EAAA;EAAA;IAAAA,EAAA,GAAAF,CAAA;EAAA;EAAA,OAA9ChD,QAAQ,CAAC6D,KAAK,EAAED,QAAQ,EAAEV,EAAoB,CAAC;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IMessage } from '../Models';
|
|
2
|
+
/** What a row renders: its message, and the neighbours its grouping is decided against. */
|
|
3
|
+
export interface RowEntry<TMessage extends IMessage = IMessage> {
|
|
4
|
+
message: TMessage;
|
|
5
|
+
previousMessage: TMessage;
|
|
6
|
+
nextMessage: TMessage;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The messages, by id, for the rows to subscribe to one by one. A send, a status change, a
|
|
10
|
+
* reaction or a streamed token re-renders the row it belongs to - plus a neighbour only when
|
|
11
|
+
* its grouping actually changed - instead of every row the list has mounted.
|
|
12
|
+
*
|
|
13
|
+
* `sync` runs while the list renders, so rows mounting in that same render read the new
|
|
14
|
+
* messages; `flush` notifies the rows already on screen once it has committed.
|
|
15
|
+
*/
|
|
16
|
+
export declare class MessageRowStore<TMessage extends IMessage = IMessage> {
|
|
17
|
+
private entries;
|
|
18
|
+
private listeners;
|
|
19
|
+
private changed;
|
|
20
|
+
private lastMessages;
|
|
21
|
+
private lastIsInverted;
|
|
22
|
+
sync(messages: TMessage[], isInverted: boolean): void;
|
|
23
|
+
flush(): void;
|
|
24
|
+
get(id: string): RowEntry<TMessage> | undefined;
|
|
25
|
+
getMessage(id: string | number): TMessage | undefined;
|
|
26
|
+
subscribe(id: string, listener: () => void): () => void;
|
|
27
|
+
}
|
|
28
|
+
export declare const MessageRowStoreContext: import("react").Context<MessageRowStore<IMessage> | null>;
|
|
29
|
+
/** The entry for one row, re-rendering it only when that entry changes. */
|
|
30
|
+
export declare function useRowEntry<TMessage extends IMessage>(id: string): RowEntry<TMessage> | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* `messages`, or the previous array when it holds the same ids in the same order. The list is
|
|
33
|
+
* then handed the same data when only a message's content changed, and does not touch its
|
|
34
|
+
* cells at all - the store re-renders that one row.
|
|
35
|
+
*/
|
|
36
|
+
export declare function sameOrder<TMessage extends IMessage>(previous: TMessage[] | undefined, messages: TMessage[]): TMessage[];
|
|
37
|
+
//# sourceMappingURL=rowStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowStore.d.ts","sourceRoot":"","sources":["../../src/MessagesContainer/rowStore.ts"],"names":[],"mappings":"AAI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