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
|
@@ -12,6 +12,13 @@ export type AudioDescriptor = {
|
|
|
12
12
|
type: 'voiceRecording' | 'audio';
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
export type AudioPlayerErrorCode = 'failed-to-start' | 'not-playable' | 'seek-not-supported';
|
|
16
|
+
|
|
17
|
+
export type AudioPlayerErrorHandler = (params: {
|
|
18
|
+
errCode: AudioPlayerErrorCode;
|
|
19
|
+
error?: Error;
|
|
20
|
+
}) => void;
|
|
21
|
+
|
|
15
22
|
export type AudioPlayerState = {
|
|
16
23
|
isPlaying: boolean;
|
|
17
24
|
duration: number;
|
|
@@ -39,6 +46,7 @@ const INITIAL_STATE: AudioPlayerState = {
|
|
|
39
46
|
};
|
|
40
47
|
|
|
41
48
|
export type AudioPlayerOptions = AudioDescriptor & {
|
|
49
|
+
onError?: AudioPlayerErrorHandler;
|
|
42
50
|
playbackRates?: number[];
|
|
43
51
|
previewVoiceRecording?: boolean;
|
|
44
52
|
};
|
|
@@ -51,6 +59,9 @@ export class AudioPlayer {
|
|
|
51
59
|
private type: 'voiceRecording' | 'audio';
|
|
52
60
|
private isExpoCLI: boolean;
|
|
53
61
|
private _pool: AudioPlayerPool | null = null;
|
|
62
|
+
private onError?: AudioPlayerErrorHandler;
|
|
63
|
+
private lastPlaybackStatusError?: string;
|
|
64
|
+
private lastSeekNotSupportedNotificationAt?: number;
|
|
54
65
|
|
|
55
66
|
/**
|
|
56
67
|
* This keeps the composer preview on the recorder-backed player until preview
|
|
@@ -62,6 +73,7 @@ export class AudioPlayer {
|
|
|
62
73
|
this.isExpoCLI = NativeHandlers.SDK === 'stream-chat-expo';
|
|
63
74
|
this._id = options.id;
|
|
64
75
|
this.type = options.type;
|
|
76
|
+
this.onError = options.onError;
|
|
65
77
|
this.previewVoiceRecording = options.previewVoiceRecording ?? false;
|
|
66
78
|
const playbackRates = options.playbackRates ?? DEFAULT_PLAYBACK_RATES;
|
|
67
79
|
this.state = new StateStore<AudioPlayerState>({
|
|
@@ -73,6 +85,51 @@ export class AudioPlayer {
|
|
|
73
85
|
this.initPlayer({ uri: options.uri });
|
|
74
86
|
}
|
|
75
87
|
|
|
88
|
+
setOnError(onError?: AudioPlayerErrorHandler) {
|
|
89
|
+
this.onError = onError;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
private getError(error: unknown) {
|
|
93
|
+
if (error instanceof Error) return error;
|
|
94
|
+
if (typeof error === 'string') return new Error(error);
|
|
95
|
+
if (error && typeof error === 'object' && 'message' in error) {
|
|
96
|
+
const message = error.message;
|
|
97
|
+
if (typeof message === 'string') return new Error(message);
|
|
98
|
+
}
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
private notifyError(errCode: AudioPlayerErrorCode, error?: unknown) {
|
|
103
|
+
if (errCode === 'seek-not-supported') {
|
|
104
|
+
const now = Date.now();
|
|
105
|
+
if (
|
|
106
|
+
typeof this.lastSeekNotSupportedNotificationAt === 'number' &&
|
|
107
|
+
now - this.lastSeekNotSupportedNotificationAt < 1000
|
|
108
|
+
) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
this.lastSeekNotSupportedNotificationAt = now;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
this.onError?.({
|
|
115
|
+
errCode,
|
|
116
|
+
error: this.getError(error),
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
private handleMaybePromiseError(
|
|
121
|
+
result: unknown,
|
|
122
|
+
errCode: AudioPlayerErrorCode,
|
|
123
|
+
onError?: () => void,
|
|
124
|
+
) {
|
|
125
|
+
if (!result || typeof (result as Promise<void>).catch !== 'function') return;
|
|
126
|
+
|
|
127
|
+
(result as Promise<void>).catch((error) => {
|
|
128
|
+
onError?.();
|
|
129
|
+
this.notifyError(errCode, error);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
76
133
|
initPlayer = async ({ uri, playerRef }: { uri?: string; playerRef?: SoundReturnType }) => {
|
|
77
134
|
const requestId = ++this.initRequestId;
|
|
78
135
|
|
|
@@ -84,13 +141,17 @@ export class AudioPlayer {
|
|
|
84
141
|
}
|
|
85
142
|
if (this.previewVoiceRecording) {
|
|
86
143
|
if (NativeHandlers.Audio?.startPlayer) {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
144
|
+
try {
|
|
145
|
+
await NativeHandlers.Audio.startPlayer(
|
|
146
|
+
uri,
|
|
147
|
+
{},
|
|
148
|
+
this.onVoiceRecordingPreviewPlaybackStatusUpdate,
|
|
149
|
+
);
|
|
150
|
+
if (NativeHandlers.Audio?.pausePlayer) {
|
|
151
|
+
await NativeHandlers.Audio.pausePlayer();
|
|
152
|
+
}
|
|
153
|
+
} catch (error) {
|
|
154
|
+
this.notifyError('failed-to-start', error);
|
|
94
155
|
}
|
|
95
156
|
}
|
|
96
157
|
return;
|
|
@@ -99,11 +160,22 @@ export class AudioPlayer {
|
|
|
99
160
|
return;
|
|
100
161
|
}
|
|
101
162
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
163
|
+
let player: SoundReturnType | null | undefined;
|
|
164
|
+
try {
|
|
165
|
+
player = await NativeHandlers.Sound.initializeSound(
|
|
166
|
+
{ uri },
|
|
167
|
+
DEFAULT_PLAYER_SETTINGS,
|
|
168
|
+
this.onPlaybackStatusUpdate,
|
|
169
|
+
);
|
|
170
|
+
} catch (error) {
|
|
171
|
+
this.notifyError('failed-to-start', error);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (!player) {
|
|
176
|
+
this.notifyError('not-playable');
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
107
179
|
|
|
108
180
|
if (requestId !== this.initRequestId) {
|
|
109
181
|
if (player?.stopAsync) {
|
|
@@ -132,7 +204,10 @@ export class AudioPlayer {
|
|
|
132
204
|
if (!playbackStatus.isLoaded) {
|
|
133
205
|
// Update your UI for the unloaded state
|
|
134
206
|
if (playbackStatus.error) {
|
|
135
|
-
|
|
207
|
+
if (this.lastPlaybackStatusError !== playbackStatus.error) {
|
|
208
|
+
this.lastPlaybackStatusError = playbackStatus.error;
|
|
209
|
+
this.notifyError('not-playable', playbackStatus.error);
|
|
210
|
+
}
|
|
136
211
|
}
|
|
137
212
|
} else {
|
|
138
213
|
const { durationMillis, positionMillis } = playbackStatus;
|
|
@@ -252,7 +327,10 @@ export class AudioPlayer {
|
|
|
252
327
|
|
|
253
328
|
if (this.previewVoiceRecording) {
|
|
254
329
|
if (NativeHandlers.Audio?.resumePlayer) {
|
|
255
|
-
NativeHandlers.Audio.resumePlayer()
|
|
330
|
+
NativeHandlers.Audio.resumePlayer().catch((error) => {
|
|
331
|
+
this.isPlaying = false;
|
|
332
|
+
this.notifyError('failed-to-start', error);
|
|
333
|
+
});
|
|
256
334
|
}
|
|
257
335
|
this.state.partialNext({
|
|
258
336
|
isPlaying: true,
|
|
@@ -261,16 +339,24 @@ export class AudioPlayer {
|
|
|
261
339
|
}
|
|
262
340
|
|
|
263
341
|
if (!this.playerRef) {
|
|
342
|
+
this.notifyError('not-playable');
|
|
264
343
|
return;
|
|
265
344
|
}
|
|
266
345
|
|
|
267
346
|
if (this.isExpoCLI) {
|
|
268
347
|
if (this.playerRef?.playAsync) {
|
|
269
|
-
this.playerRef.playAsync()
|
|
348
|
+
this.handleMaybePromiseError(this.playerRef.playAsync(), 'failed-to-start', () => {
|
|
349
|
+
this.isPlaying = false;
|
|
350
|
+
});
|
|
270
351
|
}
|
|
271
352
|
} else {
|
|
272
353
|
if (this.playerRef?.resume) {
|
|
273
|
-
|
|
354
|
+
try {
|
|
355
|
+
this.playerRef.resume();
|
|
356
|
+
} catch (error) {
|
|
357
|
+
this.notifyError('failed-to-start', error);
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
274
360
|
}
|
|
275
361
|
}
|
|
276
362
|
this.state.partialNext({
|
|
@@ -329,6 +415,8 @@ export class AudioPlayer {
|
|
|
329
415
|
this.position = positionInMillis;
|
|
330
416
|
if (NativeHandlers.Audio?.seekToPlayer) {
|
|
331
417
|
await NativeHandlers.Audio.seekToPlayer(positionInMillis);
|
|
418
|
+
} else if (positionInMillis > 0) {
|
|
419
|
+
this.notifyError('seek-not-supported');
|
|
332
420
|
}
|
|
333
421
|
return;
|
|
334
422
|
}
|
|
@@ -345,11 +433,15 @@ export class AudioPlayer {
|
|
|
345
433
|
} else {
|
|
346
434
|
if (this.playerRef?.setPositionAsync) {
|
|
347
435
|
await this.playerRef.setPositionAsync(positionInMillis);
|
|
436
|
+
} else {
|
|
437
|
+
this.notifyError('seek-not-supported');
|
|
348
438
|
}
|
|
349
439
|
}
|
|
350
440
|
} else {
|
|
351
441
|
if (this.playerRef?.seek) {
|
|
352
442
|
this.playerRef.seek(positionInSeconds);
|
|
443
|
+
} else if (positionInMillis > 0) {
|
|
444
|
+
this.notifyError('seek-not-supported');
|
|
353
445
|
}
|
|
354
446
|
}
|
|
355
447
|
}
|
|
@@ -2,11 +2,13 @@ import Database, { type Database as DatabaseType } from 'better-sqlite3';
|
|
|
2
2
|
|
|
3
3
|
import { tables } from '../store/schema';
|
|
4
4
|
|
|
5
|
+
const testDbName = `foobar-${process.env.JEST_WORKER_ID ?? '0'}.db`;
|
|
6
|
+
|
|
5
7
|
export class BetterSqlite {
|
|
6
8
|
static db: DatabaseType | null = null;
|
|
7
9
|
|
|
8
10
|
static openDB = (): void => {
|
|
9
|
-
BetterSqlite.db = new Database(
|
|
11
|
+
BetterSqlite.db = new Database(testDbName);
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
static closeDB = (): void => {
|
|
@@ -237,82 +237,82 @@ export const foundations: IStreamTokens['foundations'] = {
|
|
|
237
237
|
export const primitives: IStreamTokens['primitives'] = {
|
|
238
238
|
darkElevation1: {
|
|
239
239
|
elevation: 2,
|
|
240
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
240
|
+
shadowColor: 'rgba(0,0,0,0.42400000000000004)',
|
|
241
241
|
shadowOffset: {
|
|
242
242
|
width: 0,
|
|
243
243
|
height: 1.4878048780487807,
|
|
244
244
|
},
|
|
245
|
-
shadowOpacity:
|
|
245
|
+
shadowOpacity: 1,
|
|
246
246
|
shadowRadius: 3.6926829268292685,
|
|
247
247
|
},
|
|
248
248
|
darkElevation2: {
|
|
249
249
|
elevation: 3,
|
|
250
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
250
|
+
shadowColor: 'rgba(0,0,0,0.44000000000000006)',
|
|
251
251
|
shadowOffset: {
|
|
252
252
|
width: 0,
|
|
253
253
|
height: 2,
|
|
254
254
|
},
|
|
255
|
-
shadowOpacity:
|
|
255
|
+
shadowOpacity: 1,
|
|
256
256
|
shadowRadius: 5.630769230769231,
|
|
257
257
|
},
|
|
258
258
|
darkElevation3: {
|
|
259
259
|
elevation: 6,
|
|
260
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
260
|
+
shadowColor: 'rgba(0,0,0,0.4696)',
|
|
261
261
|
shadowOffset: {
|
|
262
262
|
width: 0,
|
|
263
263
|
height: 3.488372093023256,
|
|
264
264
|
},
|
|
265
|
-
shadowOpacity:
|
|
265
|
+
shadowOpacity: 1,
|
|
266
266
|
shadowRadius: 11.079069767441862,
|
|
267
267
|
},
|
|
268
268
|
darkElevation4: {
|
|
269
269
|
elevation: 8,
|
|
270
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
270
|
+
shadowColor: 'rgba(0,0,0,0.5136000000000001)',
|
|
271
271
|
shadowOffset: {
|
|
272
272
|
width: 0,
|
|
273
273
|
height: 5.384615384615384,
|
|
274
274
|
},
|
|
275
|
-
shadowOpacity:
|
|
275
|
+
shadowOpacity: 1,
|
|
276
276
|
shadowRadius: 16.892307692307693,
|
|
277
277
|
},
|
|
278
278
|
lightElevation1: {
|
|
279
279
|
elevation: 1,
|
|
280
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
280
|
+
shadowColor: 'rgba(0,0,0,0.29599999999999993)',
|
|
281
281
|
shadowOffset: {
|
|
282
282
|
width: 0,
|
|
283
283
|
height: 1,
|
|
284
284
|
},
|
|
285
|
-
shadowOpacity:
|
|
285
|
+
shadowOpacity: 1,
|
|
286
286
|
shadowRadius: 2.8285714285714287,
|
|
287
287
|
},
|
|
288
288
|
lightElevation2: {
|
|
289
289
|
elevation: 3,
|
|
290
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
290
|
+
shadowColor: 'rgba(0,0,0,0.3136)',
|
|
291
291
|
shadowOffset: {
|
|
292
292
|
width: 0,
|
|
293
293
|
height: 2,
|
|
294
294
|
},
|
|
295
|
-
shadowOpacity:
|
|
295
|
+
shadowOpacity: 1,
|
|
296
296
|
shadowRadius: 5.68,
|
|
297
297
|
},
|
|
298
298
|
lightElevation3: {
|
|
299
299
|
elevation: 6,
|
|
300
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
300
|
+
shadowColor: 'rgba(0,0,0,0.36160000000000003)',
|
|
301
301
|
shadowOffset: {
|
|
302
302
|
width: 0,
|
|
303
303
|
height: 3.5,
|
|
304
304
|
},
|
|
305
|
-
shadowOpacity:
|
|
305
|
+
shadowOpacity: 1,
|
|
306
306
|
shadowRadius: 11.100000000000001,
|
|
307
307
|
},
|
|
308
308
|
lightElevation4: {
|
|
309
309
|
elevation: 8,
|
|
310
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
310
|
+
shadowColor: 'rgba(0,0,0,0.40959999999999996)',
|
|
311
311
|
shadowOffset: {
|
|
312
312
|
width: 0,
|
|
313
313
|
height: 5.4,
|
|
314
314
|
},
|
|
315
|
-
shadowOpacity:
|
|
315
|
+
shadowOpacity: 1,
|
|
316
316
|
shadowRadius: 16.919999999999998,
|
|
317
317
|
},
|
|
318
318
|
radius2xl: foundations.radius.radius20,
|
|
@@ -237,7 +237,7 @@ export const foundations: IStreamTokens['foundations'] = {
|
|
|
237
237
|
export const primitives: IStreamTokens['primitives'] = {
|
|
238
238
|
darkElevation1: {
|
|
239
239
|
elevation: 2,
|
|
240
|
-
shadowColor: '
|
|
240
|
+
shadowColor: 'rgb(0,0,0)',
|
|
241
241
|
shadowOffset: {
|
|
242
242
|
width: 0,
|
|
243
243
|
height: 1,
|
|
@@ -247,7 +247,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
247
247
|
},
|
|
248
248
|
darkElevation2: {
|
|
249
249
|
elevation: 3,
|
|
250
|
-
shadowColor: '
|
|
250
|
+
shadowColor: 'rgb(0,0,0)',
|
|
251
251
|
shadowOffset: {
|
|
252
252
|
width: 0,
|
|
253
253
|
height: 2,
|
|
@@ -257,7 +257,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
257
257
|
},
|
|
258
258
|
darkElevation3: {
|
|
259
259
|
elevation: 6,
|
|
260
|
-
shadowColor: '
|
|
260
|
+
shadowColor: 'rgb(0,0,0)',
|
|
261
261
|
shadowOffset: {
|
|
262
262
|
width: 0,
|
|
263
263
|
height: 4,
|
|
@@ -267,7 +267,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
267
267
|
},
|
|
268
268
|
darkElevation4: {
|
|
269
269
|
elevation: 12,
|
|
270
|
-
shadowColor: '
|
|
270
|
+
shadowColor: 'rgb(0,0,0)',
|
|
271
271
|
shadowOffset: {
|
|
272
272
|
width: 0,
|
|
273
273
|
height: 8,
|
|
@@ -277,7 +277,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
277
277
|
},
|
|
278
278
|
lightElevation1: {
|
|
279
279
|
elevation: 2,
|
|
280
|
-
shadowColor: '
|
|
280
|
+
shadowColor: 'rgb(0,0,0)',
|
|
281
281
|
shadowOffset: {
|
|
282
282
|
width: 0,
|
|
283
283
|
height: 1,
|
|
@@ -287,7 +287,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
287
287
|
},
|
|
288
288
|
lightElevation2: {
|
|
289
289
|
elevation: 3,
|
|
290
|
-
shadowColor: '
|
|
290
|
+
shadowColor: 'rgb(0,0,0)',
|
|
291
291
|
shadowOffset: {
|
|
292
292
|
width: 0,
|
|
293
293
|
height: 2,
|
|
@@ -297,7 +297,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
297
297
|
},
|
|
298
298
|
lightElevation3: {
|
|
299
299
|
elevation: 6,
|
|
300
|
-
shadowColor: '
|
|
300
|
+
shadowColor: 'rgb(0,0,0)',
|
|
301
301
|
shadowOffset: {
|
|
302
302
|
width: 0,
|
|
303
303
|
height: 4,
|
|
@@ -307,7 +307,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
307
307
|
},
|
|
308
308
|
lightElevation4: {
|
|
309
309
|
elevation: 12,
|
|
310
|
-
shadowColor: '
|
|
310
|
+
shadowColor: 'rgb(0,0,0)',
|
|
311
311
|
shadowOffset: {
|
|
312
312
|
width: 0,
|
|
313
313
|
height: 8,
|
|
@@ -237,7 +237,7 @@ export const foundations: IStreamTokens['foundations'] = {
|
|
|
237
237
|
export const primitives: IStreamTokens['primitives'] = {
|
|
238
238
|
darkElevation1: {
|
|
239
239
|
elevation: 3,
|
|
240
|
-
shadowColor: '
|
|
240
|
+
shadowColor: 'rgb(0,0,0)',
|
|
241
241
|
shadowOffset: {
|
|
242
242
|
width: 0,
|
|
243
243
|
height: 2.6666666666666665,
|
|
@@ -247,7 +247,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
247
247
|
},
|
|
248
248
|
darkElevation2: {
|
|
249
249
|
elevation: 7,
|
|
250
|
-
shadowColor: '
|
|
250
|
+
shadowColor: 'rgb(0,0,0)',
|
|
251
251
|
shadowOffset: {
|
|
252
252
|
width: 0,
|
|
253
253
|
height: 4.5016949152542365,
|
|
@@ -257,7 +257,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
257
257
|
},
|
|
258
258
|
darkElevation3: {
|
|
259
259
|
elevation: 10,
|
|
260
|
-
shadowColor: '
|
|
260
|
+
shadowColor: 'rgb(0,0,0)',
|
|
261
261
|
shadowOffset: {
|
|
262
262
|
width: 0,
|
|
263
263
|
height: 8.839779005524864,
|
|
@@ -267,7 +267,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
267
267
|
},
|
|
268
268
|
darkElevation4: {
|
|
269
269
|
elevation: 13,
|
|
270
|
-
shadowColor: '
|
|
270
|
+
shadowColor: 'rgb(0,0,0)',
|
|
271
271
|
shadowOffset: {
|
|
272
272
|
width: 0,
|
|
273
273
|
height: 14.201622247972189,
|
|
@@ -277,7 +277,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
277
277
|
},
|
|
278
278
|
lightElevation1: {
|
|
279
279
|
elevation: 3,
|
|
280
|
-
shadowColor: '
|
|
280
|
+
shadowColor: 'rgb(0,0,0)',
|
|
281
281
|
shadowOffset: {
|
|
282
282
|
width: 0,
|
|
283
283
|
height: 2.904109589041096,
|
|
@@ -287,7 +287,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
287
287
|
},
|
|
288
288
|
lightElevation2: {
|
|
289
289
|
elevation: 7,
|
|
290
|
-
shadowColor: '
|
|
290
|
+
shadowColor: 'rgb(0,0,0)',
|
|
291
291
|
shadowOffset: {
|
|
292
292
|
width: 0,
|
|
293
293
|
height: 4.510067114093959,
|
|
@@ -297,7 +297,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
297
297
|
},
|
|
298
298
|
lightElevation3: {
|
|
299
299
|
elevation: 10,
|
|
300
|
-
shadowColor: '
|
|
300
|
+
shadowColor: 'rgb(0,0,0)',
|
|
301
301
|
shadowOffset: {
|
|
302
302
|
width: 0,
|
|
303
303
|
height: 9.322128851540615,
|
|
@@ -307,7 +307,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
307
307
|
},
|
|
308
308
|
lightElevation4: {
|
|
309
309
|
elevation: 14,
|
|
310
|
-
shadowColor: '
|
|
310
|
+
shadowColor: 'rgb(0,0,0)',
|
|
311
311
|
shadowOffset: {
|
|
312
312
|
width: 0,
|
|
313
313
|
height: 15.201376936316695,
|
|
@@ -237,82 +237,82 @@ export const foundations: IStreamTokens['foundations'] = {
|
|
|
237
237
|
export const primitives: IStreamTokens['primitives'] = {
|
|
238
238
|
darkElevation1: {
|
|
239
239
|
elevation: 2,
|
|
240
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
240
|
+
shadowColor: 'rgba(0,0,0,0.42400000000000004)',
|
|
241
241
|
shadowOffset: {
|
|
242
242
|
width: 0,
|
|
243
243
|
height: 1.4878048780487807,
|
|
244
244
|
},
|
|
245
|
-
shadowOpacity:
|
|
245
|
+
shadowOpacity: 1,
|
|
246
246
|
shadowRadius: 3.6926829268292685,
|
|
247
247
|
},
|
|
248
248
|
darkElevation2: {
|
|
249
249
|
elevation: 3,
|
|
250
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
250
|
+
shadowColor: 'rgba(0,0,0,0.44000000000000006)',
|
|
251
251
|
shadowOffset: {
|
|
252
252
|
width: 0,
|
|
253
253
|
height: 2,
|
|
254
254
|
},
|
|
255
|
-
shadowOpacity:
|
|
255
|
+
shadowOpacity: 1,
|
|
256
256
|
shadowRadius: 5.630769230769231,
|
|
257
257
|
},
|
|
258
258
|
darkElevation3: {
|
|
259
259
|
elevation: 6,
|
|
260
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
260
|
+
shadowColor: 'rgba(0,0,0,0.4696)',
|
|
261
261
|
shadowOffset: {
|
|
262
262
|
width: 0,
|
|
263
263
|
height: 3.488372093023256,
|
|
264
264
|
},
|
|
265
|
-
shadowOpacity:
|
|
265
|
+
shadowOpacity: 1,
|
|
266
266
|
shadowRadius: 11.079069767441862,
|
|
267
267
|
},
|
|
268
268
|
darkElevation4: {
|
|
269
269
|
elevation: 8,
|
|
270
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
270
|
+
shadowColor: 'rgba(0,0,0,0.5136000000000001)',
|
|
271
271
|
shadowOffset: {
|
|
272
272
|
width: 0,
|
|
273
273
|
height: 5.384615384615384,
|
|
274
274
|
},
|
|
275
|
-
shadowOpacity:
|
|
275
|
+
shadowOpacity: 1,
|
|
276
276
|
shadowRadius: 16.892307692307693,
|
|
277
277
|
},
|
|
278
278
|
lightElevation1: {
|
|
279
279
|
elevation: 1,
|
|
280
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
280
|
+
shadowColor: 'rgba(0,0,0,0.29599999999999993)',
|
|
281
281
|
shadowOffset: {
|
|
282
282
|
width: 0,
|
|
283
283
|
height: 1,
|
|
284
284
|
},
|
|
285
|
-
shadowOpacity:
|
|
285
|
+
shadowOpacity: 1,
|
|
286
286
|
shadowRadius: 2.8285714285714287,
|
|
287
287
|
},
|
|
288
288
|
lightElevation2: {
|
|
289
289
|
elevation: 3,
|
|
290
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
290
|
+
shadowColor: 'rgba(0,0,0,0.3136)',
|
|
291
291
|
shadowOffset: {
|
|
292
292
|
width: 0,
|
|
293
293
|
height: 2,
|
|
294
294
|
},
|
|
295
|
-
shadowOpacity:
|
|
295
|
+
shadowOpacity: 1,
|
|
296
296
|
shadowRadius: 5.68,
|
|
297
297
|
},
|
|
298
298
|
lightElevation3: {
|
|
299
299
|
elevation: 6,
|
|
300
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
300
|
+
shadowColor: 'rgba(0,0,0,0.36160000000000003)',
|
|
301
301
|
shadowOffset: {
|
|
302
302
|
width: 0,
|
|
303
303
|
height: 3.5,
|
|
304
304
|
},
|
|
305
|
-
shadowOpacity:
|
|
305
|
+
shadowOpacity: 1,
|
|
306
306
|
shadowRadius: 11.100000000000001,
|
|
307
307
|
},
|
|
308
308
|
lightElevation4: {
|
|
309
309
|
elevation: 8,
|
|
310
|
-
shadowColor: 'rgba(0,0,0,0.
|
|
310
|
+
shadowColor: 'rgba(0,0,0,0.40959999999999996)',
|
|
311
311
|
shadowOffset: {
|
|
312
312
|
width: 0,
|
|
313
313
|
height: 5.4,
|
|
314
314
|
},
|
|
315
|
-
shadowOpacity:
|
|
315
|
+
shadowOpacity: 1,
|
|
316
316
|
shadowRadius: 16.919999999999998,
|
|
317
317
|
},
|
|
318
318
|
radius2xl: foundations.radius.radius20,
|
|
@@ -237,7 +237,7 @@ export const foundations: IStreamTokens['foundations'] = {
|
|
|
237
237
|
export const primitives: IStreamTokens['primitives'] = {
|
|
238
238
|
darkElevation1: {
|
|
239
239
|
elevation: 2,
|
|
240
|
-
shadowColor: '
|
|
240
|
+
shadowColor: 'rgb(0,0,0)',
|
|
241
241
|
shadowOffset: {
|
|
242
242
|
width: 0,
|
|
243
243
|
height: 1,
|
|
@@ -247,7 +247,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
247
247
|
},
|
|
248
248
|
darkElevation2: {
|
|
249
249
|
elevation: 3,
|
|
250
|
-
shadowColor: '
|
|
250
|
+
shadowColor: 'rgb(0,0,0)',
|
|
251
251
|
shadowOffset: {
|
|
252
252
|
width: 0,
|
|
253
253
|
height: 2,
|
|
@@ -257,7 +257,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
257
257
|
},
|
|
258
258
|
darkElevation3: {
|
|
259
259
|
elevation: 6,
|
|
260
|
-
shadowColor: '
|
|
260
|
+
shadowColor: 'rgb(0,0,0)',
|
|
261
261
|
shadowOffset: {
|
|
262
262
|
width: 0,
|
|
263
263
|
height: 4,
|
|
@@ -267,7 +267,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
267
267
|
},
|
|
268
268
|
darkElevation4: {
|
|
269
269
|
elevation: 12,
|
|
270
|
-
shadowColor: '
|
|
270
|
+
shadowColor: 'rgb(0,0,0)',
|
|
271
271
|
shadowOffset: {
|
|
272
272
|
width: 0,
|
|
273
273
|
height: 8,
|
|
@@ -277,7 +277,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
277
277
|
},
|
|
278
278
|
lightElevation1: {
|
|
279
279
|
elevation: 2,
|
|
280
|
-
shadowColor: '
|
|
280
|
+
shadowColor: 'rgb(0,0,0)',
|
|
281
281
|
shadowOffset: {
|
|
282
282
|
width: 0,
|
|
283
283
|
height: 1,
|
|
@@ -287,7 +287,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
287
287
|
},
|
|
288
288
|
lightElevation2: {
|
|
289
289
|
elevation: 3,
|
|
290
|
-
shadowColor: '
|
|
290
|
+
shadowColor: 'rgb(0,0,0)',
|
|
291
291
|
shadowOffset: {
|
|
292
292
|
width: 0,
|
|
293
293
|
height: 2,
|
|
@@ -297,7 +297,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
297
297
|
},
|
|
298
298
|
lightElevation3: {
|
|
299
299
|
elevation: 6,
|
|
300
|
-
shadowColor: '
|
|
300
|
+
shadowColor: 'rgb(0,0,0)',
|
|
301
301
|
shadowOffset: {
|
|
302
302
|
width: 0,
|
|
303
303
|
height: 4,
|
|
@@ -307,7 +307,7 @@ export const primitives: IStreamTokens['primitives'] = {
|
|
|
307
307
|
},
|
|
308
308
|
lightElevation4: {
|
|
309
309
|
elevation: 12,
|
|
310
|
-
shadowColor: '
|
|
310
|
+
shadowColor: 'rgb(0,0,0)',
|
|
311
311
|
shadowOffset: {
|
|
312
312
|
width: 0,
|
|
313
313
|
height: 8,
|