@kesha-antonov/react-native-chat 5.0.1 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +486 -179
- package/lib/Actions.d.ts.map +1 -1
- package/lib/Actions.js +121 -42
- package/lib/Actions.js.map +1 -1
- package/lib/Avatar.d.ts.map +1 -1
- package/lib/Avatar.js +171 -86
- package/lib/Avatar.js.map +1 -1
- package/lib/Bubble/BubbleBody.d.ts +15 -0
- package/lib/Bubble/BubbleBody.d.ts.map +1 -0
- package/lib/Bubble/BubbleBody.js +218 -0
- package/lib/Bubble/BubbleBody.js.map +1 -0
- package/lib/Bubble/BubbleContent.d.ts +23 -0
- package/lib/Bubble/BubbleContent.d.ts.map +1 -0
- package/lib/Bubble/BubbleContent.js +446 -0
- package/lib/Bubble/BubbleContent.js.map +1 -0
- package/lib/Bubble/BubbleMenu.d.ts +45 -0
- package/lib/Bubble/BubbleMenu.d.ts.map +1 -0
- package/lib/Bubble/BubbleMenu.js +289 -0
- package/lib/Bubble/BubbleMenu.js.map +1 -0
- package/lib/Bubble/BubbleMeta.d.ts +17 -0
- package/lib/Bubble/BubbleMeta.d.ts.map +1 -0
- package/lib/Bubble/BubbleMeta.js +453 -0
- package/lib/Bubble/BubbleMeta.js.map +1 -0
- package/lib/Bubble/LiftedBubble.d.ts +18 -0
- package/lib/Bubble/LiftedBubble.d.ts.map +1 -0
- package/lib/Bubble/LiftedBubble.js +109 -0
- package/lib/Bubble/LiftedBubble.js.map +1 -0
- package/lib/Bubble/PressableBubbleRow.d.ts +33 -0
- package/lib/Bubble/PressableBubbleRow.d.ts.map +1 -0
- package/lib/Bubble/PressableBubbleRow.js +172 -0
- package/lib/Bubble/PressableBubbleRow.js.map +1 -0
- package/lib/Bubble/index.d.ts +6 -13
- package/lib/Bubble/index.d.ts.map +1 -1
- package/lib/Bubble/index.js +379 -509
- package/lib/Bubble/index.js.map +1 -1
- package/lib/Bubble/layout.d.ts +47 -0
- package/lib/Bubble/layout.d.ts.map +1 -0
- package/lib/Bubble/layout.js +258 -0
- package/lib/Bubble/layout.js.map +1 -0
- package/lib/Bubble/styles.d.ts +108 -16
- package/lib/Bubble/styles.d.ts.map +1 -1
- package/lib/Bubble/styles.js +227 -107
- package/lib/Bubble/styles.js.map +1 -1
- package/lib/Bubble/types.d.ts +19 -3
- package/lib/Bubble/types.d.ts.map +1 -1
- package/lib/Bubble/types.js.map +1 -1
- package/lib/Chat/Chat.d.ts +5 -0
- package/lib/Chat/Chat.d.ts.map +1 -0
- package/lib/Chat/Chat.js +464 -0
- package/lib/Chat/Chat.js.map +1 -0
- package/lib/Chat/ChatBackground.d.ts +16 -0
- package/lib/Chat/ChatBackground.d.ts.map +1 -0
- package/lib/Chat/ChatBackground.js +43 -0
- package/lib/Chat/ChatBackground.js.map +1 -0
- package/lib/Chat/ChatKeyboardAvoidingView.js +19 -4
- package/lib/Chat/ChatKeyboardAvoidingView.js.map +1 -1
- package/lib/Chat/ChatMessageList.d.ts +27 -0
- package/lib/Chat/ChatMessageList.d.ts.map +1 -0
- package/lib/Chat/ChatMessageList.js +220 -0
- package/lib/Chat/ChatMessageList.js.map +1 -0
- package/lib/Chat/ChatProviders.d.ts +18 -0
- package/lib/Chat/ChatProviders.d.ts.map +1 -0
- package/lib/Chat/ChatProviders.js +87 -0
- package/lib/Chat/ChatProviders.js.map +1 -0
- package/lib/Chat/ChatSafeAreaProvider.d.ts +35 -0
- package/lib/Chat/ChatSafeAreaProvider.d.ts.map +1 -0
- package/lib/Chat/ChatSafeAreaProvider.js +123 -0
- package/lib/Chat/ChatSafeAreaProvider.js.map +1 -0
- package/lib/Chat/ChatSelectionBar.d.ts +20 -0
- package/lib/Chat/ChatSelectionBar.d.ts.map +1 -0
- package/lib/Chat/ChatSelectionBar.js +141 -0
- package/lib/Chat/ChatSelectionBar.js.map +1 -0
- package/lib/Chat/ChatWrapper.d.ts +11 -0
- package/lib/Chat/ChatWrapper.d.ts.map +1 -0
- package/lib/Chat/ChatWrapper.js +98 -0
- package/lib/Chat/ChatWrapper.js.map +1 -0
- package/lib/Chat/ComposerHost.d.ts +20 -0
- package/lib/Chat/ComposerHost.d.ts.map +1 -0
- package/lib/Chat/ComposerHost.js +118 -0
- package/lib/Chat/ComposerHost.js.map +1 -0
- package/lib/Chat/index.d.ts +1 -8
- package/lib/Chat/index.d.ts.map +1 -1
- package/lib/Chat/index.js +1 -337
- package/lib/Chat/index.js.map +1 -1
- package/lib/Chat/styles.d.ts +14 -2
- package/lib/Chat/styles.d.ts.map +1 -1
- package/lib/Chat/styles.js +19 -9
- package/lib/Chat/styles.js.map +1 -1
- package/lib/Chat/types.d.ts +145 -11
- package/lib/Chat/types.d.ts.map +1 -1
- package/lib/Chat/types.js.map +1 -1
- package/lib/Chat/useChatContextValue.d.ts +19 -0
- package/lib/Chat/useChatContextValue.d.ts.map +1 -0
- package/lib/Chat/useChatContextValue.js +158 -0
- package/lib/Chat/useChatContextValue.js.map +1 -0
- package/lib/Chat/useChatMedia.d.ts +22 -0
- package/lib/Chat/useChatMedia.d.ts.map +1 -0
- package/lib/Chat/useChatMedia.js +127 -0
- package/lib/Chat/useChatMedia.js.map +1 -0
- package/lib/Chat/useChatSelection.d.ts +15 -0
- package/lib/Chat/useChatSelection.d.ts.map +1 -0
- package/lib/Chat/useChatSelection.js +106 -0
- package/lib/Chat/useChatSelection.js.map +1 -0
- package/lib/Chat/useComposerHandlers.d.ts +34 -0
- package/lib/Chat/useComposerHandlers.d.ts.map +1 -0
- package/lib/Chat/useComposerHandlers.js +330 -0
- package/lib/Chat/useComposerHandlers.js.map +1 -0
- package/lib/Chat/useComposerState.d.ts +27 -0
- package/lib/Chat/useComposerState.d.ts.map +1 -0
- package/lib/Chat/useComposerState.js +272 -0
- package/lib/Chat/useComposerState.js.map +1 -0
- package/lib/Chat/useInitialLayout.d.ts +19 -0
- package/lib/Chat/useInitialLayout.d.ts.map +1 -0
- package/lib/Chat/useInitialLayout.js +70 -0
- package/lib/Chat/useInitialLayout.js.map +1 -0
- package/lib/Chat/useMessageActions.d.ts +37 -0
- package/lib/Chat/useMessageActions.d.ts.map +1 -0
- package/lib/Chat/useMessageActions.js +323 -0
- package/lib/Chat/useMessageActions.js.map +1 -0
- package/lib/Chat/useMessageNavigation.d.ts +21 -0
- package/lib/Chat/useMessageNavigation.d.ts.map +1 -0
- package/lib/Chat/useMessageNavigation.js +149 -0
- package/lib/Chat/useMessageNavigation.js.map +1 -0
- package/lib/Chat/useOptionalPeerHints.d.ts +6 -0
- package/lib/Chat/useOptionalPeerHints.d.ts.map +1 -0
- package/lib/Chat/useOptionalPeerHints.js +63 -0
- package/lib/Chat/useOptionalPeerHints.js.map +1 -0
- package/lib/Chat/useResolvedReactions.d.ts +31 -0
- package/lib/Chat/useResolvedReactions.d.ts.map +1 -0
- package/lib/Chat/useResolvedReactions.js +95 -0
- package/lib/Chat/useResolvedReactions.js.map +1 -0
- package/lib/ChatAvatar.d.ts.map +1 -1
- package/lib/ChatAvatar.js +229 -84
- package/lib/ChatAvatar.js.map +1 -1
- package/lib/ChatContext.js +20 -10
- package/lib/ChatContext.js.map +1 -1
- package/lib/ChatList/ChatListAvatar.d.ts +21 -0
- package/lib/ChatList/ChatListAvatar.d.ts.map +1 -0
- package/lib/ChatList/ChatListAvatar.js +178 -0
- package/lib/ChatList/ChatListAvatar.js.map +1 -0
- package/lib/ChatList/ChatListCell.d.ts +16 -0
- package/lib/ChatList/ChatListCell.d.ts.map +1 -0
- package/lib/ChatList/ChatListCell.js +506 -0
- package/lib/ChatList/ChatListCell.js.map +1 -0
- package/lib/ChatList/ChatListShimmer.d.ts +3 -0
- package/lib/ChatList/ChatListShimmer.d.ts.map +1 -0
- package/lib/ChatList/ChatListShimmer.js +235 -0
- package/lib/ChatList/ChatListShimmer.js.map +1 -0
- package/lib/ChatList/index.d.ts +16 -0
- package/lib/ChatList/index.d.ts.map +1 -0
- package/lib/ChatList/index.js +1301 -0
- package/lib/ChatList/index.js.map +1 -0
- package/lib/ChatList/types.d.ts +128 -0
- package/lib/ChatList/types.d.ts.map +1 -0
- package/lib/ChatList/types.js +2 -0
- package/lib/ChatList/types.js.map +1 -0
- package/lib/ChatList/useChatList.d.ts +30 -0
- package/lib/ChatList/useChatList.d.ts.map +1 -0
- package/lib/ChatList/useChatList.js +211 -0
- package/lib/ChatList/useChatList.js.map +1 -0
- package/lib/ChatList/utils.d.ts +28 -0
- package/lib/ChatList/utils.d.ts.map +1 -0
- package/lib/ChatList/utils.js +60 -0
- package/lib/ChatList/utils.js.map +1 -0
- package/lib/Color.js +19 -19
- package/lib/Color.js.map +1 -1
- package/lib/Composer.d.ts.map +1 -1
- package/lib/Composer.js +148 -70
- package/lib/Composer.js.map +1 -1
- package/lib/Constant.js +4 -4
- package/lib/Constant.js.map +1 -1
- package/lib/Day/index.d.ts.map +1 -1
- package/lib/Day/index.js +115 -28
- package/lib/Day/index.js.map +1 -1
- package/lib/Day/styles.d.ts +3 -3
- package/lib/Day/styles.d.ts.map +1 -1
- package/lib/Day/styles.js +20 -17
- package/lib/Day/styles.js.map +1 -1
- package/lib/Day/types.js.map +1 -1
- package/lib/Icons.d.ts +1 -1
- package/lib/Icons.d.ts.map +1 -1
- package/lib/Icons.js.map +1 -1
- package/lib/InputToolbar/FieldGroup.d.ts +28 -0
- package/lib/InputToolbar/FieldGroup.d.ts.map +1 -0
- package/lib/InputToolbar/FieldGroup.js +143 -0
- package/lib/InputToolbar/FieldGroup.js.map +1 -0
- package/lib/InputToolbar/TakePreviewBar.d.ts +17 -0
- package/lib/InputToolbar/TakePreviewBar.d.ts.map +1 -0
- package/lib/InputToolbar/TakePreviewBar.js +126 -0
- package/lib/InputToolbar/TakePreviewBar.js.map +1 -0
- package/lib/InputToolbar/animations.d.ts +105 -0
- package/lib/InputToolbar/animations.d.ts.map +1 -0
- package/lib/InputToolbar/animations.js +238 -0
- package/lib/InputToolbar/animations.js.map +1 -0
- package/lib/InputToolbar/fragments.d.ts +13 -0
- package/lib/InputToolbar/fragments.d.ts.map +1 -0
- package/lib/InputToolbar/fragments.js +207 -0
- package/lib/InputToolbar/fragments.js.map +1 -0
- package/lib/InputToolbar/index.d.ts +7 -0
- package/lib/InputToolbar/index.d.ts.map +1 -0
- package/lib/InputToolbar/index.js +444 -0
- package/lib/InputToolbar/index.js.map +1 -0
- package/lib/InputToolbar/recordingOptions.d.ts +14 -0
- package/lib/InputToolbar/recordingOptions.d.ts.map +1 -0
- package/lib/InputToolbar/recordingOptions.js +38 -0
- package/lib/InputToolbar/recordingOptions.js.map +1 -0
- package/lib/InputToolbar/styles.d.ts +118 -0
- package/lib/InputToolbar/styles.d.ts.map +1 -0
- package/lib/InputToolbar/styles.js +139 -0
- package/lib/InputToolbar/styles.js.map +1 -0
- package/lib/InputToolbar/types.d.ts +77 -0
- package/lib/InputToolbar/types.d.ts.map +1 -0
- package/lib/InputToolbar/types.js +2 -0
- package/lib/InputToolbar/types.js.map +1 -0
- package/lib/InputToolbar/useActionsFragment.d.ts +6 -0
- package/lib/InputToolbar/useActionsFragment.d.ts.map +1 -0
- package/lib/InputToolbar/useActionsFragment.js +139 -0
- package/lib/InputToolbar/useActionsFragment.js.map +1 -0
- package/lib/InputToolbar/useComposerEditing.d.ts +11 -0
- package/lib/InputToolbar/useComposerEditing.d.ts.map +1 -0
- package/lib/InputToolbar/useComposerEditing.js +116 -0
- package/lib/InputToolbar/useComposerEditing.js.map +1 -0
- package/lib/InputToolbar/useEmojiButton.d.ts +14 -0
- package/lib/InputToolbar/useEmojiButton.d.ts.map +1 -0
- package/lib/InputToolbar/useEmojiButton.js +120 -0
- package/lib/InputToolbar/useEmojiButton.js.map +1 -0
- package/lib/InputToolbar/useKeyboardInset.d.ts +9 -0
- package/lib/InputToolbar/useKeyboardInset.d.ts.map +1 -0
- package/lib/InputToolbar/useKeyboardInset.js +25 -0
- package/lib/InputToolbar/useKeyboardInset.js.map +1 -0
- package/lib/InputToolbar/useRecordMode.d.ts +19 -0
- package/lib/InputToolbar/useRecordMode.d.ts.map +1 -0
- package/lib/InputToolbar/useRecordMode.js +124 -0
- package/lib/InputToolbar/useRecordMode.js.map +1 -0
- package/lib/InputToolbar/useRecordTake.d.ts +46 -0
- package/lib/InputToolbar/useRecordTake.d.ts.map +1 -0
- package/lib/InputToolbar/useRecordTake.js +315 -0
- package/lib/InputToolbar/useRecordTake.js.map +1 -0
- package/lib/InputToolbar/useReturnAnimations.d.ts +18 -0
- package/lib/InputToolbar/useReturnAnimations.d.ts.map +1 -0
- package/lib/InputToolbar/useReturnAnimations.js +30 -0
- package/lib/InputToolbar/useReturnAnimations.js.map +1 -0
- package/lib/InputToolbar/useRightControl.d.ts +40 -0
- package/lib/InputToolbar/useRightControl.d.ts.map +1 -0
- package/lib/InputToolbar/useRightControl.js +129 -0
- package/lib/InputToolbar/useRightControl.js.map +1 -0
- package/lib/LoadEarlierMessages.d.ts +2 -0
- package/lib/LoadEarlierMessages.d.ts.map +1 -1
- package/lib/LoadEarlierMessages.js +153 -40
- package/lib/LoadEarlierMessages.js.map +1 -1
- package/lib/Message/SwipeToReply.d.ts +23 -0
- package/lib/Message/SwipeToReply.d.ts.map +1 -0
- package/lib/Message/SwipeToReply.js +337 -0
- package/lib/Message/SwipeToReply.js.map +1 -0
- package/lib/Message/index.d.ts.map +1 -1
- package/lib/Message/index.js +415 -176
- package/lib/Message/index.js.map +1 -1
- package/lib/Message/styles.d.ts +2 -2
- package/lib/Message/styles.js +14 -14
- package/lib/Message/styles.js.map +1 -1
- package/lib/Message/types.d.ts +5 -0
- package/lib/Message/types.d.ts.map +1 -1
- package/lib/Message/types.js.map +1 -1
- package/lib/MessageAudio.d.ts.map +1 -1
- package/lib/MessageAudio.js +647 -107
- package/lib/MessageAudio.js.map +1 -1
- package/lib/MessageFile.d.ts +11 -0
- package/lib/MessageFile.d.ts.map +1 -0
- package/lib/MessageFile.js +315 -0
- package/lib/MessageFile.js.map +1 -0
- package/lib/MessageImage.d.ts +2 -0
- package/lib/MessageImage.d.ts.map +1 -1
- package/lib/MessageImage.js +430 -161
- package/lib/MessageImage.js.map +1 -1
- package/lib/MessageLocation.d.ts.map +1 -1
- package/lib/MessageLocation.js +180 -68
- package/lib/MessageLocation.js.map +1 -1
- package/lib/MessageText.d.ts +8 -1
- package/lib/MessageText.d.ts.map +1 -1
- package/lib/MessageText.js +261 -69
- package/lib/MessageText.js.map +1 -1
- package/lib/MessageVideo/ExpoVideoPlayer.d.ts +6 -0
- package/lib/MessageVideo/ExpoVideoPlayer.d.ts.map +1 -0
- package/lib/MessageVideo/ExpoVideoPlayer.js +68 -0
- package/lib/MessageVideo/ExpoVideoPlayer.js.map +1 -0
- package/lib/MessageVideo/MirroredVideo.d.ts +17 -0
- package/lib/MessageVideo/MirroredVideo.d.ts.map +1 -0
- package/lib/MessageVideo/MirroredVideo.js +223 -0
- package/lib/MessageVideo/MirroredVideo.js.map +1 -0
- package/lib/MessageVideo/RoundNotePlayer.d.ts +4 -0
- package/lib/MessageVideo/RoundNotePlayer.d.ts.map +1 -0
- package/lib/MessageVideo/RoundNotePlayer.js +560 -0
- package/lib/MessageVideo/RoundNotePlayer.js.map +1 -0
- package/lib/MessageVideo/RoundTranscription.d.ts +27 -0
- package/lib/MessageVideo/RoundTranscription.d.ts.map +1 -0
- package/lib/MessageVideo/RoundTranscription.js +151 -0
- package/lib/MessageVideo/RoundTranscription.js.map +1 -0
- package/lib/MessageVideo/VideoTransferOverlay.d.ts +11 -0
- package/lib/MessageVideo/VideoTransferOverlay.d.ts.map +1 -0
- package/lib/MessageVideo/VideoTransferOverlay.js +88 -0
- package/lib/MessageVideo/VideoTransferOverlay.js.map +1 -0
- package/lib/MessageVideo/constants.d.ts +13 -0
- package/lib/MessageVideo/constants.d.ts.map +1 -0
- package/lib/MessageVideo/constants.js +15 -0
- package/lib/MessageVideo/constants.js.map +1 -0
- package/lib/{MessageVideo.d.ts → MessageVideo/index.d.ts} +2 -2
- package/lib/MessageVideo/index.d.ts.map +1 -0
- package/lib/MessageVideo/index.js +92 -0
- package/lib/MessageVideo/index.js.map +1 -0
- package/lib/MessageVideo/liftedMedia.d.ts +13 -0
- package/lib/MessageVideo/liftedMedia.d.ts.map +1 -0
- package/lib/MessageVideo/liftedMedia.js +106 -0
- package/lib/MessageVideo/liftedMedia.js.map +1 -0
- package/lib/MessageVideo/styles.d.ts +71 -0
- package/lib/MessageVideo/styles.d.ts.map +1 -0
- package/lib/MessageVideo/styles.js +78 -0
- package/lib/MessageVideo/styles.js.map +1 -0
- package/lib/MessageVideo/types.d.ts +27 -0
- package/lib/MessageVideo/types.d.ts.map +1 -0
- package/lib/MessageVideo/types.js +2 -0
- package/lib/MessageVideo/types.js.map +1 -0
- package/lib/MessageVideo/useNoteGrow.d.ts +16 -0
- package/lib/MessageVideo/useNoteGrow.d.ts.map +1 -0
- package/lib/MessageVideo/useNoteGrow.js +122 -0
- package/lib/MessageVideo/useNoteGrow.js.map +1 -0
- package/lib/MessageVideo/useNotePlayer.d.ts +14 -0
- package/lib/MessageVideo/useNotePlayer.d.ts.map +1 -0
- package/lib/MessageVideo/useNotePlayer.js +142 -0
- package/lib/MessageVideo/useNotePlayer.js.map +1 -0
- package/lib/MessageVideo/useRingSeek.d.ts +16 -0
- package/lib/MessageVideo/useRingSeek.d.ts.map +1 -0
- package/lib/MessageVideo/useRingSeek.js +157 -0
- package/lib/MessageVideo/useRingSeek.js.map +1 -0
- package/lib/MessageVideo/useRoundNotePlayback.d.ts +46 -0
- package/lib/MessageVideo/useRoundNotePlayback.d.ts.map +1 -0
- package/lib/MessageVideo/useRoundNotePlayback.js +508 -0
- package/lib/MessageVideo/useRoundNotePlayback.js.map +1 -0
- package/lib/MessageVideo/useSendFlightReveal.d.ts +9 -0
- package/lib/MessageVideo/useSendFlightReveal.d.ts.map +1 -0
- package/lib/MessageVideo/useSendFlightReveal.js +85 -0
- package/lib/MessageVideo/useSendFlightReveal.js.map +1 -0
- package/lib/MessageVideo/videoPlayers.d.ts +8 -0
- package/lib/MessageVideo/videoPlayers.d.ts.map +1 -0
- package/lib/MessageVideo/videoPlayers.js +33 -0
- package/lib/MessageVideo/videoPlayers.js.map +1 -0
- package/lib/MessagesContainer/components/DayAnimated/debug.js +38 -24
- package/lib/MessagesContainer/components/DayAnimated/debug.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.d.ts +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.js +244 -112
- package/lib/MessagesContainer/components/DayAnimated/index.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/styles.d.ts +3 -3
- package/lib/MessagesContainer/components/DayAnimated/styles.js +8 -8
- package/lib/MessagesContainer/components/DayAnimated/styles.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/types.d.ts +4 -2
- package/lib/MessagesContainer/components/DayAnimated/types.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/types.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.js +34 -25
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.js.map +1 -1
- package/lib/MessagesContainer/components/Item/index.d.ts +3 -4
- package/lib/MessagesContainer/components/Item/index.d.ts.map +1 -1
- package/lib/MessagesContainer/components/Item/index.js +289 -119
- package/lib/MessagesContainer/components/Item/index.js.map +1 -1
- package/lib/MessagesContainer/components/Item/types.d.ts +5 -0
- package/lib/MessagesContainer/components/Item/types.d.ts.map +1 -1
- package/lib/MessagesContainer/components/Item/types.js.map +1 -1
- package/lib/MessagesContainer/components/PageDownCounter.d.ts +14 -0
- package/lib/MessagesContainer/components/PageDownCounter.d.ts.map +1 -0
- package/lib/MessagesContainer/components/PageDownCounter.js +209 -0
- package/lib/MessagesContainer/components/PageDownCounter.js.map +1 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.d.ts +21 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.d.ts.map +1 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.js +195 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.js.map +1 -0
- package/lib/MessagesContainer/components/dayLayout.d.ts +2 -2
- package/lib/MessagesContainer/components/dayLayout.d.ts.map +1 -1
- package/lib/MessagesContainer/components/dayLayout.js +18 -13
- package/lib/MessagesContainer/components/dayLayout.js.map +1 -1
- package/lib/MessagesContainer/index.d.ts.map +1 -1
- package/lib/MessagesContainer/index.js +361 -420
- package/lib/MessagesContainer/index.js.map +1 -1
- package/lib/MessagesContainer/listState.d.ts +18 -0
- package/lib/MessagesContainer/listState.d.ts.map +1 -0
- package/lib/MessagesContainer/listState.js +25 -0
- package/lib/MessagesContainer/listState.js.map +1 -0
- package/lib/MessagesContainer/listTransitions.d.ts +10 -0
- package/lib/MessagesContainer/listTransitions.d.ts.map +1 -0
- package/lib/MessagesContainer/listTransitions.js +12 -0
- package/lib/MessagesContainer/listTransitions.js.map +1 -0
- package/lib/MessagesContainer/pageDownReturn.d.ts +11 -0
- package/lib/MessagesContainer/pageDownReturn.d.ts.map +1 -0
- package/lib/MessagesContainer/pageDownReturn.js +9 -0
- package/lib/MessagesContainer/pageDownReturn.js.map +1 -0
- package/lib/MessagesContainer/rowConfig.d.ts +39 -0
- package/lib/MessagesContainer/rowConfig.d.ts.map +1 -0
- package/lib/MessagesContainer/rowConfig.js +161 -0
- package/lib/MessagesContainer/rowConfig.js.map +1 -0
- package/lib/MessagesContainer/rowStore.d.ts +37 -0
- package/lib/MessagesContainer/rowStore.d.ts.map +1 -0
- package/lib/MessagesContainer/rowStore.js +140 -0
- package/lib/MessagesContainer/rowStore.js.map +1 -0
- package/lib/MessagesContainer/styles.d.ts +37 -31
- package/lib/MessagesContainer/styles.d.ts.map +1 -1
- package/lib/MessagesContainer/styles.js +75 -54
- package/lib/MessagesContainer/styles.js.map +1 -1
- package/lib/MessagesContainer/types.d.ts +33 -30
- package/lib/MessagesContainer/types.d.ts.map +1 -1
- package/lib/MessagesContainer/types.js +1 -9
- package/lib/MessagesContainer/types.js.map +1 -1
- package/lib/MessagesContainer/useCellLayouts.d.ts +17 -0
- package/lib/MessagesContainer/useCellLayouts.d.ts.map +1 -0
- package/lib/MessagesContainer/useCellLayouts.js +133 -0
- package/lib/MessagesContainer/useCellLayouts.js.map +1 -0
- package/lib/MessagesContainer/useDaysPositions.d.ts +18 -0
- package/lib/MessagesContainer/useDaysPositions.d.ts.map +1 -0
- package/lib/MessagesContainer/useDaysPositions.js +109 -0
- package/lib/MessagesContainer/useDaysPositions.js.map +1 -0
- package/lib/MessagesContainer/useListChrome.d.ts +14 -0
- package/lib/MessagesContainer/useListChrome.d.ts.map +1 -0
- package/lib/MessagesContainer/useListChrome.js +176 -0
- package/lib/MessagesContainer/useListChrome.js.map +1 -0
- package/lib/MessagesContainer/useListMetrics.d.ts +32 -0
- package/lib/MessagesContainer/useListMetrics.d.ts.map +1 -0
- package/lib/MessagesContainer/useListMetrics.js +176 -0
- package/lib/MessagesContainer/useListMetrics.js.map +1 -0
- package/lib/MessagesContainer/useMessageRows.d.ts +46 -0
- package/lib/MessagesContainer/useMessageRows.d.ts.map +1 -0
- package/lib/MessagesContainer/useMessageRows.js +228 -0
- package/lib/MessagesContainer/useMessageRows.js.map +1 -0
- package/lib/MessagesContainer/usePageDownUnread.d.ts +27 -0
- package/lib/MessagesContainer/usePageDownUnread.d.ts.map +1 -0
- package/lib/MessagesContainer/usePageDownUnread.js +152 -0
- package/lib/MessagesContainer/usePageDownUnread.js.map +1 -0
- package/lib/MessagesContainer/useScrollActivity.d.ts +13 -0
- package/lib/MessagesContainer/useScrollActivity.d.ts.map +1 -0
- package/lib/MessagesContainer/useScrollActivity.js +84 -0
- package/lib/MessagesContainer/useScrollActivity.js.map +1 -0
- package/lib/MessagesContainer/useScrollToBottom.d.ts +26 -0
- package/lib/MessagesContainer/useScrollToBottom.d.ts.map +1 -0
- package/lib/MessagesContainer/useScrollToBottom.js +164 -0
- package/lib/MessagesContainer/useScrollToBottom.js.map +1 -0
- package/lib/MessagesContainer/useTapToClosePanels.d.ts +7 -0
- package/lib/MessagesContainer/useTapToClosePanels.d.ts.map +1 -0
- package/lib/MessagesContainer/useTapToClosePanels.js +55 -0
- package/lib/MessagesContainer/useTapToClosePanels.js.map +1 -0
- package/lib/MessagesContainer/viewability.d.ts +9 -0
- package/lib/MessagesContainer/viewability.d.ts.map +1 -0
- package/lib/MessagesContainer/viewability.js +110 -0
- package/lib/MessagesContainer/viewability.js.map +1 -0
- package/lib/Models.d.ts +188 -3
- package/lib/Models.d.ts.map +1 -1
- package/lib/Models.js.map +1 -1
- package/lib/QuickReplies.js +234 -101
- package/lib/QuickReplies.js.map +1 -1
- package/lib/Reactions/MessageReactions.d.ts +5 -0
- package/lib/Reactions/MessageReactions.d.ts.map +1 -1
- package/lib/Reactions/MessageReactions.js +359 -80
- package/lib/Reactions/MessageReactions.js.map +1 -1
- package/lib/Reactions/ReactionPicker.d.ts +5 -3
- package/lib/Reactions/ReactionPicker.d.ts.map +1 -1
- package/lib/Reactions/ReactionPicker.js +68 -82
- package/lib/Reactions/ReactionPicker.js.map +1 -1
- package/lib/Reactions/index.js +1 -0
- package/lib/Reactions/index.js.map +1 -1
- package/lib/Reactions/types.d.ts +49 -5
- package/lib/Reactions/types.d.ts.map +1 -1
- package/lib/Reactions/types.js.map +1 -1
- package/lib/Reply/index.js.map +1 -1
- package/lib/Reply/types.d.ts +19 -3
- package/lib/Reply/types.d.ts.map +1 -1
- package/lib/Reply/types.js.map +1 -1
- package/lib/Send.d.ts +2 -2
- package/lib/Send.d.ts.map +1 -1
- package/lib/Send.js +218 -47
- package/lib/Send.js.map +1 -1
- package/lib/SystemMessage.d.ts.map +1 -1
- package/lib/SystemMessage.js +106 -37
- package/lib/SystemMessage.js.map +1 -1
- package/lib/Theme.d.ts +320 -23
- package/lib/Theme.d.ts.map +1 -1
- package/lib/Theme.js +548 -119
- package/lib/Theme.js.map +1 -1
- package/lib/Time.d.ts +7 -0
- package/lib/Time.d.ts.map +1 -1
- package/lib/Time.js +122 -30
- package/lib/Time.js.map +1 -1
- package/lib/TypingIndicator/index.d.ts +9 -1
- package/lib/TypingIndicator/index.d.ts.map +1 -1
- package/lib/TypingIndicator/index.js +318 -94
- package/lib/TypingIndicator/index.js.map +1 -1
- package/lib/TypingIndicator/styles.d.ts +6 -2
- package/lib/TypingIndicator/styles.d.ts.map +1 -1
- package/lib/TypingIndicator/styles.js +22 -18
- package/lib/TypingIndicator/styles.js.map +1 -1
- package/lib/TypingIndicator/types.js.map +1 -1
- package/lib/attachments/AttachmentButton.d.ts +18 -0
- package/lib/attachments/AttachmentButton.d.ts.map +1 -0
- package/lib/attachments/AttachmentButton.js +110 -0
- package/lib/attachments/AttachmentButton.js.map +1 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.d.ts +15 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.js +165 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.js.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.js +267 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.js.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.d.ts +18 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.js +184 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabBar.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/TabBar.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabBar.js +127 -0
- package/lib/attachments/AttachmentMenu/TabBar.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabButton.d.ts +15 -0
- package/lib/attachments/AttachmentMenu/TabButton.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabButton.js +219 -0
- package/lib/attachments/AttachmentMenu/TabButton.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabPanel.d.ts +17 -0
- package/lib/attachments/AttachmentMenu/TabPanel.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabPanel.js +170 -0
- package/lib/attachments/AttachmentMenu/TabPanel.js.map +1 -0
- package/lib/attachments/AttachmentMenu/constants.d.ts +54 -0
- package/lib/attachments/AttachmentMenu/constants.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/constants.js +79 -0
- package/lib/attachments/AttachmentMenu/constants.js.map +1 -0
- package/lib/attachments/AttachmentMenu/index.d.ts +16 -0
- package/lib/attachments/AttachmentMenu/index.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/index.js +498 -0
- package/lib/attachments/AttachmentMenu/index.js.map +1 -0
- package/lib/attachments/AttachmentMenu/styles.d.ts +259 -0
- package/lib/attachments/AttachmentMenu/styles.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/styles.js +262 -0
- package/lib/attachments/AttachmentMenu/styles.js.map +1 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.js +74 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.js.map +1 -0
- package/lib/attachments/buildMessages.d.ts +36 -0
- package/lib/attachments/buildMessages.d.ts.map +1 -0
- package/lib/attachments/buildMessages.js +192 -0
- package/lib/attachments/buildMessages.js.map +1 -0
- package/lib/attachments/gallery.d.ts +28 -0
- package/lib/attachments/gallery.d.ts.map +1 -0
- package/lib/attachments/gallery.js +245 -0
- package/lib/attachments/gallery.js.map +1 -0
- package/lib/attachments/types.d.ts +69 -0
- package/lib/attachments/types.d.ts.map +1 -0
- package/lib/attachments/types.js +2 -0
- package/lib/attachments/types.js.map +1 -0
- package/lib/colorUtils.d.ts +24 -0
- package/lib/colorUtils.d.ts.map +1 -0
- package/lib/colorUtils.js +71 -0
- package/lib/colorUtils.js.map +1 -0
- package/lib/components/AttachmentSheet.d.ts +1 -1
- package/lib/components/AttachmentSheet.d.ts.map +1 -1
- package/lib/components/AttachmentSheet.js +515 -155
- package/lib/components/AttachmentSheet.js.map +1 -1
- package/lib/components/BasicMarkdown.d.ts +7 -1
- package/lib/components/BasicMarkdown.d.ts.map +1 -1
- package/lib/components/BasicMarkdown.js +234 -184
- package/lib/components/BasicMarkdown.js.map +1 -1
- package/lib/components/BubbleBackground.d.ts +55 -0
- package/lib/components/BubbleBackground.d.ts.map +1 -0
- package/lib/components/BubbleBackground.js +513 -0
- package/lib/components/BubbleBackground.js.map +1 -0
- package/lib/components/ChatEmpty.d.ts +18 -0
- package/lib/components/ChatEmpty.d.ts.map +1 -0
- package/lib/components/ChatEmpty.js +125 -0
- package/lib/components/ChatEmpty.js.map +1 -0
- package/lib/components/ChatLoadingOverlay.d.ts +10 -0
- package/lib/components/ChatLoadingOverlay.d.ts.map +1 -0
- package/lib/components/ChatLoadingOverlay.js +89 -0
- package/lib/components/ChatLoadingOverlay.js.map +1 -0
- package/lib/components/ChatOverlay.d.ts +9 -0
- package/lib/components/ChatOverlay.d.ts.map +1 -0
- package/lib/components/ChatOverlay.js +60 -0
- package/lib/components/ChatOverlay.js.map +1 -0
- package/lib/components/ChatWallpaper.d.ts +32 -0
- package/lib/components/ChatWallpaper.d.ts.map +1 -0
- package/lib/components/ChatWallpaper.js +277 -0
- package/lib/components/ChatWallpaper.js.map +1 -0
- package/lib/components/ContextMenu/MenuCard.d.ts +21 -0
- package/lib/components/ContextMenu/MenuCard.d.ts.map +1 -0
- package/lib/components/ContextMenu/MenuCard.js +265 -0
- package/lib/components/ContextMenu/MenuCard.js.map +1 -0
- package/lib/components/ContextMenu/ReactionButton.d.ts +15 -0
- package/lib/components/ContextMenu/ReactionButton.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionButton.js +116 -0
- package/lib/components/ContextMenu/ReactionButton.js.map +1 -0
- package/lib/components/ContextMenu/ReactionFlight.d.ts +14 -0
- package/lib/components/ContextMenu/ReactionFlight.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionFlight.js +111 -0
- package/lib/components/ContextMenu/ReactionFlight.js.map +1 -0
- package/lib/components/ContextMenu/ReactionsBar.d.ts +35 -0
- package/lib/components/ContextMenu/ReactionsBar.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionsBar.js +354 -0
- package/lib/components/ContextMenu/ReactionsBar.js.map +1 -0
- package/lib/components/ContextMenu/constants.d.ts +68 -0
- package/lib/components/ContextMenu/constants.d.ts.map +1 -0
- package/lib/components/ContextMenu/constants.js +105 -0
- package/lib/components/ContextMenu/constants.js.map +1 -0
- package/lib/components/ContextMenu/index.d.ts +12 -0
- package/lib/components/ContextMenu/index.d.ts.map +1 -0
- package/lib/components/ContextMenu/index.js +476 -0
- package/lib/components/ContextMenu/index.js.map +1 -0
- package/lib/components/ContextMenu/placement.d.ts +50 -0
- package/lib/components/ContextMenu/placement.d.ts.map +1 -0
- package/lib/components/ContextMenu/placement.js +117 -0
- package/lib/components/ContextMenu/placement.js.map +1 -0
- package/lib/components/ContextMenu/styles.d.ts +199 -0
- package/lib/components/ContextMenu/styles.d.ts.map +1 -0
- package/lib/components/ContextMenu/styles.js +169 -0
- package/lib/components/ContextMenu/styles.js.map +1 -0
- package/lib/components/ContextMenu/types.d.ts +62 -0
- package/lib/components/ContextMenu/types.d.ts.map +1 -0
- package/lib/components/ContextMenu/types.js +2 -0
- package/lib/components/ContextMenu/types.js.map +1 -0
- package/lib/components/ContextMenu/useExpandPanel.d.ts +11 -0
- package/lib/components/ContextMenu/useExpandPanel.d.ts.map +1 -0
- package/lib/components/ContextMenu/useExpandPanel.js +81 -0
- package/lib/components/ContextMenu/useExpandPanel.js.map +1 -0
- package/lib/components/ContextMenu/useMenuPresence.d.ts +17 -0
- package/lib/components/ContextMenu/useMenuPresence.d.ts.map +1 -0
- package/lib/components/ContextMenu/useMenuPresence.js +125 -0
- package/lib/components/ContextMenu/useMenuPresence.js.map +1 -0
- package/lib/components/FloatingRoundNote.d.ts +13 -0
- package/lib/components/FloatingRoundNote.d.ts.map +1 -0
- package/lib/components/FloatingRoundNote.js +541 -0
- package/lib/components/FloatingRoundNote.js.map +1 -0
- package/lib/components/GlassSurface.d.ts +16 -0
- package/lib/components/GlassSurface.d.ts.map +1 -0
- package/lib/components/GlassSurface.js +114 -0
- package/lib/components/GlassSurface.js.map +1 -0
- package/lib/components/Icon.js +57 -8
- package/lib/components/Icon.js.map +1 -1
- package/lib/components/LinkPreviewCard.d.ts +36 -0
- package/lib/components/LinkPreviewCard.d.ts.map +1 -0
- package/lib/components/LinkPreviewCard.js +416 -0
- package/lib/components/LinkPreviewCard.js.map +1 -0
- package/lib/components/LucideIcon.d.ts.map +1 -1
- package/lib/components/LucideIcon.js +103 -106
- package/lib/components/LucideIcon.js.map +1 -1
- package/lib/components/MarkdownMessageText.d.ts +17 -2
- package/lib/components/MarkdownMessageText.d.ts.map +1 -1
- package/lib/components/MarkdownMessageText.js +270 -22
- package/lib/components/MarkdownMessageText.js.map +1 -1
- package/lib/components/MediaCard.d.ts.map +1 -1
- package/lib/components/MediaCard.js +223 -85
- package/lib/components/MediaCard.js.map +1 -1
- package/lib/components/MediaControls.js +1094 -450
- package/lib/components/MediaControls.js.map +1 -1
- package/lib/components/MediaLoader.d.ts +21 -0
- package/lib/components/MediaLoader.d.ts.map +1 -0
- package/lib/components/MediaLoader.js +61 -0
- package/lib/components/MediaLoader.js.map +1 -0
- package/lib/components/MessageReply.d.ts +2 -2
- package/lib/components/MessageReply.d.ts.map +1 -1
- package/lib/components/MessageReply.js +266 -83
- package/lib/components/MessageReply.js.map +1 -1
- package/lib/components/MessageStatus.d.ts +23 -0
- package/lib/components/MessageStatus.d.ts.map +1 -0
- package/lib/components/MessageStatus.js +499 -0
- package/lib/components/MessageStatus.js.map +1 -0
- package/lib/components/NoteIndicators.d.ts +25 -0
- package/lib/components/NoteIndicators.d.ts.map +1 -0
- package/lib/components/NoteIndicators.js +206 -0
- package/lib/components/NoteIndicators.js.map +1 -0
- package/lib/components/NowPlayingBar.d.ts +15 -0
- package/lib/components/NowPlayingBar.d.ts.map +1 -0
- package/lib/components/NowPlayingBar.js +261 -0
- package/lib/components/NowPlayingBar.js.map +1 -0
- package/lib/components/PlayPauseIcon.d.ts +13 -0
- package/lib/components/PlayPauseIcon.d.ts.map +1 -0
- package/lib/components/PlayPauseIcon.js +187 -0
- package/lib/components/PlayPauseIcon.js.map +1 -0
- package/lib/components/PlaybackSpeedPill.d.ts +11 -0
- package/lib/components/PlaybackSpeedPill.d.ts.map +1 -0
- package/lib/components/PlaybackSpeedPill.js +350 -0
- package/lib/components/PlaybackSpeedPill.js.map +1 -0
- package/lib/components/RadialProgress.d.ts +70 -0
- package/lib/components/RadialProgress.d.ts.map +1 -0
- package/lib/components/RadialProgress.js +864 -0
- package/lib/components/RadialProgress.js.map +1 -0
- package/lib/components/RecordButton/LockPill.d.ts +27 -0
- package/lib/components/RecordButton/LockPill.d.ts.map +1 -0
- package/lib/components/RecordButton/LockPill.js +182 -0
- package/lib/components/RecordButton/LockPill.js.map +1 -0
- package/lib/components/RecordButton/ModeButton.d.ts +18 -0
- package/lib/components/RecordButton/ModeButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ModeButton.js +154 -0
- package/lib/components/RecordButton/ModeButton.js.map +1 -0
- package/lib/components/RecordButton/ResumeButton.d.ts +20 -0
- package/lib/components/RecordButton/ResumeButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ResumeButton.js +63 -0
- package/lib/components/RecordButton/ResumeButton.js.map +1 -0
- package/lib/components/RecordButton/Tooltips.d.ts +20 -0
- package/lib/components/RecordButton/Tooltips.d.ts.map +1 -0
- package/lib/components/RecordButton/Tooltips.js +191 -0
- package/lib/components/RecordButton/Tooltips.js.map +1 -0
- package/lib/components/RecordButton/ViewOnceButton.d.ts +16 -0
- package/lib/components/RecordButton/ViewOnceButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ViewOnceButton.js +96 -0
- package/lib/components/RecordButton/ViewOnceButton.js.map +1 -0
- package/lib/components/RecordButton/constants.d.ts +52 -0
- package/lib/components/RecordButton/constants.d.ts.map +1 -0
- package/lib/components/RecordButton/constants.js +58 -0
- package/lib/components/RecordButton/constants.js.map +1 -0
- package/lib/components/RecordButton/index.d.ts +14 -0
- package/lib/components/RecordButton/index.d.ts.map +1 -0
- package/lib/components/RecordButton/index.js +382 -0
- package/lib/components/RecordButton/index.js.map +1 -0
- package/lib/components/RecordButton/styles.d.ts +155 -0
- package/lib/components/RecordButton/styles.d.ts.map +1 -0
- package/lib/components/RecordButton/styles.js +161 -0
- package/lib/components/RecordButton/styles.js.map +1 -0
- package/lib/components/RecordButton/types.d.ts +63 -0
- package/lib/components/RecordButton/types.d.ts.map +1 -0
- package/lib/components/RecordButton/types.js +2 -0
- package/lib/components/RecordButton/types.js.map +1 -0
- package/lib/components/RecordButton/useRecordGesture.d.ts +28 -0
- package/lib/components/RecordButton/useRecordGesture.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordGesture.js +263 -0
- package/lib/components/RecordButton/useRecordGesture.js.map +1 -0
- package/lib/components/RecordButton/useRecordHints.d.ts +27 -0
- package/lib/components/RecordButton/useRecordHints.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordHints.js +210 -0
- package/lib/components/RecordButton/useRecordHints.js.map +1 -0
- package/lib/components/RecordButton/useRecordSlideDistance.d.ts +3 -0
- package/lib/components/RecordButton/useRecordSlideDistance.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordSlideDistance.js +15 -0
- package/lib/components/RecordButton/useRecordSlideDistance.js.map +1 -0
- package/lib/components/RecordButton/useRecordTake.d.ts +41 -0
- package/lib/components/RecordButton/useRecordTake.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordTake.js +349 -0
- package/lib/components/RecordButton/useRecordTake.js.map +1 -0
- package/lib/components/RecordButton/useSendFlight.d.ts +25 -0
- package/lib/components/RecordButton/useSendFlight.d.ts.map +1 -0
- package/lib/components/RecordButton/useSendFlight.js +162 -0
- package/lib/components/RecordButton/useSendFlight.js.map +1 -0
- package/lib/components/RecordCircle.d.ts +92 -0
- package/lib/components/RecordCircle.d.ts.map +1 -0
- package/lib/components/RecordCircle.js +629 -0
- package/lib/components/RecordCircle.js.map +1 -0
- package/lib/components/RecordingBar.d.ts +24 -0
- package/lib/components/RecordingBar.d.ts.map +1 -0
- package/lib/components/RecordingBar.js +766 -0
- package/lib/components/RecordingBar.js.map +1 -0
- package/lib/components/ReplyPreview.js +318 -135
- package/lib/components/ReplyPreview.js.map +1 -1
- package/lib/components/SelectionBar.d.ts +17 -0
- package/lib/components/SelectionBar.d.ts.map +1 -0
- package/lib/components/SelectionBar.js +214 -0
- package/lib/components/SelectionBar.js.map +1 -0
- package/lib/components/SelectionCheckbox.d.ts +12 -0
- package/lib/components/SelectionCheckbox.d.ts.map +1 -0
- package/lib/components/SelectionCheckbox.js +104 -0
- package/lib/components/SelectionCheckbox.js.map +1 -0
- package/lib/components/SendIcon.js +60 -26
- package/lib/components/SendIcon.js.map +1 -1
- package/lib/components/ServiceSpinner.d.ts +17 -0
- package/lib/components/ServiceSpinner.d.ts.map +1 -0
- package/lib/components/ServiceSpinner.js +77 -0
- package/lib/components/ServiceSpinner.js.map +1 -0
- package/lib/components/Spinner.d.ts +18 -0
- package/lib/components/Spinner.d.ts.map +1 -0
- package/lib/components/Spinner.js +169 -0
- package/lib/components/Spinner.js.map +1 -0
- package/lib/components/StreamingCursor.js +54 -9
- package/lib/components/StreamingCursor.js.map +1 -1
- package/lib/components/Ticks.d.ts +6 -5
- package/lib/components/Ticks.d.ts.map +1 -1
- package/lib/components/Ticks.js +272 -82
- package/lib/components/Ticks.js.map +1 -1
- package/lib/components/TouchableOpacity.d.ts.map +1 -1
- package/lib/components/TouchableOpacity.js +153 -51
- package/lib/components/TouchableOpacity.js.map +1 -1
- package/lib/components/TranscribeButton.d.ts +45 -0
- package/lib/components/TranscribeButton.d.ts.map +1 -0
- package/lib/components/TranscribeButton.js +549 -0
- package/lib/components/TranscribeButton.js.map +1 -0
- package/lib/components/TypingStatus.d.ts +29 -0
- package/lib/components/TypingStatus.d.ts.map +1 -0
- package/lib/components/TypingStatus.js +446 -0
- package/lib/components/TypingStatus.js.map +1 -0
- package/lib/components/UnreadSeparator.d.ts +8 -0
- package/lib/components/UnreadSeparator.d.ts.map +1 -0
- package/lib/components/UnreadSeparator.js +101 -0
- package/lib/components/UnreadSeparator.js.map +1 -0
- package/lib/components/VideoNoteCapture/ProgressRing.d.ts +16 -0
- package/lib/components/VideoNoteCapture/ProgressRing.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/ProgressRing.js +75 -0
- package/lib/components/VideoNoteCapture/ProgressRing.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.d.ts +31 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.js +500 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.d.ts +12 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.js +105 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.d.ts +12 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.js +95 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.js.map +1 -0
- package/lib/components/VideoNoteCapture/constants.d.ts +50 -0
- package/lib/components/VideoNoteCapture/constants.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/constants.js +53 -0
- package/lib/components/VideoNoteCapture/constants.js.map +1 -0
- package/lib/components/VideoNoteCapture/index.d.ts +3 -0
- package/lib/components/VideoNoteCapture/index.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/index.js +2 -0
- package/lib/components/VideoNoteCapture/index.js.map +1 -0
- package/lib/components/VideoNoteCapture/optional.d.ts +6 -0
- package/lib/components/VideoNoteCapture/optional.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/optional.js +15 -0
- package/lib/components/VideoNoteCapture/optional.js.map +1 -0
- package/lib/components/VideoNoteCapture/sessionState.d.ts +10 -0
- package/lib/components/VideoNoteCapture/sessionState.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/sessionState.js +19 -0
- package/lib/components/VideoNoteCapture/sessionState.js.map +1 -0
- package/lib/components/VideoNoteCapture/styles.d.ts +84 -0
- package/lib/components/VideoNoteCapture/styles.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/styles.js +86 -0
- package/lib/components/VideoNoteCapture/styles.js.map +1 -0
- package/lib/components/VideoNoteCapture/types.d.ts +54 -0
- package/lib/components/VideoNoteCapture/types.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/types.js +2 -0
- package/lib/components/VideoNoteCapture/types.js.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.d.ts +47 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.js +216 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.js.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.d.ts +14 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.js +61 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.js.map +1 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.d.ts +25 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.js +611 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.js.map +1 -0
- package/lib/components/VideoNoteOverlay.d.ts +42 -11
- package/lib/components/VideoNoteOverlay.d.ts.map +1 -1
- package/lib/components/VideoNoteOverlay.js +722 -135
- package/lib/components/VideoNoteOverlay.js.map +1 -1
- package/lib/components/VideoNoteRecorder/LiveVideoNote.d.ts +6 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.js +205 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.js.map +1 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.d.ts +35 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.js +350 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.js.map +1 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.d.ts +10 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.js +52 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.js.map +1 -0
- package/lib/components/VideoNoteRecorder/constants.d.ts +16 -0
- package/lib/components/VideoNoteRecorder/constants.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/constants.js +30 -0
- package/lib/components/VideoNoteRecorder/constants.js.map +1 -0
- package/lib/components/{VideoNoteRecorder.d.ts → VideoNoteRecorder/index.d.ts} +5 -10
- package/lib/components/VideoNoteRecorder/index.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/index.js +26 -0
- package/lib/components/VideoNoteRecorder/index.js.map +1 -0
- package/lib/components/VideoNoteRecorder/styles.d.ts +159 -0
- package/lib/components/VideoNoteRecorder/styles.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/styles.js +170 -0
- package/lib/components/VideoNoteRecorder/styles.js.map +1 -0
- package/lib/components/VideoNoteRecorder/types.d.ts +7 -0
- package/lib/components/VideoNoteRecorder/types.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/types.js +2 -0
- package/lib/components/VideoNoteRecorder/types.js.map +1 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.d.ts +10 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.js +134 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.js.map +1 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.d.ts +28 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.js +287 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.js.map +1 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.d.ts +6 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.js +11 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.js.map +1 -0
- package/lib/components/VideoRecordButton.d.ts +1 -1
- package/lib/components/VideoRecordButton.d.ts.map +1 -1
- package/lib/components/VideoRecordButton.js +221 -92
- package/lib/components/VideoRecordButton.js.map +1 -1
- package/lib/components/ViewOnceBadge.d.ts +23 -0
- package/lib/components/ViewOnceBadge.d.ts.map +1 -0
- package/lib/components/ViewOnceBadge.js +233 -0
- package/lib/components/ViewOnceBadge.js.map +1 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.d.ts +16 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.js +503 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.js.map +1 -0
- package/lib/components/VoiceMessageInput/constants.d.ts +16 -0
- package/lib/components/VoiceMessageInput/constants.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/constants.js +22 -0
- package/lib/components/VoiceMessageInput/constants.js.map +1 -0
- package/lib/components/VoiceMessageInput/formatElapsed.d.ts +2 -0
- package/lib/components/VoiceMessageInput/formatElapsed.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/formatElapsed.js +7 -0
- package/lib/components/VoiceMessageInput/formatElapsed.js.map +1 -0
- package/lib/components/VoiceMessageInput/index.d.ts +9 -0
- package/lib/components/VoiceMessageInput/index.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/index.js +148 -0
- package/lib/components/VoiceMessageInput/index.js.map +1 -0
- package/lib/components/VoiceMessageInput/previewStyles.d.ts +77 -0
- package/lib/components/VoiceMessageInput/previewStyles.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/previewStyles.js +80 -0
- package/lib/components/VoiceMessageInput/previewStyles.js.map +1 -0
- package/lib/components/VoiceMessageInput/previewWaveform.d.ts +15 -0
- package/lib/components/VoiceMessageInput/previewWaveform.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/previewWaveform.js +27 -0
- package/lib/components/VoiceMessageInput/previewWaveform.js.map +1 -0
- package/lib/components/VoiceMessageInput/recorder.d.ts +18 -0
- package/lib/components/VoiceMessageInput/recorder.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/recorder.js +80 -0
- package/lib/components/VoiceMessageInput/recorder.js.map +1 -0
- package/lib/components/VoiceMessageInput/types.d.ts +56 -0
- package/lib/components/VoiceMessageInput/types.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/types.js +2 -0
- package/lib/components/VoiceMessageInput/types.js.map +1 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.d.ts +7 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.js +61 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.js.map +1 -0
- package/lib/components/VoiceMessageInput/useStateReport.d.ts +16 -0
- package/lib/components/VoiceMessageInput/useStateReport.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useStateReport.js +81 -0
- package/lib/components/VoiceMessageInput/useStateReport.js.map +1 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.d.ts +34 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.js +207 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.js.map +1 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.d.ts +25 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.js +424 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.js.map +1 -0
- package/lib/components/WaveformPlayer/Bars.d.ts +30 -0
- package/lib/components/WaveformPlayer/Bars.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/Bars.js +171 -0
- package/lib/components/WaveformPlayer/Bars.js.map +1 -0
- package/lib/components/WaveformPlayer/VoiceButton.d.ts +23 -0
- package/lib/components/WaveformPlayer/VoiceButton.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/VoiceButton.js +111 -0
- package/lib/components/WaveformPlayer/VoiceButton.js.map +1 -0
- package/lib/components/WaveformPlayer/WaveformTrack.d.ts +31 -0
- package/lib/components/WaveformPlayer/WaveformTrack.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/WaveformTrack.js +199 -0
- package/lib/components/WaveformPlayer/WaveformTrack.js.map +1 -0
- package/lib/components/WaveformPlayer/audio.d.ts +23 -0
- package/lib/components/WaveformPlayer/audio.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/audio.js +97 -0
- package/lib/components/WaveformPlayer/audio.js.map +1 -0
- package/lib/components/WaveformPlayer/index.d.ts +13 -0
- package/lib/components/WaveformPlayer/index.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/index.js +475 -0
- package/lib/components/WaveformPlayer/index.js.map +1 -0
- package/lib/components/WaveformPlayer/styles.d.ts +257 -0
- package/lib/components/WaveformPlayer/styles.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/styles.js +120 -0
- package/lib/components/WaveformPlayer/styles.js.map +1 -0
- package/lib/components/WaveformPlayer/types.d.ts +32 -0
- package/lib/components/WaveformPlayer/types.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/types.js +2 -0
- package/lib/components/WaveformPlayer/types.js.map +1 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.d.ts +21 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.js +105 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.js.map +1 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.d.ts +39 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.js +401 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.js.map +1 -0
- package/lib/components/WaveformPlayer/useVoiceSource.d.ts +38 -0
- package/lib/components/WaveformPlayer/useVoiceSource.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useVoiceSource.js +244 -0
- package/lib/components/WaveformPlayer/useVoiceSource.js.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.d.ts +16 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.js +135 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.js.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.d.ts +16 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.js +168 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.js.map +1 -0
- package/lib/components/composerPanels.d.ts +13 -0
- package/lib/components/composerPanels.d.ts.map +1 -0
- package/lib/components/composerPanels.js +22 -0
- package/lib/components/composerPanels.js.map +1 -0
- package/lib/components/defaultMessageActions.d.ts +30 -0
- package/lib/components/defaultMessageActions.d.ts.map +1 -0
- package/lib/components/defaultMessageActions.js +124 -0
- package/lib/components/defaultMessageActions.js.map +1 -0
- package/lib/components/earpiece.d.ts +56 -0
- package/lib/components/earpiece.d.ts.map +1 -0
- package/lib/components/earpiece.js +218 -0
- package/lib/components/earpiece.js.map +1 -0
- package/lib/components/floatingNoteMath.d.ts +66 -0
- package/lib/components/floatingNoteMath.d.ts.map +1 -0
- package/lib/components/floatingNoteMath.js +143 -0
- package/lib/components/floatingNoteMath.js.map +1 -0
- package/lib/components/haptics.d.ts +5 -0
- package/lib/components/haptics.d.ts.map +1 -0
- package/lib/components/haptics.js +26 -0
- package/lib/components/haptics.js.map +1 -0
- package/lib/components/mediaDownload.d.ts +14 -0
- package/lib/components/mediaDownload.d.ts.map +1 -0
- package/lib/components/mediaDownload.js +43 -0
- package/lib/components/mediaDownload.js.map +1 -0
- package/lib/components/mediaPalette.d.ts +7 -2
- package/lib/components/mediaPalette.d.ts.map +1 -1
- package/lib/components/mediaPalette.js +27 -15
- package/lib/components/mediaPalette.js.map +1 -1
- package/lib/components/mediaPlayback.d.ts +204 -5
- package/lib/components/mediaPlayback.d.ts.map +1 -1
- package/lib/components/mediaPlayback.js +746 -17
- package/lib/components/mediaPlayback.js.map +1 -1
- package/lib/components/mediaTransfer.d.ts +29 -0
- package/lib/components/mediaTransfer.d.ts.map +1 -0
- package/lib/components/mediaTransfer.js +52 -0
- package/lib/components/mediaTransfer.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewer.d.ts +17 -0
- package/lib/components/mediaViewer/MediaViewer.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewer.js +347 -0
- package/lib/components/mediaViewer/MediaViewer.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerChrome.d.ts +14 -0
- package/lib/components/mediaViewer/MediaViewerChrome.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerChrome.js +164 -0
- package/lib/components/mediaViewer/MediaViewerChrome.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerHost.d.ts +10 -0
- package/lib/components/mediaViewer/MediaViewerHost.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerHost.js +76 -0
- package/lib/components/mediaViewer/MediaViewerHost.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerPage.d.ts +25 -0
- package/lib/components/mediaViewer/MediaViewerPage.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerPage.js +194 -0
- package/lib/components/mediaViewer/MediaViewerPage.js.map +1 -0
- package/lib/components/mediaViewer/gallery.d.ts +27 -0
- package/lib/components/mediaViewer/gallery.d.ts.map +1 -0
- package/lib/components/mediaViewer/gallery.js +41 -0
- package/lib/components/mediaViewer/gallery.js.map +1 -0
- package/lib/components/messageHighlight.d.ts +41 -0
- package/lib/components/messageHighlight.d.ts.map +1 -0
- package/lib/components/messageHighlight.js +157 -0
- package/lib/components/messageHighlight.js.map +1 -0
- package/lib/components/messagePress.d.ts +14 -0
- package/lib/components/messagePress.d.ts.map +1 -0
- package/lib/components/messagePress.js +18 -0
- package/lib/components/messagePress.js.map +1 -0
- package/lib/components/messageSelection.d.ts +39 -0
- package/lib/components/messageSelection.d.ts.map +1 -0
- package/lib/components/messageSelection.js +135 -0
- package/lib/components/messageSelection.js.map +1 -0
- package/lib/components/recordingFeedback.d.ts +22 -0
- package/lib/components/recordingFeedback.d.ts.map +1 -0
- package/lib/components/recordingFeedback.js +80 -0
- package/lib/components/recordingFeedback.js.map +1 -0
- package/lib/components/recordingMeter.d.ts +19 -0
- package/lib/components/recordingMeter.d.ts.map +1 -0
- package/lib/components/recordingMeter.js +21 -0
- package/lib/components/recordingMeter.js.map +1 -0
- package/lib/components/roundNoteChrome.d.ts +107 -0
- package/lib/components/roundNoteChrome.d.ts.map +1 -0
- package/lib/components/roundNoteChrome.js +249 -0
- package/lib/components/roundNoteChrome.js.map +1 -0
- package/lib/components/roundNotePlayers.d.ts +78 -0
- package/lib/components/roundNotePlayers.d.ts.map +1 -0
- package/lib/components/roundNotePlayers.js +230 -0
- package/lib/components/roundNotePlayers.js.map +1 -0
- package/lib/components/sendFlight.d.ts +88 -0
- package/lib/components/sendFlight.d.ts.map +1 -0
- package/lib/components/sendFlight.js +146 -0
- package/lib/components/sendFlight.js.map +1 -0
- package/lib/components/viewOnce.d.ts +27 -0
- package/lib/components/viewOnce.d.ts.map +1 -0
- package/lib/components/viewOnce.js +168 -0
- package/lib/components/viewOnce.js.map +1 -0
- package/lib/components/visionCamera.d.ts +45 -0
- package/lib/components/visionCamera.d.ts.map +1 -0
- package/lib/components/visionCamera.js +117 -0
- package/lib/components/visionCamera.js.map +1 -0
- package/lib/components/voiceEditing.d.ts +34 -0
- package/lib/components/voiceEditing.d.ts.map +1 -0
- package/lib/components/voiceEditing.js +159 -0
- package/lib/components/voiceEditing.js.map +1 -0
- package/lib/components/voiceWaveform.d.ts +108 -0
- package/lib/components/voiceWaveform.d.ts.map +1 -0
- package/lib/components/voiceWaveform.js +165 -0
- package/lib/components/voiceWaveform.js.map +1 -0
- package/lib/components/wallpaperGradient.d.ts +16 -0
- package/lib/components/wallpaperGradient.d.ts.map +1 -0
- package/lib/components/wallpaperGradient.js +186 -0
- package/lib/components/wallpaperGradient.js.map +1 -0
- package/lib/components/windowInsets.d.ts +11 -0
- package/lib/components/windowInsets.d.ts.map +1 -0
- package/lib/components/windowInsets.js +44 -0
- package/lib/components/windowInsets.js.map +1 -0
- package/lib/dayjsLocales.js +15 -2
- package/lib/dayjsLocales.js.map +1 -1
- package/lib/emoji/EmojiGrid/BackspaceButton.d.ts +11 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.js +111 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.js.map +1 -0
- package/lib/emoji/EmojiGrid/EmojiRow.d.ts +15 -0
- package/lib/emoji/EmojiGrid/EmojiRow.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/EmojiRow.js +71 -0
- package/lib/emoji/EmojiGrid/EmojiRow.js.map +1 -0
- package/lib/emoji/EmojiGrid/Search.d.ts +29 -0
- package/lib/emoji/EmojiGrid/Search.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/Search.js +234 -0
- package/lib/emoji/EmojiGrid/Search.js.map +1 -0
- package/lib/emoji/EmojiGrid/TabStrip.d.ts +16 -0
- package/lib/emoji/EmojiGrid/TabStrip.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/TabStrip.js +237 -0
- package/lib/emoji/EmojiGrid/TabStrip.js.map +1 -0
- package/lib/emoji/EmojiGrid/TonePopup.d.ts +12 -0
- package/lib/emoji/EmojiGrid/TonePopup.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/TonePopup.js +137 -0
- package/lib/emoji/EmojiGrid/TonePopup.js.map +1 -0
- package/lib/emoji/EmojiGrid/constants.d.ts +29 -0
- package/lib/emoji/EmojiGrid/constants.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/constants.js +65 -0
- package/lib/emoji/EmojiGrid/constants.js.map +1 -0
- package/lib/emoji/EmojiGrid/index.d.ts +10 -0
- package/lib/emoji/EmojiGrid/index.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/index.js +450 -0
- package/lib/emoji/EmojiGrid/index.js.map +1 -0
- package/lib/emoji/EmojiGrid/items.d.ts +25 -0
- package/lib/emoji/EmojiGrid/items.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/items.js +75 -0
- package/lib/emoji/EmojiGrid/items.js.map +1 -0
- package/lib/emoji/EmojiGrid/styles.d.ts +181 -0
- package/lib/emoji/EmojiGrid/styles.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/styles.js +184 -0
- package/lib/emoji/EmojiGrid/styles.js.map +1 -0
- package/lib/emoji/EmojiGrid/types.d.ts +53 -0
- package/lib/emoji/EmojiGrid/types.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/types.js +2 -0
- package/lib/emoji/EmojiGrid/types.js.map +1 -0
- package/lib/emoji/EmojiGrid/useTabScroll.d.ts +19 -0
- package/lib/emoji/EmojiGrid/useTabScroll.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/useTabScroll.js +124 -0
- package/lib/emoji/EmojiGrid/useTabScroll.js.map +1 -0
- package/lib/emoji/EmojiKeyboard.d.ts +79 -0
- package/lib/emoji/EmojiKeyboard.d.ts.map +1 -0
- package/lib/emoji/EmojiKeyboard.js +445 -0
- package/lib/emoji/EmojiKeyboard.js.map +1 -0
- package/lib/emoji/defaultExpandedPicker.d.ts +5 -0
- package/lib/emoji/defaultExpandedPicker.d.ts.map +1 -0
- package/lib/emoji/defaultExpandedPicker.js +11 -0
- package/lib/emoji/defaultExpandedPicker.js.map +1 -0
- package/lib/emoji/emojiData.d.ts +2 -0
- package/lib/emoji/emojiData.d.ts.map +1 -0
- package/lib/emoji/emojiData.js +5 -0
- package/lib/emoji/emojiData.js.map +1 -0
- package/lib/emoji/emojiStore.d.ts +70 -0
- package/lib/emoji/emojiStore.d.ts.map +1 -0
- package/lib/emoji/emojiStore.js +246 -0
- package/lib/emoji/emojiStore.js.map +1 -0
- package/lib/emoji/textEditing.d.ts +20 -0
- package/lib/emoji/textEditing.d.ts.map +1 -0
- package/lib/emoji/textEditing.js +97 -0
- package/lib/emoji/textEditing.js.map +1 -0
- package/lib/emojiOnly.d.ts +11 -0
- package/lib/emojiOnly.d.ts.map +1 -0
- package/lib/emojiOnly.js +79 -0
- package/lib/emojiOnly.js.map +1 -0
- package/lib/gestures/useRowSwipe.d.ts +43 -0
- package/lib/gestures/useRowSwipe.d.ts.map +1 -0
- package/lib/gestures/useRowSwipe.js +74 -0
- package/lib/gestures/useRowSwipe.js.map +1 -0
- package/lib/hooks/useAnimatedPresence.d.ts +22 -0
- package/lib/hooks/useAnimatedPresence.d.ts.map +1 -0
- package/lib/hooks/useAnimatedPresence.js +97 -0
- package/lib/hooks/useAnimatedPresence.js.map +1 -0
- package/lib/hooks/useChatMessages.d.ts +39 -0
- package/lib/hooks/useChatMessages.d.ts.map +1 -0
- package/lib/hooks/useChatMessages.js +125 -0
- package/lib/hooks/useChatMessages.js.map +1 -0
- package/lib/hooks/useColorScheme.d.ts +7 -1
- package/lib/hooks/useColorScheme.d.ts.map +1 -1
- package/lib/hooks/useColorScheme.js +46 -8
- package/lib/hooks/useColorScheme.js.map +1 -1
- package/lib/hooks/useHasKeyboardProvider.js +18 -7
- package/lib/hooks/useHasKeyboardProvider.js.map +1 -1
- package/lib/hooks/useIcons.js +15 -2
- package/lib/hooks/useIcons.js.map +1 -1
- package/lib/hooks/useIsKeyboardVisible.js +39 -17
- package/lib/hooks/useIsKeyboardVisible.js.map +1 -1
- package/lib/hooks/useIsRTL.js +15 -2
- package/lib/hooks/useIsRTL.js.map +1 -1
- package/lib/hooks/useKeyboardVerticalOffset.d.ts +5 -3
- package/lib/hooks/useKeyboardVerticalOffset.d.ts.map +1 -1
- package/lib/hooks/useKeyboardVerticalOffset.js +52 -18
- package/lib/hooks/useKeyboardVerticalOffset.js.map +1 -1
- package/lib/hooks/useLabels.js +15 -2
- package/lib/hooks/useLabels.js.map +1 -1
- package/lib/hooks/useStreamingMessages.js +200 -86
- package/lib/hooks/useStreamingMessages.js.map +1 -1
- package/lib/hooks/useTheme.js +56 -7
- package/lib/hooks/useTheme.js.map +1 -1
- package/lib/hooks/useUpdateLayoutEffect.d.ts.map +1 -1
- package/lib/hooks/useUpdateLayoutEffect.js +35 -11
- package/lib/hooks/useUpdateLayoutEffect.js.map +1 -1
- package/lib/i18n.d.ts +182 -0
- package/lib/i18n.d.ts.map +1 -1
- package/lib/i18n.js +121 -23
- package/lib/i18n.js.map +1 -1
- package/lib/index.d.ts +31 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -1
- package/lib/index.js.map +1 -1
- package/lib/linkParser.js +318 -185
- package/lib/linkParser.js.map +1 -1
- package/lib/locales/ar.d.ts.map +1 -1
- package/lib/locales/ar.js +110 -19
- package/lib/locales/ar.js.map +1 -1
- package/lib/locales/de.d.ts.map +1 -1
- package/lib/locales/de.js +110 -19
- package/lib/locales/de.js.map +1 -1
- package/lib/locales/es.d.ts.map +1 -1
- package/lib/locales/es.js +110 -19
- package/lib/locales/es.js.map +1 -1
- package/lib/locales/fr.d.ts.map +1 -1
- package/lib/locales/fr.js +110 -19
- package/lib/locales/fr.js.map +1 -1
- package/lib/locales/hi.d.ts.map +1 -1
- package/lib/locales/hi.js +110 -19
- package/lib/locales/hi.js.map +1 -1
- package/lib/locales/id.d.ts.map +1 -1
- package/lib/locales/id.js +110 -19
- package/lib/locales/id.js.map +1 -1
- package/lib/locales/index.js +19 -5
- package/lib/locales/index.js.map +1 -1
- package/lib/locales/it.d.ts.map +1 -1
- package/lib/locales/it.js +110 -19
- package/lib/locales/it.js.map +1 -1
- package/lib/locales/ja.d.ts.map +1 -1
- package/lib/locales/ja.js +110 -19
- package/lib/locales/ja.js.map +1 -1
- package/lib/locales/ko.d.ts.map +1 -1
- package/lib/locales/ko.js +110 -19
- package/lib/locales/ko.js.map +1 -1
- package/lib/locales/nl.d.ts.map +1 -1
- package/lib/locales/nl.js +110 -19
- package/lib/locales/nl.js.map +1 -1
- package/lib/locales/pl.d.ts.map +1 -1
- package/lib/locales/pl.js +110 -19
- package/lib/locales/pl.js.map +1 -1
- package/lib/locales/pt.d.ts.map +1 -1
- package/lib/locales/pt.js +110 -19
- package/lib/locales/pt.js.map +1 -1
- package/lib/locales/ru.d.ts.map +1 -1
- package/lib/locales/ru.js +110 -19
- package/lib/locales/ru.js.map +1 -1
- package/lib/locales/tr.d.ts.map +1 -1
- package/lib/locales/tr.js +110 -19
- package/lib/locales/tr.js.map +1 -1
- package/lib/locales/zh.d.ts.map +1 -1
- package/lib/locales/zh.js +110 -19
- package/lib/locales/zh.js.map +1 -1
- package/lib/logging.d.ts +5 -0
- package/lib/logging.d.ts.map +1 -1
- package/lib/logging.js +13 -1
- package/lib/logging.js.map +1 -1
- package/lib/messageUtils.d.ts +19 -0
- package/lib/messageUtils.d.ts.map +1 -0
- package/lib/messageUtils.js +61 -0
- package/lib/messageUtils.js.map +1 -0
- package/lib/motion.d.ts +21 -0
- package/lib/motion.d.ts.map +1 -0
- package/lib/motion.js +30 -0
- package/lib/motion.js.map +1 -0
- package/lib/optional/index.d.ts +99 -0
- package/lib/optional/index.d.ts.map +1 -0
- package/lib/optional/index.js +284 -0
- package/lib/optional/index.js.map +1 -0
- package/lib/rtl.js +7 -5
- package/lib/rtl.js.map +1 -1
- package/lib/store.d.ts +40 -0
- package/lib/store.d.ts.map +1 -0
- package/lib/store.js +127 -0
- package/lib/store.js.map +1 -0
- package/lib/styles.d.ts +2 -2
- package/lib/styles.d.ts.map +1 -1
- package/lib/styles.js +15 -15
- package/lib/styles.js.map +1 -1
- package/lib/types.js +1 -0
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +15 -0
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +199 -94
- package/lib/utils.js.map +1 -1
- package/llms.txt +133 -31
- package/package.json +89 -46
- package/lib/InputToolbar.d.ts +0 -49
- package/lib/InputToolbar.d.ts.map +0 -1
- package/lib/InputToolbar.js +0 -338
- package/lib/InputToolbar.js.map +0 -1
- package/lib/MessageVideo.d.ts.map +0 -1
- package/lib/MessageVideo.js +0 -162
- package/lib/MessageVideo.js.map +0 -1
- package/lib/MessagesContainer/FlashList.d.ts +0 -9
- package/lib/MessagesContainer/FlashList.d.ts.map +0 -1
- package/lib/MessagesContainer/FlashList.js +0 -23
- package/lib/MessagesContainer/FlashList.js.map +0 -1
- package/lib/components/ContextMenu.d.ts +0 -25
- package/lib/components/ContextMenu.d.ts.map +0 -1
- package/lib/components/ContextMenu.js +0 -122
- package/lib/components/ContextMenu.js.map +0 -1
- package/lib/components/VideoNoteRecorder.d.ts.map +0 -1
- package/lib/components/VideoNoteRecorder.js +0 -634
- package/lib/components/VideoNoteRecorder.js.map +0 -1
- package/lib/components/VoiceMessageInput.d.ts +0 -33
- package/lib/components/VoiceMessageInput.d.ts.map +0 -1
- package/lib/components/VoiceMessageInput.js +0 -403
- package/lib/components/VoiceMessageInput.js.map +0 -1
- package/lib/components/WaveformPlayer.d.ts +0 -19
- package/lib/components/WaveformPlayer.d.ts.map +0 -1
- package/lib/components/WaveformPlayer.js +0 -367
- package/lib/components/WaveformPlayer.js.map +0 -1
package/lib/Chat/types.d.ts
CHANGED
|
@@ -2,18 +2,21 @@ import React, { RefObject } from 'react';
|
|
|
2
2
|
import { TextInput, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
3
|
import { KeyboardProvider, KeyboardAvoidingViewProps } from 'react-native-keyboard-controller';
|
|
4
4
|
import { ActionsProps } from '../Actions';
|
|
5
|
+
import { AttachmentsProps } from '../attachments/types';
|
|
5
6
|
import { AvatarProps } from '../Avatar';
|
|
6
7
|
import { BubbleProps } from '../Bubble';
|
|
7
8
|
import { ActionSheetOptions } from '../ChatContext';
|
|
8
9
|
import { AttachmentAction } from '../components/AttachmentSheet';
|
|
10
|
+
import { SelectionBarProps } from '../components/SelectionBar';
|
|
9
11
|
import { ComposerProps } from '../Composer';
|
|
12
|
+
import { EmojiKeyboardProps } from '../emoji/EmojiKeyboard';
|
|
10
13
|
import { ChatLabels } from '../i18n';
|
|
11
14
|
import { ChatIcons } from '../Icons';
|
|
12
15
|
import { InputToolbarProps } from '../InputToolbar';
|
|
13
16
|
import { MessageImageProps } from '../MessageImage';
|
|
14
17
|
import { AnimatedList, MessagesContainerProps } from '../MessagesContainer';
|
|
15
18
|
import { MessageTextProps } from '../MessageText';
|
|
16
|
-
import { AudioRecordingProps, IMessage, LeftRightStyle, MessageAudioProps, MessageLocationProps, MessageMenuItem, MessageVideoProps, User, VideoRecordingProps } from '../Models';
|
|
19
|
+
import { AudioRecordingProps, MediaPlaybackProps, MediaTransferProps, IMessage, LeftRightStyle, MessageActionKey, MessageAudioProps, MessageFileProps, MessageLocationProps, MessageMenuItem, MessageVideoProps, User, VideoRecordingProps } from '../Models';
|
|
17
20
|
import { QuickRepliesProps } from '../QuickReplies';
|
|
18
21
|
import { ReactionsProps } from '../Reactions';
|
|
19
22
|
import { ReplyProps } from '../Reply';
|
|
@@ -21,13 +24,33 @@ import { SendProps } from '../Send';
|
|
|
21
24
|
import { SystemMessageProps } from '../SystemMessage';
|
|
22
25
|
import { PartialChatTheme } from '../Theme';
|
|
23
26
|
import { TimeProps } from '../Time';
|
|
24
|
-
export interface ChatProps<TMessage extends IMessage> extends Partial<Omit<MessagesContainerProps<TMessage>, 'messageReplyContainerStyle'
|
|
25
|
-
messagesContainerRef?: RefObject<AnimatedList
|
|
26
|
-
textInputRef?: RefObject<TextInput>;
|
|
27
|
+
export interface ChatProps<TMessage extends IMessage> extends Partial<Omit<MessagesContainerProps<TMessage>, 'messageReplyContainerStyle'>>, Pick<BubbleProps<TMessage>, 'fetchLinkPreview' | 'renderLinkPreview' | 'onPressLinkPreview'> {
|
|
28
|
+
messagesContainerRef?: RefObject<AnimatedList>;
|
|
29
|
+
textInputRef?: RefObject<React.ComponentRef<typeof TextInput> | null>;
|
|
30
|
+
/**
|
|
31
|
+
* Show the sender's name on the first message of each run of incoming messages.
|
|
32
|
+
* Default: on in group chats, off in one-to-one chats (see `isGroupChat`).
|
|
33
|
+
*/
|
|
27
34
|
isUsernameVisible?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Show avatars beside incoming messages. Default: on in group chats, off in one-to-one
|
|
37
|
+
* chats (see `isGroupChat`), and on whenever a custom `renderAvatar` is passed.
|
|
38
|
+
*/
|
|
39
|
+
isAvatarVisible?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether this is a group chat, which turns on avatars and sender names. Default:
|
|
42
|
+
* auto-detected - more than one other sender in `messages` means a group.
|
|
43
|
+
*/
|
|
44
|
+
isGroupChat?: boolean;
|
|
28
45
|
messagesContainerStyle?: StyleProp<ViewStyle>;
|
|
29
46
|
text?: string;
|
|
30
47
|
initialText?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The user's draft changed: called as they type, with '' once it is sent. Editing a message
|
|
50
|
+
* sets the draft aside (this is not called with the edited text) and brings it back after.
|
|
51
|
+
* Save it with the chat and pass it back as `initialText` to restore it next time.
|
|
52
|
+
*/
|
|
53
|
+
onDraftChange?: (draft: string) => void;
|
|
31
54
|
user?: User;
|
|
32
55
|
locale?: string;
|
|
33
56
|
/**
|
|
@@ -85,6 +108,12 @@ export interface ChatProps<TMessage extends IMessage> extends Partial<Omit<Messa
|
|
|
85
108
|
messageIdGenerator?: (message?: TMessage) => string;
|
|
86
109
|
onSend?: (messages: TMessage[]) => void;
|
|
87
110
|
renderLoading?: () => React.ReactNode;
|
|
111
|
+
/**
|
|
112
|
+
* The big greeting on the empty-chat card, sent as a message when tapped. `null` leaves it
|
|
113
|
+
* out, keeping just the "No messages here yet..." card.
|
|
114
|
+
* @default '👋'
|
|
115
|
+
*/
|
|
116
|
+
emptyChatGreeting?: string | null;
|
|
88
117
|
renderAvatar?: null | ((props: AvatarProps<TMessage>) => React.ReactNode);
|
|
89
118
|
renderBubble?: (props: BubbleProps<TMessage>) => React.ReactNode;
|
|
90
119
|
renderSystemMessage?: (props: SystemMessageProps<TMessage>) => React.ReactNode;
|
|
@@ -96,6 +125,8 @@ export interface ChatProps<TMessage extends IMessage> extends Partial<Omit<Messa
|
|
|
96
125
|
renderMessageVideo?: (props: MessageVideoProps<TMessage>) => React.ReactNode;
|
|
97
126
|
renderMessageAudio?: (props: MessageAudioProps<TMessage>) => React.ReactNode;
|
|
98
127
|
renderMessageLocation?: (props: MessageLocationProps<TMessage>) => React.ReactNode;
|
|
128
|
+
/** Custom file bubble for `IMessage.file` (a document cell by default). */
|
|
129
|
+
renderMessageFile?: (props: MessageFileProps<TMessage>) => React.ReactNode;
|
|
99
130
|
renderCustomView?: (props: BubbleProps<TMessage>) => React.ReactNode;
|
|
100
131
|
renderTime?: (props: TimeProps<TMessage>) => React.ReactNode;
|
|
101
132
|
renderChatFooter?: () => React.ReactNode;
|
|
@@ -137,8 +168,65 @@ export interface ChatProps<TMessage extends IMessage> extends Partial<Omit<Messa
|
|
|
137
168
|
reply?: ReplyProps<TMessage>;
|
|
138
169
|
/** Emoji reactions configuration */
|
|
139
170
|
reactions?: ReactionsProps<TMessage>;
|
|
140
|
-
/**
|
|
141
|
-
|
|
171
|
+
/**
|
|
172
|
+
* Long-press context menu actions. An array replaces the built-in actions. A function gets
|
|
173
|
+
* the message and the built-in actions for it, and returns what to show - so you can add to,
|
|
174
|
+
* filter or reorder them:
|
|
175
|
+
*
|
|
176
|
+
* ```tsx
|
|
177
|
+
* messageActions={(message, defaults) => [...defaults.filter(a => a.key !== 'copy'), myAction]}
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
messageActions?: MessageMenuItem[] | ((message: TMessage, defaults: MessageMenuItem[]) => MessageMenuItem[]);
|
|
181
|
+
/**
|
|
182
|
+
* The built-in long-press actions, in this order: Reply, Copy, Forward, Pin / Unpin,
|
|
183
|
+
* Edit, Select, Delete. Each shows only when it can work (Copy needs text and a clipboard peer;
|
|
184
|
+
* Edit needs your own text message and `onEditMessage`; Forward, Pin and Delete need their
|
|
185
|
+
* callbacks; Select needs something to do with a selection - a clipboard, Forward or Delete).
|
|
186
|
+
* `true` (default) offers them all; an array picks and orders them; `false` turns them off.
|
|
187
|
+
* They are also off when `onLongPressMessage` is set and `messageActions` is not, so an app
|
|
188
|
+
* that already handles long-press keeps doing so.
|
|
189
|
+
*/
|
|
190
|
+
defaultMessageActions?: boolean | MessageActionKey[];
|
|
191
|
+
/**
|
|
192
|
+
* Turns on the "Edit" action for your own text messages. Edit puts the text into the
|
|
193
|
+
* composer under an "Editing" banner; sending calls this with the message and the new text
|
|
194
|
+
* instead of `onSend`.
|
|
195
|
+
*/
|
|
196
|
+
onEditMessage?: (message: TMessage, text: string) => void;
|
|
197
|
+
/** Turns on the "Delete" action. */
|
|
198
|
+
onDeleteMessage?: (message: TMessage) => void;
|
|
199
|
+
/** Turns on the "Forward" action. */
|
|
200
|
+
onForwardMessage?: (message: TMessage) => void;
|
|
201
|
+
/**
|
|
202
|
+
* Forwards the messages checked in selection mode, oldest first. Without it the selection
|
|
203
|
+
* bar's Forward calls `onForwardMessage` once per message.
|
|
204
|
+
*/
|
|
205
|
+
onForwardMessages?: (messages: TMessage[]) => void;
|
|
206
|
+
/**
|
|
207
|
+
* Deletes the messages checked in selection mode, oldest first. Without it the selection
|
|
208
|
+
* bar's Delete calls `onDeleteMessage` once per message.
|
|
209
|
+
*/
|
|
210
|
+
onDeleteMessages?: (messages: TMessage[]) => void;
|
|
211
|
+
/**
|
|
212
|
+
* Called whenever the selection changes in multi-select mode (entered from the
|
|
213
|
+
* menu's "Select"), with the checked messages in the order they were checked - an empty array
|
|
214
|
+
* once it ends.
|
|
215
|
+
*/
|
|
216
|
+
onSelectionChange?: (messages: TMessage[]) => void;
|
|
217
|
+
/**
|
|
218
|
+
* The bar that replaces the composer while messages are selected (count, Copy, Forward,
|
|
219
|
+
* Delete). Return your own, or `null` to keep the composer and drive the selection from your
|
|
220
|
+
* header through `onSelectionChange`.
|
|
221
|
+
*/
|
|
222
|
+
renderSelectionBar?: ((props: SelectionBarProps & {
|
|
223
|
+
messages: TMessage[];
|
|
224
|
+
}) => React.ReactNode) | null;
|
|
225
|
+
/**
|
|
226
|
+
* Turns on the "Pin" action; it reads "Unpin" on a message with `isPinned`. Called with the
|
|
227
|
+
* message either way - flip its `isPinned` to toggle.
|
|
228
|
+
*/
|
|
229
|
+
onPinMessage?: (message: TMessage) => void;
|
|
142
230
|
/**
|
|
143
231
|
* Controls whether message bubbles attach the tap / long-press gestures that
|
|
144
232
|
* `reactions` and `messageActions` rely on. Pass `false` (or a predicate
|
|
@@ -150,16 +238,62 @@ export interface ChatProps<TMessage extends IMessage> extends Partial<Omit<Messa
|
|
|
150
238
|
* @default true
|
|
151
239
|
*/
|
|
152
240
|
isMessageGestureEnabled?: boolean | ((message: TMessage) => boolean);
|
|
153
|
-
/**
|
|
241
|
+
/**
|
|
242
|
+
* Called when the composer's emoji button is pressed, instead of opening the built-in emoji
|
|
243
|
+
* keyboard. Passing it shows the button even with `emojiKeyboard={false}`.
|
|
244
|
+
*/
|
|
154
245
|
onPressEmoji?: () => void;
|
|
246
|
+
/**
|
|
247
|
+
* The built-in emoji keyboard: the emoji button opens it in the
|
|
248
|
+
* system keyboard's place, and a tap inserts at the caret - whether or not you control `text`.
|
|
249
|
+
* On by default; `false` hides the emoji button. An object configures it:
|
|
250
|
+
* `{ columns, categories, recents, isSearchEnabled, renderEmojiKeyboard }`.
|
|
251
|
+
*/
|
|
252
|
+
emojiKeyboard?: boolean | EmojiKeyboardProps;
|
|
253
|
+
/**
|
|
254
|
+
* The built-in attachment menu behind the composer's paperclip:
|
|
255
|
+
* a photo grid with numbered selection, a caption and "Send N", plus File and Location tabs.
|
|
256
|
+
* Each tab shows only when its optional peer is installed; picks become `IMessage`s sent
|
|
257
|
+
* through `onSend`. On by default; `false` hides the paperclip. `actions`,
|
|
258
|
+
* `onPressActionButton` and `renderActions` take precedence. An object configures it:
|
|
259
|
+
* `{ tabs, onPick, renderAttachmentMenu }`.
|
|
260
|
+
*/
|
|
261
|
+
attachments?: boolean | AttachmentsProps<TMessage>;
|
|
155
262
|
/**
|
|
156
263
|
* Whether the composer accepts multiple lines. `true` (default) keeps the
|
|
157
264
|
* return key inserting a newline; `false` turns it into Send.
|
|
158
265
|
*/
|
|
159
266
|
isMultiline?: boolean;
|
|
160
|
-
/**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
267
|
+
/**
|
|
268
|
+
* Hold-to-record voice notes. On by default when the optional `expo-audio` is
|
|
269
|
+
* installed; `false` turns them off, an object configures them (`minDurationMs`, ...).
|
|
270
|
+
*/
|
|
271
|
+
audioRecording?: boolean | AudioRecordingProps;
|
|
272
|
+
/**
|
|
273
|
+
* Round video notes, recorded in the chat. On by default when `react-native-vision-camera`
|
|
274
|
+
* is installed (the mic button then toggles to the camera with a tap);
|
|
275
|
+
* `false` turns them off. `{ isEnabled: true }` additionally falls back to the system camera
|
|
276
|
+
* (`expo-image-picker`) when vision-camera is missing.
|
|
277
|
+
*/
|
|
278
|
+
videoRecording?: boolean | VideoRecordingProps;
|
|
279
|
+
/** Playback speed and auto-play-next for voice and round video notes */
|
|
280
|
+
mediaPlayback?: MediaPlaybackProps;
|
|
281
|
+
/**
|
|
282
|
+
* Handlers for the media buttons: the download arrow of a message with
|
|
283
|
+
* `isDownloadRequired` and the cancel ✕ of one with `transfer`.
|
|
284
|
+
*/
|
|
285
|
+
mediaTransfer?: MediaTransferProps;
|
|
286
|
+
/**
|
|
287
|
+
* The history is loading: a spinner in a service-colored circle, centred over the
|
|
288
|
+
* empty list. Messages already passed stay visible under it.
|
|
289
|
+
*/
|
|
290
|
+
isLoading?: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* The chat background. By default Chat draws a swirl gradient wallpaper from
|
|
293
|
+
* `theme.wallpaper` (turning one step per message you send). Return your own element to
|
|
294
|
+
* replace it - an image, a gradient, `ChatWallpaper` with other props - or pass `null` for
|
|
295
|
+
* the plain `theme.colors.background`.
|
|
296
|
+
*/
|
|
297
|
+
renderWallpaper?: (() => React.ReactNode) | null;
|
|
164
298
|
}
|
|
165
299
|
//# sourceMappingURL=types.d.ts.map
|
package/lib/Chat/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Chat/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAE9F,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,O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IAClC;;;OAGG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAA;IAClC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;CACjD"}
|
package/lib/Chat/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Chat/types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../src/Chat/types.ts"],"sourcesContent":["import React, { RefObject } from 'react'\nimport {\n TextInput,\n StyleProp,\n TextStyle,\n ViewStyle,\n} from 'react-native'\nimport { KeyboardProvider, KeyboardAvoidingViewProps } from 'react-native-keyboard-controller'\n\nimport { ActionsProps } from '../Actions'\nimport { AttachmentsProps } from '../attachments/types'\nimport { AvatarProps } from '../Avatar'\nimport { BubbleProps } from '../Bubble'\nimport { ActionSheetOptions } from '../ChatContext'\nimport { AttachmentAction } from '../components/AttachmentSheet'\nimport { SelectionBarProps } from '../components/SelectionBar'\nimport { ComposerProps } from '../Composer'\nimport { EmojiKeyboardProps } from '../emoji/EmojiKeyboard'\nimport { ChatLabels } from '../i18n'\nimport { ChatIcons } from '../Icons'\nimport { InputToolbarProps } from '../InputToolbar'\nimport { MessageImageProps } from '../MessageImage'\nimport { AnimatedList, MessagesContainerProps } from '../MessagesContainer'\nimport { MessageTextProps } from '../MessageText'\nimport {\n AudioRecordingProps,\n MediaPlaybackProps,\n MediaTransferProps,\n IMessage,\n LeftRightStyle,\n MessageActionKey,\n MessageAudioProps,\n MessageFileProps,\n MessageLocationProps,\n MessageMenuItem,\n MessageVideoProps,\n User,\n VideoRecordingProps,\n} from '../Models'\nimport { QuickRepliesProps } from '../QuickReplies'\nimport { ReactionsProps } from '../Reactions'\nimport { ReplyProps } from '../Reply'\nimport { SendProps } from '../Send'\nimport { SystemMessageProps } from '../SystemMessage'\nimport { PartialChatTheme } from '../Theme'\nimport { TimeProps } from '../Time'\n\nexport interface ChatProps<TMessage extends IMessage> extends Partial<Omit<MessagesContainerProps<TMessage>, 'messageReplyContainerStyle'>>,\n Pick<BubbleProps<TMessage>, 'fetchLinkPreview' | 'renderLinkPreview' | 'onPressLinkPreview'> {\n /* Messages container ref */\n messagesContainerRef?: RefObject<AnimatedList>\n /* text input ref */\n textInputRef?: RefObject<React.ComponentRef<typeof TextInput> | null>\n /**\n * Show the sender's name on the first message of each run of incoming messages.\n * Default: on in group chats, off in one-to-one chats (see `isGroupChat`).\n */\n isUsernameVisible?: boolean\n /**\n * Show avatars beside incoming messages. Default: on in group chats, off in one-to-one\n * chats (see `isGroupChat`), and on whenever a custom `renderAvatar` is passed.\n */\n isAvatarVisible?: boolean\n /**\n * Whether this is a group chat, which turns on avatars and sender names. Default:\n * auto-detected - more than one other sender in `messages` means a group.\n */\n isGroupChat?: boolean\n /* Messages container style */\n messagesContainerStyle?: StyleProp<ViewStyle>\n /* Input text; default is undefined, but if specified, it will override Chat's internal state */\n text?: string\n initialText?: string\n /**\n * The user's draft changed: called as they type, with '' once it is sent. Editing a message\n * sets the draft aside (this is not called with the edited text) and brings it back after.\n * Save it with the chat and pass it back as `initialText` to restore it next time.\n */\n onDraftChange?: (draft: string) => void\n /* User sending the messages: { _id, name, avatar } */\n user?: User\n /* Locale to localize the dates */\n locale?: string\n /**\n * Force right-to-left layout on or off. Defaults to auto-detecting from `locale` (Arabic,\n * Hebrew, Persian, Urdu, and a few others). Set this to override the guess - e.g. `true` for\n * an RTL language not in the auto-detected set, or `false` to keep LTR layout for one of them.\n */\n forceRTL?: boolean\n /* Force color scheme (light/dark); default is undefined (uses system color scheme) */\n colorScheme?: 'light' | 'dark'\n /* Override the modern default light theme tokens (deep-merged over defaults) */\n theme?: PartialChatTheme\n /* Override the modern default dark theme tokens (deep-merged over defaults) */\n darkTheme?: PartialChatTheme\n /* Override built-in icons (e.g. with lucide-react-native); drawn icons are used for any name not provided */\n icons?: ChatIcons\n /* Override UI strings; merged over the built-in translation for `locale`, then English */\n labels?: Partial<ChatLabels>\n /* Format to use for rendering times; default is 'LT' */\n timeFormat?: string\n /* Format to use for rendering dates; default is 'll' */\n dateFormat?: string\n /* Format to use for rendering relative times; Today - for now. See more: https://day.js.org/docs/en/plugin/calendar */\n dateFormatCalendar?: object\n /* Whether to render an avatar for the current user; default is false, only show avatars for other users */\n isUserAvatarVisible?: boolean\n /* When false, avatars will only be displayed when a consecutive message is from the same user on the same day; default is false */\n isAvatarVisibleForEveryMessage?: boolean\n /* Render the message avatar at the top of consecutive messages, rather than the bottom; default is false */\n isAvatarOnTop?: boolean\n /* Extra props to be passed to the <Image> component created by the default renderMessageImage */\n imageProps?: MessageImageProps<TMessage>\n /**\n * @deprecated Not read anywhere - the input toolbar has no height floor. Use\n * `textInputProps.style` to constrain the composer instead. Will be removed\n * in 5.0.0. See https://github.com/kesha-antonov/react-native-chat/issues/14\n */\n minInputToolbarHeight?: number\n /* Extra props to be passed to the <TextInput>. See https://reactnative.dev/docs/textinput */\n textInputProps?: Partial<React.ComponentProps<typeof TextInput>>\n /* Force send button */\n isSendButtonAlwaysVisible?: boolean\n /* Image style */\n imageStyle?: StyleProp<ViewStyle>\n /**\n * @deprecated Not read anywhere - `Composer` derives its minimum from its own\n * stylesheet and grows via `onContentSizeChange`. Use `textInputProps.style`\n * to constrain the composer instead. Will be removed in 5.0.0.\n * See https://github.com/kesha-antonov/react-native-chat/issues/14\n */\n minComposerHeight?: number\n /**\n * @deprecated Not read anywhere. Use `textInputProps.style` to constrain the\n * composer instead. Will be removed in 5.0.0.\n * See https://github.com/kesha-antonov/react-native-chat/issues/14\n */\n maxComposerHeight?: number\n actions?: AttachmentAction[]\n actionSheetOptionTintColor?: string\n quickReplyStyle?: StyleProp<ViewStyle>\n quickReplyTextStyle?: StyleProp<TextStyle>\n quickReplyContainerStyle?: StyleProp<ViewStyle>\n /* optional prop used to place customView below text, image and video views; default is false */\n isCustomViewBottom?: boolean\n timeTextStyle?: LeftRightStyle<TextStyle>\n /* Custom action sheet */\n actionSheet?: () => {\n showActionSheetWithOptions: (\n options: ActionSheetOptions,\n callback: (buttonIndex: number) => void | Promise<void>\n ) => void\n }\n /* Callback when a message avatar is tapped */\n onPressAvatar?: (user: User) => void\n /* Callback when a message avatar is tapped */\n onLongPressAvatar?: (user: User) => void\n /* Generate an id for new messages. Defaults to a simple random string generator */\n messageIdGenerator?: (message?: TMessage) => string\n /* Callback when sending a message */\n onSend?: (messages: TMessage[]) => void\n /* Render a loading view when initializing */\n renderLoading?: () => React.ReactNode\n /**\n * The big greeting on the empty-chat card, sent as a message when tapped. `null` leaves it\n * out, keeping just the \"No messages here yet...\" card.\n * @default '👋'\n */\n emptyChatGreeting?: string | null\n /* Custom message avatar; set to null to not render any avatar for the message */\n renderAvatar?: null | ((props: AvatarProps<TMessage>) => React.ReactNode)\n /* Custom message bubble */\n renderBubble?: (props: BubbleProps<TMessage>) => React.ReactNode\n /* Custom system message */\n renderSystemMessage?: (props: SystemMessageProps<TMessage>) => React.ReactNode\n /* Callback when a message bubble is pressed; default is to do nothing */\n onPressMessage?: (context: unknown, message: TMessage) => void\n /* Callback when a message bubble is long-pressed; default is to show an ActionSheet with \"Copy Text\" (see example using showActionSheetWithOptions()) */\n onLongPressMessage?: (context: unknown, message: TMessage) => void\n /* Custom Username container */\n renderUsername?: (user: User) => React.ReactNode\n /* Reverses display order of messages; default is true */\n /* Custom message text */\n renderMessageText?: (messageText: MessageTextProps<TMessage>) => React.ReactNode\n /* Custom message image */\n renderMessageImage?: (props: MessageImageProps<TMessage>) => React.ReactNode\n /* Custom message video */\n renderMessageVideo?: (props: MessageVideoProps<TMessage>) => React.ReactNode\n /* Custom message audio */\n renderMessageAudio?: (props: MessageAudioProps<TMessage>) => React.ReactNode\n /* Custom message location */\n renderMessageLocation?: (props: MessageLocationProps<TMessage>) => React.ReactNode\n /** Custom file bubble for `IMessage.file` (a document cell by default). */\n renderMessageFile?: (props: MessageFileProps<TMessage>) => React.ReactNode\n /* Custom view inside the bubble */\n renderCustomView?: (props: BubbleProps<TMessage>) => React.ReactNode\n /* Custom time inside a message */\n renderTime?: (props: TimeProps<TMessage>) => React.ReactNode\n /* Custom component to render below the MessagesContainer */\n renderChatFooter?: () => React.ReactNode\n /* Custom message composer container. Can be a component, element, render function, or null */\n renderInputToolbar?: React.ComponentType<InputToolbarProps<TMessage>> | React.ReactElement | ((props: InputToolbarProps<TMessage>) => React.ReactNode) | null\n /* Custom text input message composer */\n renderComposer?: (props: ComposerProps) => React.ReactNode\n /* Custom action button on the left of the message composer */\n renderActions?: (props: ActionsProps) => React.ReactNode\n /* Custom send button; you can pass children to the original Send component quite easily, for example to use a custom icon (example) */\n renderSend?: (props: SendProps<TMessage>) => React.ReactNode\n /* Custom second line of actions below the message composer */\n renderAccessory?: (props: InputToolbarProps<TMessage>) => React.ReactNode\n /* Callback when the Action button is pressed (if set, the default actionSheet will not be used) */\n onPressActionButton?: () => void\n /* Extra props to be passed to the MessageText component */\n messageTextProps?: Partial<MessageTextProps<TMessage>>\n renderQuickReplies?: (\n quickReplies: QuickRepliesProps<TMessage>\n ) => React.ReactNode\n renderQuickReplySend?: () => React.ReactNode\n keyboardProviderProps?: React.ComponentProps<typeof KeyboardProvider>\n /**\n * Render the built-in `KeyboardProvider` wrapper.\n * Turn this off when your app already mounts its own `KeyboardProvider`\n * (e.g. once at the root), or when the default `statusBarTranslucent` /\n * `navigationBarTranslucent` edge-to-edge behavior causes layout shift,\n * flicker on mount, or a header/content jump on Android/Expo.\n * Default is `true`.\n */\n enableKeyboardProvider?: boolean\n /** Props for KeyboardAvoidingView. Use `keyboardVerticalOffset` to account for headers or iOS predictive text bar (~44pt). */\n keyboardAvoidingViewProps?: KeyboardAvoidingViewProps\n /**\n * Render the `GestureHandlerRootView` Chat mounts around itself. Unlike\n * `KeyboardProvider`, an existing `GestureHandlerRootView` can't be detected from\n * here - `react-native-gesture-handler` doesn't expose that publicly - so turn\n * this off yourself when your app (or a library it uses, e.g. a bottom sheet)\n * already mounts one at the root. Nesting a second one is not just redundant: it\n * changes the native view hierarchy around the composer, which has been observed\n * to make a rare Fabric/Yoga layout assertion on iOS more likely (#17). Default is\n * `true`.\n */\n enableGestureHandlerRootView?: boolean\n /** Enable animated day label that appears on scroll; default is true */\n isDayAnimationEnabled?: boolean\n\n /** Reply functionality configuration */\n reply?: ReplyProps<TMessage>\n /** Emoji reactions configuration */\n reactions?: ReactionsProps<TMessage>\n /**\n * Long-press context menu actions. An array replaces the built-in actions. A function gets\n * the message and the built-in actions for it, and returns what to show - so you can add to,\n * filter or reorder them:\n *\n * ```tsx\n * messageActions={(message, defaults) => [...defaults.filter(a => a.key !== 'copy'), myAction]}\n * ```\n */\n messageActions?: MessageMenuItem[] | ((message: TMessage, defaults: MessageMenuItem[]) => MessageMenuItem[])\n /**\n * The built-in long-press actions, in this order: Reply, Copy, Forward, Pin / Unpin,\n * Edit, Select, Delete. Each shows only when it can work (Copy needs text and a clipboard peer;\n * Edit needs your own text message and `onEditMessage`; Forward, Pin and Delete need their\n * callbacks; Select needs something to do with a selection - a clipboard, Forward or Delete).\n * `true` (default) offers them all; an array picks and orders them; `false` turns them off.\n * They are also off when `onLongPressMessage` is set and `messageActions` is not, so an app\n * that already handles long-press keeps doing so.\n */\n defaultMessageActions?: boolean | MessageActionKey[]\n /**\n * Turns on the \"Edit\" action for your own text messages. Edit puts the text into the\n * composer under an \"Editing\" banner; sending calls this with the message and the new text\n * instead of `onSend`.\n */\n onEditMessage?: (message: TMessage, text: string) => void\n /** Turns on the \"Delete\" action. */\n onDeleteMessage?: (message: TMessage) => void\n /** Turns on the \"Forward\" action. */\n onForwardMessage?: (message: TMessage) => void\n /**\n * Forwards the messages checked in selection mode, oldest first. Without it the selection\n * bar's Forward calls `onForwardMessage` once per message.\n */\n onForwardMessages?: (messages: TMessage[]) => void\n /**\n * Deletes the messages checked in selection mode, oldest first. Without it the selection\n * bar's Delete calls `onDeleteMessage` once per message.\n */\n onDeleteMessages?: (messages: TMessage[]) => void\n /**\n * Called whenever the selection changes in multi-select mode (entered from the\n * menu's \"Select\"), with the checked messages in the order they were checked - an empty array\n * once it ends.\n */\n onSelectionChange?: (messages: TMessage[]) => void\n /**\n * The bar that replaces the composer while messages are selected (count, Copy, Forward,\n * Delete). Return your own, or `null` to keep the composer and drive the selection from your\n * header through `onSelectionChange`.\n */\n renderSelectionBar?: ((props: SelectionBarProps & { messages: TMessage[] }) => React.ReactNode) | null\n /**\n * Turns on the \"Pin\" action; it reads \"Unpin\" on a message with `isPinned`. Called with the\n * message either way - flip its `isPinned` to toggle.\n */\n onPinMessage?: (message: TMessage) => void\n /**\n * Controls whether message bubbles attach the tap / long-press gestures that\n * `reactions` and `messageActions` rely on. Pass `false` (or a predicate\n * returning `false`) for messages rendering natively interactive content -\n * a video player with its own controls, a map, a WebView - whose touches\n * must not compete with the bubble.\n * Note: with gestures off, those messages can no longer open the reaction\n * picker or the context menu.\n * @default true\n */\n isMessageGestureEnabled?: boolean | ((message: TMessage) => boolean)\n /**\n * Called when the composer's emoji button is pressed, instead of opening the built-in emoji\n * keyboard. Passing it shows the button even with `emojiKeyboard={false}`.\n */\n onPressEmoji?: () => void\n /**\n * The built-in emoji keyboard: the emoji button opens it in the\n * system keyboard's place, and a tap inserts at the caret - whether or not you control `text`.\n * On by default; `false` hides the emoji button. An object configures it:\n * `{ columns, categories, recents, isSearchEnabled, renderEmojiKeyboard }`.\n */\n emojiKeyboard?: boolean | EmojiKeyboardProps\n /**\n * The built-in attachment menu behind the composer's paperclip:\n * a photo grid with numbered selection, a caption and \"Send N\", plus File and Location tabs.\n * Each tab shows only when its optional peer is installed; picks become `IMessage`s sent\n * through `onSend`. On by default; `false` hides the paperclip. `actions`,\n * `onPressActionButton` and `renderActions` take precedence. An object configures it:\n * `{ tabs, onPick, renderAttachmentMenu }`.\n */\n attachments?: boolean | AttachmentsProps<TMessage>\n /**\n * Whether the composer accepts multiple lines. `true` (default) keeps the\n * return key inserting a newline; `false` turns it into Send.\n */\n isMultiline?: boolean\n /**\n * Hold-to-record voice notes. On by default when the optional `expo-audio` is\n * installed; `false` turns them off, an object configures them (`minDurationMs`, ...).\n */\n audioRecording?: boolean | AudioRecordingProps\n /**\n * Round video notes, recorded in the chat. On by default when `react-native-vision-camera`\n * is installed (the mic button then toggles to the camera with a tap);\n * `false` turns them off. `{ isEnabled: true }` additionally falls back to the system camera\n * (`expo-image-picker`) when vision-camera is missing.\n */\n videoRecording?: boolean | VideoRecordingProps\n /** Playback speed and auto-play-next for voice and round video notes */\n mediaPlayback?: MediaPlaybackProps\n /**\n * Handlers for the media buttons: the download arrow of a message with\n * `isDownloadRequired` and the cancel ✕ of one with `transfer`.\n */\n mediaTransfer?: MediaTransferProps\n /**\n * The history is loading: a spinner in a service-colored circle, centred over the\n * empty list. Messages already passed stay visible under it.\n */\n isLoading?: boolean\n /**\n * The chat background. By default Chat draws a swirl gradient wallpaper from\n * `theme.wallpaper` (turning one step per message you send). Return your own element to\n * replace it - an image, a gradient, `ChatWallpaper` with other props - or pass `null` for\n * the plain `theme.colors.background`.\n */\n renderWallpaper?: (() => React.ReactNode) | null\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IMessage } from '../Models';
|
|
2
|
+
import { ChatProps } from './types';
|
|
3
|
+
/** The theme, labels, direction and colour scheme the chat resolves once and hands down. */
|
|
4
|
+
export declare function useChatContextValue<TMessage extends IMessage>({ locale, forceRTL, colorScheme: colorSchemeProp, theme, darkTheme, icons, labels, actionSheet, }: Pick<ChatProps<TMessage>, 'locale' | 'forceRTL' | 'colorScheme' | 'theme' | 'darkTheme' | 'icons' | 'labels' | 'actionSheet'>): {
|
|
5
|
+
resolvedTheme: import("..").ChatTheme;
|
|
6
|
+
resolvedLabels: import("..").ChatLabels;
|
|
7
|
+
contextValues: {
|
|
8
|
+
actionSheet: () => {
|
|
9
|
+
showActionSheetWithOptions: (options: import("..").ActionSheetOptions, callback: (buttonIndex: number) => void | Promise<void>) => void;
|
|
10
|
+
};
|
|
11
|
+
getLocale: () => string;
|
|
12
|
+
getIsRTL: () => boolean;
|
|
13
|
+
getColorScheme: () => "light" | "dark" | null;
|
|
14
|
+
getTheme: () => import("..").ChatTheme;
|
|
15
|
+
getIcons: () => Partial<Record<import("..").IconName, import("..").IconRenderer>> | undefined;
|
|
16
|
+
getLabels: () => import("..").ChatLabels;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=useChatContextValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChatContextValue.d.ts","sourceRoot":"","sources":["../../src/Chat/useChatContextValue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAGpC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,4FAA4F;AAC5F,wBAAgB,mBAAmB,CAAC,QAAQ,SAAS,QAAQ,EAAG,EAC9D,MAAa,EACb,QAAQ,EACR,WAAW,EAAE,eAAe,EAC5B,KAAK,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,WAAW,GACZ,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,aAAa,CAAC;;;;;;;;;;;;;;EA8C/H"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { useColorScheme } from 'react-native';
|
|
4
|
+
import { normalizeColorScheme } from '../hooks/useColorScheme';
|
|
5
|
+
import { resolveLabels } from '../i18n';
|
|
6
|
+
import { isRTLLocale } from '../rtl';
|
|
7
|
+
import { resolveTheme } from '../Theme';
|
|
8
|
+
/** The theme, labels, direction and colour scheme the chat resolves once and hands down. */
|
|
9
|
+
export function useChatContextValue(t0) {
|
|
10
|
+
const $ = _c(36);
|
|
11
|
+
const {
|
|
12
|
+
locale: t1,
|
|
13
|
+
forceRTL,
|
|
14
|
+
colorScheme: colorSchemeProp,
|
|
15
|
+
theme,
|
|
16
|
+
darkTheme,
|
|
17
|
+
icons,
|
|
18
|
+
labels,
|
|
19
|
+
actionSheet
|
|
20
|
+
} = t0;
|
|
21
|
+
const locale = t1 === undefined ? "en" : t1;
|
|
22
|
+
const systemColorScheme = useColorScheme();
|
|
23
|
+
const t2 = colorSchemeProp !== undefined ? colorSchemeProp : systemColorScheme;
|
|
24
|
+
let t3;
|
|
25
|
+
if ($[0] !== t2) {
|
|
26
|
+
t3 = normalizeColorScheme(t2);
|
|
27
|
+
$[0] = t2;
|
|
28
|
+
$[1] = t3;
|
|
29
|
+
} else {
|
|
30
|
+
t3 = $[1];
|
|
31
|
+
}
|
|
32
|
+
const colorScheme = t3;
|
|
33
|
+
let t4;
|
|
34
|
+
if ($[2] !== colorScheme || $[3] !== darkTheme || $[4] !== theme) {
|
|
35
|
+
t4 = resolveTheme(colorScheme, theme, darkTheme);
|
|
36
|
+
$[2] = colorScheme;
|
|
37
|
+
$[3] = darkTheme;
|
|
38
|
+
$[4] = theme;
|
|
39
|
+
$[5] = t4;
|
|
40
|
+
} else {
|
|
41
|
+
t4 = $[5];
|
|
42
|
+
}
|
|
43
|
+
const resolvedTheme = t4;
|
|
44
|
+
let t5;
|
|
45
|
+
if ($[6] !== labels || $[7] !== locale) {
|
|
46
|
+
t5 = resolveLabels(locale, labels);
|
|
47
|
+
$[6] = labels;
|
|
48
|
+
$[7] = locale;
|
|
49
|
+
$[8] = t5;
|
|
50
|
+
} else {
|
|
51
|
+
t5 = $[8];
|
|
52
|
+
}
|
|
53
|
+
const resolvedLabels = t5;
|
|
54
|
+
let t6;
|
|
55
|
+
if ($[9] !== forceRTL || $[10] !== locale) {
|
|
56
|
+
t6 = forceRTL ?? isRTLLocale(locale);
|
|
57
|
+
$[9] = forceRTL;
|
|
58
|
+
$[10] = locale;
|
|
59
|
+
$[11] = t6;
|
|
60
|
+
} else {
|
|
61
|
+
t6 = $[11];
|
|
62
|
+
}
|
|
63
|
+
const isRTL = t6;
|
|
64
|
+
const t7 = actionSheet || _temp2;
|
|
65
|
+
let t8;
|
|
66
|
+
if ($[12] !== locale) {
|
|
67
|
+
t8 = () => locale;
|
|
68
|
+
$[12] = locale;
|
|
69
|
+
$[13] = t8;
|
|
70
|
+
} else {
|
|
71
|
+
t8 = $[13];
|
|
72
|
+
}
|
|
73
|
+
let t9;
|
|
74
|
+
if ($[14] !== isRTL) {
|
|
75
|
+
t9 = () => isRTL;
|
|
76
|
+
$[14] = isRTL;
|
|
77
|
+
$[15] = t9;
|
|
78
|
+
} else {
|
|
79
|
+
t9 = $[15];
|
|
80
|
+
}
|
|
81
|
+
let t10;
|
|
82
|
+
if ($[16] !== colorScheme) {
|
|
83
|
+
t10 = () => colorScheme;
|
|
84
|
+
$[16] = colorScheme;
|
|
85
|
+
$[17] = t10;
|
|
86
|
+
} else {
|
|
87
|
+
t10 = $[17];
|
|
88
|
+
}
|
|
89
|
+
let t11;
|
|
90
|
+
if ($[18] !== resolvedTheme) {
|
|
91
|
+
t11 = () => resolvedTheme;
|
|
92
|
+
$[18] = resolvedTheme;
|
|
93
|
+
$[19] = t11;
|
|
94
|
+
} else {
|
|
95
|
+
t11 = $[19];
|
|
96
|
+
}
|
|
97
|
+
let t12;
|
|
98
|
+
if ($[20] !== icons) {
|
|
99
|
+
t12 = () => icons;
|
|
100
|
+
$[20] = icons;
|
|
101
|
+
$[21] = t12;
|
|
102
|
+
} else {
|
|
103
|
+
t12 = $[21];
|
|
104
|
+
}
|
|
105
|
+
let t13;
|
|
106
|
+
if ($[22] !== resolvedLabels) {
|
|
107
|
+
t13 = () => resolvedLabels;
|
|
108
|
+
$[22] = resolvedLabels;
|
|
109
|
+
$[23] = t13;
|
|
110
|
+
} else {
|
|
111
|
+
t13 = $[23];
|
|
112
|
+
}
|
|
113
|
+
let t14;
|
|
114
|
+
if ($[24] !== t10 || $[25] !== t11 || $[26] !== t12 || $[27] !== t13 || $[28] !== t7 || $[29] !== t8 || $[30] !== t9) {
|
|
115
|
+
t14 = {
|
|
116
|
+
actionSheet: t7,
|
|
117
|
+
getLocale: t8,
|
|
118
|
+
getIsRTL: t9,
|
|
119
|
+
getColorScheme: t10,
|
|
120
|
+
getTheme: t11,
|
|
121
|
+
getIcons: t12,
|
|
122
|
+
getLabels: t13
|
|
123
|
+
};
|
|
124
|
+
$[24] = t10;
|
|
125
|
+
$[25] = t11;
|
|
126
|
+
$[26] = t12;
|
|
127
|
+
$[27] = t13;
|
|
128
|
+
$[28] = t7;
|
|
129
|
+
$[29] = t8;
|
|
130
|
+
$[30] = t9;
|
|
131
|
+
$[31] = t14;
|
|
132
|
+
} else {
|
|
133
|
+
t14 = $[31];
|
|
134
|
+
}
|
|
135
|
+
const contextValues = t14;
|
|
136
|
+
let t15;
|
|
137
|
+
if ($[32] !== contextValues || $[33] !== resolvedLabels || $[34] !== resolvedTheme) {
|
|
138
|
+
t15 = {
|
|
139
|
+
resolvedTheme,
|
|
140
|
+
resolvedLabels,
|
|
141
|
+
contextValues
|
|
142
|
+
};
|
|
143
|
+
$[32] = contextValues;
|
|
144
|
+
$[33] = resolvedLabels;
|
|
145
|
+
$[34] = resolvedTheme;
|
|
146
|
+
$[35] = t15;
|
|
147
|
+
} else {
|
|
148
|
+
t15 = $[35];
|
|
149
|
+
}
|
|
150
|
+
return t15;
|
|
151
|
+
}
|
|
152
|
+
function _temp2() {
|
|
153
|
+
return {
|
|
154
|
+
showActionSheetWithOptions: _temp
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function _temp() {}
|
|
158
|
+
//# sourceMappingURL=useChatContextValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChatContextValue.js","names":["useMemo","useColorScheme","normalizeColorScheme","resolveLabels","isRTLLocale","resolveTheme","useChatContextValue","t0","$","_c","locale","t1","forceRTL","colorScheme","colorSchemeProp","theme","darkTheme","icons","labels","actionSheet","undefined","systemColorScheme","t2","t3","t4","resolvedTheme","t5","resolvedLabels","t6","isRTL","t7","_temp2","t8","t9","t10","t11","t12","t13","t14","getLocale","getIsRTL","getColorScheme","getTheme","getIcons","getLabels","contextValues","t15","showActionSheetWithOptions","_temp"],"sources":["../../src/Chat/useChatContextValue.ts"],"sourcesContent":["import { useMemo } from 'react'\nimport { useColorScheme } from 'react-native'\nimport { normalizeColorScheme } from '../hooks/useColorScheme'\nimport { resolveLabels } from '../i18n'\nimport { IMessage } from '../Models'\nimport { isRTLLocale } from '../rtl'\nimport { resolveTheme } from '../Theme'\nimport { ChatProps } from './types'\n\n/** The theme, labels, direction and colour scheme the chat resolves once and hands down. */\nexport function useChatContextValue<TMessage extends IMessage> ({\n locale = 'en',\n forceRTL,\n colorScheme: colorSchemeProp,\n theme,\n darkTheme,\n icons,\n labels,\n actionSheet,\n}: Pick<ChatProps<TMessage>, 'locale' | 'forceRTL' | 'colorScheme' | 'theme' | 'darkTheme' | 'icons' | 'labels' | 'actionSheet'>) {\n const systemColorScheme = useColorScheme()\n // RN 0.86 can report 'unspecified'; normalize it away before it reaches the theme.\n const colorScheme = normalizeColorScheme(\n colorSchemeProp !== undefined ? colorSchemeProp : systemColorScheme\n )\n\n // Resolve the theme once per change so its identity is stable; this is what\n // makes on-the-fly theme / color-scheme switching propagate to every memoized\n // StyleSheet without rebuilding styles on unrelated renders.\n const resolvedTheme = useMemo(\n () => resolveTheme(colorScheme, theme, darkTheme),\n [colorScheme, theme, darkTheme]\n )\n\n const resolvedLabels = useMemo(\n () => resolveLabels(locale, labels),\n [locale, labels]\n )\n\n const isRTL = useMemo(\n () => forceRTL ?? isRTLLocale(locale),\n [forceRTL, locale]\n )\n\n const contextValues = useMemo(\n () => ({\n // The built-in UI no longer uses an action sheet; this stays as an\n // escape hatch for consumers who pass their own `actionSheet` (e.g.\n // @expo/react-native-action-sheet). Defaults to a no-op.\n actionSheet:\n actionSheet ||\n (() => ({\n showActionSheetWithOptions: () => {},\n })),\n getLocale: () => locale,\n getIsRTL: () => isRTL,\n getColorScheme: () => colorScheme,\n getTheme: () => resolvedTheme,\n getIcons: () => icons,\n getLabels: () => resolvedLabels,\n }),\n [actionSheet, locale, isRTL, colorScheme, resolvedTheme, icons, resolvedLabels]\n )\n\n return { resolvedTheme, resolvedLabels, contextValues }\n}\n"],"mappings":";AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,cAAc,QAAQ,cAAc;AAC7C,SAASC,oBAAoB,QAAQ,yBAAyB;AAC9D,SAASC,aAAa,QAAQ,SAAS;AAEvC,SAASC,WAAW,QAAQ,QAAQ;AACpC,SAASC,YAAY,QAAQ,UAAU;AAGvC;AACA,OAAO,SAAAC,oBAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAyD;IAAAC,MAAA,EAAAC,EAAA;IAAAC,QAAA;IAAAC,WAAA,EAAAC,eAAA;IAAAC,KAAA;IAAAC,SAAA;IAAAC,KAAA;IAAAC,MAAA;IAAAC;EAAA,IAAAZ,EASgE;EAR9H,MAAAG,MAAA,GAAAC,EAAa,KAAbS,SAAa,GAAb,IAAa,GAAbT,EAAa;EASb,MAAAU,iBAAA,GAA0BpB,cAAc,CAAC,CAAC;EAGxC,MAAAqB,EAAA,GAAAR,eAAe,KAAKM,SAA+C,GAAnEN,eAAmE,GAAnEO,iBAAmE;EAAA,IAAAE,EAAA;EAAA,IAAAf,CAAA,QAAAc,EAAA;IADjDC,EAAA,GAAArB,oBAAoB,CACtCoB,EACF,CAAC;IAAAd,CAAA,MAAAc,EAAA;IAAAd,CAAA,MAAAe,EAAA;EAAA;IAAAA,EAAA,GAAAf,CAAA;EAAA;EAFD,MAAAK,WAAA,GAAoBU,EAEnB;EAAA,IAAAC,EAAA;EAAA,IAAAhB,CAAA,QAAAK,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P,GAAmB;MAAAQ,QAAA,EACnBP,GAAW;MAAAQ,SAAA,EACVP;IACb,CAAC;IAAA7B,CAAA,OAAA0B,GAAA;IAAA1B,CAAA,OAAA2B,GAAA;IAAA3B,CAAA,OAAA4B,GAAA;IAAA5B,CAAA,OAAA6B,GAAA;IAAA7B,CAAA,OAAAsB,EAAA;IAAAtB,CAAA,OAAAwB,EAAA;IAAAxB,CAAA,OAAAyB,EAAA;IAAAzB,CAAA,OAAA8B,GAAA;EAAA;IAAAA,GAAA,GAAA9B,CAAA;EAAA;EAhBH,MAAAqC,aAAA,GACSP,GAeN;EAEF,IAAAQ,GAAA;EAAA,IAAAtC,CAAA,SAAAqC,aAAA,IAAArC,CAAA,SAAAmB,cAAA,IAAAnB,CAAA,SAAAiB,aAAA;IAEMqB,GAAA;MAAArB,aAAA;MAAAE,cAAA;MAAAkB;IAA+C,CAAC;IAAArC,CAAA,OAAAqC,aAAA;IAAArC,CAAA,OAAAmB,cAAA;IAAAnB,CAAA,OAAAiB,aAAA;IAAAjB,CAAA,OAAAsC,GAAA;EAAA;IAAAA,GAAA,GAAAtC,CAAA;EAAA;EAAA,OAAhDsC,GAAgD;AAAA;AAtDlD,SAAAf,OAAA;EAAA,OAyCS;IAAAgB,0BAAA,EACsBC;EAC9B,CAAC;AAAA;AA3CF,SAAAA,MAAA","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IMessage } from '../Models';
|
|
2
|
+
import { ChatProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* The chat's media controllers: the playlist players register with, the media button handlers
|
|
5
|
+
* and the gallery the media viewer pages through. Also keeps the latest messages in a ref, for
|
|
6
|
+
* what reads them only when it needs them.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useChatMedia<TMessage extends IMessage>({ messages, isInverted, mediaPlayback, mediaTransfer, }: {
|
|
9
|
+
messages: TMessage[];
|
|
10
|
+
isInverted: boolean;
|
|
11
|
+
mediaPlayback: ChatProps<TMessage>['mediaPlayback'];
|
|
12
|
+
mediaTransfer: ChatProps<TMessage>['mediaTransfer'];
|
|
13
|
+
}): {
|
|
14
|
+
mediaController: import("../components/mediaPlayback").MediaPlaybackController;
|
|
15
|
+
mediaTransferController: {
|
|
16
|
+
get: () => import("..").MediaTransferProps | undefined;
|
|
17
|
+
set: (next: import("..").MediaTransferProps | undefined) => void;
|
|
18
|
+
};
|
|
19
|
+
mediaGallery: import("../components/mediaViewer/gallery").MediaGallery;
|
|
20
|
+
messagesRef: import("react").RefObject<TMessage[]>;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=useChatMedia.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChatMedia.d.ts","sourceRoot":"","sources":["../../src/Chat/useChatMedia.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,QAAQ,SAAS,QAAQ,EAAG,EACvD,QAAQ,EACR,UAAU,EACV,aAAa,EACb,aAAa,GACd,EAAE;IACD,QAAQ,EAAE,QAAQ,EAAE,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAA;IACnD,aAAa,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAA;CACpD;;;;;;;;EAoDA"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { useEffect, useInsertionEffect, useRef, useState } from 'react';
|
|
3
|
+
import { createMediaPlaybackController, setPlaybackRate, subscribePlaybackRate } from '../components/mediaPlayback';
|
|
4
|
+
import { createMediaTransferController } from '../components/mediaTransfer';
|
|
5
|
+
import { createMediaGallery } from '../components/mediaViewer/gallery';
|
|
6
|
+
/**
|
|
7
|
+
* The chat's media controllers: the playlist players register with, the media button handlers
|
|
8
|
+
* and the gallery the media viewer pages through. Also keeps the latest messages in a ref, for
|
|
9
|
+
* what reads them only when it needs them.
|
|
10
|
+
*/
|
|
11
|
+
export function useChatMedia(t0) {
|
|
12
|
+
const $ = _c(18);
|
|
13
|
+
const {
|
|
14
|
+
messages,
|
|
15
|
+
isInverted,
|
|
16
|
+
mediaPlayback,
|
|
17
|
+
mediaTransfer
|
|
18
|
+
} = t0;
|
|
19
|
+
const [mediaController] = useState(createMediaPlaybackController);
|
|
20
|
+
mediaController.setMessages(messages, isInverted);
|
|
21
|
+
mediaController.setOptions({
|
|
22
|
+
isAutoPlayNextEnabled: mediaPlayback?.isAutoPlayNextEnabled ?? true,
|
|
23
|
+
isRoundVideoAutoplayEnabled: mediaPlayback?.isRoundVideoAutoplayEnabled ?? false,
|
|
24
|
+
onMediaRead: mediaPlayback?.onMediaRead,
|
|
25
|
+
isNearEar: mediaPlayback?.isNearEar,
|
|
26
|
+
onTranscribe: mediaPlayback?.onTranscribe,
|
|
27
|
+
onViewOnceEnd: mediaPlayback?.onViewOnceEnd,
|
|
28
|
+
isFloatingRoundNoteEnabled: mediaPlayback?.isFloatingRoundNoteEnabled ?? true
|
|
29
|
+
});
|
|
30
|
+
const [mediaTransferController] = useState(createMediaTransferController);
|
|
31
|
+
mediaTransferController.set(mediaTransfer);
|
|
32
|
+
const messagesRef = useRef(messages);
|
|
33
|
+
const [mediaGallery] = useState(createMediaGallery);
|
|
34
|
+
let t1;
|
|
35
|
+
if ($[0] !== mediaGallery || $[1] !== messages) {
|
|
36
|
+
t1 = () => {
|
|
37
|
+
messagesRef.current = messages;
|
|
38
|
+
mediaGallery.setMessages(messages);
|
|
39
|
+
};
|
|
40
|
+
$[0] = mediaGallery;
|
|
41
|
+
$[1] = messages;
|
|
42
|
+
$[2] = t1;
|
|
43
|
+
} else {
|
|
44
|
+
t1 = $[2];
|
|
45
|
+
}
|
|
46
|
+
useInsertionEffect(t1);
|
|
47
|
+
let t2;
|
|
48
|
+
if ($[3] !== mediaController.notePlayers) {
|
|
49
|
+
t2 = () => {
|
|
50
|
+
mediaController.notePlayers.setActive(true);
|
|
51
|
+
return () => mediaController.notePlayers.setActive(false);
|
|
52
|
+
};
|
|
53
|
+
$[3] = mediaController.notePlayers;
|
|
54
|
+
$[4] = t2;
|
|
55
|
+
} else {
|
|
56
|
+
t2 = $[4];
|
|
57
|
+
}
|
|
58
|
+
let t3;
|
|
59
|
+
if ($[5] !== mediaController) {
|
|
60
|
+
t3 = [mediaController];
|
|
61
|
+
$[5] = mediaController;
|
|
62
|
+
$[6] = t3;
|
|
63
|
+
} else {
|
|
64
|
+
t3 = $[6];
|
|
65
|
+
}
|
|
66
|
+
useEffect(t2, t3);
|
|
67
|
+
const initialPlaybackRate = mediaPlayback?.playbackRate;
|
|
68
|
+
let t4;
|
|
69
|
+
let t5;
|
|
70
|
+
if ($[7] !== initialPlaybackRate) {
|
|
71
|
+
t4 = () => {
|
|
72
|
+
if (initialPlaybackRate != null) {
|
|
73
|
+
setPlaybackRate(initialPlaybackRate);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
t5 = [initialPlaybackRate];
|
|
77
|
+
$[7] = initialPlaybackRate;
|
|
78
|
+
$[8] = t4;
|
|
79
|
+
$[9] = t5;
|
|
80
|
+
} else {
|
|
81
|
+
t4 = $[8];
|
|
82
|
+
t5 = $[9];
|
|
83
|
+
}
|
|
84
|
+
useEffect(t4, t5);
|
|
85
|
+
const onPlaybackRateChange = mediaPlayback?.onPlaybackRateChange;
|
|
86
|
+
const onPlaybackRateChangeRef = useRef(onPlaybackRateChange);
|
|
87
|
+
let t6;
|
|
88
|
+
if ($[10] !== onPlaybackRateChange) {
|
|
89
|
+
t6 = () => {
|
|
90
|
+
onPlaybackRateChangeRef.current = onPlaybackRateChange;
|
|
91
|
+
};
|
|
92
|
+
$[10] = onPlaybackRateChange;
|
|
93
|
+
$[11] = t6;
|
|
94
|
+
} else {
|
|
95
|
+
t6 = $[11];
|
|
96
|
+
}
|
|
97
|
+
useInsertionEffect(t6);
|
|
98
|
+
let t7;
|
|
99
|
+
let t8;
|
|
100
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
101
|
+
t7 = () => subscribePlaybackRate(rate => onPlaybackRateChangeRef.current?.(rate));
|
|
102
|
+
t8 = [];
|
|
103
|
+
$[12] = t7;
|
|
104
|
+
$[13] = t8;
|
|
105
|
+
} else {
|
|
106
|
+
t7 = $[12];
|
|
107
|
+
t8 = $[13];
|
|
108
|
+
}
|
|
109
|
+
useEffect(t7, t8);
|
|
110
|
+
let t9;
|
|
111
|
+
if ($[14] !== mediaController || $[15] !== mediaGallery || $[16] !== mediaTransferController) {
|
|
112
|
+
t9 = {
|
|
113
|
+
mediaController,
|
|
114
|
+
mediaTransferController,
|
|
115
|
+
mediaGallery,
|
|
116
|
+
messagesRef
|
|
117
|
+
};
|
|
118
|
+
$[14] = mediaController;
|
|
119
|
+
$[15] = mediaGallery;
|
|
120
|
+
$[16] = mediaTransferController;
|
|
121
|
+
$[17] = t9;
|
|
122
|
+
} else {
|
|
123
|
+
t9 = $[17];
|
|
124
|
+
}
|
|
125
|
+
return t9;
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=useChatMedia.js.map
|