@kesha-antonov/react-native-chat 5.0.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +485 -178
- package/lib/Actions.d.ts.map +1 -1
- package/lib/Actions.js +121 -42
- package/lib/Actions.js.map +1 -1
- package/lib/Avatar.d.ts.map +1 -1
- package/lib/Avatar.js +171 -86
- package/lib/Avatar.js.map +1 -1
- package/lib/Bubble/BubbleBody.d.ts +15 -0
- package/lib/Bubble/BubbleBody.d.ts.map +1 -0
- package/lib/Bubble/BubbleBody.js +218 -0
- package/lib/Bubble/BubbleBody.js.map +1 -0
- package/lib/Bubble/BubbleContent.d.ts +23 -0
- package/lib/Bubble/BubbleContent.d.ts.map +1 -0
- package/lib/Bubble/BubbleContent.js +446 -0
- package/lib/Bubble/BubbleContent.js.map +1 -0
- package/lib/Bubble/BubbleMenu.d.ts +45 -0
- package/lib/Bubble/BubbleMenu.d.ts.map +1 -0
- package/lib/Bubble/BubbleMenu.js +289 -0
- package/lib/Bubble/BubbleMenu.js.map +1 -0
- package/lib/Bubble/BubbleMeta.d.ts +17 -0
- package/lib/Bubble/BubbleMeta.d.ts.map +1 -0
- package/lib/Bubble/BubbleMeta.js +453 -0
- package/lib/Bubble/BubbleMeta.js.map +1 -0
- package/lib/Bubble/LiftedBubble.d.ts +18 -0
- package/lib/Bubble/LiftedBubble.d.ts.map +1 -0
- package/lib/Bubble/LiftedBubble.js +109 -0
- package/lib/Bubble/LiftedBubble.js.map +1 -0
- package/lib/Bubble/PressableBubbleRow.d.ts +33 -0
- package/lib/Bubble/PressableBubbleRow.d.ts.map +1 -0
- package/lib/Bubble/PressableBubbleRow.js +172 -0
- package/lib/Bubble/PressableBubbleRow.js.map +1 -0
- package/lib/Bubble/index.d.ts +6 -13
- package/lib/Bubble/index.d.ts.map +1 -1
- package/lib/Bubble/index.js +379 -509
- package/lib/Bubble/index.js.map +1 -1
- package/lib/Bubble/layout.d.ts +47 -0
- package/lib/Bubble/layout.d.ts.map +1 -0
- package/lib/Bubble/layout.js +258 -0
- package/lib/Bubble/layout.js.map +1 -0
- package/lib/Bubble/styles.d.ts +108 -16
- package/lib/Bubble/styles.d.ts.map +1 -1
- package/lib/Bubble/styles.js +227 -107
- package/lib/Bubble/styles.js.map +1 -1
- package/lib/Bubble/types.d.ts +19 -3
- package/lib/Bubble/types.d.ts.map +1 -1
- package/lib/Bubble/types.js.map +1 -1
- package/lib/Chat/Chat.d.ts +5 -0
- package/lib/Chat/Chat.d.ts.map +1 -0
- package/lib/Chat/Chat.js +464 -0
- package/lib/Chat/Chat.js.map +1 -0
- package/lib/Chat/ChatBackground.d.ts +16 -0
- package/lib/Chat/ChatBackground.d.ts.map +1 -0
- package/lib/Chat/ChatBackground.js +43 -0
- package/lib/Chat/ChatBackground.js.map +1 -0
- package/lib/Chat/ChatKeyboardAvoidingView.js +19 -4
- package/lib/Chat/ChatKeyboardAvoidingView.js.map +1 -1
- package/lib/Chat/ChatMessageList.d.ts +27 -0
- package/lib/Chat/ChatMessageList.d.ts.map +1 -0
- package/lib/Chat/ChatMessageList.js +220 -0
- package/lib/Chat/ChatMessageList.js.map +1 -0
- package/lib/Chat/ChatProviders.d.ts +18 -0
- package/lib/Chat/ChatProviders.d.ts.map +1 -0
- package/lib/Chat/ChatProviders.js +87 -0
- package/lib/Chat/ChatProviders.js.map +1 -0
- package/lib/Chat/ChatSafeAreaProvider.d.ts +35 -0
- package/lib/Chat/ChatSafeAreaProvider.d.ts.map +1 -0
- package/lib/Chat/ChatSafeAreaProvider.js +123 -0
- package/lib/Chat/ChatSafeAreaProvider.js.map +1 -0
- package/lib/Chat/ChatSelectionBar.d.ts +20 -0
- package/lib/Chat/ChatSelectionBar.d.ts.map +1 -0
- package/lib/Chat/ChatSelectionBar.js +141 -0
- package/lib/Chat/ChatSelectionBar.js.map +1 -0
- package/lib/Chat/ChatWrapper.d.ts +11 -0
- package/lib/Chat/ChatWrapper.d.ts.map +1 -0
- package/lib/Chat/ChatWrapper.js +98 -0
- package/lib/Chat/ChatWrapper.js.map +1 -0
- package/lib/Chat/ComposerHost.d.ts +20 -0
- package/lib/Chat/ComposerHost.d.ts.map +1 -0
- package/lib/Chat/ComposerHost.js +118 -0
- package/lib/Chat/ComposerHost.js.map +1 -0
- package/lib/Chat/index.d.ts +1 -8
- package/lib/Chat/index.d.ts.map +1 -1
- package/lib/Chat/index.js +1 -337
- package/lib/Chat/index.js.map +1 -1
- package/lib/Chat/styles.d.ts +14 -2
- package/lib/Chat/styles.d.ts.map +1 -1
- package/lib/Chat/styles.js +19 -9
- package/lib/Chat/styles.js.map +1 -1
- package/lib/Chat/types.d.ts +145 -11
- package/lib/Chat/types.d.ts.map +1 -1
- package/lib/Chat/types.js.map +1 -1
- package/lib/Chat/useChatContextValue.d.ts +19 -0
- package/lib/Chat/useChatContextValue.d.ts.map +1 -0
- package/lib/Chat/useChatContextValue.js +158 -0
- package/lib/Chat/useChatContextValue.js.map +1 -0
- package/lib/Chat/useChatMedia.d.ts +22 -0
- package/lib/Chat/useChatMedia.d.ts.map +1 -0
- package/lib/Chat/useChatMedia.js +127 -0
- package/lib/Chat/useChatMedia.js.map +1 -0
- package/lib/Chat/useChatSelection.d.ts +15 -0
- package/lib/Chat/useChatSelection.d.ts.map +1 -0
- package/lib/Chat/useChatSelection.js +106 -0
- package/lib/Chat/useChatSelection.js.map +1 -0
- package/lib/Chat/useComposerHandlers.d.ts +34 -0
- package/lib/Chat/useComposerHandlers.d.ts.map +1 -0
- package/lib/Chat/useComposerHandlers.js +330 -0
- package/lib/Chat/useComposerHandlers.js.map +1 -0
- package/lib/Chat/useComposerState.d.ts +27 -0
- package/lib/Chat/useComposerState.d.ts.map +1 -0
- package/lib/Chat/useComposerState.js +272 -0
- package/lib/Chat/useComposerState.js.map +1 -0
- package/lib/Chat/useInitialLayout.d.ts +19 -0
- package/lib/Chat/useInitialLayout.d.ts.map +1 -0
- package/lib/Chat/useInitialLayout.js +70 -0
- package/lib/Chat/useInitialLayout.js.map +1 -0
- package/lib/Chat/useMessageActions.d.ts +37 -0
- package/lib/Chat/useMessageActions.d.ts.map +1 -0
- package/lib/Chat/useMessageActions.js +323 -0
- package/lib/Chat/useMessageActions.js.map +1 -0
- package/lib/Chat/useMessageNavigation.d.ts +21 -0
- package/lib/Chat/useMessageNavigation.d.ts.map +1 -0
- package/lib/Chat/useMessageNavigation.js +149 -0
- package/lib/Chat/useMessageNavigation.js.map +1 -0
- package/lib/Chat/useOptionalPeerHints.d.ts +6 -0
- package/lib/Chat/useOptionalPeerHints.d.ts.map +1 -0
- package/lib/Chat/useOptionalPeerHints.js +63 -0
- package/lib/Chat/useOptionalPeerHints.js.map +1 -0
- package/lib/Chat/useResolvedReactions.d.ts +31 -0
- package/lib/Chat/useResolvedReactions.d.ts.map +1 -0
- package/lib/Chat/useResolvedReactions.js +95 -0
- package/lib/Chat/useResolvedReactions.js.map +1 -0
- package/lib/ChatAvatar.d.ts.map +1 -1
- package/lib/ChatAvatar.js +229 -84
- package/lib/ChatAvatar.js.map +1 -1
- package/lib/ChatContext.js +20 -10
- package/lib/ChatContext.js.map +1 -1
- package/lib/ChatList/ChatListAvatar.d.ts +21 -0
- package/lib/ChatList/ChatListAvatar.d.ts.map +1 -0
- package/lib/ChatList/ChatListAvatar.js +178 -0
- package/lib/ChatList/ChatListAvatar.js.map +1 -0
- package/lib/ChatList/ChatListCell.d.ts +16 -0
- package/lib/ChatList/ChatListCell.d.ts.map +1 -0
- package/lib/ChatList/ChatListCell.js +506 -0
- package/lib/ChatList/ChatListCell.js.map +1 -0
- package/lib/ChatList/ChatListShimmer.d.ts +3 -0
- package/lib/ChatList/ChatListShimmer.d.ts.map +1 -0
- package/lib/ChatList/ChatListShimmer.js +235 -0
- package/lib/ChatList/ChatListShimmer.js.map +1 -0
- package/lib/ChatList/index.d.ts +16 -0
- package/lib/ChatList/index.d.ts.map +1 -0
- package/lib/ChatList/index.js +1301 -0
- package/lib/ChatList/index.js.map +1 -0
- package/lib/ChatList/types.d.ts +128 -0
- package/lib/ChatList/types.d.ts.map +1 -0
- package/lib/ChatList/types.js +2 -0
- package/lib/ChatList/types.js.map +1 -0
- package/lib/ChatList/useChatList.d.ts +30 -0
- package/lib/ChatList/useChatList.d.ts.map +1 -0
- package/lib/ChatList/useChatList.js +211 -0
- package/lib/ChatList/useChatList.js.map +1 -0
- package/lib/ChatList/utils.d.ts +28 -0
- package/lib/ChatList/utils.d.ts.map +1 -0
- package/lib/ChatList/utils.js +60 -0
- package/lib/ChatList/utils.js.map +1 -0
- package/lib/Color.js +19 -19
- package/lib/Color.js.map +1 -1
- package/lib/Composer.d.ts.map +1 -1
- package/lib/Composer.js +148 -70
- package/lib/Composer.js.map +1 -1
- package/lib/Constant.js +4 -4
- package/lib/Constant.js.map +1 -1
- package/lib/Day/index.d.ts.map +1 -1
- package/lib/Day/index.js +115 -28
- package/lib/Day/index.js.map +1 -1
- package/lib/Day/styles.d.ts +3 -3
- package/lib/Day/styles.d.ts.map +1 -1
- package/lib/Day/styles.js +20 -17
- package/lib/Day/styles.js.map +1 -1
- package/lib/Day/types.js.map +1 -1
- package/lib/Icons.d.ts +1 -1
- package/lib/Icons.d.ts.map +1 -1
- package/lib/Icons.js.map +1 -1
- package/lib/InputToolbar/FieldGroup.d.ts +28 -0
- package/lib/InputToolbar/FieldGroup.d.ts.map +1 -0
- package/lib/InputToolbar/FieldGroup.js +143 -0
- package/lib/InputToolbar/FieldGroup.js.map +1 -0
- package/lib/InputToolbar/TakePreviewBar.d.ts +17 -0
- package/lib/InputToolbar/TakePreviewBar.d.ts.map +1 -0
- package/lib/InputToolbar/TakePreviewBar.js +126 -0
- package/lib/InputToolbar/TakePreviewBar.js.map +1 -0
- package/lib/InputToolbar/animations.d.ts +105 -0
- package/lib/InputToolbar/animations.d.ts.map +1 -0
- package/lib/InputToolbar/animations.js +238 -0
- package/lib/InputToolbar/animations.js.map +1 -0
- package/lib/InputToolbar/fragments.d.ts +13 -0
- package/lib/InputToolbar/fragments.d.ts.map +1 -0
- package/lib/InputToolbar/fragments.js +207 -0
- package/lib/InputToolbar/fragments.js.map +1 -0
- package/lib/InputToolbar/index.d.ts +7 -0
- package/lib/InputToolbar/index.d.ts.map +1 -0
- package/lib/InputToolbar/index.js +444 -0
- package/lib/InputToolbar/index.js.map +1 -0
- package/lib/InputToolbar/recordingOptions.d.ts +14 -0
- package/lib/InputToolbar/recordingOptions.d.ts.map +1 -0
- package/lib/InputToolbar/recordingOptions.js +38 -0
- package/lib/InputToolbar/recordingOptions.js.map +1 -0
- package/lib/InputToolbar/styles.d.ts +118 -0
- package/lib/InputToolbar/styles.d.ts.map +1 -0
- package/lib/InputToolbar/styles.js +139 -0
- package/lib/InputToolbar/styles.js.map +1 -0
- package/lib/InputToolbar/types.d.ts +77 -0
- package/lib/InputToolbar/types.d.ts.map +1 -0
- package/lib/InputToolbar/types.js +2 -0
- package/lib/InputToolbar/types.js.map +1 -0
- package/lib/InputToolbar/useActionsFragment.d.ts +6 -0
- package/lib/InputToolbar/useActionsFragment.d.ts.map +1 -0
- package/lib/InputToolbar/useActionsFragment.js +139 -0
- package/lib/InputToolbar/useActionsFragment.js.map +1 -0
- package/lib/InputToolbar/useComposerEditing.d.ts +11 -0
- package/lib/InputToolbar/useComposerEditing.d.ts.map +1 -0
- package/lib/InputToolbar/useComposerEditing.js +116 -0
- package/lib/InputToolbar/useComposerEditing.js.map +1 -0
- package/lib/InputToolbar/useEmojiButton.d.ts +14 -0
- package/lib/InputToolbar/useEmojiButton.d.ts.map +1 -0
- package/lib/InputToolbar/useEmojiButton.js +120 -0
- package/lib/InputToolbar/useEmojiButton.js.map +1 -0
- package/lib/InputToolbar/useKeyboardInset.d.ts +9 -0
- package/lib/InputToolbar/useKeyboardInset.d.ts.map +1 -0
- package/lib/InputToolbar/useKeyboardInset.js +25 -0
- package/lib/InputToolbar/useKeyboardInset.js.map +1 -0
- package/lib/InputToolbar/useRecordMode.d.ts +19 -0
- package/lib/InputToolbar/useRecordMode.d.ts.map +1 -0
- package/lib/InputToolbar/useRecordMode.js +124 -0
- package/lib/InputToolbar/useRecordMode.js.map +1 -0
- package/lib/InputToolbar/useRecordTake.d.ts +46 -0
- package/lib/InputToolbar/useRecordTake.d.ts.map +1 -0
- package/lib/InputToolbar/useRecordTake.js +315 -0
- package/lib/InputToolbar/useRecordTake.js.map +1 -0
- package/lib/InputToolbar/useReturnAnimations.d.ts +18 -0
- package/lib/InputToolbar/useReturnAnimations.d.ts.map +1 -0
- package/lib/InputToolbar/useReturnAnimations.js +30 -0
- package/lib/InputToolbar/useReturnAnimations.js.map +1 -0
- package/lib/InputToolbar/useRightControl.d.ts +40 -0
- package/lib/InputToolbar/useRightControl.d.ts.map +1 -0
- package/lib/InputToolbar/useRightControl.js +129 -0
- package/lib/InputToolbar/useRightControl.js.map +1 -0
- package/lib/LoadEarlierMessages.d.ts +2 -0
- package/lib/LoadEarlierMessages.d.ts.map +1 -1
- package/lib/LoadEarlierMessages.js +153 -40
- package/lib/LoadEarlierMessages.js.map +1 -1
- package/lib/Message/SwipeToReply.d.ts +23 -0
- package/lib/Message/SwipeToReply.d.ts.map +1 -0
- package/lib/Message/SwipeToReply.js +337 -0
- package/lib/Message/SwipeToReply.js.map +1 -0
- package/lib/Message/index.d.ts.map +1 -1
- package/lib/Message/index.js +415 -176
- package/lib/Message/index.js.map +1 -1
- package/lib/Message/styles.d.ts +2 -2
- package/lib/Message/styles.js +14 -14
- package/lib/Message/styles.js.map +1 -1
- package/lib/Message/types.d.ts +5 -0
- package/lib/Message/types.d.ts.map +1 -1
- package/lib/Message/types.js.map +1 -1
- package/lib/MessageAudio.d.ts.map +1 -1
- package/lib/MessageAudio.js +647 -107
- package/lib/MessageAudio.js.map +1 -1
- package/lib/MessageFile.d.ts +11 -0
- package/lib/MessageFile.d.ts.map +1 -0
- package/lib/MessageFile.js +315 -0
- package/lib/MessageFile.js.map +1 -0
- package/lib/MessageImage.d.ts +2 -0
- package/lib/MessageImage.d.ts.map +1 -1
- package/lib/MessageImage.js +430 -161
- package/lib/MessageImage.js.map +1 -1
- package/lib/MessageLocation.d.ts.map +1 -1
- package/lib/MessageLocation.js +180 -68
- package/lib/MessageLocation.js.map +1 -1
- package/lib/MessageText.d.ts +8 -1
- package/lib/MessageText.d.ts.map +1 -1
- package/lib/MessageText.js +261 -69
- package/lib/MessageText.js.map +1 -1
- package/lib/MessageVideo/ExpoVideoPlayer.d.ts +6 -0
- package/lib/MessageVideo/ExpoVideoPlayer.d.ts.map +1 -0
- package/lib/MessageVideo/ExpoVideoPlayer.js +68 -0
- package/lib/MessageVideo/ExpoVideoPlayer.js.map +1 -0
- package/lib/MessageVideo/MirroredVideo.d.ts +17 -0
- package/lib/MessageVideo/MirroredVideo.d.ts.map +1 -0
- package/lib/MessageVideo/MirroredVideo.js +223 -0
- package/lib/MessageVideo/MirroredVideo.js.map +1 -0
- package/lib/MessageVideo/RoundNotePlayer.d.ts +4 -0
- package/lib/MessageVideo/RoundNotePlayer.d.ts.map +1 -0
- package/lib/MessageVideo/RoundNotePlayer.js +560 -0
- package/lib/MessageVideo/RoundNotePlayer.js.map +1 -0
- package/lib/MessageVideo/RoundTranscription.d.ts +27 -0
- package/lib/MessageVideo/RoundTranscription.d.ts.map +1 -0
- package/lib/MessageVideo/RoundTranscription.js +151 -0
- package/lib/MessageVideo/RoundTranscription.js.map +1 -0
- package/lib/MessageVideo/VideoTransferOverlay.d.ts +11 -0
- package/lib/MessageVideo/VideoTransferOverlay.d.ts.map +1 -0
- package/lib/MessageVideo/VideoTransferOverlay.js +88 -0
- package/lib/MessageVideo/VideoTransferOverlay.js.map +1 -0
- package/lib/MessageVideo/constants.d.ts +13 -0
- package/lib/MessageVideo/constants.d.ts.map +1 -0
- package/lib/MessageVideo/constants.js +15 -0
- package/lib/MessageVideo/constants.js.map +1 -0
- package/lib/{MessageVideo.d.ts → MessageVideo/index.d.ts} +2 -2
- package/lib/MessageVideo/index.d.ts.map +1 -0
- package/lib/MessageVideo/index.js +92 -0
- package/lib/MessageVideo/index.js.map +1 -0
- package/lib/MessageVideo/liftedMedia.d.ts +13 -0
- package/lib/MessageVideo/liftedMedia.d.ts.map +1 -0
- package/lib/MessageVideo/liftedMedia.js +106 -0
- package/lib/MessageVideo/liftedMedia.js.map +1 -0
- package/lib/MessageVideo/styles.d.ts +71 -0
- package/lib/MessageVideo/styles.d.ts.map +1 -0
- package/lib/MessageVideo/styles.js +78 -0
- package/lib/MessageVideo/styles.js.map +1 -0
- package/lib/MessageVideo/types.d.ts +27 -0
- package/lib/MessageVideo/types.d.ts.map +1 -0
- package/lib/MessageVideo/types.js +2 -0
- package/lib/MessageVideo/types.js.map +1 -0
- package/lib/MessageVideo/useNoteGrow.d.ts +16 -0
- package/lib/MessageVideo/useNoteGrow.d.ts.map +1 -0
- package/lib/MessageVideo/useNoteGrow.js +122 -0
- package/lib/MessageVideo/useNoteGrow.js.map +1 -0
- package/lib/MessageVideo/useNotePlayer.d.ts +14 -0
- package/lib/MessageVideo/useNotePlayer.d.ts.map +1 -0
- package/lib/MessageVideo/useNotePlayer.js +142 -0
- package/lib/MessageVideo/useNotePlayer.js.map +1 -0
- package/lib/MessageVideo/useRingSeek.d.ts +16 -0
- package/lib/MessageVideo/useRingSeek.d.ts.map +1 -0
- package/lib/MessageVideo/useRingSeek.js +157 -0
- package/lib/MessageVideo/useRingSeek.js.map +1 -0
- package/lib/MessageVideo/useRoundNotePlayback.d.ts +46 -0
- package/lib/MessageVideo/useRoundNotePlayback.d.ts.map +1 -0
- package/lib/MessageVideo/useRoundNotePlayback.js +508 -0
- package/lib/MessageVideo/useRoundNotePlayback.js.map +1 -0
- package/lib/MessageVideo/useSendFlightReveal.d.ts +9 -0
- package/lib/MessageVideo/useSendFlightReveal.d.ts.map +1 -0
- package/lib/MessageVideo/useSendFlightReveal.js +85 -0
- package/lib/MessageVideo/useSendFlightReveal.js.map +1 -0
- package/lib/MessageVideo/videoPlayers.d.ts +8 -0
- package/lib/MessageVideo/videoPlayers.d.ts.map +1 -0
- package/lib/MessageVideo/videoPlayers.js +33 -0
- package/lib/MessageVideo/videoPlayers.js.map +1 -0
- package/lib/MessagesContainer/components/DayAnimated/debug.js +38 -24
- package/lib/MessagesContainer/components/DayAnimated/debug.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.d.ts +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/index.js +244 -112
- package/lib/MessagesContainer/components/DayAnimated/index.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/styles.d.ts +3 -3
- package/lib/MessagesContainer/components/DayAnimated/styles.js +8 -8
- package/lib/MessagesContainer/components/DayAnimated/styles.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/types.d.ts +4 -2
- package/lib/MessagesContainer/components/DayAnimated/types.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/types.js.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.d.ts.map +1 -1
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.js +34 -25
- package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.js.map +1 -1
- package/lib/MessagesContainer/components/Item/index.d.ts +3 -4
- package/lib/MessagesContainer/components/Item/index.d.ts.map +1 -1
- package/lib/MessagesContainer/components/Item/index.js +289 -119
- package/lib/MessagesContainer/components/Item/index.js.map +1 -1
- package/lib/MessagesContainer/components/Item/types.d.ts +5 -0
- package/lib/MessagesContainer/components/Item/types.d.ts.map +1 -1
- package/lib/MessagesContainer/components/Item/types.js.map +1 -1
- package/lib/MessagesContainer/components/PageDownCounter.d.ts +14 -0
- package/lib/MessagesContainer/components/PageDownCounter.d.ts.map +1 -0
- package/lib/MessagesContainer/components/PageDownCounter.js +209 -0
- package/lib/MessagesContainer/components/PageDownCounter.js.map +1 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.d.ts +21 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.d.ts.map +1 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.js +195 -0
- package/lib/MessagesContainer/components/ScrollToBottomButton.js.map +1 -0
- package/lib/MessagesContainer/components/dayLayout.d.ts +2 -2
- package/lib/MessagesContainer/components/dayLayout.d.ts.map +1 -1
- package/lib/MessagesContainer/components/dayLayout.js +18 -13
- package/lib/MessagesContainer/components/dayLayout.js.map +1 -1
- package/lib/MessagesContainer/index.d.ts.map +1 -1
- package/lib/MessagesContainer/index.js +361 -420
- package/lib/MessagesContainer/index.js.map +1 -1
- package/lib/MessagesContainer/listState.d.ts +18 -0
- package/lib/MessagesContainer/listState.d.ts.map +1 -0
- package/lib/MessagesContainer/listState.js +25 -0
- package/lib/MessagesContainer/listState.js.map +1 -0
- package/lib/MessagesContainer/listTransitions.d.ts +10 -0
- package/lib/MessagesContainer/listTransitions.d.ts.map +1 -0
- package/lib/MessagesContainer/listTransitions.js +12 -0
- package/lib/MessagesContainer/listTransitions.js.map +1 -0
- package/lib/MessagesContainer/pageDownReturn.d.ts +11 -0
- package/lib/MessagesContainer/pageDownReturn.d.ts.map +1 -0
- package/lib/MessagesContainer/pageDownReturn.js +9 -0
- package/lib/MessagesContainer/pageDownReturn.js.map +1 -0
- package/lib/MessagesContainer/rowConfig.d.ts +39 -0
- package/lib/MessagesContainer/rowConfig.d.ts.map +1 -0
- package/lib/MessagesContainer/rowConfig.js +161 -0
- package/lib/MessagesContainer/rowConfig.js.map +1 -0
- package/lib/MessagesContainer/rowStore.d.ts +37 -0
- package/lib/MessagesContainer/rowStore.d.ts.map +1 -0
- package/lib/MessagesContainer/rowStore.js +140 -0
- package/lib/MessagesContainer/rowStore.js.map +1 -0
- package/lib/MessagesContainer/styles.d.ts +37 -31
- package/lib/MessagesContainer/styles.d.ts.map +1 -1
- package/lib/MessagesContainer/styles.js +75 -54
- package/lib/MessagesContainer/styles.js.map +1 -1
- package/lib/MessagesContainer/types.d.ts +33 -30
- package/lib/MessagesContainer/types.d.ts.map +1 -1
- package/lib/MessagesContainer/types.js +1 -9
- package/lib/MessagesContainer/types.js.map +1 -1
- package/lib/MessagesContainer/useCellLayouts.d.ts +17 -0
- package/lib/MessagesContainer/useCellLayouts.d.ts.map +1 -0
- package/lib/MessagesContainer/useCellLayouts.js +133 -0
- package/lib/MessagesContainer/useCellLayouts.js.map +1 -0
- package/lib/MessagesContainer/useDaysPositions.d.ts +18 -0
- package/lib/MessagesContainer/useDaysPositions.d.ts.map +1 -0
- package/lib/MessagesContainer/useDaysPositions.js +109 -0
- package/lib/MessagesContainer/useDaysPositions.js.map +1 -0
- package/lib/MessagesContainer/useListChrome.d.ts +14 -0
- package/lib/MessagesContainer/useListChrome.d.ts.map +1 -0
- package/lib/MessagesContainer/useListChrome.js +176 -0
- package/lib/MessagesContainer/useListChrome.js.map +1 -0
- package/lib/MessagesContainer/useListMetrics.d.ts +32 -0
- package/lib/MessagesContainer/useListMetrics.d.ts.map +1 -0
- package/lib/MessagesContainer/useListMetrics.js +176 -0
- package/lib/MessagesContainer/useListMetrics.js.map +1 -0
- package/lib/MessagesContainer/useMessageRows.d.ts +46 -0
- package/lib/MessagesContainer/useMessageRows.d.ts.map +1 -0
- package/lib/MessagesContainer/useMessageRows.js +228 -0
- package/lib/MessagesContainer/useMessageRows.js.map +1 -0
- package/lib/MessagesContainer/usePageDownUnread.d.ts +27 -0
- package/lib/MessagesContainer/usePageDownUnread.d.ts.map +1 -0
- package/lib/MessagesContainer/usePageDownUnread.js +152 -0
- package/lib/MessagesContainer/usePageDownUnread.js.map +1 -0
- package/lib/MessagesContainer/useScrollActivity.d.ts +13 -0
- package/lib/MessagesContainer/useScrollActivity.d.ts.map +1 -0
- package/lib/MessagesContainer/useScrollActivity.js +84 -0
- package/lib/MessagesContainer/useScrollActivity.js.map +1 -0
- package/lib/MessagesContainer/useScrollToBottom.d.ts +26 -0
- package/lib/MessagesContainer/useScrollToBottom.d.ts.map +1 -0
- package/lib/MessagesContainer/useScrollToBottom.js +164 -0
- package/lib/MessagesContainer/useScrollToBottom.js.map +1 -0
- package/lib/MessagesContainer/useTapToClosePanels.d.ts +7 -0
- package/lib/MessagesContainer/useTapToClosePanels.d.ts.map +1 -0
- package/lib/MessagesContainer/useTapToClosePanels.js +55 -0
- package/lib/MessagesContainer/useTapToClosePanels.js.map +1 -0
- package/lib/MessagesContainer/viewability.d.ts +9 -0
- package/lib/MessagesContainer/viewability.d.ts.map +1 -0
- package/lib/MessagesContainer/viewability.js +110 -0
- package/lib/MessagesContainer/viewability.js.map +1 -0
- package/lib/Models.d.ts +188 -3
- package/lib/Models.d.ts.map +1 -1
- package/lib/Models.js.map +1 -1
- package/lib/QuickReplies.js +234 -101
- package/lib/QuickReplies.js.map +1 -1
- package/lib/Reactions/MessageReactions.d.ts +5 -0
- package/lib/Reactions/MessageReactions.d.ts.map +1 -1
- package/lib/Reactions/MessageReactions.js +359 -80
- package/lib/Reactions/MessageReactions.js.map +1 -1
- package/lib/Reactions/ReactionPicker.d.ts +5 -3
- package/lib/Reactions/ReactionPicker.d.ts.map +1 -1
- package/lib/Reactions/ReactionPicker.js +68 -82
- package/lib/Reactions/ReactionPicker.js.map +1 -1
- package/lib/Reactions/index.js +1 -0
- package/lib/Reactions/index.js.map +1 -1
- package/lib/Reactions/types.d.ts +49 -5
- package/lib/Reactions/types.d.ts.map +1 -1
- package/lib/Reactions/types.js.map +1 -1
- package/lib/Reply/index.js.map +1 -1
- package/lib/Reply/types.d.ts +19 -3
- package/lib/Reply/types.d.ts.map +1 -1
- package/lib/Reply/types.js.map +1 -1
- package/lib/Send.d.ts +2 -2
- package/lib/Send.d.ts.map +1 -1
- package/lib/Send.js +218 -47
- package/lib/Send.js.map +1 -1
- package/lib/SystemMessage.d.ts.map +1 -1
- package/lib/SystemMessage.js +106 -37
- package/lib/SystemMessage.js.map +1 -1
- package/lib/Theme.d.ts +320 -23
- package/lib/Theme.d.ts.map +1 -1
- package/lib/Theme.js +548 -119
- package/lib/Theme.js.map +1 -1
- package/lib/Time.d.ts +7 -0
- package/lib/Time.d.ts.map +1 -1
- package/lib/Time.js +122 -30
- package/lib/Time.js.map +1 -1
- package/lib/TypingIndicator/index.d.ts +9 -1
- package/lib/TypingIndicator/index.d.ts.map +1 -1
- package/lib/TypingIndicator/index.js +318 -94
- package/lib/TypingIndicator/index.js.map +1 -1
- package/lib/TypingIndicator/styles.d.ts +6 -2
- package/lib/TypingIndicator/styles.d.ts.map +1 -1
- package/lib/TypingIndicator/styles.js +22 -18
- package/lib/TypingIndicator/styles.js.map +1 -1
- package/lib/TypingIndicator/types.js.map +1 -1
- package/lib/attachments/AttachmentButton.d.ts +18 -0
- package/lib/attachments/AttachmentButton.d.ts.map +1 -0
- package/lib/attachments/AttachmentButton.js +110 -0
- package/lib/attachments/AttachmentButton.js.map +1 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.d.ts +15 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.js +165 -0
- package/lib/attachments/AttachmentMenu/CaptionBar.js.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.js +267 -0
- package/lib/attachments/AttachmentMenu/GalleryCell.js.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.d.ts +18 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.js +184 -0
- package/lib/attachments/AttachmentMenu/GalleryGrid.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabBar.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/TabBar.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabBar.js +127 -0
- package/lib/attachments/AttachmentMenu/TabBar.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabButton.d.ts +15 -0
- package/lib/attachments/AttachmentMenu/TabButton.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabButton.js +219 -0
- package/lib/attachments/AttachmentMenu/TabButton.js.map +1 -0
- package/lib/attachments/AttachmentMenu/TabPanel.d.ts +17 -0
- package/lib/attachments/AttachmentMenu/TabPanel.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/TabPanel.js +170 -0
- package/lib/attachments/AttachmentMenu/TabPanel.js.map +1 -0
- package/lib/attachments/AttachmentMenu/constants.d.ts +54 -0
- package/lib/attachments/AttachmentMenu/constants.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/constants.js +79 -0
- package/lib/attachments/AttachmentMenu/constants.js.map +1 -0
- package/lib/attachments/AttachmentMenu/index.d.ts +16 -0
- package/lib/attachments/AttachmentMenu/index.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/index.js +498 -0
- package/lib/attachments/AttachmentMenu/index.js.map +1 -0
- package/lib/attachments/AttachmentMenu/styles.d.ts +259 -0
- package/lib/attachments/AttachmentMenu/styles.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/styles.js +262 -0
- package/lib/attachments/AttachmentMenu/styles.js.map +1 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.d.ts +14 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.d.ts.map +1 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.js +74 -0
- package/lib/attachments/AttachmentMenu/useSheetPresence.js.map +1 -0
- package/lib/attachments/buildMessages.d.ts +36 -0
- package/lib/attachments/buildMessages.d.ts.map +1 -0
- package/lib/attachments/buildMessages.js +192 -0
- package/lib/attachments/buildMessages.js.map +1 -0
- package/lib/attachments/gallery.d.ts +28 -0
- package/lib/attachments/gallery.d.ts.map +1 -0
- package/lib/attachments/gallery.js +245 -0
- package/lib/attachments/gallery.js.map +1 -0
- package/lib/attachments/types.d.ts +69 -0
- package/lib/attachments/types.d.ts.map +1 -0
- package/lib/attachments/types.js +2 -0
- package/lib/attachments/types.js.map +1 -0
- package/lib/colorUtils.d.ts +24 -0
- package/lib/colorUtils.d.ts.map +1 -0
- package/lib/colorUtils.js +71 -0
- package/lib/colorUtils.js.map +1 -0
- package/lib/components/AttachmentSheet.d.ts +1 -1
- package/lib/components/AttachmentSheet.d.ts.map +1 -1
- package/lib/components/AttachmentSheet.js +515 -155
- package/lib/components/AttachmentSheet.js.map +1 -1
- package/lib/components/BasicMarkdown.d.ts +7 -1
- package/lib/components/BasicMarkdown.d.ts.map +1 -1
- package/lib/components/BasicMarkdown.js +234 -184
- package/lib/components/BasicMarkdown.js.map +1 -1
- package/lib/components/BubbleBackground.d.ts +55 -0
- package/lib/components/BubbleBackground.d.ts.map +1 -0
- package/lib/components/BubbleBackground.js +513 -0
- package/lib/components/BubbleBackground.js.map +1 -0
- package/lib/components/ChatEmpty.d.ts +18 -0
- package/lib/components/ChatEmpty.d.ts.map +1 -0
- package/lib/components/ChatEmpty.js +125 -0
- package/lib/components/ChatEmpty.js.map +1 -0
- package/lib/components/ChatLoadingOverlay.d.ts +10 -0
- package/lib/components/ChatLoadingOverlay.d.ts.map +1 -0
- package/lib/components/ChatLoadingOverlay.js +89 -0
- package/lib/components/ChatLoadingOverlay.js.map +1 -0
- package/lib/components/ChatOverlay.d.ts +9 -0
- package/lib/components/ChatOverlay.d.ts.map +1 -0
- package/lib/components/ChatOverlay.js +60 -0
- package/lib/components/ChatOverlay.js.map +1 -0
- package/lib/components/ChatWallpaper.d.ts +32 -0
- package/lib/components/ChatWallpaper.d.ts.map +1 -0
- package/lib/components/ChatWallpaper.js +277 -0
- package/lib/components/ChatWallpaper.js.map +1 -0
- package/lib/components/ContextMenu/MenuCard.d.ts +21 -0
- package/lib/components/ContextMenu/MenuCard.d.ts.map +1 -0
- package/lib/components/ContextMenu/MenuCard.js +265 -0
- package/lib/components/ContextMenu/MenuCard.js.map +1 -0
- package/lib/components/ContextMenu/ReactionButton.d.ts +15 -0
- package/lib/components/ContextMenu/ReactionButton.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionButton.js +116 -0
- package/lib/components/ContextMenu/ReactionButton.js.map +1 -0
- package/lib/components/ContextMenu/ReactionFlight.d.ts +14 -0
- package/lib/components/ContextMenu/ReactionFlight.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionFlight.js +111 -0
- package/lib/components/ContextMenu/ReactionFlight.js.map +1 -0
- package/lib/components/ContextMenu/ReactionsBar.d.ts +35 -0
- package/lib/components/ContextMenu/ReactionsBar.d.ts.map +1 -0
- package/lib/components/ContextMenu/ReactionsBar.js +354 -0
- package/lib/components/ContextMenu/ReactionsBar.js.map +1 -0
- package/lib/components/ContextMenu/constants.d.ts +68 -0
- package/lib/components/ContextMenu/constants.d.ts.map +1 -0
- package/lib/components/ContextMenu/constants.js +105 -0
- package/lib/components/ContextMenu/constants.js.map +1 -0
- package/lib/components/ContextMenu/index.d.ts +12 -0
- package/lib/components/ContextMenu/index.d.ts.map +1 -0
- package/lib/components/ContextMenu/index.js +476 -0
- package/lib/components/ContextMenu/index.js.map +1 -0
- package/lib/components/ContextMenu/placement.d.ts +50 -0
- package/lib/components/ContextMenu/placement.d.ts.map +1 -0
- package/lib/components/ContextMenu/placement.js +117 -0
- package/lib/components/ContextMenu/placement.js.map +1 -0
- package/lib/components/ContextMenu/styles.d.ts +199 -0
- package/lib/components/ContextMenu/styles.d.ts.map +1 -0
- package/lib/components/ContextMenu/styles.js +169 -0
- package/lib/components/ContextMenu/styles.js.map +1 -0
- package/lib/components/ContextMenu/types.d.ts +62 -0
- package/lib/components/ContextMenu/types.d.ts.map +1 -0
- package/lib/components/ContextMenu/types.js +2 -0
- package/lib/components/ContextMenu/types.js.map +1 -0
- package/lib/components/ContextMenu/useExpandPanel.d.ts +11 -0
- package/lib/components/ContextMenu/useExpandPanel.d.ts.map +1 -0
- package/lib/components/ContextMenu/useExpandPanel.js +81 -0
- package/lib/components/ContextMenu/useExpandPanel.js.map +1 -0
- package/lib/components/ContextMenu/useMenuPresence.d.ts +17 -0
- package/lib/components/ContextMenu/useMenuPresence.d.ts.map +1 -0
- package/lib/components/ContextMenu/useMenuPresence.js +125 -0
- package/lib/components/ContextMenu/useMenuPresence.js.map +1 -0
- package/lib/components/FloatingRoundNote.d.ts +13 -0
- package/lib/components/FloatingRoundNote.d.ts.map +1 -0
- package/lib/components/FloatingRoundNote.js +541 -0
- package/lib/components/FloatingRoundNote.js.map +1 -0
- package/lib/components/GlassSurface.d.ts +16 -0
- package/lib/components/GlassSurface.d.ts.map +1 -0
- package/lib/components/GlassSurface.js +114 -0
- package/lib/components/GlassSurface.js.map +1 -0
- package/lib/components/Icon.js +57 -8
- package/lib/components/Icon.js.map +1 -1
- package/lib/components/LinkPreviewCard.d.ts +36 -0
- package/lib/components/LinkPreviewCard.d.ts.map +1 -0
- package/lib/components/LinkPreviewCard.js +416 -0
- package/lib/components/LinkPreviewCard.js.map +1 -0
- package/lib/components/LucideIcon.d.ts.map +1 -1
- package/lib/components/LucideIcon.js +103 -106
- package/lib/components/LucideIcon.js.map +1 -1
- package/lib/components/MarkdownMessageText.d.ts +17 -2
- package/lib/components/MarkdownMessageText.d.ts.map +1 -1
- package/lib/components/MarkdownMessageText.js +270 -22
- package/lib/components/MarkdownMessageText.js.map +1 -1
- package/lib/components/MediaCard.d.ts.map +1 -1
- package/lib/components/MediaCard.js +223 -85
- package/lib/components/MediaCard.js.map +1 -1
- package/lib/components/MediaControls.js +1094 -450
- package/lib/components/MediaControls.js.map +1 -1
- package/lib/components/MediaLoader.d.ts +21 -0
- package/lib/components/MediaLoader.d.ts.map +1 -0
- package/lib/components/MediaLoader.js +61 -0
- package/lib/components/MediaLoader.js.map +1 -0
- package/lib/components/MessageReply.d.ts +2 -2
- package/lib/components/MessageReply.d.ts.map +1 -1
- package/lib/components/MessageReply.js +266 -83
- package/lib/components/MessageReply.js.map +1 -1
- package/lib/components/MessageStatus.d.ts +23 -0
- package/lib/components/MessageStatus.d.ts.map +1 -0
- package/lib/components/MessageStatus.js +499 -0
- package/lib/components/MessageStatus.js.map +1 -0
- package/lib/components/NoteIndicators.d.ts +25 -0
- package/lib/components/NoteIndicators.d.ts.map +1 -0
- package/lib/components/NoteIndicators.js +206 -0
- package/lib/components/NoteIndicators.js.map +1 -0
- package/lib/components/NowPlayingBar.d.ts +15 -0
- package/lib/components/NowPlayingBar.d.ts.map +1 -0
- package/lib/components/NowPlayingBar.js +261 -0
- package/lib/components/NowPlayingBar.js.map +1 -0
- package/lib/components/PlayPauseIcon.d.ts +13 -0
- package/lib/components/PlayPauseIcon.d.ts.map +1 -0
- package/lib/components/PlayPauseIcon.js +187 -0
- package/lib/components/PlayPauseIcon.js.map +1 -0
- package/lib/components/PlaybackSpeedPill.d.ts +11 -0
- package/lib/components/PlaybackSpeedPill.d.ts.map +1 -0
- package/lib/components/PlaybackSpeedPill.js +350 -0
- package/lib/components/PlaybackSpeedPill.js.map +1 -0
- package/lib/components/RadialProgress.d.ts +70 -0
- package/lib/components/RadialProgress.d.ts.map +1 -0
- package/lib/components/RadialProgress.js +864 -0
- package/lib/components/RadialProgress.js.map +1 -0
- package/lib/components/RecordButton/LockPill.d.ts +27 -0
- package/lib/components/RecordButton/LockPill.d.ts.map +1 -0
- package/lib/components/RecordButton/LockPill.js +182 -0
- package/lib/components/RecordButton/LockPill.js.map +1 -0
- package/lib/components/RecordButton/ModeButton.d.ts +18 -0
- package/lib/components/RecordButton/ModeButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ModeButton.js +154 -0
- package/lib/components/RecordButton/ModeButton.js.map +1 -0
- package/lib/components/RecordButton/ResumeButton.d.ts +20 -0
- package/lib/components/RecordButton/ResumeButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ResumeButton.js +63 -0
- package/lib/components/RecordButton/ResumeButton.js.map +1 -0
- package/lib/components/RecordButton/Tooltips.d.ts +20 -0
- package/lib/components/RecordButton/Tooltips.d.ts.map +1 -0
- package/lib/components/RecordButton/Tooltips.js +191 -0
- package/lib/components/RecordButton/Tooltips.js.map +1 -0
- package/lib/components/RecordButton/ViewOnceButton.d.ts +16 -0
- package/lib/components/RecordButton/ViewOnceButton.d.ts.map +1 -0
- package/lib/components/RecordButton/ViewOnceButton.js +96 -0
- package/lib/components/RecordButton/ViewOnceButton.js.map +1 -0
- package/lib/components/RecordButton/constants.d.ts +52 -0
- package/lib/components/RecordButton/constants.d.ts.map +1 -0
- package/lib/components/RecordButton/constants.js +58 -0
- package/lib/components/RecordButton/constants.js.map +1 -0
- package/lib/components/RecordButton/index.d.ts +14 -0
- package/lib/components/RecordButton/index.d.ts.map +1 -0
- package/lib/components/RecordButton/index.js +382 -0
- package/lib/components/RecordButton/index.js.map +1 -0
- package/lib/components/RecordButton/styles.d.ts +155 -0
- package/lib/components/RecordButton/styles.d.ts.map +1 -0
- package/lib/components/RecordButton/styles.js +161 -0
- package/lib/components/RecordButton/styles.js.map +1 -0
- package/lib/components/RecordButton/types.d.ts +63 -0
- package/lib/components/RecordButton/types.d.ts.map +1 -0
- package/lib/components/RecordButton/types.js +2 -0
- package/lib/components/RecordButton/types.js.map +1 -0
- package/lib/components/RecordButton/useRecordGesture.d.ts +28 -0
- package/lib/components/RecordButton/useRecordGesture.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordGesture.js +263 -0
- package/lib/components/RecordButton/useRecordGesture.js.map +1 -0
- package/lib/components/RecordButton/useRecordHints.d.ts +27 -0
- package/lib/components/RecordButton/useRecordHints.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordHints.js +210 -0
- package/lib/components/RecordButton/useRecordHints.js.map +1 -0
- package/lib/components/RecordButton/useRecordSlideDistance.d.ts +3 -0
- package/lib/components/RecordButton/useRecordSlideDistance.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordSlideDistance.js +15 -0
- package/lib/components/RecordButton/useRecordSlideDistance.js.map +1 -0
- package/lib/components/RecordButton/useRecordTake.d.ts +41 -0
- package/lib/components/RecordButton/useRecordTake.d.ts.map +1 -0
- package/lib/components/RecordButton/useRecordTake.js +349 -0
- package/lib/components/RecordButton/useRecordTake.js.map +1 -0
- package/lib/components/RecordButton/useSendFlight.d.ts +25 -0
- package/lib/components/RecordButton/useSendFlight.d.ts.map +1 -0
- package/lib/components/RecordButton/useSendFlight.js +162 -0
- package/lib/components/RecordButton/useSendFlight.js.map +1 -0
- package/lib/components/RecordCircle.d.ts +92 -0
- package/lib/components/RecordCircle.d.ts.map +1 -0
- package/lib/components/RecordCircle.js +629 -0
- package/lib/components/RecordCircle.js.map +1 -0
- package/lib/components/RecordingBar.d.ts +24 -0
- package/lib/components/RecordingBar.d.ts.map +1 -0
- package/lib/components/RecordingBar.js +766 -0
- package/lib/components/RecordingBar.js.map +1 -0
- package/lib/components/ReplyPreview.js +318 -135
- package/lib/components/ReplyPreview.js.map +1 -1
- package/lib/components/SelectionBar.d.ts +17 -0
- package/lib/components/SelectionBar.d.ts.map +1 -0
- package/lib/components/SelectionBar.js +214 -0
- package/lib/components/SelectionBar.js.map +1 -0
- package/lib/components/SelectionCheckbox.d.ts +12 -0
- package/lib/components/SelectionCheckbox.d.ts.map +1 -0
- package/lib/components/SelectionCheckbox.js +104 -0
- package/lib/components/SelectionCheckbox.js.map +1 -0
- package/lib/components/SendIcon.js +60 -26
- package/lib/components/SendIcon.js.map +1 -1
- package/lib/components/ServiceSpinner.d.ts +17 -0
- package/lib/components/ServiceSpinner.d.ts.map +1 -0
- package/lib/components/ServiceSpinner.js +77 -0
- package/lib/components/ServiceSpinner.js.map +1 -0
- package/lib/components/Spinner.d.ts +18 -0
- package/lib/components/Spinner.d.ts.map +1 -0
- package/lib/components/Spinner.js +169 -0
- package/lib/components/Spinner.js.map +1 -0
- package/lib/components/StreamingCursor.js +54 -9
- package/lib/components/StreamingCursor.js.map +1 -1
- package/lib/components/Ticks.d.ts +6 -5
- package/lib/components/Ticks.d.ts.map +1 -1
- package/lib/components/Ticks.js +272 -82
- package/lib/components/Ticks.js.map +1 -1
- package/lib/components/TouchableOpacity.d.ts.map +1 -1
- package/lib/components/TouchableOpacity.js +153 -51
- package/lib/components/TouchableOpacity.js.map +1 -1
- package/lib/components/TranscribeButton.d.ts +45 -0
- package/lib/components/TranscribeButton.d.ts.map +1 -0
- package/lib/components/TranscribeButton.js +549 -0
- package/lib/components/TranscribeButton.js.map +1 -0
- package/lib/components/TypingStatus.d.ts +29 -0
- package/lib/components/TypingStatus.d.ts.map +1 -0
- package/lib/components/TypingStatus.js +446 -0
- package/lib/components/TypingStatus.js.map +1 -0
- package/lib/components/UnreadSeparator.d.ts +8 -0
- package/lib/components/UnreadSeparator.d.ts.map +1 -0
- package/lib/components/UnreadSeparator.js +101 -0
- package/lib/components/UnreadSeparator.js.map +1 -0
- package/lib/components/VideoNoteCapture/ProgressRing.d.ts +16 -0
- package/lib/components/VideoNoteCapture/ProgressRing.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/ProgressRing.js +75 -0
- package/lib/components/VideoNoteCapture/ProgressRing.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.d.ts +31 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.js +500 -0
- package/lib/components/VideoNoteCapture/VideoNoteCaptureView.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.d.ts +12 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.js +105 -0
- package/lib/components/VideoNoteCapture/VideoNotePreviewView.js.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.d.ts +12 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.js +95 -0
- package/lib/components/VideoNoteCapture/VideoNoteStage.js.map +1 -0
- package/lib/components/VideoNoteCapture/constants.d.ts +50 -0
- package/lib/components/VideoNoteCapture/constants.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/constants.js +53 -0
- package/lib/components/VideoNoteCapture/constants.js.map +1 -0
- package/lib/components/VideoNoteCapture/index.d.ts +3 -0
- package/lib/components/VideoNoteCapture/index.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/index.js +2 -0
- package/lib/components/VideoNoteCapture/index.js.map +1 -0
- package/lib/components/VideoNoteCapture/optional.d.ts +6 -0
- package/lib/components/VideoNoteCapture/optional.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/optional.js +15 -0
- package/lib/components/VideoNoteCapture/optional.js.map +1 -0
- package/lib/components/VideoNoteCapture/sessionState.d.ts +10 -0
- package/lib/components/VideoNoteCapture/sessionState.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/sessionState.js +19 -0
- package/lib/components/VideoNoteCapture/sessionState.js.map +1 -0
- package/lib/components/VideoNoteCapture/styles.d.ts +84 -0
- package/lib/components/VideoNoteCapture/styles.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/styles.js +86 -0
- package/lib/components/VideoNoteCapture/styles.js.map +1 -0
- package/lib/components/VideoNoteCapture/types.d.ts +54 -0
- package/lib/components/VideoNoteCapture/types.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/types.js +2 -0
- package/lib/components/VideoNoteCapture/types.js.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.d.ts +47 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.js +216 -0
- package/lib/components/VideoNoteCapture/useRoundAnimation.js.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.d.ts +14 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.js +61 -0
- package/lib/components/VideoNoteCapture/useRoundLayout.js.map +1 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.d.ts +25 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.d.ts.map +1 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.js +611 -0
- package/lib/components/VideoNoteCapture/useVideoNoteSession.js.map +1 -0
- package/lib/components/VideoNoteOverlay.d.ts +42 -11
- package/lib/components/VideoNoteOverlay.d.ts.map +1 -1
- package/lib/components/VideoNoteOverlay.js +722 -135
- package/lib/components/VideoNoteOverlay.js.map +1 -1
- package/lib/components/VideoNoteRecorder/LiveVideoNote.d.ts +6 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.js +205 -0
- package/lib/components/VideoNoteRecorder/LiveVideoNote.js.map +1 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.d.ts +35 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.js +350 -0
- package/lib/components/VideoNoteRecorder/RecorderChrome.js.map +1 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.d.ts +10 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.js +52 -0
- package/lib/components/VideoNoteRecorder/UnavailableVideoNote.js.map +1 -0
- package/lib/components/VideoNoteRecorder/constants.d.ts +16 -0
- package/lib/components/VideoNoteRecorder/constants.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/constants.js +30 -0
- package/lib/components/VideoNoteRecorder/constants.js.map +1 -0
- package/lib/components/{VideoNoteRecorder.d.ts → VideoNoteRecorder/index.d.ts} +5 -10
- package/lib/components/VideoNoteRecorder/index.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/index.js +26 -0
- package/lib/components/VideoNoteRecorder/index.js.map +1 -0
- package/lib/components/VideoNoteRecorder/styles.d.ts +159 -0
- package/lib/components/VideoNoteRecorder/styles.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/styles.js +170 -0
- package/lib/components/VideoNoteRecorder/styles.js.map +1 -0
- package/lib/components/VideoNoteRecorder/types.d.ts +7 -0
- package/lib/components/VideoNoteRecorder/types.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/types.js +2 -0
- package/lib/components/VideoNoteRecorder/types.js.map +1 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.d.ts +10 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.js +134 -0
- package/lib/components/VideoNoteRecorder/useRecordingTimer.js.map +1 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.d.ts +28 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.js +287 -0
- package/lib/components/VideoNoteRecorder/useVideoNoteRecording.js.map +1 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.d.ts +6 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.d.ts.map +1 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.js +11 -0
- package/lib/components/VideoNoteRecorder/visionCameraHooks.js.map +1 -0
- package/lib/components/VideoRecordButton.d.ts +1 -1
- package/lib/components/VideoRecordButton.d.ts.map +1 -1
- package/lib/components/VideoRecordButton.js +221 -92
- package/lib/components/VideoRecordButton.js.map +1 -1
- package/lib/components/ViewOnceBadge.d.ts +23 -0
- package/lib/components/ViewOnceBadge.d.ts.map +1 -0
- package/lib/components/ViewOnceBadge.js +233 -0
- package/lib/components/ViewOnceBadge.js.map +1 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.d.ts +16 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.js +503 -0
- package/lib/components/VoiceMessageInput/RecordedVoicePreview.js.map +1 -0
- package/lib/components/VoiceMessageInput/constants.d.ts +16 -0
- package/lib/components/VoiceMessageInput/constants.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/constants.js +22 -0
- package/lib/components/VoiceMessageInput/constants.js.map +1 -0
- package/lib/components/VoiceMessageInput/formatElapsed.d.ts +2 -0
- package/lib/components/VoiceMessageInput/formatElapsed.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/formatElapsed.js +7 -0
- package/lib/components/VoiceMessageInput/formatElapsed.js.map +1 -0
- package/lib/components/VoiceMessageInput/index.d.ts +9 -0
- package/lib/components/VoiceMessageInput/index.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/index.js +148 -0
- package/lib/components/VoiceMessageInput/index.js.map +1 -0
- package/lib/components/VoiceMessageInput/previewStyles.d.ts +77 -0
- package/lib/components/VoiceMessageInput/previewStyles.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/previewStyles.js +80 -0
- package/lib/components/VoiceMessageInput/previewStyles.js.map +1 -0
- package/lib/components/VoiceMessageInput/previewWaveform.d.ts +15 -0
- package/lib/components/VoiceMessageInput/previewWaveform.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/previewWaveform.js +27 -0
- package/lib/components/VoiceMessageInput/previewWaveform.js.map +1 -0
- package/lib/components/VoiceMessageInput/recorder.d.ts +18 -0
- package/lib/components/VoiceMessageInput/recorder.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/recorder.js +80 -0
- package/lib/components/VoiceMessageInput/recorder.js.map +1 -0
- package/lib/components/VoiceMessageInput/types.d.ts +56 -0
- package/lib/components/VoiceMessageInput/types.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/types.js +2 -0
- package/lib/components/VoiceMessageInput/types.js.map +1 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.d.ts +7 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.js +61 -0
- package/lib/components/VoiceMessageInput/useLazyRecorder.js.map +1 -0
- package/lib/components/VoiceMessageInput/useStateReport.d.ts +16 -0
- package/lib/components/VoiceMessageInput/useStateReport.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useStateReport.js +81 -0
- package/lib/components/VoiceMessageInput/useStateReport.js.map +1 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.d.ts +34 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.js +207 -0
- package/lib/components/VoiceMessageInput/useTakePreviewActions.js.map +1 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.d.ts +25 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.d.ts.map +1 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.js +424 -0
- package/lib/components/VoiceMessageInput/useVoiceTake.js.map +1 -0
- package/lib/components/WaveformPlayer/Bars.d.ts +30 -0
- package/lib/components/WaveformPlayer/Bars.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/Bars.js +171 -0
- package/lib/components/WaveformPlayer/Bars.js.map +1 -0
- package/lib/components/WaveformPlayer/VoiceButton.d.ts +23 -0
- package/lib/components/WaveformPlayer/VoiceButton.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/VoiceButton.js +111 -0
- package/lib/components/WaveformPlayer/VoiceButton.js.map +1 -0
- package/lib/components/WaveformPlayer/WaveformTrack.d.ts +31 -0
- package/lib/components/WaveformPlayer/WaveformTrack.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/WaveformTrack.js +199 -0
- package/lib/components/WaveformPlayer/WaveformTrack.js.map +1 -0
- package/lib/components/WaveformPlayer/audio.d.ts +23 -0
- package/lib/components/WaveformPlayer/audio.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/audio.js +97 -0
- package/lib/components/WaveformPlayer/audio.js.map +1 -0
- package/lib/components/WaveformPlayer/index.d.ts +13 -0
- package/lib/components/WaveformPlayer/index.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/index.js +475 -0
- package/lib/components/WaveformPlayer/index.js.map +1 -0
- package/lib/components/WaveformPlayer/styles.d.ts +257 -0
- package/lib/components/WaveformPlayer/styles.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/styles.js +120 -0
- package/lib/components/WaveformPlayer/styles.js.map +1 -0
- package/lib/components/WaveformPlayer/types.d.ts +32 -0
- package/lib/components/WaveformPlayer/types.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/types.js +2 -0
- package/lib/components/WaveformPlayer/types.js.map +1 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.d.ts +21 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.js +105 -0
- package/lib/components/WaveformPlayer/useSendFlightReveal.js.map +1 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.d.ts +39 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.js +401 -0
- package/lib/components/WaveformPlayer/useVoicePlayback.js.map +1 -0
- package/lib/components/WaveformPlayer/useVoiceSource.d.ts +38 -0
- package/lib/components/WaveformPlayer/useVoiceSource.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useVoiceSource.js +244 -0
- package/lib/components/WaveformPlayer/useVoiceSource.js.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.d.ts +16 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.js +135 -0
- package/lib/components/WaveformPlayer/useWaveformMotion.js.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.d.ts +16 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.d.ts.map +1 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.js +168 -0
- package/lib/components/WaveformPlayer/useWaveformScrub.js.map +1 -0
- package/lib/components/composerPanels.d.ts +13 -0
- package/lib/components/composerPanels.d.ts.map +1 -0
- package/lib/components/composerPanels.js +22 -0
- package/lib/components/composerPanels.js.map +1 -0
- package/lib/components/defaultMessageActions.d.ts +30 -0
- package/lib/components/defaultMessageActions.d.ts.map +1 -0
- package/lib/components/defaultMessageActions.js +124 -0
- package/lib/components/defaultMessageActions.js.map +1 -0
- package/lib/components/earpiece.d.ts +56 -0
- package/lib/components/earpiece.d.ts.map +1 -0
- package/lib/components/earpiece.js +218 -0
- package/lib/components/earpiece.js.map +1 -0
- package/lib/components/floatingNoteMath.d.ts +66 -0
- package/lib/components/floatingNoteMath.d.ts.map +1 -0
- package/lib/components/floatingNoteMath.js +143 -0
- package/lib/components/floatingNoteMath.js.map +1 -0
- package/lib/components/haptics.d.ts +5 -0
- package/lib/components/haptics.d.ts.map +1 -0
- package/lib/components/haptics.js +26 -0
- package/lib/components/haptics.js.map +1 -0
- package/lib/components/mediaDownload.d.ts +14 -0
- package/lib/components/mediaDownload.d.ts.map +1 -0
- package/lib/components/mediaDownload.js +43 -0
- package/lib/components/mediaDownload.js.map +1 -0
- package/lib/components/mediaPalette.d.ts +7 -2
- package/lib/components/mediaPalette.d.ts.map +1 -1
- package/lib/components/mediaPalette.js +27 -15
- package/lib/components/mediaPalette.js.map +1 -1
- package/lib/components/mediaPlayback.d.ts +204 -5
- package/lib/components/mediaPlayback.d.ts.map +1 -1
- package/lib/components/mediaPlayback.js +746 -17
- package/lib/components/mediaPlayback.js.map +1 -1
- package/lib/components/mediaTransfer.d.ts +29 -0
- package/lib/components/mediaTransfer.d.ts.map +1 -0
- package/lib/components/mediaTransfer.js +52 -0
- package/lib/components/mediaTransfer.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewer.d.ts +17 -0
- package/lib/components/mediaViewer/MediaViewer.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewer.js +347 -0
- package/lib/components/mediaViewer/MediaViewer.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerChrome.d.ts +14 -0
- package/lib/components/mediaViewer/MediaViewerChrome.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerChrome.js +164 -0
- package/lib/components/mediaViewer/MediaViewerChrome.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerHost.d.ts +10 -0
- package/lib/components/mediaViewer/MediaViewerHost.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerHost.js +76 -0
- package/lib/components/mediaViewer/MediaViewerHost.js.map +1 -0
- package/lib/components/mediaViewer/MediaViewerPage.d.ts +25 -0
- package/lib/components/mediaViewer/MediaViewerPage.d.ts.map +1 -0
- package/lib/components/mediaViewer/MediaViewerPage.js +194 -0
- package/lib/components/mediaViewer/MediaViewerPage.js.map +1 -0
- package/lib/components/mediaViewer/gallery.d.ts +27 -0
- package/lib/components/mediaViewer/gallery.d.ts.map +1 -0
- package/lib/components/mediaViewer/gallery.js +41 -0
- package/lib/components/mediaViewer/gallery.js.map +1 -0
- package/lib/components/messageHighlight.d.ts +41 -0
- package/lib/components/messageHighlight.d.ts.map +1 -0
- package/lib/components/messageHighlight.js +157 -0
- package/lib/components/messageHighlight.js.map +1 -0
- package/lib/components/messagePress.d.ts +14 -0
- package/lib/components/messagePress.d.ts.map +1 -0
- package/lib/components/messagePress.js +18 -0
- package/lib/components/messagePress.js.map +1 -0
- package/lib/components/messageSelection.d.ts +39 -0
- package/lib/components/messageSelection.d.ts.map +1 -0
- package/lib/components/messageSelection.js +135 -0
- package/lib/components/messageSelection.js.map +1 -0
- package/lib/components/recordingFeedback.d.ts +22 -0
- package/lib/components/recordingFeedback.d.ts.map +1 -0
- package/lib/components/recordingFeedback.js +80 -0
- package/lib/components/recordingFeedback.js.map +1 -0
- package/lib/components/recordingMeter.d.ts +19 -0
- package/lib/components/recordingMeter.d.ts.map +1 -0
- package/lib/components/recordingMeter.js +21 -0
- package/lib/components/recordingMeter.js.map +1 -0
- package/lib/components/roundNoteChrome.d.ts +107 -0
- package/lib/components/roundNoteChrome.d.ts.map +1 -0
- package/lib/components/roundNoteChrome.js +249 -0
- package/lib/components/roundNoteChrome.js.map +1 -0
- package/lib/components/roundNotePlayers.d.ts +78 -0
- package/lib/components/roundNotePlayers.d.ts.map +1 -0
- package/lib/components/roundNotePlayers.js +230 -0
- package/lib/components/roundNotePlayers.js.map +1 -0
- package/lib/components/sendFlight.d.ts +88 -0
- package/lib/components/sendFlight.d.ts.map +1 -0
- package/lib/components/sendFlight.js +146 -0
- package/lib/components/sendFlight.js.map +1 -0
- package/lib/components/viewOnce.d.ts +27 -0
- package/lib/components/viewOnce.d.ts.map +1 -0
- package/lib/components/viewOnce.js +168 -0
- package/lib/components/viewOnce.js.map +1 -0
- package/lib/components/visionCamera.d.ts +45 -0
- package/lib/components/visionCamera.d.ts.map +1 -0
- package/lib/components/visionCamera.js +117 -0
- package/lib/components/visionCamera.js.map +1 -0
- package/lib/components/voiceEditing.d.ts +34 -0
- package/lib/components/voiceEditing.d.ts.map +1 -0
- package/lib/components/voiceEditing.js +159 -0
- package/lib/components/voiceEditing.js.map +1 -0
- package/lib/components/voiceWaveform.d.ts +108 -0
- package/lib/components/voiceWaveform.d.ts.map +1 -0
- package/lib/components/voiceWaveform.js +165 -0
- package/lib/components/voiceWaveform.js.map +1 -0
- package/lib/components/wallpaperGradient.d.ts +16 -0
- package/lib/components/wallpaperGradient.d.ts.map +1 -0
- package/lib/components/wallpaperGradient.js +186 -0
- package/lib/components/wallpaperGradient.js.map +1 -0
- package/lib/components/windowInsets.d.ts +11 -0
- package/lib/components/windowInsets.d.ts.map +1 -0
- package/lib/components/windowInsets.js +44 -0
- package/lib/components/windowInsets.js.map +1 -0
- package/lib/dayjsLocales.js +15 -2
- package/lib/dayjsLocales.js.map +1 -1
- package/lib/emoji/EmojiGrid/BackspaceButton.d.ts +11 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.js +111 -0
- package/lib/emoji/EmojiGrid/BackspaceButton.js.map +1 -0
- package/lib/emoji/EmojiGrid/EmojiRow.d.ts +15 -0
- package/lib/emoji/EmojiGrid/EmojiRow.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/EmojiRow.js +71 -0
- package/lib/emoji/EmojiGrid/EmojiRow.js.map +1 -0
- package/lib/emoji/EmojiGrid/Search.d.ts +29 -0
- package/lib/emoji/EmojiGrid/Search.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/Search.js +234 -0
- package/lib/emoji/EmojiGrid/Search.js.map +1 -0
- package/lib/emoji/EmojiGrid/TabStrip.d.ts +16 -0
- package/lib/emoji/EmojiGrid/TabStrip.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/TabStrip.js +237 -0
- package/lib/emoji/EmojiGrid/TabStrip.js.map +1 -0
- package/lib/emoji/EmojiGrid/TonePopup.d.ts +12 -0
- package/lib/emoji/EmojiGrid/TonePopup.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/TonePopup.js +137 -0
- package/lib/emoji/EmojiGrid/TonePopup.js.map +1 -0
- package/lib/emoji/EmojiGrid/constants.d.ts +29 -0
- package/lib/emoji/EmojiGrid/constants.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/constants.js +65 -0
- package/lib/emoji/EmojiGrid/constants.js.map +1 -0
- package/lib/emoji/EmojiGrid/index.d.ts +10 -0
- package/lib/emoji/EmojiGrid/index.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/index.js +450 -0
- package/lib/emoji/EmojiGrid/index.js.map +1 -0
- package/lib/emoji/EmojiGrid/items.d.ts +25 -0
- package/lib/emoji/EmojiGrid/items.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/items.js +75 -0
- package/lib/emoji/EmojiGrid/items.js.map +1 -0
- package/lib/emoji/EmojiGrid/styles.d.ts +181 -0
- package/lib/emoji/EmojiGrid/styles.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/styles.js +184 -0
- package/lib/emoji/EmojiGrid/styles.js.map +1 -0
- package/lib/emoji/EmojiGrid/types.d.ts +53 -0
- package/lib/emoji/EmojiGrid/types.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/types.js +2 -0
- package/lib/emoji/EmojiGrid/types.js.map +1 -0
- package/lib/emoji/EmojiGrid/useTabScroll.d.ts +19 -0
- package/lib/emoji/EmojiGrid/useTabScroll.d.ts.map +1 -0
- package/lib/emoji/EmojiGrid/useTabScroll.js +124 -0
- package/lib/emoji/EmojiGrid/useTabScroll.js.map +1 -0
- package/lib/emoji/EmojiKeyboard.d.ts +79 -0
- package/lib/emoji/EmojiKeyboard.d.ts.map +1 -0
- package/lib/emoji/EmojiKeyboard.js +445 -0
- package/lib/emoji/EmojiKeyboard.js.map +1 -0
- package/lib/emoji/defaultExpandedPicker.d.ts +5 -0
- package/lib/emoji/defaultExpandedPicker.d.ts.map +1 -0
- package/lib/emoji/defaultExpandedPicker.js +11 -0
- package/lib/emoji/defaultExpandedPicker.js.map +1 -0
- package/lib/emoji/emojiData.d.ts +2 -0
- package/lib/emoji/emojiData.d.ts.map +1 -0
- package/lib/emoji/emojiData.js +5 -0
- package/lib/emoji/emojiData.js.map +1 -0
- package/lib/emoji/emojiStore.d.ts +70 -0
- package/lib/emoji/emojiStore.d.ts.map +1 -0
- package/lib/emoji/emojiStore.js +246 -0
- package/lib/emoji/emojiStore.js.map +1 -0
- package/lib/emoji/textEditing.d.ts +20 -0
- package/lib/emoji/textEditing.d.ts.map +1 -0
- package/lib/emoji/textEditing.js +97 -0
- package/lib/emoji/textEditing.js.map +1 -0
- package/lib/emojiOnly.d.ts +11 -0
- package/lib/emojiOnly.d.ts.map +1 -0
- package/lib/emojiOnly.js +79 -0
- package/lib/emojiOnly.js.map +1 -0
- package/lib/gestures/useRowSwipe.d.ts +43 -0
- package/lib/gestures/useRowSwipe.d.ts.map +1 -0
- package/lib/gestures/useRowSwipe.js +74 -0
- package/lib/gestures/useRowSwipe.js.map +1 -0
- package/lib/hooks/useAnimatedPresence.d.ts +22 -0
- package/lib/hooks/useAnimatedPresence.d.ts.map +1 -0
- package/lib/hooks/useAnimatedPresence.js +97 -0
- package/lib/hooks/useAnimatedPresence.js.map +1 -0
- package/lib/hooks/useChatMessages.d.ts +39 -0
- package/lib/hooks/useChatMessages.d.ts.map +1 -0
- package/lib/hooks/useChatMessages.js +125 -0
- package/lib/hooks/useChatMessages.js.map +1 -0
- package/lib/hooks/useColorScheme.d.ts +7 -1
- package/lib/hooks/useColorScheme.d.ts.map +1 -1
- package/lib/hooks/useColorScheme.js +46 -8
- package/lib/hooks/useColorScheme.js.map +1 -1
- package/lib/hooks/useHasKeyboardProvider.js +18 -7
- package/lib/hooks/useHasKeyboardProvider.js.map +1 -1
- package/lib/hooks/useIcons.js +15 -2
- package/lib/hooks/useIcons.js.map +1 -1
- package/lib/hooks/useIsKeyboardVisible.js +39 -17
- package/lib/hooks/useIsKeyboardVisible.js.map +1 -1
- package/lib/hooks/useIsRTL.js +15 -2
- package/lib/hooks/useIsRTL.js.map +1 -1
- package/lib/hooks/useKeyboardVerticalOffset.d.ts +5 -3
- package/lib/hooks/useKeyboardVerticalOffset.d.ts.map +1 -1
- package/lib/hooks/useKeyboardVerticalOffset.js +52 -18
- package/lib/hooks/useKeyboardVerticalOffset.js.map +1 -1
- package/lib/hooks/useLabels.js +15 -2
- package/lib/hooks/useLabels.js.map +1 -1
- package/lib/hooks/useStreamingMessages.js +200 -86
- package/lib/hooks/useStreamingMessages.js.map +1 -1
- package/lib/hooks/useTheme.js +56 -7
- package/lib/hooks/useTheme.js.map +1 -1
- package/lib/hooks/useUpdateLayoutEffect.d.ts.map +1 -1
- package/lib/hooks/useUpdateLayoutEffect.js +35 -11
- package/lib/hooks/useUpdateLayoutEffect.js.map +1 -1
- package/lib/i18n.d.ts +182 -0
- package/lib/i18n.d.ts.map +1 -1
- package/lib/i18n.js +121 -23
- package/lib/i18n.js.map +1 -1
- package/lib/index.d.ts +31 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -1
- package/lib/index.js.map +1 -1
- package/lib/linkParser.js +318 -185
- package/lib/linkParser.js.map +1 -1
- package/lib/locales/ar.d.ts.map +1 -1
- package/lib/locales/ar.js +110 -19
- package/lib/locales/ar.js.map +1 -1
- package/lib/locales/de.d.ts.map +1 -1
- package/lib/locales/de.js +110 -19
- package/lib/locales/de.js.map +1 -1
- package/lib/locales/es.d.ts.map +1 -1
- package/lib/locales/es.js +110 -19
- package/lib/locales/es.js.map +1 -1
- package/lib/locales/fr.d.ts.map +1 -1
- package/lib/locales/fr.js +110 -19
- package/lib/locales/fr.js.map +1 -1
- package/lib/locales/hi.d.ts.map +1 -1
- package/lib/locales/hi.js +110 -19
- package/lib/locales/hi.js.map +1 -1
- package/lib/locales/id.d.ts.map +1 -1
- package/lib/locales/id.js +110 -19
- package/lib/locales/id.js.map +1 -1
- package/lib/locales/index.js +19 -5
- package/lib/locales/index.js.map +1 -1
- package/lib/locales/it.d.ts.map +1 -1
- package/lib/locales/it.js +110 -19
- package/lib/locales/it.js.map +1 -1
- package/lib/locales/ja.d.ts.map +1 -1
- package/lib/locales/ja.js +110 -19
- package/lib/locales/ja.js.map +1 -1
- package/lib/locales/ko.d.ts.map +1 -1
- package/lib/locales/ko.js +110 -19
- package/lib/locales/ko.js.map +1 -1
- package/lib/locales/nl.d.ts.map +1 -1
- package/lib/locales/nl.js +110 -19
- package/lib/locales/nl.js.map +1 -1
- package/lib/locales/pl.d.ts.map +1 -1
- package/lib/locales/pl.js +110 -19
- package/lib/locales/pl.js.map +1 -1
- package/lib/locales/pt.d.ts.map +1 -1
- package/lib/locales/pt.js +110 -19
- package/lib/locales/pt.js.map +1 -1
- package/lib/locales/ru.d.ts.map +1 -1
- package/lib/locales/ru.js +110 -19
- package/lib/locales/ru.js.map +1 -1
- package/lib/locales/tr.d.ts.map +1 -1
- package/lib/locales/tr.js +110 -19
- package/lib/locales/tr.js.map +1 -1
- package/lib/locales/zh.d.ts.map +1 -1
- package/lib/locales/zh.js +110 -19
- package/lib/locales/zh.js.map +1 -1
- package/lib/logging.d.ts +5 -0
- package/lib/logging.d.ts.map +1 -1
- package/lib/logging.js +13 -1
- package/lib/logging.js.map +1 -1
- package/lib/messageUtils.d.ts +19 -0
- package/lib/messageUtils.d.ts.map +1 -0
- package/lib/messageUtils.js +61 -0
- package/lib/messageUtils.js.map +1 -0
- package/lib/motion.d.ts +21 -0
- package/lib/motion.d.ts.map +1 -0
- package/lib/motion.js +30 -0
- package/lib/motion.js.map +1 -0
- package/lib/optional/index.d.ts +99 -0
- package/lib/optional/index.d.ts.map +1 -0
- package/lib/optional/index.js +284 -0
- package/lib/optional/index.js.map +1 -0
- package/lib/rtl.js +7 -5
- package/lib/rtl.js.map +1 -1
- package/lib/store.d.ts +40 -0
- package/lib/store.d.ts.map +1 -0
- package/lib/store.js +127 -0
- package/lib/store.js.map +1 -0
- package/lib/styles.d.ts +2 -2
- package/lib/styles.d.ts.map +1 -1
- package/lib/styles.js +15 -15
- package/lib/styles.js.map +1 -1
- package/lib/types.js +1 -0
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +15 -0
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +199 -94
- package/lib/utils.js.map +1 -1
- package/llms.txt +133 -31
- package/package.json +89 -46
- package/lib/InputToolbar.d.ts +0 -49
- package/lib/InputToolbar.d.ts.map +0 -1
- package/lib/InputToolbar.js +0 -338
- package/lib/InputToolbar.js.map +0 -1
- package/lib/MessageVideo.d.ts.map +0 -1
- package/lib/MessageVideo.js +0 -162
- package/lib/MessageVideo.js.map +0 -1
- package/lib/MessagesContainer/FlashList.d.ts +0 -9
- package/lib/MessagesContainer/FlashList.d.ts.map +0 -1
- package/lib/MessagesContainer/FlashList.js +0 -23
- package/lib/MessagesContainer/FlashList.js.map +0 -1
- package/lib/components/ContextMenu.d.ts +0 -25
- package/lib/components/ContextMenu.d.ts.map +0 -1
- package/lib/components/ContextMenu.js +0 -122
- package/lib/components/ContextMenu.js.map +0 -1
- package/lib/components/VideoNoteRecorder.d.ts.map +0 -1
- package/lib/components/VideoNoteRecorder.js +0 -634
- package/lib/components/VideoNoteRecorder.js.map +0 -1
- package/lib/components/VoiceMessageInput.d.ts +0 -33
- package/lib/components/VoiceMessageInput.d.ts.map +0 -1
- package/lib/components/VoiceMessageInput.js +0 -403
- package/lib/components/VoiceMessageInput.js.map +0 -1
- package/lib/components/WaveformPlayer.d.ts +0 -19
- package/lib/components/WaveformPlayer.d.ts.map +0 -1
- package/lib/components/WaveformPlayer.js +0 -367
- package/lib/components/WaveformPlayer.js.map +0 -1
|
@@ -0,0 +1,864 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import Animated, { Easing, cancelAnimation, useAnimatedProps, useAnimatedReaction, useAnimatedStyle, useDerivedValue, useSharedValue, withRepeat, withTiming } from 'react-native-reanimated';
|
|
5
|
+
import { getSvg } from '../optional';
|
|
6
|
+
import { PlayPauseIcon } from './PlayPauseIcon';
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* The media button: a filled circle drawing a glyph and a progress arc. The geometry and
|
|
10
|
+
* timings below are specified in a 48-unit box.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const svg = getSvg();
|
|
14
|
+
const Svg = svg ? svg.Svg ?? svg.default : null;
|
|
15
|
+
const AnimatedPath = svg?.Path ? Animated.createAnimatedComponent(svg.Path) : null;
|
|
16
|
+
|
|
17
|
+
/** What the button shows. */
|
|
18
|
+
|
|
19
|
+
const PLAY = 0;
|
|
20
|
+
const PAUSE = 1;
|
|
21
|
+
const DOWNLOAD = 2;
|
|
22
|
+
const CANCEL = 3;
|
|
23
|
+
const NONE = 4;
|
|
24
|
+
const ICON_CODES = {
|
|
25
|
+
play: PLAY,
|
|
26
|
+
pause: PAUSE,
|
|
27
|
+
download: DOWNLOAD,
|
|
28
|
+
cancel: CANCEL,
|
|
29
|
+
none: NONE
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** The drawable's own size; everything scales by `size / 48`. */
|
|
33
|
+
const INTRINSIC = 48;
|
|
34
|
+
|
|
35
|
+
/** Download -> cancel runs in three stages. */
|
|
36
|
+
const STAGE1 = 0.5;
|
|
37
|
+
const STAGE2 = 0.2;
|
|
38
|
+
const STAGE3 = 0.3;
|
|
39
|
+
|
|
40
|
+
/** The arc turns once every 2.5s. */
|
|
41
|
+
export const RADIAL_SPIN_MS = 2500;
|
|
42
|
+
/** And starts at 112 degrees whenever the cancel icon is set. */
|
|
43
|
+
const RAD_OFFSET_START = 112;
|
|
44
|
+
/** Progress eases toward its target over 200ms, decelerating. */
|
|
45
|
+
export const RADIAL_PROGRESS_MS = 200;
|
|
46
|
+
const DECELERATE = Easing.out(Easing.quad);
|
|
47
|
+
|
|
48
|
+
/** The transition length for a pair of icons. */
|
|
49
|
+
export const transitionDuration = (from, to) => {
|
|
50
|
+
if (from === 'play' && to === 'pause' || from === 'pause' && to === 'play') return 300;
|
|
51
|
+
if (from === 'download' && to === 'cancel') return 400;
|
|
52
|
+
return 220;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** Restarts the ring's turn from 112 degrees. */
|
|
56
|
+
const spinRing = rad => {
|
|
57
|
+
rad.value = RAD_OFFSET_START;
|
|
58
|
+
rad.value = withRepeat(withTiming(RAD_OFFSET_START + 360, {
|
|
59
|
+
duration: RADIAL_SPIN_MS,
|
|
60
|
+
easing: Easing.linear
|
|
61
|
+
}), -1, false);
|
|
62
|
+
};
|
|
63
|
+
const isPlayPause = icon => {
|
|
64
|
+
'worklet';
|
|
65
|
+
|
|
66
|
+
return icon === PLAY || icon === PAUSE;
|
|
67
|
+
};
|
|
68
|
+
const f = value => {
|
|
69
|
+
'worklet';
|
|
70
|
+
|
|
71
|
+
return Math.round(value * 100) / 100;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** An SVG elliptical arc, Android's `drawArc(rect, start, sweep)`: degrees, clockwise from 3 o'clock. */
|
|
75
|
+
export const arcPath = (cx, cy, rx, ry, start, sweep) => {
|
|
76
|
+
'worklet';
|
|
77
|
+
|
|
78
|
+
if (Math.abs(sweep) < 0.01) return '';
|
|
79
|
+
|
|
80
|
+
// Two halves, so a full ring never has its ends land on the same point (which SVG
|
|
81
|
+
// draws as nothing, or a dot with round caps).
|
|
82
|
+
const clamped = Math.max(-360, Math.min(360, sweep));
|
|
83
|
+
const point = deg => {
|
|
84
|
+
const a = deg * Math.PI / 180;
|
|
85
|
+
return `${f(cx + rx * Math.cos(a))} ${f(cy + ry * Math.sin(a))}`;
|
|
86
|
+
};
|
|
87
|
+
const dir = clamped > 0 ? 1 : 0;
|
|
88
|
+
const mid = start + clamped / 2;
|
|
89
|
+
return `M${point(start)} A${f(rx)} ${f(ry)} 0 0 ${dir} ${point(mid)} ` + `A${f(rx)} ${f(ry)} 0 0 ${dir} ${point(start + clamped)} `;
|
|
90
|
+
};
|
|
91
|
+
const line = (x1, y1, x2, y2) => {
|
|
92
|
+
'worklet';
|
|
93
|
+
|
|
94
|
+
return `M${f(x1)} ${f(y1)} L${f(x2)} ${f(y2)} `;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/** The two strokes of an ✕ of half-size `d`, scaled by `k` and turned `deg` about the centre. */
|
|
98
|
+
const crossLines = (c, d, k, deg) => {
|
|
99
|
+
'worklet';
|
|
100
|
+
|
|
101
|
+
if (d <= 0 || k <= 0) return [];
|
|
102
|
+
const r = deg * Math.PI / 180;
|
|
103
|
+
const cos = Math.cos(r) * k;
|
|
104
|
+
const sin = Math.sin(r) * k;
|
|
105
|
+
const p = (x, y) => [c + x * cos - y * sin, c + x * sin + y * cos];
|
|
106
|
+
return [...p(-d, -d), ...p(d, d), ...p(d, -d), ...p(-d, d)];
|
|
107
|
+
};
|
|
108
|
+
const cross = (c, d, k, deg) => {
|
|
109
|
+
'worklet';
|
|
110
|
+
|
|
111
|
+
if (d <= 0 || k <= 0) return '';
|
|
112
|
+
const r = deg * Math.PI / 180;
|
|
113
|
+
const cos = Math.cos(r) * k;
|
|
114
|
+
const sin = Math.sin(r) * k;
|
|
115
|
+
const p = (x, y) => [c + x * cos - y * sin, c + x * sin + y * cos];
|
|
116
|
+
const [ax, ay] = p(-d, -d);
|
|
117
|
+
const [bx, by] = p(d, d);
|
|
118
|
+
const [cx2, cy2] = p(d, -d);
|
|
119
|
+
const [dx, dy] = p(-d, d);
|
|
120
|
+
return line(ax, ay, bx, by) + line(cx2, cy2, dx, dy);
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* One frame of the media action icon for a drawable `size` across. `t` is
|
|
124
|
+
* `transitionProgress` (1 at rest), `saved` the `savedTransitionProgress` the transition
|
|
125
|
+
* started from, `progress` the eased `animatedDownloadProgress` and `rad` the arc's
|
|
126
|
+
* `downloadRadOffset`.
|
|
127
|
+
*/
|
|
128
|
+
export const radialFrame = (current, next, t, saved, progress, rad, size, isMini) => {
|
|
129
|
+
'worklet';
|
|
130
|
+
|
|
131
|
+
const scale = size / INTRINSIC;
|
|
132
|
+
const c = size / 2;
|
|
133
|
+
const animating = current !== next && t < 1;
|
|
134
|
+
const out = {
|
|
135
|
+
arrow: '',
|
|
136
|
+
arrowAlpha: 0,
|
|
137
|
+
cross: '',
|
|
138
|
+
crossAlpha: 0,
|
|
139
|
+
arc: '',
|
|
140
|
+
arcAlpha: 0,
|
|
141
|
+
glyphScale: 0,
|
|
142
|
+
glyphAlpha: 0,
|
|
143
|
+
arrowLines: [],
|
|
144
|
+
crossLines: [],
|
|
145
|
+
arcStart: 0,
|
|
146
|
+
arcSweep: 0,
|
|
147
|
+
arcRadius: 0
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// The download arrow.
|
|
151
|
+
if (current === DOWNLOAD || next === DOWNLOAD) {
|
|
152
|
+
const yStart = c - 9 * scale;
|
|
153
|
+
const yEnd = c + 9 * scale;
|
|
154
|
+
const yEnd2 = c + 12 * scale;
|
|
155
|
+
let yStart2;
|
|
156
|
+
let transition;
|
|
157
|
+
if (current === CANCEL && next === DOWNLOAD) {
|
|
158
|
+
out.arrowAlpha = Math.min(1, t / 0.5);
|
|
159
|
+
transition = t;
|
|
160
|
+
yStart2 = c + 12 * scale;
|
|
161
|
+
} else {
|
|
162
|
+
if (next !== CANCEL && next !== DOWNLOAD) {
|
|
163
|
+
out.arrowAlpha = Math.min(1, saved / 0.5) * (1 - t);
|
|
164
|
+
transition = saved;
|
|
165
|
+
} else {
|
|
166
|
+
out.arrowAlpha = 1;
|
|
167
|
+
transition = t;
|
|
168
|
+
}
|
|
169
|
+
yStart2 = c + 1 * scale;
|
|
170
|
+
}
|
|
171
|
+
let y1;
|
|
172
|
+
let y2;
|
|
173
|
+
let x1;
|
|
174
|
+
let x2;
|
|
175
|
+
let y3;
|
|
176
|
+
if (animating) {
|
|
177
|
+
let p = transition;
|
|
178
|
+
if (next === DOWNLOAD || p <= STAGE1) {
|
|
179
|
+
let cur;
|
|
180
|
+
let back;
|
|
181
|
+
if (next === DOWNLOAD) {
|
|
182
|
+
back = transition;
|
|
183
|
+
cur = 1 - back;
|
|
184
|
+
} else {
|
|
185
|
+
cur = transition / STAGE1;
|
|
186
|
+
back = 1 - cur;
|
|
187
|
+
}
|
|
188
|
+
y1 = yStart + (yStart2 - yStart) * cur;
|
|
189
|
+
y2 = yEnd + (yEnd2 - yEnd) * cur;
|
|
190
|
+
x1 = c - 8 * back * scale;
|
|
191
|
+
x2 = c + 8 * back * scale;
|
|
192
|
+
y3 = y2 - 8 * back * scale;
|
|
193
|
+
} else {
|
|
194
|
+
// The stem curls into the start of the ring, then the ✕ turns in.
|
|
195
|
+
let d = 13 * scale * scale + (isMini ? 2 : 0);
|
|
196
|
+
p -= STAGE1;
|
|
197
|
+
const p3 = p / (STAGE2 + STAGE3);
|
|
198
|
+
let p1;
|
|
199
|
+
let p2;
|
|
200
|
+
if (p > STAGE2) {
|
|
201
|
+
p1 = 1;
|
|
202
|
+
p2 = (p - STAGE2) / STAGE3;
|
|
203
|
+
} else {
|
|
204
|
+
p1 = p / STAGE2;
|
|
205
|
+
p2 = 0;
|
|
206
|
+
}
|
|
207
|
+
const start = 100 * p2;
|
|
208
|
+
out.arrow += arcPath(c - d / 2, yEnd2, d / 2, d / 2, start, 104 * p3 - start);
|
|
209
|
+
y1 = yStart2 + (yEnd2 - yStart2) * p1;
|
|
210
|
+
y2 = y3 = yEnd2;
|
|
211
|
+
x1 = x2 = c;
|
|
212
|
+
if (p2 > 0) {
|
|
213
|
+
d = 7 * p2 * scale;
|
|
214
|
+
out.cross = cross(c, d, 1, -45 * (1 - p2));
|
|
215
|
+
out.crossLines = crossLines(c, d, 1, -45 * (1 - p2));
|
|
216
|
+
out.crossAlpha = p2;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
} else {
|
|
220
|
+
y1 = yStart;
|
|
221
|
+
y2 = yEnd;
|
|
222
|
+
x1 = c - 8 * scale;
|
|
223
|
+
x2 = c + 8 * scale;
|
|
224
|
+
y3 = y2 - 8 * scale;
|
|
225
|
+
}
|
|
226
|
+
if (y1 !== y2) {
|
|
227
|
+
out.arrow += line(c, y1, c, y2);
|
|
228
|
+
out.arrowLines.push(c, y1, c, y2);
|
|
229
|
+
}
|
|
230
|
+
if (x1 !== c) {
|
|
231
|
+
out.arrow += line(x1, y3, c, y2) + line(x2, y3, c, y2);
|
|
232
|
+
out.arrowLines.push(x1, y3, c, y2, x2, y3, c, y2);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// The cancel ✕ and the progress ring.
|
|
237
|
+
if (current === CANCEL || current === NONE && next === CANCEL) {
|
|
238
|
+
let d;
|
|
239
|
+
let rotation = 0;
|
|
240
|
+
let iconScale = 1;
|
|
241
|
+
let alpha;
|
|
242
|
+
if (next === DOWNLOAD) {
|
|
243
|
+
if (t <= STAGE3 + STAGE2) {
|
|
244
|
+
const back = 1 - t / (STAGE3 + STAGE2);
|
|
245
|
+
d = 7 * back * scale;
|
|
246
|
+
alpha = back;
|
|
247
|
+
} else {
|
|
248
|
+
d = 0;
|
|
249
|
+
alpha = 0;
|
|
250
|
+
}
|
|
251
|
+
} else if (isPlayPause(next)) {
|
|
252
|
+
const back = 1 - t;
|
|
253
|
+
iconScale = 1 - t;
|
|
254
|
+
d = 7 * back * scale;
|
|
255
|
+
alpha = Math.min(1, back * 2);
|
|
256
|
+
} else if (next === NONE) {
|
|
257
|
+
const back = 1 - t;
|
|
258
|
+
d = 7 * scale;
|
|
259
|
+
alpha = back;
|
|
260
|
+
iconScale = back;
|
|
261
|
+
} else if (next === CANCEL) {
|
|
262
|
+
if (current === NONE) iconScale = t;else rotation = 45 * (1 - t);
|
|
263
|
+
d = 7 * scale;
|
|
264
|
+
alpha = t;
|
|
265
|
+
} else {
|
|
266
|
+
d = 7 * scale;
|
|
267
|
+
alpha = 1;
|
|
268
|
+
}
|
|
269
|
+
if (current === next) {
|
|
270
|
+
rotation = 0;
|
|
271
|
+
iconScale = 1;
|
|
272
|
+
alpha = 1;
|
|
273
|
+
d = 7 * scale;
|
|
274
|
+
}
|
|
275
|
+
out.cross = cross(c, d, iconScale, rotation);
|
|
276
|
+
out.crossLines = crossLines(c, d, iconScale, rotation);
|
|
277
|
+
out.crossAlpha = alpha;
|
|
278
|
+
if (alpha > 0) {
|
|
279
|
+
// At least 4 degrees, so a download that has not started still shows a dot.
|
|
280
|
+
const sweep = Math.max(4, 360 * progress);
|
|
281
|
+
const inset = isMini ? 2 : 4;
|
|
282
|
+
const r = c - inset;
|
|
283
|
+
out.arc = arcPath(c, c, r, r, rad, sweep);
|
|
284
|
+
out.arcAlpha = alpha;
|
|
285
|
+
out.arcStart = rad;
|
|
286
|
+
out.arcSweep = sweep;
|
|
287
|
+
out.arcRadius = r;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// Play / pause, drawn by `PlayPauseIcon`; here only how much of it shows.
|
|
292
|
+
if (isPlayPause(current) || isPlayPause(next)) if (isPlayPause(current) && isPlayPause(next)) {
|
|
293
|
+
out.glyphScale = 1;
|
|
294
|
+
out.glyphAlpha = 1;
|
|
295
|
+
} else if (isPlayPause(next)) {
|
|
296
|
+
out.glyphAlpha = animating ? t : 1;
|
|
297
|
+
// From the cancel ✕ it grows from nothing; from the arrow it is full size at half way.
|
|
298
|
+
out.glyphScale = !animating ? 1 : current === NONE || current === CANCEL ? t : Math.min(1, t / 0.5);
|
|
299
|
+
} else {
|
|
300
|
+
out.glyphAlpha = animating ? 1 - t : 0;
|
|
301
|
+
out.glyphScale = animating ? Math.max(0, 1 - t / 0.5) : 0;
|
|
302
|
+
}
|
|
303
|
+
return out;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
/** One straight stroke of the frame with round caps, for drawing without react-native-svg. */
|
|
307
|
+
function FallbackStroke(t0) {
|
|
308
|
+
const $ = _c(7);
|
|
309
|
+
const {
|
|
310
|
+
frame,
|
|
311
|
+
isCross,
|
|
312
|
+
index,
|
|
313
|
+
color,
|
|
314
|
+
width
|
|
315
|
+
} = t0;
|
|
316
|
+
const style = useAnimatedStyle(() => {
|
|
317
|
+
const lines = isCross ? frame.value.crossLines : frame.value.arrowLines;
|
|
318
|
+
const i = index * 4;
|
|
319
|
+
if (lines.length < i + 4) {
|
|
320
|
+
return {
|
|
321
|
+
opacity: 0,
|
|
322
|
+
width: 0
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
const x1 = lines[i];
|
|
326
|
+
const y1 = lines[i + 1];
|
|
327
|
+
const x2 = lines[i + 2];
|
|
328
|
+
const y2 = lines[i + 3];
|
|
329
|
+
const length = Math.hypot(x2 - x1, y2 - y1) + width;
|
|
330
|
+
return {
|
|
331
|
+
opacity: isCross ? frame.value.crossAlpha : frame.value.arrowAlpha,
|
|
332
|
+
width: length,
|
|
333
|
+
left: (x1 + x2) / 2 - length / 2,
|
|
334
|
+
top: (y1 + y2) / 2 - width / 2,
|
|
335
|
+
transform: [{
|
|
336
|
+
rotate: `${Math.atan2(y2 - y1, x2 - x1)}rad`
|
|
337
|
+
}]
|
|
338
|
+
};
|
|
339
|
+
});
|
|
340
|
+
const t1 = width / 2;
|
|
341
|
+
let t2;
|
|
342
|
+
if ($[0] !== color || $[1] !== t1 || $[2] !== width) {
|
|
343
|
+
t2 = {
|
|
344
|
+
height: width,
|
|
345
|
+
borderRadius: t1,
|
|
346
|
+
backgroundColor: color
|
|
347
|
+
};
|
|
348
|
+
$[0] = color;
|
|
349
|
+
$[1] = t1;
|
|
350
|
+
$[2] = width;
|
|
351
|
+
$[3] = t2;
|
|
352
|
+
} else {
|
|
353
|
+
t2 = $[3];
|
|
354
|
+
}
|
|
355
|
+
let t3;
|
|
356
|
+
if ($[4] !== style || $[5] !== t2) {
|
|
357
|
+
t3 = <Animated.View style={[styles.stroke, t2, style]} />;
|
|
358
|
+
$[4] = style;
|
|
359
|
+
$[5] = t2;
|
|
360
|
+
$[6] = t3;
|
|
361
|
+
} else {
|
|
362
|
+
t3 = $[6];
|
|
363
|
+
}
|
|
364
|
+
return t3;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* The progress arc without react-native-svg: two half rings, each clipped to its half of the
|
|
369
|
+
* circle and turned in from the other side, and the whole turned to the arc's start.
|
|
370
|
+
*/
|
|
371
|
+
function FallbackRing(t0) {
|
|
372
|
+
const $ = _c(38);
|
|
373
|
+
const {
|
|
374
|
+
frame,
|
|
375
|
+
color,
|
|
376
|
+
width,
|
|
377
|
+
size,
|
|
378
|
+
isMini
|
|
379
|
+
} = t0;
|
|
380
|
+
const radius = size / 2 - (isMini ? 2 : 4);
|
|
381
|
+
const diameter = radius * 2 + width;
|
|
382
|
+
const offset = size / 2 - diameter / 2;
|
|
383
|
+
const ringStyle = useAnimatedStyle(() => ({
|
|
384
|
+
opacity: frame.value.arcAlpha,
|
|
385
|
+
transform: [{
|
|
386
|
+
rotate: `${frame.value.arcStart + 90}deg`
|
|
387
|
+
}]
|
|
388
|
+
}));
|
|
389
|
+
const firstHalfStyle = useAnimatedStyle(() => ({
|
|
390
|
+
transform: [{
|
|
391
|
+
rotate: `${45 + Math.min(frame.value.arcSweep, 180) - 180}deg`
|
|
392
|
+
}]
|
|
393
|
+
}));
|
|
394
|
+
const secondHalfStyle = useAnimatedStyle(() => ({
|
|
395
|
+
opacity: frame.value.arcSweep > 180 ? 1 : 0,
|
|
396
|
+
transform: [{
|
|
397
|
+
rotate: `${45 + Math.max(frame.value.arcSweep, 180) - 180}deg`
|
|
398
|
+
}]
|
|
399
|
+
}));
|
|
400
|
+
const t1 = diameter / 2;
|
|
401
|
+
let t2;
|
|
402
|
+
if ($[0] !== color || $[1] !== diameter || $[2] !== t1 || $[3] !== width) {
|
|
403
|
+
t2 = {
|
|
404
|
+
width: diameter,
|
|
405
|
+
height: diameter,
|
|
406
|
+
borderRadius: t1,
|
|
407
|
+
borderWidth: width,
|
|
408
|
+
borderTopColor: color,
|
|
409
|
+
borderRightColor: color,
|
|
410
|
+
borderBottomColor: "transparent",
|
|
411
|
+
borderLeftColor: "transparent"
|
|
412
|
+
};
|
|
413
|
+
$[0] = color;
|
|
414
|
+
$[1] = diameter;
|
|
415
|
+
$[2] = t1;
|
|
416
|
+
$[3] = width;
|
|
417
|
+
$[4] = t2;
|
|
418
|
+
} else {
|
|
419
|
+
t2 = $[4];
|
|
420
|
+
}
|
|
421
|
+
const halfRing = t2;
|
|
422
|
+
let t3;
|
|
423
|
+
if ($[5] !== diameter || $[6] !== offset) {
|
|
424
|
+
t3 = {
|
|
425
|
+
left: offset,
|
|
426
|
+
top: offset,
|
|
427
|
+
width: diameter,
|
|
428
|
+
height: diameter
|
|
429
|
+
};
|
|
430
|
+
$[5] = diameter;
|
|
431
|
+
$[6] = offset;
|
|
432
|
+
$[7] = t3;
|
|
433
|
+
} else {
|
|
434
|
+
t3 = $[7];
|
|
435
|
+
}
|
|
436
|
+
let t4;
|
|
437
|
+
if ($[8] !== ringStyle || $[9] !== t3) {
|
|
438
|
+
t4 = [styles.ring, t3, ringStyle];
|
|
439
|
+
$[8] = ringStyle;
|
|
440
|
+
$[9] = t3;
|
|
441
|
+
$[10] = t4;
|
|
442
|
+
} else {
|
|
443
|
+
t4 = $[10];
|
|
444
|
+
}
|
|
445
|
+
const t5 = diameter / 2;
|
|
446
|
+
const t6 = diameter / 2;
|
|
447
|
+
let t7;
|
|
448
|
+
if ($[11] !== diameter || $[12] !== t5 || $[13] !== t6) {
|
|
449
|
+
t7 = [styles.half, {
|
|
450
|
+
left: t5,
|
|
451
|
+
width: t6,
|
|
452
|
+
height: diameter
|
|
453
|
+
}];
|
|
454
|
+
$[11] = diameter;
|
|
455
|
+
$[12] = t5;
|
|
456
|
+
$[13] = t6;
|
|
457
|
+
$[14] = t7;
|
|
458
|
+
} else {
|
|
459
|
+
t7 = $[14];
|
|
460
|
+
}
|
|
461
|
+
const t8 = -diameter / 2;
|
|
462
|
+
let t9;
|
|
463
|
+
if ($[15] !== t8) {
|
|
464
|
+
t9 = {
|
|
465
|
+
left: t8
|
|
466
|
+
};
|
|
467
|
+
$[15] = t8;
|
|
468
|
+
$[16] = t9;
|
|
469
|
+
} else {
|
|
470
|
+
t9 = $[16];
|
|
471
|
+
}
|
|
472
|
+
let t10;
|
|
473
|
+
if ($[17] !== firstHalfStyle || $[18] !== halfRing || $[19] !== t9) {
|
|
474
|
+
t10 = <Animated.View style={[styles.halfRing, halfRing, t9, firstHalfStyle]} />;
|
|
475
|
+
$[17] = firstHalfStyle;
|
|
476
|
+
$[18] = halfRing;
|
|
477
|
+
$[19] = t9;
|
|
478
|
+
$[20] = t10;
|
|
479
|
+
} else {
|
|
480
|
+
t10 = $[20];
|
|
481
|
+
}
|
|
482
|
+
let t11;
|
|
483
|
+
if ($[21] !== t10 || $[22] !== t7) {
|
|
484
|
+
t11 = <View style={t7}>{t10}</View>;
|
|
485
|
+
$[21] = t10;
|
|
486
|
+
$[22] = t7;
|
|
487
|
+
$[23] = t11;
|
|
488
|
+
} else {
|
|
489
|
+
t11 = $[23];
|
|
490
|
+
}
|
|
491
|
+
const t12 = diameter / 2;
|
|
492
|
+
let t13;
|
|
493
|
+
if ($[24] !== diameter || $[25] !== t12) {
|
|
494
|
+
t13 = [styles.half, {
|
|
495
|
+
left: 0,
|
|
496
|
+
width: t12,
|
|
497
|
+
height: diameter
|
|
498
|
+
}];
|
|
499
|
+
$[24] = diameter;
|
|
500
|
+
$[25] = t12;
|
|
501
|
+
$[26] = t13;
|
|
502
|
+
} else {
|
|
503
|
+
t13 = $[26];
|
|
504
|
+
}
|
|
505
|
+
let t14;
|
|
506
|
+
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
507
|
+
t14 = {
|
|
508
|
+
left: 0
|
|
509
|
+
};
|
|
510
|
+
$[27] = t14;
|
|
511
|
+
} else {
|
|
512
|
+
t14 = $[27];
|
|
513
|
+
}
|
|
514
|
+
let t15;
|
|
515
|
+
if ($[28] !== halfRing || $[29] !== secondHalfStyle) {
|
|
516
|
+
t15 = <Animated.View style={[styles.halfRing, halfRing, t14, secondHalfStyle]} />;
|
|
517
|
+
$[28] = halfRing;
|
|
518
|
+
$[29] = secondHalfStyle;
|
|
519
|
+
$[30] = t15;
|
|
520
|
+
} else {
|
|
521
|
+
t15 = $[30];
|
|
522
|
+
}
|
|
523
|
+
let t16;
|
|
524
|
+
if ($[31] !== t13 || $[32] !== t15) {
|
|
525
|
+
t16 = <View style={t13}>{t15}</View>;
|
|
526
|
+
$[31] = t13;
|
|
527
|
+
$[32] = t15;
|
|
528
|
+
$[33] = t16;
|
|
529
|
+
} else {
|
|
530
|
+
t16 = $[33];
|
|
531
|
+
}
|
|
532
|
+
let t17;
|
|
533
|
+
if ($[34] !== t11 || $[35] !== t16 || $[36] !== t4) {
|
|
534
|
+
t17 = <Animated.View style={t4}>{t11}{t16}</Animated.View>;
|
|
535
|
+
$[34] = t11;
|
|
536
|
+
$[35] = t16;
|
|
537
|
+
$[36] = t4;
|
|
538
|
+
$[37] = t17;
|
|
539
|
+
} else {
|
|
540
|
+
t17 = $[37];
|
|
541
|
+
}
|
|
542
|
+
return t17;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* The media button: a filled circle with a
|
|
546
|
+
* play, pause, download or cancel glyph, and while cancelable a ring that grows with
|
|
547
|
+
* `progress` and turns once every 2.5s. Every animation runs on the UI thread.
|
|
548
|
+
*/
|
|
549
|
+
export function RadialProgress(t0) {
|
|
550
|
+
const $ = _c(58);
|
|
551
|
+
const {
|
|
552
|
+
icon,
|
|
553
|
+
progress: t1,
|
|
554
|
+
size: t2,
|
|
555
|
+
color,
|
|
556
|
+
backgroundColor,
|
|
557
|
+
isMini: t3,
|
|
558
|
+
glyphSize,
|
|
559
|
+
style
|
|
560
|
+
} = t0;
|
|
561
|
+
const progress = t1 === undefined ? 0 : t1;
|
|
562
|
+
const size = t2 === undefined ? 44 : t2;
|
|
563
|
+
const isMini = t3 === undefined ? false : t3;
|
|
564
|
+
const code = ICON_CODES[icon];
|
|
565
|
+
const current = useSharedValue(code);
|
|
566
|
+
const next = useSharedValue(code);
|
|
567
|
+
const t = useSharedValue(1);
|
|
568
|
+
const saved = useSharedValue(1);
|
|
569
|
+
const arc = useSharedValue(0);
|
|
570
|
+
const target = useSharedValue(typeof progress === "number" ? progress : 0);
|
|
571
|
+
const rad = useSharedValue(RAD_OFFSET_START);
|
|
572
|
+
const previousIcon = useRef(icon);
|
|
573
|
+
const fallbackProgress = useSharedValue(0);
|
|
574
|
+
const progressSource = typeof progress === "number" ? fallbackProgress : progress;
|
|
575
|
+
const numericProgress = typeof progress === "number" ? progress : null;
|
|
576
|
+
const [initialIcon] = useState(icon);
|
|
577
|
+
let t4;
|
|
578
|
+
let t5;
|
|
579
|
+
if ($[0] !== initialIcon || $[1] !== rad) {
|
|
580
|
+
t4 = () => {
|
|
581
|
+
if (initialIcon === "cancel") {
|
|
582
|
+
spinRing(rad);
|
|
583
|
+
}
|
|
584
|
+
return () => cancelAnimation(rad);
|
|
585
|
+
};
|
|
586
|
+
t5 = [initialIcon, rad];
|
|
587
|
+
$[0] = initialIcon;
|
|
588
|
+
$[1] = rad;
|
|
589
|
+
$[2] = t4;
|
|
590
|
+
$[3] = t5;
|
|
591
|
+
} else {
|
|
592
|
+
t4 = $[2];
|
|
593
|
+
t5 = $[3];
|
|
594
|
+
}
|
|
595
|
+
useEffect(t4, t5);
|
|
596
|
+
let t6;
|
|
597
|
+
let t7;
|
|
598
|
+
if ($[4] !== arc || $[5] !== current || $[6] !== icon || $[7] !== next || $[8] !== rad || $[9] !== saved || $[10] !== t) {
|
|
599
|
+
t6 = () => {
|
|
600
|
+
const from = previousIcon.current;
|
|
601
|
+
if (from === icon) {
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
previousIcon.current = icon;
|
|
605
|
+
const duration = transitionDuration(from, icon);
|
|
606
|
+
if (t.value < 1) {
|
|
607
|
+
current.value = next.value;
|
|
608
|
+
}
|
|
609
|
+
saved.value = t.value;
|
|
610
|
+
next.value = ICON_CODES[icon];
|
|
611
|
+
if (icon === "cancel") {
|
|
612
|
+
arc.value = 0;
|
|
613
|
+
spinRing(rad);
|
|
614
|
+
}
|
|
615
|
+
t.value = 0;
|
|
616
|
+
t.value = withTiming(1, {
|
|
617
|
+
duration,
|
|
618
|
+
easing: Easing.linear
|
|
619
|
+
}, finished => {
|
|
620
|
+
if (!finished) {
|
|
621
|
+
return;
|
|
622
|
+
}
|
|
623
|
+
current.value = next.value;
|
|
624
|
+
if (next.value !== CANCEL) {
|
|
625
|
+
cancelAnimation(rad);
|
|
626
|
+
}
|
|
627
|
+
});
|
|
628
|
+
};
|
|
629
|
+
t7 = [icon, arc, current, next, rad, saved, t];
|
|
630
|
+
$[4] = arc;
|
|
631
|
+
$[5] = current;
|
|
632
|
+
$[6] = icon;
|
|
633
|
+
$[7] = next;
|
|
634
|
+
$[8] = rad;
|
|
635
|
+
$[9] = saved;
|
|
636
|
+
$[10] = t;
|
|
637
|
+
$[11] = t6;
|
|
638
|
+
$[12] = t7;
|
|
639
|
+
} else {
|
|
640
|
+
t6 = $[11];
|
|
641
|
+
t7 = $[12];
|
|
642
|
+
}
|
|
643
|
+
useEffect(t6, t7);
|
|
644
|
+
let t8;
|
|
645
|
+
let t9;
|
|
646
|
+
if ($[13] !== numericProgress || $[14] !== target) {
|
|
647
|
+
t8 = () => {
|
|
648
|
+
if (numericProgress != null) {
|
|
649
|
+
target.value = numericProgress;
|
|
650
|
+
}
|
|
651
|
+
};
|
|
652
|
+
t9 = [numericProgress, target];
|
|
653
|
+
$[13] = numericProgress;
|
|
654
|
+
$[14] = target;
|
|
655
|
+
$[15] = t8;
|
|
656
|
+
$[16] = t9;
|
|
657
|
+
} else {
|
|
658
|
+
t8 = $[15];
|
|
659
|
+
t9 = $[16];
|
|
660
|
+
}
|
|
661
|
+
useEffect(t8, t9);
|
|
662
|
+
useAnimatedReaction(() => progressSource.value, value => {
|
|
663
|
+
if (numericProgress == null) {
|
|
664
|
+
target.set(value);
|
|
665
|
+
}
|
|
666
|
+
});
|
|
667
|
+
useAnimatedReaction(() => target.value, value_0 => {
|
|
668
|
+
if (value_0 <= arc.get()) {
|
|
669
|
+
cancelAnimation(arc);
|
|
670
|
+
arc.set(value_0);
|
|
671
|
+
return;
|
|
672
|
+
}
|
|
673
|
+
arc.set(withTiming(value_0, {
|
|
674
|
+
duration: RADIAL_PROGRESS_MS,
|
|
675
|
+
easing: DECELERATE
|
|
676
|
+
}));
|
|
677
|
+
});
|
|
678
|
+
const frame = useDerivedValue(() => radialFrame(current.value, next.value, t.value, saved.value, arc.value, rad.value, size, isMini));
|
|
679
|
+
const arrowProps = useAnimatedProps(() => {
|
|
680
|
+
const r = frame.value;
|
|
681
|
+
return {
|
|
682
|
+
d: r.arrow || "M0 0",
|
|
683
|
+
opacity: r.arrowAlpha
|
|
684
|
+
};
|
|
685
|
+
});
|
|
686
|
+
const crossProps = useAnimatedProps(() => {
|
|
687
|
+
const r_0 = frame.value;
|
|
688
|
+
return {
|
|
689
|
+
d: r_0.cross || "M0 0",
|
|
690
|
+
opacity: r_0.crossAlpha
|
|
691
|
+
};
|
|
692
|
+
});
|
|
693
|
+
const arcProps = useAnimatedProps(() => {
|
|
694
|
+
const r_1 = frame.value;
|
|
695
|
+
return {
|
|
696
|
+
d: r_1.arc || "M0 0",
|
|
697
|
+
opacity: r_1.arcAlpha
|
|
698
|
+
};
|
|
699
|
+
});
|
|
700
|
+
const glyphStyle = useAnimatedStyle(() => {
|
|
701
|
+
const result = radialFrame(current.value, next.value, t.value, saved.value, 0, 0, size, isMini);
|
|
702
|
+
return {
|
|
703
|
+
opacity: result.glyphAlpha,
|
|
704
|
+
transform: [{
|
|
705
|
+
scale: result.glyphScale
|
|
706
|
+
}]
|
|
707
|
+
};
|
|
708
|
+
});
|
|
709
|
+
const circleStyle = useAnimatedStyle(() => {
|
|
710
|
+
const isAnimating = current.value !== next.value && t.value < 1;
|
|
711
|
+
if (!isAnimating) {
|
|
712
|
+
return {
|
|
713
|
+
opacity: next.value === NONE ? 0 : 1
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
if (current.value === NONE) {
|
|
717
|
+
return {
|
|
718
|
+
opacity: t.value
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
return {
|
|
722
|
+
opacity: next.value === NONE ? 1 - t.value : 1
|
|
723
|
+
};
|
|
724
|
+
});
|
|
725
|
+
const strokeWidth = isMini || size / INTRINSIC < 0.7 ? 2 : 3;
|
|
726
|
+
const t10 = size / 2;
|
|
727
|
+
let t11;
|
|
728
|
+
if ($[17] !== size || $[18] !== t10) {
|
|
729
|
+
t11 = {
|
|
730
|
+
width: size,
|
|
731
|
+
height: size,
|
|
732
|
+
borderRadius: t10
|
|
733
|
+
};
|
|
734
|
+
$[17] = size;
|
|
735
|
+
$[18] = t10;
|
|
736
|
+
$[19] = t11;
|
|
737
|
+
} else {
|
|
738
|
+
t11 = $[19];
|
|
739
|
+
}
|
|
740
|
+
const circle = t11;
|
|
741
|
+
let t12;
|
|
742
|
+
if ($[20] !== glyphSize || $[21] !== size) {
|
|
743
|
+
t12 = glyphSize ?? Math.round(18 * size / 44);
|
|
744
|
+
$[20] = glyphSize;
|
|
745
|
+
$[21] = size;
|
|
746
|
+
$[22] = t12;
|
|
747
|
+
} else {
|
|
748
|
+
t12 = $[22];
|
|
749
|
+
}
|
|
750
|
+
const glyph = t12;
|
|
751
|
+
let t13;
|
|
752
|
+
if ($[23] !== circle || $[24] !== style) {
|
|
753
|
+
t13 = [styles.root, circle, style];
|
|
754
|
+
$[23] = circle;
|
|
755
|
+
$[24] = style;
|
|
756
|
+
$[25] = t13;
|
|
757
|
+
} else {
|
|
758
|
+
t13 = $[25];
|
|
759
|
+
}
|
|
760
|
+
let t14;
|
|
761
|
+
if ($[26] !== backgroundColor || $[27] !== circleStyle || $[28] !== size) {
|
|
762
|
+
t14 = backgroundColor != null && <Animated.View style={[StyleSheet.absoluteFill, {
|
|
763
|
+
backgroundColor,
|
|
764
|
+
borderRadius: size / 2
|
|
765
|
+
}, circleStyle]} />;
|
|
766
|
+
$[26] = backgroundColor;
|
|
767
|
+
$[27] = circleStyle;
|
|
768
|
+
$[28] = size;
|
|
769
|
+
$[29] = t14;
|
|
770
|
+
} else {
|
|
771
|
+
t14 = $[29];
|
|
772
|
+
}
|
|
773
|
+
let t15;
|
|
774
|
+
if ($[30] !== glyphStyle) {
|
|
775
|
+
t15 = [StyleSheet.absoluteFill, styles.center, glyphStyle];
|
|
776
|
+
$[30] = glyphStyle;
|
|
777
|
+
$[31] = t15;
|
|
778
|
+
} else {
|
|
779
|
+
t15 = $[31];
|
|
780
|
+
}
|
|
781
|
+
const t16 = icon === "pause";
|
|
782
|
+
let t17;
|
|
783
|
+
if ($[32] !== color || $[33] !== glyph || $[34] !== t16) {
|
|
784
|
+
t17 = <PlayPauseIcon isPlaying={t16} color={color} size={glyph} />;
|
|
785
|
+
$[32] = color;
|
|
786
|
+
$[33] = glyph;
|
|
787
|
+
$[34] = t16;
|
|
788
|
+
$[35] = t17;
|
|
789
|
+
} else {
|
|
790
|
+
t17 = $[35];
|
|
791
|
+
}
|
|
792
|
+
let t18;
|
|
793
|
+
if ($[36] !== t15 || $[37] !== t17) {
|
|
794
|
+
t18 = <Animated.View style={t15}>{t17}</Animated.View>;
|
|
795
|
+
$[36] = t15;
|
|
796
|
+
$[37] = t17;
|
|
797
|
+
$[38] = t18;
|
|
798
|
+
} else {
|
|
799
|
+
t18 = $[38];
|
|
800
|
+
}
|
|
801
|
+
let t19;
|
|
802
|
+
if ($[39] !== arcProps || $[40] !== arrowProps || $[41] !== color || $[42] !== crossProps || $[43] !== size || $[44] !== strokeWidth) {
|
|
803
|
+
t19 = Svg && AnimatedPath && <Svg width={size} height={size} style={StyleSheet.absoluteFill}><AnimatedPath animatedProps={arrowProps} stroke={color} strokeWidth={strokeWidth} strokeLinecap="round" fill="none" /><AnimatedPath animatedProps={crossProps} stroke={color} strokeWidth={strokeWidth} strokeLinecap="round" fill="none" /><AnimatedPath animatedProps={arcProps} stroke={color} strokeWidth={strokeWidth} strokeLinecap="round" fill="none" /></Svg>;
|
|
804
|
+
$[39] = arcProps;
|
|
805
|
+
$[40] = arrowProps;
|
|
806
|
+
$[41] = color;
|
|
807
|
+
$[42] = crossProps;
|
|
808
|
+
$[43] = size;
|
|
809
|
+
$[44] = strokeWidth;
|
|
810
|
+
$[45] = t19;
|
|
811
|
+
} else {
|
|
812
|
+
t19 = $[45];
|
|
813
|
+
}
|
|
814
|
+
let t20;
|
|
815
|
+
if ($[46] !== color || $[47] !== frame || $[48] !== isMini || $[49] !== size || $[50] !== strokeWidth) {
|
|
816
|
+
t20 = !Svg && <><FallbackRing frame={frame} color={color} width={strokeWidth} size={size} isMini={isMini} />{[0, 1, 2].map(index => <FallbackStroke key={`arrow${index}`} frame={frame} isCross={false} index={index} color={color} width={strokeWidth} />)}{[0, 1].map(index_0 => <FallbackStroke key={`cross${index_0}`} frame={frame} isCross={true} index={index_0} color={color} width={strokeWidth} />)}</>;
|
|
817
|
+
$[46] = color;
|
|
818
|
+
$[47] = frame;
|
|
819
|
+
$[48] = isMini;
|
|
820
|
+
$[49] = size;
|
|
821
|
+
$[50] = strokeWidth;
|
|
822
|
+
$[51] = t20;
|
|
823
|
+
} else {
|
|
824
|
+
t20 = $[51];
|
|
825
|
+
}
|
|
826
|
+
let t21;
|
|
827
|
+
if ($[52] !== t13 || $[53] !== t14 || $[54] !== t18 || $[55] !== t19 || $[56] !== t20) {
|
|
828
|
+
t21 = <View pointerEvents="none" style={t13}>{t14}{t18}{t19}{t20}</View>;
|
|
829
|
+
$[52] = t13;
|
|
830
|
+
$[53] = t14;
|
|
831
|
+
$[54] = t18;
|
|
832
|
+
$[55] = t19;
|
|
833
|
+
$[56] = t20;
|
|
834
|
+
$[57] = t21;
|
|
835
|
+
} else {
|
|
836
|
+
t21 = $[57];
|
|
837
|
+
}
|
|
838
|
+
return t21;
|
|
839
|
+
}
|
|
840
|
+
const styles = StyleSheet.create({
|
|
841
|
+
root: {
|
|
842
|
+
overflow: 'hidden'
|
|
843
|
+
},
|
|
844
|
+
center: {
|
|
845
|
+
alignItems: 'center',
|
|
846
|
+
justifyContent: 'center'
|
|
847
|
+
},
|
|
848
|
+
stroke: {
|
|
849
|
+
position: 'absolute'
|
|
850
|
+
},
|
|
851
|
+
ring: {
|
|
852
|
+
position: 'absolute'
|
|
853
|
+
},
|
|
854
|
+
half: {
|
|
855
|
+
position: 'absolute',
|
|
856
|
+
top: 0,
|
|
857
|
+
overflow: 'hidden'
|
|
858
|
+
},
|
|
859
|
+
halfRing: {
|
|
860
|
+
position: 'absolute',
|
|
861
|
+
top: 0
|
|
862
|
+
}
|
|
863
|
+
});
|
|
864
|
+
//# sourceMappingURL=RadialProgress.js.map
|