stream-chat-react-native-core 9.2.0-beta.1 → 9.2.0-beta.3
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 +1 -1
- package/lib/commonjs/a11y/hooks/useA11yLabel.js +4 -3
- package/lib/commonjs/a11y/hooks/useA11yLabel.js.map +1 -1
- package/lib/commonjs/a11y/hooks/useAccessibilityActivateAction.js +25 -0
- package/lib/commonjs/a11y/hooks/useAccessibilityActivateAction.js.map +1 -0
- package/lib/commonjs/a11y/index.js +11 -0
- package/lib/commonjs/a11y/index.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +20 -0
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +1 -0
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +19 -2
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js +4 -3
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js +9 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +10 -1
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js +26 -3
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js +29 -4
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useChannelActions.js +314 -11
- package/lib/commonjs/components/ChannelList/hooks/useChannelActions.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +2 -2
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +202 -15
- package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageComposer.js +1 -1
- package/lib/commonjs/components/MessageInput/MessageComposerLeadingView.js +1 -1
- package/lib/commonjs/components/MessageInput/MessageComposerLeadingView.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js +1 -1
- package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInputTrailingView.js +1 -1
- package/lib/commonjs/components/MessageInput/MessageInputTrailingView.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +16 -4
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +7 -13
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js +30 -6
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +34 -9
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js +12 -3
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js +1 -0
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js +1 -0
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js +1 -1
- package/lib/commonjs/components/MessageList/MessageFlashList.js +24 -4
- package/lib/commonjs/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +24 -4
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +12 -6
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js +1 -0
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js +47 -0
- package/lib/commonjs/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js.map +1 -0
- package/lib/commonjs/components/MessageMenu/MessageActionListItem.js +12 -4
- package/lib/commonjs/components/MessageMenu/MessageActionListItem.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +1 -0
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/ReactionButton.js +9 -6
- package/lib/commonjs/components/MessageMenu/ReactionButton.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js +23 -2
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/commonjs/components/Notifications/Notification.js +232 -0
- package/lib/commonjs/components/Notifications/Notification.js.map +1 -0
- package/lib/commonjs/components/Notifications/NotificationList.js +120 -0
- package/lib/commonjs/components/Notifications/NotificationList.js.map +1 -0
- package/lib/commonjs/components/Notifications/NotificationTargetContext.js +45 -0
- package/lib/commonjs/components/Notifications/NotificationTargetContext.js.map +1 -0
- package/lib/commonjs/components/Notifications/hooks/index.js +59 -0
- package/lib/commonjs/components/Notifications/hooks/index.js.map +1 -0
- package/lib/commonjs/components/Notifications/hooks/useNotificationApi.js +133 -0
- package/lib/commonjs/components/Notifications/hooks/useNotificationApi.js.map +1 -0
- package/lib/commonjs/components/Notifications/hooks/useNotificationListController.js +133 -0
- package/lib/commonjs/components/Notifications/hooks/useNotificationListController.js.map +1 -0
- package/lib/commonjs/components/Notifications/hooks/useNotificationTarget.js +26 -0
- package/lib/commonjs/components/Notifications/hooks/useNotificationTarget.js.map +1 -0
- package/lib/commonjs/components/Notifications/hooks/useNotifications.js +26 -0
- package/lib/commonjs/components/Notifications/hooks/useNotifications.js.map +1 -0
- package/lib/commonjs/components/Notifications/hooks/useSystemNotifications.js +22 -0
- package/lib/commonjs/components/Notifications/hooks/useSystemNotifications.js.map +1 -0
- package/lib/commonjs/components/Notifications/index.js +59 -0
- package/lib/commonjs/components/Notifications/index.js.map +1 -0
- package/lib/commonjs/components/Notifications/notificationTarget.js +220 -0
- package/lib/commonjs/components/Notifications/notificationTarget.js.map +1 -0
- package/lib/commonjs/components/Notifications/notificationTranslations.js +137 -0
- package/lib/commonjs/components/Notifications/notificationTranslations.js.map +1 -0
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js +2 -0
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +2 -0
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollModalHeader.js +1 -0
- package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollOption.js +14 -9
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollState.js +35 -3
- package/lib/commonjs/components/Poll/hooks/usePollState.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +1 -0
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js +19 -11
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadList.js +30 -9
- package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/Avatar.js +6 -3
- package/lib/commonjs/components/ui/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/ui/Button/Button.js +16 -3
- package/lib/commonjs/components/ui/Button/Button.js.map +1 -1
- package/lib/commonjs/contexts/accessibilityContext/AccessibilityContext.js +21 -1
- package/lib/commonjs/contexts/accessibilityContext/AccessibilityContext.js.map +1 -1
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js +4 -0
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +37 -0
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +13 -0
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/hooks/index.js +11 -0
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/useAudioPlayer.js +34 -1
- package/lib/commonjs/hooks/useAudioPlayer.js.map +1 -1
- package/lib/commonjs/hooks/useInAppNotificationsState.js.map +1 -1
- package/lib/commonjs/hooks/useLazyRef.js +13 -0
- package/lib/commonjs/hooks/useLazyRef.js.map +1 -0
- package/lib/commonjs/i18n/en.json +94 -1
- package/lib/commonjs/i18n/es.json +96 -3
- package/lib/commonjs/i18n/fr.json +94 -1
- package/lib/commonjs/i18n/he.json +94 -1
- package/lib/commonjs/i18n/hi.json +94 -1
- package/lib/commonjs/i18n/it.json +94 -1
- package/lib/commonjs/i18n/ja.json +94 -1
- package/lib/commonjs/i18n/ko.json +94 -1
- package/lib/commonjs/i18n/nl.json +94 -1
- package/lib/commonjs/i18n/pt-br.json +94 -1
- package/lib/commonjs/i18n/ru.json +94 -1
- package/lib/commonjs/i18n/tr.json +94 -1
- package/lib/commonjs/mock-builders/DB/mock.js +3 -1
- package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
- package/lib/commonjs/state-store/audio-player-pool.js +1 -0
- package/lib/commonjs/state-store/audio-player-pool.js.map +1 -1
- package/lib/commonjs/state-store/audio-player.js +92 -13
- package/lib/commonjs/state-store/audio-player.js.map +1 -1
- package/lib/commonjs/test-utils/BetterSqlite.js +3 -2
- package/lib/commonjs/test-utils/BetterSqlite.js.map +1 -1
- package/lib/commonjs/theme/generated/dark/StreamTokens.android.js +16 -16
- package/lib/commonjs/theme/generated/dark/StreamTokens.android.js.map +1 -1
- package/lib/commonjs/theme/generated/dark/StreamTokens.ios.js +8 -8
- package/lib/commonjs/theme/generated/dark/StreamTokens.ios.js.map +1 -1
- package/lib/commonjs/theme/generated/dark/StreamTokens.web.js +8 -8
- package/lib/commonjs/theme/generated/dark/StreamTokens.web.js.map +1 -1
- package/lib/commonjs/theme/generated/light/StreamTokens.android.js +16 -16
- package/lib/commonjs/theme/generated/light/StreamTokens.android.js.map +1 -1
- package/lib/commonjs/theme/generated/light/StreamTokens.ios.js +8 -8
- package/lib/commonjs/theme/generated/light/StreamTokens.ios.js.map +1 -1
- package/lib/commonjs/theme/generated/light/StreamTokens.web.js +8 -8
- package/lib/commonjs/theme/generated/light/StreamTokens.web.js.map +1 -1
- package/lib/commonjs/utils/animations/createBoundedZoomTransition.js +151 -0
- package/lib/commonjs/utils/animations/createBoundedZoomTransition.js.map +1 -0
- package/lib/commonjs/utils/{transitions.js → animations/transitions.js} +6 -0
- package/lib/commonjs/utils/animations/transitions.js.map +1 -0
- package/lib/commonjs/version.json +1 -1
- package/lib/module/a11y/hooks/useA11yLabel.js +4 -3
- package/lib/module/a11y/hooks/useA11yLabel.js.map +1 -1
- package/lib/module/a11y/hooks/useAccessibilityActivateAction.js +25 -0
- package/lib/module/a11y/hooks/useAccessibilityActivateAction.js.map +1 -0
- package/lib/module/a11y/index.js +11 -0
- package/lib/module/a11y/index.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +20 -0
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +1 -0
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +19 -2
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js +4 -3
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js +9 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +10 -1
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useMessageListPagination.js +26 -3
- package/lib/module/components/Channel/hooks/useMessageListPagination.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js +29 -4
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useChannelActions.js +314 -11
- package/lib/module/components/ChannelList/hooks/useChannelActions.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +2 -2
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActionHandlers.js +202 -15
- package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/module/components/MessageInput/MessageComposer.js +1 -1
- package/lib/module/components/MessageInput/MessageComposerLeadingView.js +1 -1
- package/lib/module/components/MessageInput/MessageComposerLeadingView.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInputHeaderView.js +1 -1
- package/lib/module/components/MessageInput/MessageInputHeaderView.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInputTrailingView.js +1 -1
- package/lib/module/components/MessageInput/MessageInputTrailingView.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +16 -4
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +7 -13
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js +30 -6
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +34 -9
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js +12 -3
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js +1 -0
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js +1 -0
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/index.js +1 -1
- package/lib/module/components/MessageList/MessageFlashList.js +24 -4
- package/lib/module/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +24 -4
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/ScrollToBottomButton.js +12 -6
- package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/module/components/MessageList/UnreadMessagesNotification.js +1 -0
- package/lib/module/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js +47 -0
- package/lib/module/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js.map +1 -0
- package/lib/module/components/MessageMenu/MessageActionListItem.js +12 -4
- package/lib/module/components/MessageMenu/MessageActionListItem.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageReactionPicker.js +1 -0
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/module/components/MessageMenu/ReactionButton.js +9 -6
- package/lib/module/components/MessageMenu/ReactionButton.js.map +1 -1
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js +23 -2
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/module/components/Notifications/Notification.js +232 -0
- package/lib/module/components/Notifications/Notification.js.map +1 -0
- package/lib/module/components/Notifications/NotificationList.js +120 -0
- package/lib/module/components/Notifications/NotificationList.js.map +1 -0
- package/lib/module/components/Notifications/NotificationTargetContext.js +45 -0
- package/lib/module/components/Notifications/NotificationTargetContext.js.map +1 -0
- package/lib/module/components/Notifications/hooks/index.js +59 -0
- package/lib/module/components/Notifications/hooks/index.js.map +1 -0
- package/lib/module/components/Notifications/hooks/useNotificationApi.js +133 -0
- package/lib/module/components/Notifications/hooks/useNotificationApi.js.map +1 -0
- package/lib/module/components/Notifications/hooks/useNotificationListController.js +133 -0
- package/lib/module/components/Notifications/hooks/useNotificationListController.js.map +1 -0
- package/lib/module/components/Notifications/hooks/useNotificationTarget.js +26 -0
- package/lib/module/components/Notifications/hooks/useNotificationTarget.js.map +1 -0
- package/lib/module/components/Notifications/hooks/useNotifications.js +26 -0
- package/lib/module/components/Notifications/hooks/useNotifications.js.map +1 -0
- package/lib/module/components/Notifications/hooks/useSystemNotifications.js +22 -0
- package/lib/module/components/Notifications/hooks/useSystemNotifications.js.map +1 -0
- package/lib/module/components/Notifications/index.js +59 -0
- package/lib/module/components/Notifications/index.js.map +1 -0
- package/lib/module/components/Notifications/notificationTarget.js +220 -0
- package/lib/module/components/Notifications/notificationTarget.js.map +1 -0
- package/lib/module/components/Notifications/notificationTranslations.js +137 -0
- package/lib/module/components/Notifications/notificationTranslations.js.map +1 -0
- package/lib/module/components/Poll/components/CreatePollHeader.js +2 -0
- package/lib/module/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/module/components/Poll/components/MultipleVotesSettings.js +2 -0
- package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/module/components/Poll/components/PollModalHeader.js +1 -0
- package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/module/components/Poll/components/PollOption.js +14 -9
- package/lib/module/components/Poll/components/PollOption.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollState.js +35 -3
- package/lib/module/components/Poll/hooks/usePollState.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +1 -0
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/Thread/Thread.js +19 -11
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadList.js +30 -9
- package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/module/components/index.js +11 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/ui/Avatar/Avatar.js +6 -3
- package/lib/module/components/ui/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/ui/Button/Button.js +16 -3
- package/lib/module/components/ui/Button/Button.js.map +1 -1
- package/lib/module/contexts/accessibilityContext/AccessibilityContext.js +21 -1
- package/lib/module/contexts/accessibilityContext/AccessibilityContext.js.map +1 -1
- package/lib/module/contexts/componentsContext/defaultComponents.js +4 -0
- package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +37 -0
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +13 -0
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/hooks/index.js +11 -0
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useAudioPlayer.js +34 -1
- package/lib/module/hooks/useAudioPlayer.js.map +1 -1
- package/lib/module/hooks/useInAppNotificationsState.js.map +1 -1
- package/lib/module/hooks/useLazyRef.js +13 -0
- package/lib/module/hooks/useLazyRef.js.map +1 -0
- package/lib/module/i18n/en.json +94 -1
- package/lib/module/i18n/es.json +96 -3
- package/lib/module/i18n/fr.json +94 -1
- package/lib/module/i18n/he.json +94 -1
- package/lib/module/i18n/hi.json +94 -1
- package/lib/module/i18n/it.json +94 -1
- package/lib/module/i18n/ja.json +94 -1
- package/lib/module/i18n/ko.json +94 -1
- package/lib/module/i18n/nl.json +94 -1
- package/lib/module/i18n/pt-br.json +94 -1
- package/lib/module/i18n/ru.json +94 -1
- package/lib/module/i18n/tr.json +94 -1
- package/lib/module/mock-builders/DB/mock.js +3 -1
- package/lib/module/mock-builders/DB/mock.js.map +1 -1
- package/lib/module/state-store/audio-player-pool.js +1 -0
- package/lib/module/state-store/audio-player-pool.js.map +1 -1
- package/lib/module/state-store/audio-player.js +92 -13
- package/lib/module/state-store/audio-player.js.map +1 -1
- package/lib/module/test-utils/BetterSqlite.js +3 -2
- package/lib/module/test-utils/BetterSqlite.js.map +1 -1
- package/lib/module/theme/generated/dark/StreamTokens.android.js +16 -16
- package/lib/module/theme/generated/dark/StreamTokens.android.js.map +1 -1
- package/lib/module/theme/generated/dark/StreamTokens.ios.js +8 -8
- package/lib/module/theme/generated/dark/StreamTokens.ios.js.map +1 -1
- package/lib/module/theme/generated/dark/StreamTokens.web.js +8 -8
- package/lib/module/theme/generated/dark/StreamTokens.web.js.map +1 -1
- package/lib/module/theme/generated/light/StreamTokens.android.js +16 -16
- package/lib/module/theme/generated/light/StreamTokens.android.js.map +1 -1
- package/lib/module/theme/generated/light/StreamTokens.ios.js +8 -8
- package/lib/module/theme/generated/light/StreamTokens.ios.js.map +1 -1
- package/lib/module/theme/generated/light/StreamTokens.web.js +8 -8
- package/lib/module/theme/generated/light/StreamTokens.web.js.map +1 -1
- package/lib/module/utils/animations/createBoundedZoomTransition.js +151 -0
- package/lib/module/utils/animations/createBoundedZoomTransition.js.map +1 -0
- package/lib/module/utils/{transitions.js → animations/transitions.js} +6 -0
- package/lib/module/utils/animations/transitions.js.map +1 -0
- package/lib/module/version.json +1 -1
- package/lib/typescript/a11y/a11yUtils.d.ts +3 -3
- package/lib/typescript/a11y/a11yUtils.d.ts.map +1 -1
- package/lib/typescript/a11y/hooks/useA11yLabel.d.ts +2 -1
- package/lib/typescript/a11y/hooks/useA11yLabel.d.ts.map +1 -1
- package/lib/typescript/a11y/hooks/useAccessibilityActivateAction.d.ts +17 -0
- package/lib/typescript/a11y/hooks/useAccessibilityActivateAction.d.ts.map +1 -0
- package/lib/typescript/a11y/index.d.ts +1 -0
- package/lib/typescript/a11y/index.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerContent.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentTypePickerButton.d.ts +2 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentTypePickerButton.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +1 -0
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +1 -0
- package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useChannelActions.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.d.ts +5 -2
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputButtons/AttachButton.d.ts +1 -0
- package/lib/typescript/components/MessageInput/components/InputButtons/AttachButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/EditButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/SendButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageFlashList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts +2 -0
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useScrollToBottomAccessibilityAction.d.ts +20 -0
- package/lib/typescript/components/MessageList/hooks/useScrollToBottomAccessibilityAction.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/MessageActionListItem.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/ReactionButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +1 -1
- package/lib/typescript/components/Notifications/Notification.d.ts +31 -0
- package/lib/typescript/components/Notifications/Notification.d.ts.map +1 -0
- package/lib/typescript/components/Notifications/NotificationList.d.ts +28 -0
- package/lib/typescript/components/Notifications/NotificationList.d.ts.map +1 -0
- package/lib/typescript/components/Notifications/NotificationTargetContext.d.ts +14 -0
- package/lib/typescript/components/Notifications/NotificationTargetContext.d.ts.map +1 -0
- package/lib/typescript/components/Notifications/hooks/index.d.ts +6 -0
- package/lib/typescript/components/Notifications/hooks/index.d.ts.map +1 -0
- package/lib/typescript/components/Notifications/hooks/useNotificationApi.d.ts +48 -0
- package/lib/typescript/components/Notifications/hooks/useNotificationApi.d.ts.map +1 -0
- package/lib/typescript/components/Notifications/hooks/useNotificationListController.d.ts +14 -0
- package/lib/typescript/components/Notifications/hooks/useNotificationListController.d.ts.map +1 -0
- package/lib/typescript/components/Notifications/hooks/useNotificationTarget.d.ts +3 -0
- package/lib/typescript/components/Notifications/hooks/useNotificationTarget.d.ts.map +1 -0
- package/lib/typescript/components/Notifications/hooks/useNotifications.d.ts +14 -0
- package/lib/typescript/components/Notifications/hooks/useNotifications.d.ts.map +1 -0
- package/lib/typescript/components/Notifications/hooks/useSystemNotifications.d.ts +9 -0
- package/lib/typescript/components/Notifications/hooks/useSystemNotifications.d.ts.map +1 -0
- package/lib/typescript/components/Notifications/index.d.ts +6 -0
- package/lib/typescript/components/Notifications/index.d.ts.map +1 -0
- package/lib/typescript/components/Notifications/notificationTarget.d.ts +55 -0
- package/lib/typescript/components/Notifications/notificationTarget.d.ts.map +1 -0
- package/lib/typescript/components/Notifications/notificationTranslations.d.ts +7 -0
- package/lib/typescript/components/Notifications/notificationTranslations.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/CreatePollHeader.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts.map +1 -1
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
- package/lib/typescript/components/Thread/Thread.d.ts +1 -0
- package/lib/typescript/components/Thread/Thread.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadList.d.ts +3 -1
- package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/ui/Avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/components/ui/Button/Button.d.ts +10 -1
- package/lib/typescript/components/ui/Button/Button.d.ts.map +1 -1
- package/lib/typescript/contexts/accessibilityContext/AccessibilityContext.d.ts +1 -1
- package/lib/typescript/contexts/accessibilityContext/AccessibilityContext.d.ts.map +1 -1
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +3 -0
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/ThemeContext.d.ts +13 -0
- package/lib/typescript/contexts/themeContext/ThemeContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +13 -0
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/hooks/index.d.ts +1 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -1
- package/lib/typescript/hooks/useAudioPlayer.d.ts.map +1 -1
- package/lib/typescript/hooks/useInAppNotificationsState.d.ts +6 -0
- package/lib/typescript/hooks/useInAppNotificationsState.d.ts.map +1 -1
- package/lib/typescript/hooks/useLazyRef.d.ts +7 -0
- package/lib/typescript/hooks/useLazyRef.d.ts.map +1 -0
- package/lib/typescript/i18n/en.json +94 -1
- package/lib/typescript/i18n/es.json +96 -3
- package/lib/typescript/i18n/fr.json +94 -1
- package/lib/typescript/i18n/he.json +94 -1
- package/lib/typescript/i18n/hi.json +94 -1
- package/lib/typescript/i18n/it.json +94 -1
- package/lib/typescript/i18n/ja.json +94 -1
- package/lib/typescript/i18n/ko.json +94 -1
- package/lib/typescript/i18n/nl.json +94 -1
- package/lib/typescript/i18n/pt-br.json +94 -1
- package/lib/typescript/i18n/ru.json +94 -1
- package/lib/typescript/i18n/tr.json +94 -1
- package/lib/typescript/state-store/audio-player-pool.d.ts.map +1 -1
- package/lib/typescript/state-store/audio-player.d.ts +13 -0
- package/lib/typescript/state-store/audio-player.d.ts.map +1 -1
- package/lib/typescript/test-utils/BetterSqlite.d.ts.map +1 -1
- package/lib/typescript/utils/animations/createBoundedZoomTransition.d.ts +21 -0
- package/lib/typescript/utils/animations/createBoundedZoomTransition.d.ts.map +1 -0
- package/lib/typescript/utils/animations/transitions.d.ts +21 -0
- package/lib/typescript/utils/animations/transitions.d.ts.map +1 -0
- package/lib/typescript/utils/i18n/Streami18n.d.ts +93 -0
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/offline-support/offline-feature.tsx +40 -34
- package/src/a11y/a11yUtils.ts +2 -2
- package/src/a11y/hooks/useA11yLabel.ts +7 -4
- package/src/a11y/hooks/useAccessibilityActivateAction.ts +44 -0
- package/src/a11y/index.ts +1 -0
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +23 -1
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.tsx +1 -0
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +15 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerContent.tsx +4 -3
- package/src/components/AttachmentPicker/components/AttachmentTypePickerButton.tsx +9 -0
- package/src/components/AttachmentPicker/components/__tests__/AttachmentPickerContent.test.tsx +19 -18
- package/src/components/Channel/Channel.tsx +15 -1
- package/src/components/Channel/__tests__/useMessageListPagination.test.tsx +34 -2
- package/src/components/Channel/hooks/useMessageListPagination.tsx +19 -3
- package/src/components/ChannelList/ChannelList.tsx +27 -5
- package/src/components/ChannelList/__tests__/ChannelListView.test.tsx +16 -5
- package/src/components/ChannelList/hooks/__tests__/useChannelActions.test.tsx +123 -0
- package/src/components/ChannelList/hooks/useChannelActions.ts +181 -12
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +9 -3
- package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +4 -1
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +2 -2
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +1 -1
- package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +1 -1
- package/src/components/Message/hooks/__tests__/useMessageActionHandlers.test.tsx +131 -0
- package/src/components/Message/hooks/useMessageActionHandlers.ts +133 -23
- package/src/components/MessageInput/MessageComposer.tsx +1 -1
- package/src/components/MessageInput/MessageComposerLeadingView.tsx +1 -1
- package/src/components/MessageInput/MessageInputHeaderView.tsx +1 -1
- package/src/components/MessageInput/MessageInputTrailingView.tsx +1 -1
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.tsx +18 -2
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.tsx +1 -10
- package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx +13 -2
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +35 -14
- package/src/components/MessageInput/components/InputButtons/AttachButton.tsx +13 -3
- package/src/components/MessageInput/components/OutputButtons/EditButton.tsx +1 -0
- package/src/components/MessageInput/components/OutputButtons/SendButton.tsx +1 -0
- package/src/components/MessageInput/components/OutputButtons/index.tsx +1 -1
- package/src/components/MessageList/MessageFlashList.tsx +26 -3
- package/src/components/MessageList/MessageList.tsx +26 -3
- package/src/components/MessageList/ScrollToBottomButton.tsx +18 -6
- package/src/components/MessageList/UnreadMessagesNotification.tsx +1 -0
- package/src/components/MessageList/__tests__/MessageList.test.tsx +221 -0
- package/src/components/MessageList/__tests__/ScrollToBottomButton.test.tsx +2 -2
- package/src/components/MessageList/__tests__/__snapshots__/ScrollToBottomButton.test.tsx.snap +3 -1
- package/src/components/MessageList/hooks/useScrollToBottomAccessibilityAction.ts +74 -0
- package/src/components/MessageMenu/MessageActionListItem.tsx +10 -4
- package/src/components/MessageMenu/MessageReactionPicker.tsx +1 -0
- package/src/components/MessageMenu/ReactionButton.tsx +7 -9
- package/src/components/MessageMenu/__tests__/MessageReactionPicker.test.tsx +13 -15
- package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +20 -18
- package/src/components/MessageMenu/__tests__/ReactionButton.test.tsx +18 -5
- package/src/components/MessageMenu/hooks/useFetchReactions.ts +17 -2
- package/src/components/Notifications/Notification.tsx +254 -0
- package/src/components/Notifications/NotificationList.tsx +160 -0
- package/src/components/Notifications/NotificationTargetContext.tsx +45 -0
- package/src/components/Notifications/__tests__/NotificationList.test.tsx +480 -0
- package/src/components/Notifications/__tests__/notificationTarget.test.ts +157 -0
- package/src/components/Notifications/hooks/__tests__/useNotificationApi.test.tsx +172 -0
- package/src/components/Notifications/hooks/__tests__/useNotificationTarget.test.tsx +85 -0
- package/src/components/Notifications/hooks/index.ts +5 -0
- package/src/components/Notifications/hooks/useNotificationApi.ts +248 -0
- package/src/components/Notifications/hooks/useNotificationListController.ts +160 -0
- package/src/components/Notifications/hooks/useNotificationTarget.ts +37 -0
- package/src/components/Notifications/hooks/useNotifications.ts +43 -0
- package/src/components/Notifications/hooks/useSystemNotifications.ts +33 -0
- package/src/components/Notifications/index.ts +5 -0
- package/src/components/Notifications/notificationTarget.ts +305 -0
- package/src/components/Notifications/notificationTranslations.ts +142 -0
- package/src/components/Poll/components/CreatePollHeader.tsx +2 -0
- package/src/components/Poll/components/MultipleVotesSettings.tsx +2 -0
- package/src/components/Poll/components/PollModalHeader.tsx +1 -0
- package/src/components/Poll/components/PollOption.tsx +10 -6
- package/src/components/Poll/hooks/usePollState.ts +26 -2
- package/src/components/Reply/Reply.tsx +4 -1
- package/src/components/Thread/Thread.tsx +24 -16
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.tsx.snap +3 -0
- package/src/components/ThreadList/ThreadList.tsx +33 -9
- package/src/components/index.ts +2 -0
- package/src/components/ui/Avatar/Avatar.tsx +2 -1
- package/src/components/ui/Button/Button.tsx +26 -0
- package/src/components/ui/Button/__tests__/Button.test.tsx +44 -0
- package/src/contexts/accessibilityContext/AccessibilityContext.tsx +35 -1
- package/src/contexts/componentsContext/defaultComponents.ts +4 -0
- package/src/contexts/messageInputContext/MessageInputContext.tsx +36 -0
- package/src/contexts/themeContext/utils/theme.ts +26 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useAudioPlayer.ts +44 -3
- package/src/hooks/useInAppNotificationsState.ts +6 -0
- package/src/hooks/useLazyRef.ts +15 -0
- package/src/i18n/en.json +94 -1
- package/src/i18n/es.json +96 -3
- package/src/i18n/fr.json +94 -1
- package/src/i18n/he.json +94 -1
- package/src/i18n/hi.json +94 -1
- package/src/i18n/it.json +94 -1
- package/src/i18n/ja.json +94 -1
- package/src/i18n/ko.json +94 -1
- package/src/i18n/nl.json +94 -1
- package/src/i18n/pt-br.json +94 -1
- package/src/i18n/ru.json +94 -1
- package/src/i18n/tr.json +94 -1
- package/src/mock-builders/DB/mock.ts +2 -1
- package/src/state-store/__tests__/audio-player.test.ts +45 -0
- package/src/state-store/audio-player-pool.ts +1 -0
- package/src/state-store/audio-player.ts +108 -16
- package/src/test-utils/BetterSqlite.ts +3 -1
- package/src/theme/generated/dark/StreamTokens.android.ts +16 -16
- package/src/theme/generated/dark/StreamTokens.ios.ts +8 -8
- package/src/theme/generated/dark/StreamTokens.web.ts +8 -8
- package/src/theme/generated/light/StreamTokens.android.ts +16 -16
- package/src/theme/generated/light/StreamTokens.ios.ts +8 -8
- package/src/theme/generated/light/StreamTokens.web.ts +8 -8
- package/src/utils/animations/createBoundedZoomTransition.ts +117 -0
- package/src/utils/{transitions.ts → animations/transitions.ts} +6 -0
- package/src/version.json +1 -1
- package/lib/commonjs/utils/transitions.js.map +0 -1
- package/lib/module/utils/transitions.js.map +0 -1
- package/lib/typescript/utils/transitions.d.ts +0 -9
- package/lib/typescript/utils/transitions.d.ts.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type EntryAnimationsValues, type ExitAnimationsValues, type LayoutAnimation } from 'react-native-reanimated';
|
|
2
|
+
export type BoundedZoomDirection = 'bottom' | 'left' | 'right' | 'top';
|
|
3
|
+
type CreateBoundedZoomTransitionParams = {
|
|
4
|
+
duration: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const createBoundedZoomTransition: ({ duration }: CreateBoundedZoomTransitionParams) => {
|
|
7
|
+
readonly boundedZoomIn: {
|
|
8
|
+
readonly bottom: (values: EntryAnimationsValues) => LayoutAnimation;
|
|
9
|
+
readonly left: (values: EntryAnimationsValues) => LayoutAnimation;
|
|
10
|
+
readonly right: (values: EntryAnimationsValues) => LayoutAnimation;
|
|
11
|
+
readonly top: (values: EntryAnimationsValues) => LayoutAnimation;
|
|
12
|
+
};
|
|
13
|
+
readonly boundedZoomOut: {
|
|
14
|
+
readonly bottom: (values: ExitAnimationsValues) => LayoutAnimation;
|
|
15
|
+
readonly left: (values: ExitAnimationsValues) => LayoutAnimation;
|
|
16
|
+
readonly right: (values: ExitAnimationsValues) => LayoutAnimation;
|
|
17
|
+
readonly top: (values: ExitAnimationsValues) => LayoutAnimation;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=createBoundedZoomTransition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createBoundedZoomTransition.d.ts","sourceRoot":"","sources":["../../../../src/utils/animations/createBoundedZoomTransition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EAErB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAEvE,KAAK,iCAAiC,GAAG;IACvC,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAoCF,eAAO,MAAM,2BAA2B,GAAI,cAAc,iCAAiC;;kCAG9E,qBAAqB,KAAG,eAAe;gCAAvC,qBAAqB,KAAG,eAAe;iCAAvC,qBAAqB,KAAG,eAAe;+BAAvC,qBAAqB,KAAG,eAAe;;;kCAyBvC,oBAAoB,KAAG,eAAe;gCAAtC,oBAAoB,KAAG,eAAe;iCAAtC,oBAAoB,KAAG,eAAe;+BAAtC,oBAAoB,KAAG,eAAe;;CAyClD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FadeIn, FadeOut, LinearTransition, ZoomIn, ZoomOut } from 'react-native-reanimated';
|
|
2
|
+
export declare const transitions: {
|
|
3
|
+
readonly boundedZoomIn200: {
|
|
4
|
+
readonly bottom: (values: import("react-native-reanimated").EntryAnimationsValues) => import("react-native-reanimated").LayoutAnimation;
|
|
5
|
+
readonly left: (values: import("react-native-reanimated").EntryAnimationsValues) => import("react-native-reanimated").LayoutAnimation;
|
|
6
|
+
readonly right: (values: import("react-native-reanimated").EntryAnimationsValues) => import("react-native-reanimated").LayoutAnimation;
|
|
7
|
+
readonly top: (values: import("react-native-reanimated").EntryAnimationsValues) => import("react-native-reanimated").LayoutAnimation;
|
|
8
|
+
};
|
|
9
|
+
readonly boundedZoomOut200: {
|
|
10
|
+
readonly bottom: (values: import("react-native-reanimated").ExitAnimationsValues) => import("react-native-reanimated").LayoutAnimation;
|
|
11
|
+
readonly left: (values: import("react-native-reanimated").ExitAnimationsValues) => import("react-native-reanimated").LayoutAnimation;
|
|
12
|
+
readonly right: (values: import("react-native-reanimated").ExitAnimationsValues) => import("react-native-reanimated").LayoutAnimation;
|
|
13
|
+
readonly top: (values: import("react-native-reanimated").ExitAnimationsValues) => import("react-native-reanimated").LayoutAnimation;
|
|
14
|
+
};
|
|
15
|
+
readonly fadeIn200: FadeIn;
|
|
16
|
+
readonly fadeOut200: FadeOut;
|
|
17
|
+
readonly layout200: LinearTransition;
|
|
18
|
+
readonly zoomIn200: ZoomIn;
|
|
19
|
+
readonly zoomOut200: ZoomOut;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=transitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../../../src/utils/animations/transitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAM7F,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;CAQd,CAAC"}
|
|
@@ -173,10 +173,17 @@ export declare class Streami18n {
|
|
|
173
173
|
"Empty message...": string;
|
|
174
174
|
"Enter a new option": string;
|
|
175
175
|
"End Vote": string;
|
|
176
|
+
"Error adding flag": string;
|
|
177
|
+
"Error deleting message": string;
|
|
178
|
+
"Error fetching reactions": string;
|
|
176
179
|
"Error loading": string;
|
|
177
180
|
"Error loading channel list...": string;
|
|
178
181
|
"Error loading messages for this channel...": string;
|
|
179
182
|
"Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.": string;
|
|
183
|
+
"Error muting a user ...": string;
|
|
184
|
+
"Error pinning message": string;
|
|
185
|
+
"Error removing message pin": string;
|
|
186
|
+
"Error unmuting a user ...": string;
|
|
180
187
|
"Error while loading, please reload/refresh": string;
|
|
181
188
|
"File is too large: {{ size }}, maximum upload size is {{ limit }}": string;
|
|
182
189
|
"File too large": string;
|
|
@@ -187,6 +194,7 @@ export declare class Streami18n {
|
|
|
187
194
|
"Generating...": string;
|
|
188
195
|
Giphy: string;
|
|
189
196
|
"Hide who voted": string;
|
|
197
|
+
"Hold to record. Release to save.": string;
|
|
190
198
|
"Hold to start recording.": string;
|
|
191
199
|
"How about sending your first message to a friend?": string;
|
|
192
200
|
"Instant Commands": string;
|
|
@@ -203,7 +211,11 @@ export declare class Streami18n {
|
|
|
203
211
|
"Maximum number of files reached": string;
|
|
204
212
|
"Message Reactions": string;
|
|
205
213
|
"Message deleted": string;
|
|
214
|
+
"Message has been successfully flagged": string;
|
|
206
215
|
"Message flagged": string;
|
|
216
|
+
"Message marked as unread": string;
|
|
217
|
+
"Message pinned": string;
|
|
218
|
+
"Message unpinned": string;
|
|
207
219
|
"Multiple votes": string;
|
|
208
220
|
"Network error": string;
|
|
209
221
|
"Select more than one option": string;
|
|
@@ -275,6 +287,7 @@ export declare class Streami18n {
|
|
|
275
287
|
"View {{count}} comments_other": string;
|
|
276
288
|
"Voice message": string;
|
|
277
289
|
"Voice message ({{duration}})": string;
|
|
290
|
+
"Voice message deleted": string;
|
|
278
291
|
"Your comment": string;
|
|
279
292
|
You: string;
|
|
280
293
|
"You can't send messages in this channel": string;
|
|
@@ -387,6 +400,10 @@ export declare class Streami18n {
|
|
|
387
400
|
"a11y/Read": string;
|
|
388
401
|
"a11y/Reconnecting": string;
|
|
389
402
|
"a11y/Reply to {{user}}": string;
|
|
403
|
+
"a11y/Remove edit": string;
|
|
404
|
+
"a11y/Remove reply": string;
|
|
405
|
+
"a11y/Scroll to bottom": string;
|
|
406
|
+
"a11y/Scroll to bottom, {{count}} new messages": string;
|
|
390
407
|
"a11y/Scroll to latest": string;
|
|
391
408
|
"a11y/Scroll to latest, {{count}} unread": string;
|
|
392
409
|
"a11y/Send message": string;
|
|
@@ -394,6 +411,82 @@ export declare class Streami18n {
|
|
|
394
411
|
"a11y/Sent": string;
|
|
395
412
|
"a11y/Voice message recording. Hold to record.": string;
|
|
396
413
|
"a11y/{{count}} new messages": string;
|
|
414
|
+
"a11y/Add attachment": string;
|
|
415
|
+
"a11y/Close attachments": string;
|
|
416
|
+
"a11y/Remove attachment": string;
|
|
417
|
+
"a11y/Close poll": string;
|
|
418
|
+
"a11y/Close poll creation": string;
|
|
419
|
+
"a11y/Create poll": string;
|
|
420
|
+
"a11y/Decrease maximum votes": string;
|
|
421
|
+
"a11y/Delete voice recording": string;
|
|
422
|
+
"a11y/Deselect image": string;
|
|
423
|
+
"a11y/Deselect video": string;
|
|
424
|
+
"a11y/Dismiss unread messages": string;
|
|
425
|
+
"a11y/Grid Icon": string;
|
|
426
|
+
"a11y/Hide Overlay": string;
|
|
427
|
+
"a11y/Increase maximum votes": string;
|
|
428
|
+
"a11y/Open camera": string;
|
|
429
|
+
"a11y/Open commands": string;
|
|
430
|
+
"a11y/Open file picker": string;
|
|
431
|
+
"a11y/Open more reactions": string;
|
|
432
|
+
"a11y/Open photo picker": string;
|
|
433
|
+
"a11y/Open poll creation": string;
|
|
434
|
+
"a11y/Open video recorder": string;
|
|
435
|
+
"a11y/Play Pause Button": string;
|
|
436
|
+
"a11y/reaction-button-{{type}}-{{selected}}": string;
|
|
437
|
+
"a11y/Save edited message": string;
|
|
438
|
+
"a11y/Select image": string;
|
|
439
|
+
"a11y/Select video": string;
|
|
440
|
+
"a11y/Send voice recording": string;
|
|
441
|
+
"a11y/Share Button": string;
|
|
442
|
+
"a11y/Start voice recording": string;
|
|
443
|
+
"a11y/Stop voice recording": string;
|
|
444
|
+
"a11y/Notifications": string;
|
|
445
|
+
"a11y/Dismiss notification": string;
|
|
446
|
+
"Attachment upload blocked due to {{reason}}": string;
|
|
447
|
+
"Attachment upload failed due to {{reason}}": string;
|
|
448
|
+
"Command not available": string;
|
|
449
|
+
"Command not available while editing": string;
|
|
450
|
+
"Command not available while replying": string;
|
|
451
|
+
"Error reproducing the recording": string;
|
|
452
|
+
"Error uploading attachment": string;
|
|
453
|
+
"Failed to create the poll": string;
|
|
454
|
+
"Failed to create the poll due to {{reason}}": string;
|
|
455
|
+
"Failed to end the poll": string;
|
|
456
|
+
"Failed to end the poll due to {{reason}}": string;
|
|
457
|
+
"Failed to jump to the first unread message": string;
|
|
458
|
+
"Failed to retrieve location": string;
|
|
459
|
+
"Failed to share location": string;
|
|
460
|
+
"File is required for upload attachment": string;
|
|
461
|
+
"Local upload attachment missing local id": string;
|
|
462
|
+
"Poll ended": string;
|
|
463
|
+
"Reached the vote limit. Remove an existing vote first.": string;
|
|
464
|
+
"Thread has not been found": string;
|
|
465
|
+
"Wait until all attachments have uploaded": string;
|
|
466
|
+
"Cannot seek in the recording": string;
|
|
467
|
+
"Channel archived": string;
|
|
468
|
+
"Channel muted": string;
|
|
469
|
+
"Channel pinned": string;
|
|
470
|
+
"Channel unarchived": string;
|
|
471
|
+
"Channel unmuted": string;
|
|
472
|
+
"Channel unpinned": string;
|
|
473
|
+
"Edit message request failed": string;
|
|
474
|
+
"Failed to block user": string;
|
|
475
|
+
"Failed to leave channel": string;
|
|
476
|
+
"Failed to play the recording": string;
|
|
477
|
+
"Failed to update channel archive status": string;
|
|
478
|
+
"Failed to update channel mute status": string;
|
|
479
|
+
"Failed to update channel pinned status": string;
|
|
480
|
+
"Left channel": string;
|
|
481
|
+
"Recording format is not supported and cannot be reproduced": string;
|
|
482
|
+
"Send message request failed": string;
|
|
483
|
+
"User blocked": string;
|
|
484
|
+
"User unblocked": string;
|
|
485
|
+
"{{ user }} has been muted": string;
|
|
486
|
+
"{{ user }} has been unmuted": string;
|
|
487
|
+
"size limit": string;
|
|
488
|
+
"unknown error": string;
|
|
489
|
+
"unsupported file type": string;
|
|
397
490
|
}>;
|
|
398
491
|
};
|
|
399
492
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Streami18n.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n/Streami18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAa,EAAE,WA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA2B;IAE1C;;OAEG;IACG,cAAc;;;;IAmBpB;;OAEG;IACH,mBAAmB,CACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,OAAO,CAAC,OAAO,cAAc,CAAC,EAC3C,iBAAiB,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;IA+BtC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC;IASvD;;;OAGG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM;IAsBlC,2BAA2B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW5D,8BAA8B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW/D,iBAAiB,CAAC,SAAS,EAAE,SAAS;CAQvC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "9.2.0-beta.
|
|
4
|
+
"version": "9.2.0-beta.3",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"path": "0.12.7",
|
|
84
84
|
"react-native-markdown-package": "1.8.2",
|
|
85
85
|
"react-native-url-polyfill": "^2.0.0",
|
|
86
|
-
"stream-chat": "^9.43.
|
|
86
|
+
"stream-chat": "^9.43.2",
|
|
87
87
|
"use-sync-external-store": "^1.5.0"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
@@ -643,26 +643,29 @@ export const Generic = () => {
|
|
|
643
643
|
await waitFor(() => expect(screen.getByTestId('channel-list-view')).toBeTruthy());
|
|
644
644
|
const removedChannel = channels[getRandomInt(0, channels.length - 1)].channel;
|
|
645
645
|
act(() => dispatchNotificationRemovedFromChannel(chatClient, removedChannel));
|
|
646
|
-
await waitFor(
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
(
|
|
651
|
-
(node
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
646
|
+
await waitFor(
|
|
647
|
+
async () => {
|
|
648
|
+
const channelIdsOnUI = screen
|
|
649
|
+
.queryAllByLabelText('list-item')
|
|
650
|
+
.map(
|
|
651
|
+
(node) =>
|
|
652
|
+
(node as unknown as { _fiber: { pendingProps: { testID: string } } })._fiber
|
|
653
|
+
.pendingProps.testID,
|
|
654
|
+
);
|
|
655
|
+
expect(channelIdsOnUI.includes(removedChannel.cid)).toBeFalsy();
|
|
656
|
+
await expectCIDsOnUIToBeInDB(screen.queryAllByLabelText);
|
|
656
657
|
|
|
657
|
-
|
|
658
|
-
|
|
658
|
+
const channelsRows = await BetterSqlite.selectFromTable('channels');
|
|
659
|
+
const matchingRows = channelsRows.filter((c) => c.id === removedChannel.id);
|
|
659
660
|
|
|
660
|
-
|
|
661
|
-
|
|
661
|
+
const messagesRows = await BetterSqlite.selectFromTable('messages');
|
|
662
|
+
const matchingMessagesRows = messagesRows.filter((m) => m.cid === removedChannel.cid);
|
|
662
663
|
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
664
|
+
expect(matchingRows.length).toBe(0);
|
|
665
|
+
expect(matchingMessagesRows.length).toBe(0);
|
|
666
|
+
},
|
|
667
|
+
{ timeout: 5000 },
|
|
668
|
+
);
|
|
666
669
|
});
|
|
667
670
|
|
|
668
671
|
it('should remove the channel from DB if the channel is deleted', async () => {
|
|
@@ -674,26 +677,29 @@ export const Generic = () => {
|
|
|
674
677
|
await waitFor(() => expect(screen.getByTestId('channel-list-view')).toBeTruthy());
|
|
675
678
|
const removedChannel = channels[getRandomInt(0, channels.length - 1)].channel;
|
|
676
679
|
act(() => dispatchChannelDeletedEvent(chatClient, removedChannel));
|
|
677
|
-
await waitFor(
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
(
|
|
682
|
-
(node
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
680
|
+
await waitFor(
|
|
681
|
+
async () => {
|
|
682
|
+
const channelIdsOnUI = screen
|
|
683
|
+
.queryAllByLabelText('list-item')
|
|
684
|
+
.map(
|
|
685
|
+
(node) =>
|
|
686
|
+
(node as unknown as { _fiber: { pendingProps: { testID: string } } })._fiber
|
|
687
|
+
.pendingProps.testID,
|
|
688
|
+
);
|
|
689
|
+
expect(channelIdsOnUI.includes(removedChannel.cid)).toBeFalsy();
|
|
690
|
+
await expectCIDsOnUIToBeInDB(screen.queryAllByLabelText);
|
|
687
691
|
|
|
688
|
-
|
|
689
|
-
|
|
692
|
+
const channelsRows = await BetterSqlite.selectFromTable('channels');
|
|
693
|
+
const matchingRows = channelsRows.filter((c) => c.id === removedChannel.id);
|
|
690
694
|
|
|
691
|
-
|
|
692
|
-
|
|
695
|
+
const messagesRows = await BetterSqlite.selectFromTable('messages');
|
|
696
|
+
const matchingMessagesRows = messagesRows.filter((m) => m.cid === removedChannel.cid);
|
|
693
697
|
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
698
|
+
expect(matchingRows.length).toBe(0);
|
|
699
|
+
expect(matchingMessagesRows.length).toBe(0);
|
|
700
|
+
},
|
|
701
|
+
{ timeout: 5000 },
|
|
702
|
+
);
|
|
697
703
|
});
|
|
698
704
|
|
|
699
705
|
it('should correctly mark the channel as hidden in the db', async () => {
|
package/src/a11y/a11yUtils.ts
CHANGED
|
@@ -34,10 +34,10 @@ export const formatAccessibilityValue = ({
|
|
|
34
34
|
/**
|
|
35
35
|
* Merge two `accessibilityActions` arrays, deduplicating by `name` (later wins).
|
|
36
36
|
*/
|
|
37
|
-
type A11yAction = { name: string; label?: string }
|
|
37
|
+
type A11yAction = Readonly<{ name: string; label?: string }>;
|
|
38
38
|
|
|
39
39
|
export const mergeAccessibilityActions = (
|
|
40
|
-
...actionLists: Array<A11yAction
|
|
40
|
+
...actionLists: Array<ReadonlyArray<A11yAction> | undefined>
|
|
41
41
|
): A11yAction[] => {
|
|
42
42
|
const byName = new Map<string, A11yAction>();
|
|
43
43
|
for (const list of actionLists) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
|
|
1
3
|
import { useAccessibilityContext } from '../../contexts/accessibilityContext/AccessibilityContext';
|
|
2
|
-
import {
|
|
4
|
+
import { TranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Returns the translated `a11y/...` label when the AccessibilityContext is enabled,
|
|
@@ -8,12 +10,13 @@ import { useTranslationContext } from '../../contexts/translationContext/Transla
|
|
|
8
10
|
* default disabled-state.
|
|
9
11
|
*
|
|
10
12
|
* Example:
|
|
11
|
-
* const
|
|
13
|
+
* const labelParams = useMemo(() => ({ name }), [name]);
|
|
14
|
+
* const label = useA11yLabel('a11y/Avatar of {{name}}', labelParams);
|
|
12
15
|
* <Image accessibilityLabel={label} />
|
|
13
16
|
*/
|
|
14
17
|
export const useA11yLabel = (key: string, params?: Record<string, unknown>): string | undefined => {
|
|
15
18
|
const { enabled } = useAccessibilityContext();
|
|
16
|
-
const { t } =
|
|
17
|
-
if (!enabled) return undefined;
|
|
19
|
+
const { t } = useContext(TranslationContext);
|
|
20
|
+
if (!enabled || !key) return undefined;
|
|
18
21
|
return t(key, params);
|
|
19
22
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { AccessibilityActionEvent, AccessibilityProps } from 'react-native';
|
|
2
|
+
|
|
3
|
+
import { useAccessibilityContext } from '../../contexts/accessibilityContext/AccessibilityContext';
|
|
4
|
+
|
|
5
|
+
export type UseAccessibilityActivateActionProps<TPressEvent> = {
|
|
6
|
+
onPress?: ((event: TPressEvent) => void) | null;
|
|
7
|
+
shouldHandleActivate?: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type UseAccessibilityActivateActionResult =
|
|
11
|
+
| {
|
|
12
|
+
accessibilityActions?: AccessibilityProps['accessibilityActions'];
|
|
13
|
+
onAccessibilityAction?: AccessibilityProps['onAccessibilityAction'];
|
|
14
|
+
}
|
|
15
|
+
| undefined;
|
|
16
|
+
|
|
17
|
+
const accessibilityActivateActions: NonNullable<AccessibilityProps['accessibilityActions']> = [
|
|
18
|
+
{ name: 'activate' },
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Adds the standard screen-reader `activate` action for labeled pressables when
|
|
23
|
+
* SDK accessibility is enabled. Some Android pressable implementations don't
|
|
24
|
+
* reliably map TalkBack double-tap to `onPress`, so this bridges the generated
|
|
25
|
+
* accessibility action back to the existing press handler.
|
|
26
|
+
*/
|
|
27
|
+
export const useAccessibilityActivateAction = <TPressEvent>({
|
|
28
|
+
onPress,
|
|
29
|
+
shouldHandleActivate = false,
|
|
30
|
+
}: UseAccessibilityActivateActionProps<TPressEvent>): UseAccessibilityActivateActionResult => {
|
|
31
|
+
const { enabled } = useAccessibilityContext();
|
|
32
|
+
const shouldHandleAccessibilityActivate = enabled && shouldHandleActivate && !!onPress;
|
|
33
|
+
|
|
34
|
+
if (!shouldHandleAccessibilityActivate) return undefined;
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
accessibilityActions: accessibilityActivateActions,
|
|
38
|
+
onAccessibilityAction: (event: AccessibilityActionEvent) => {
|
|
39
|
+
if (event.nativeEvent.actionName !== 'activate') return;
|
|
40
|
+
|
|
41
|
+
onPress(event as unknown as TPressEvent);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
};
|
package/src/a11y/index.ts
CHANGED
|
@@ -6,11 +6,13 @@ import {
|
|
|
6
6
|
Platform,
|
|
7
7
|
View,
|
|
8
8
|
LayoutChangeEvent,
|
|
9
|
+
useWindowDimensions,
|
|
9
10
|
} from 'react-native';
|
|
10
11
|
|
|
11
12
|
import { runOnJS, useAnimatedReaction, useSharedValue } from 'react-native-reanimated';
|
|
12
13
|
|
|
13
14
|
import { useBottomSheetSpringConfigs } from '@gorhom/bottom-sheet';
|
|
15
|
+
import type { BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
|
|
14
16
|
import dayjs from 'dayjs';
|
|
15
17
|
import duration from 'dayjs/plugin/duration';
|
|
16
18
|
|
|
@@ -38,13 +40,14 @@ export const AttachmentPicker = () => {
|
|
|
38
40
|
attachmentPickerStore,
|
|
39
41
|
attachmentPickerBottomSheetHeight,
|
|
40
42
|
bottomSheetRef: ref,
|
|
43
|
+
bottomInset,
|
|
41
44
|
disableAttachmentPicker,
|
|
42
45
|
} = useAttachmentPickerContext();
|
|
43
46
|
const { AttachmentPickerContent, AttachmentPickerSelectionBar } = useComponentsContext();
|
|
44
47
|
const {
|
|
45
48
|
theme: { semantics },
|
|
46
49
|
} = useTheme();
|
|
47
|
-
|
|
50
|
+
const { height: windowHeight } = useWindowDimensions();
|
|
48
51
|
const [currentIndex, setCurrentIndexInternal] = useState(-1);
|
|
49
52
|
const currentIndexRef = useRef<number>(currentIndex);
|
|
50
53
|
const setCurrentIndex = useStableCallback((_: number, toIndex: number) => {
|
|
@@ -99,6 +102,10 @@ export const AttachmentPicker = () => {
|
|
|
99
102
|
const selectionBarRef = useRef<number | null>(null);
|
|
100
103
|
|
|
101
104
|
const initialSnapPoint = attachmentPickerBottomSheetHeight;
|
|
105
|
+
const pickerTopInset = Math.max(
|
|
106
|
+
0,
|
|
107
|
+
windowHeight - attachmentPickerBottomSheetHeight - bottomInset,
|
|
108
|
+
);
|
|
102
109
|
|
|
103
110
|
/**
|
|
104
111
|
* Snap points changing cause a rerender of the position,
|
|
@@ -150,8 +157,13 @@ export const AttachmentPicker = () => {
|
|
|
150
157
|
|
|
151
158
|
return (
|
|
152
159
|
<BottomSheet
|
|
160
|
+
accessible={false}
|
|
161
|
+
accessibilityLabel={null}
|
|
162
|
+
accessibilityRole={null}
|
|
153
163
|
android_keyboardInputMode='adjustResize'
|
|
164
|
+
backgroundComponent={AttachmentPickerBackground}
|
|
154
165
|
backgroundStyle={backgroundStyle}
|
|
166
|
+
bottomInset={bottomInset}
|
|
155
167
|
enablePanDownToClose={false}
|
|
156
168
|
enableContentPanningGesture={false}
|
|
157
169
|
enableDynamicSizing={false}
|
|
@@ -162,6 +174,7 @@ export const AttachmentPicker = () => {
|
|
|
162
174
|
// @ts-ignore
|
|
163
175
|
ref={ref}
|
|
164
176
|
snapPoints={snapPoints}
|
|
177
|
+
topInset={pickerTopInset}
|
|
165
178
|
animationConfigs={animationConfigs}
|
|
166
179
|
>
|
|
167
180
|
<View onLayout={onAttachmentPickerSelectionBarLayout}>
|
|
@@ -178,4 +191,13 @@ export const AttachmentPicker = () => {
|
|
|
178
191
|
|
|
179
192
|
const RenderNull = () => null;
|
|
180
193
|
|
|
194
|
+
const AttachmentPickerBackground = ({ pointerEvents, style }: BottomSheetBackgroundProps) => (
|
|
195
|
+
<View
|
|
196
|
+
accessible={false}
|
|
197
|
+
importantForAccessibility='no'
|
|
198
|
+
pointerEvents={pointerEvents}
|
|
199
|
+
style={style}
|
|
200
|
+
/>
|
|
201
|
+
);
|
|
202
|
+
|
|
181
203
|
AttachmentPicker.displayName = 'AttachmentPicker';
|
package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.tsx
CHANGED
|
@@ -172,6 +172,7 @@ export const AttachmentMediaPicker = (props: AttachmentPickerContentProps) => {
|
|
|
172
172
|
numColumns={numberOfColumns}
|
|
173
173
|
onEndReached={photoError ? undefined : getMorePhotos}
|
|
174
174
|
renderItem={renderAttachmentPickerItem}
|
|
175
|
+
showsVerticalScrollIndicator={false}
|
|
175
176
|
testID={'attachment-picker-list'}
|
|
176
177
|
updateCellsBatchingPeriod={16}
|
|
177
178
|
/>
|
package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx
CHANGED
|
@@ -6,6 +6,7 @@ import { FileReference, isLocalImageAttachment, isLocalVideoAttachment } from 's
|
|
|
6
6
|
|
|
7
7
|
import { isIosLimited, type PhotoContentItemType } from './shared';
|
|
8
8
|
|
|
9
|
+
import { useA11yLabel } from '../../../../a11y/hooks/useA11yLabel';
|
|
9
10
|
import { useAttachmentPickerContext } from '../../../../contexts';
|
|
10
11
|
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
11
12
|
import { useAttachmentManagerState } from '../../../../contexts/messageInputContext/hooks/useAttachmentManagerState';
|
|
@@ -52,9 +53,11 @@ const AttachmentVideo = (props: AttachmentPickerItemType) => {
|
|
|
52
53
|
const { duration: videoDuration, thumb_url } = asset;
|
|
53
54
|
|
|
54
55
|
const size = vw(100) / (numberOfAttachmentPickerImageColumns || 3) - 2;
|
|
56
|
+
const selected = selectedIndex !== -1;
|
|
57
|
+
const accessibilityLabel = useA11yLabel(selected ? 'a11y/Deselect video' : 'a11y/Select video');
|
|
55
58
|
|
|
56
59
|
const onPressVideo = async () => {
|
|
57
|
-
if (
|
|
60
|
+
if (selected) {
|
|
58
61
|
const attachment = attachments[selectedIndex];
|
|
59
62
|
if (attachment) {
|
|
60
63
|
attachmentManager.removeAttachments([attachment.localMetadata.id]);
|
|
@@ -70,6 +73,10 @@ const AttachmentVideo = (props: AttachmentPickerItemType) => {
|
|
|
70
73
|
|
|
71
74
|
return (
|
|
72
75
|
<BottomSheetTouchableOpacity
|
|
76
|
+
accessible={accessibilityLabel ? true : undefined}
|
|
77
|
+
accessibilityLabel={accessibilityLabel}
|
|
78
|
+
accessibilityRole={accessibilityLabel ? 'button' : undefined}
|
|
79
|
+
accessibilityState={accessibilityLabel ? { selected } : undefined}
|
|
73
80
|
onPress={onPressVideo}
|
|
74
81
|
style={[
|
|
75
82
|
{
|
|
@@ -110,11 +117,13 @@ const AttachmentImage = (props: AttachmentPickerItemType) => {
|
|
|
110
117
|
);
|
|
111
118
|
|
|
112
119
|
const size = vw(100) / (numberOfAttachmentPickerImageColumns || 3) - 2;
|
|
120
|
+
const selected = selectedIndex !== -1;
|
|
121
|
+
const accessibilityLabel = useA11yLabel(selected ? 'a11y/Deselect image' : 'a11y/Select image');
|
|
113
122
|
|
|
114
123
|
const { uri } = asset;
|
|
115
124
|
|
|
116
125
|
const onPressImage = async () => {
|
|
117
|
-
if (
|
|
126
|
+
if (selected) {
|
|
118
127
|
const attachment = attachments[selectedIndex];
|
|
119
128
|
if (attachment) {
|
|
120
129
|
await attachmentManager.removeAttachments([attachment.localMetadata.id]);
|
|
@@ -130,6 +139,10 @@ const AttachmentImage = (props: AttachmentPickerItemType) => {
|
|
|
130
139
|
|
|
131
140
|
return (
|
|
132
141
|
<BottomSheetTouchableOpacity
|
|
142
|
+
accessible={accessibilityLabel ? true : undefined}
|
|
143
|
+
accessibilityLabel={accessibilityLabel}
|
|
144
|
+
accessibilityRole={accessibilityLabel ? 'button' : undefined}
|
|
145
|
+
accessibilityState={accessibilityLabel ? { selected } : undefined}
|
|
133
146
|
onPress={onPressImage}
|
|
134
147
|
style={[
|
|
135
148
|
{
|
|
@@ -3,7 +3,7 @@ import { Linking, Platform, Pressable, StyleSheet, Text } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { FlatList } from 'react-native-gesture-handler';
|
|
5
5
|
|
|
6
|
-
import { CommandSearchSource, CommandSuggestion } from 'stream-chat';
|
|
6
|
+
import { CommandSearchSource, CommandSuggestion, notifyCommandDisabled } from 'stream-chat';
|
|
7
7
|
|
|
8
8
|
import { AttachmentMediaPicker } from './AttachmentMediaPicker/AttachmentMediaPicker';
|
|
9
9
|
|
|
@@ -58,7 +58,7 @@ export const AttachmentCommandNativePickerItem = ({ item }: { item: CommandSugge
|
|
|
58
58
|
const { close } = useBottomSheetContext();
|
|
59
59
|
|
|
60
60
|
const handlePress = useCallback(() => {
|
|
61
|
-
if (messageComposer
|
|
61
|
+
if (notifyCommandDisabled(messageComposer, item)) {
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -77,7 +77,7 @@ export const AttachmentCommandPickerItem = ({ item }: { item: CommandSuggestion
|
|
|
77
77
|
const { inputBoxRef } = useMessageInputContext();
|
|
78
78
|
|
|
79
79
|
const handlePress = useCallback(() => {
|
|
80
|
-
if (messageComposer
|
|
80
|
+
if (notifyCommandDisabled(messageComposer, item)) {
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -141,6 +141,7 @@ export const AttachmentCommandPicker = () => {
|
|
|
141
141
|
renderItem={renderItem}
|
|
142
142
|
data={commands}
|
|
143
143
|
keyExtractor={keyExtractor}
|
|
144
|
+
showsVerticalScrollIndicator={false}
|
|
144
145
|
/>
|
|
145
146
|
</>
|
|
146
147
|
);
|