stream-chat-react 14.0.0-beta.2 → 14.0.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.
Files changed (69) hide show
  1. package/dist/{WithAudioPlayback-myzUS2m6.js → cjs/WithAudioPlayback.4a84360f.js} +4 -9
  2. package/dist/cjs/WithAudioPlayback.4a84360f.js.map +1 -0
  3. package/dist/{audioProcessing-BbOs2wMd.js → cjs/audioProcessing.56e5db9d.js} +1 -1
  4. package/dist/cjs/audioProcessing.56e5db9d.js.map +1 -0
  5. package/dist/cjs/emojis.js +1 -1
  6. package/dist/cjs/index.js +620 -225
  7. package/dist/cjs/index.js.map +1 -1
  8. package/dist/cjs/mp3-encoder.js +1 -1
  9. package/dist/css/index.css +181 -26
  10. package/dist/css/index.css.map +1 -1
  11. package/dist/{WithAudioPlayback-C1hfFIcu.mjs → es/WithAudioPlayback.a3d5a2fc.mjs} +14 -19
  12. package/dist/es/WithAudioPlayback.a3d5a2fc.mjs.map +1 -0
  13. package/dist/{audioProcessing-ByEVSjGG.mjs → es/audioProcessing.21cb49e1.mjs} +1 -1
  14. package/dist/es/audioProcessing.21cb49e1.mjs.map +1 -0
  15. package/dist/es/emojis.mjs +1 -1
  16. package/dist/es/index.mjs +632 -237
  17. package/dist/es/index.mjs.map +1 -1
  18. package/dist/es/mp3-encoder.mjs +1 -1
  19. package/dist/types/components/Attachment/Giphy.d.ts.map +1 -1
  20. package/dist/types/components/Attachment/VoiceRecording.d.ts.map +1 -1
  21. package/dist/types/components/AudioPlayback/AudioPlayer.d.ts.map +1 -1
  22. package/dist/types/components/BaseImage/toBaseImageDescriptors.d.ts +1 -1
  23. package/dist/types/components/BaseImage/toBaseImageDescriptors.d.ts.map +1 -1
  24. package/dist/types/components/ChannelList/hooks/useMobileNavigation.d.ts.map +1 -1
  25. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.d.ts +3 -1
  26. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.d.ts.map +1 -1
  27. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts +6 -3
  28. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts.map +1 -1
  29. package/dist/types/components/Chat/hooks/useSplitActionSet.d.ts +5 -0
  30. package/dist/types/components/Chat/hooks/useSplitActionSet.d.ts.map +1 -1
  31. package/dist/types/components/Dialog/components/ContextMenu.d.ts +119 -3
  32. package/dist/types/components/Dialog/components/ContextMenu.d.ts.map +1 -1
  33. package/dist/types/components/Dialog/hooks/useDialog.d.ts +1 -1
  34. package/dist/types/components/Dialog/hooks/useDialog.d.ts.map +1 -1
  35. package/dist/types/components/Dialog/service/DialogAnchor.d.ts +14 -1
  36. package/dist/types/components/Dialog/service/DialogAnchor.d.ts.map +1 -1
  37. package/dist/types/components/Dialog/service/DialogManager.d.ts +14 -3
  38. package/dist/types/components/Dialog/service/DialogManager.d.ts.map +1 -1
  39. package/dist/types/components/Dialog/service/DialogPortal.d.ts.map +1 -1
  40. package/dist/types/components/Gallery/GalleryContext.d.ts +1 -1
  41. package/dist/types/components/Gallery/GalleryContext.d.ts.map +1 -1
  42. package/dist/types/components/MessageActions/MessageActions.d.ts +14 -3
  43. package/dist/types/components/MessageActions/MessageActions.d.ts.map +1 -1
  44. package/dist/types/components/MessageActions/MessageActions.defaults.d.ts +1 -1
  45. package/dist/types/components/MessageActions/MessageActions.defaults.d.ts.map +1 -1
  46. package/dist/types/components/MessageActions/QuickMessageActionButton.d.ts.map +1 -1
  47. package/dist/types/components/MessageActions/hooks/useBaseMessageActionSetFilter.d.ts.map +1 -1
  48. package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts.map +1 -1
  49. package/dist/types/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts +18 -0
  50. package/dist/types/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts.map +1 -1
  51. package/dist/types/components/Poll/PollActions/PollResults/PollOptionWithVotes.d.ts.map +1 -1
  52. package/dist/types/components/Reactions/MessageReactions.d.ts.map +1 -1
  53. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts +1 -0
  54. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts.map +1 -1
  55. package/dist/types/components/Reactions/ReactionSelector.d.ts +1 -1
  56. package/dist/types/components/Reactions/ReactionSelector.d.ts.map +1 -1
  57. package/dist/types/components/TextareaComposer/SuggestionList/SuggestionList.d.ts.map +1 -1
  58. package/dist/types/components/TextareaComposer/TextareaComposer.d.ts.map +1 -1
  59. package/dist/types/context/ChannelListContext.d.ts +1 -1
  60. package/dist/types/context/ChannelListContext.d.ts.map +1 -1
  61. package/dist/types/context/ComponentContext.d.ts +5 -1
  62. package/dist/types/context/ComponentContext.d.ts.map +1 -1
  63. package/dist/types/context/DialogManagerContext.d.ts +11 -7
  64. package/dist/types/context/DialogManagerContext.d.ts.map +1 -1
  65. package/package.json +3 -1
  66. package/dist/WithAudioPlayback-C1hfFIcu.mjs.map +0 -1
  67. package/dist/WithAudioPlayback-myzUS2m6.js.map +0 -1
  68. package/dist/audioProcessing-BbOs2wMd.js.map +0 -1
  69. package/dist/audioProcessing-ByEVSjGG.mjs.map +0 -1
@@ -51,12 +51,9 @@ const ChannelListContextProvider = ({
51
51
  children,
52
52
  value
53
53
  }) => /* @__PURE__ */ jsxRuntime.jsx(ChannelListContext.Provider, { value, children });
54
- const useChannelListContext = (componentName) => {
54
+ const useChannelListContext = () => {
55
55
  const contextValue = React.useContext(ChannelListContext);
56
56
  if (!contextValue) {
57
- console.warn(
58
- `The useChannelListContext hook was called outside of the ChannelListContext provider. Make sure this hook is called within the ChannelList component. The errored call is located in the ${componentName} component.`
59
- );
60
57
  return {};
61
58
  }
62
59
  return contextValue;
@@ -622,6 +619,7 @@ class AudioPlayer {
622
619
  };
623
620
  this.stop = () => {
624
621
  this.pause();
622
+ this.state.partialNext({ isPlaying: false });
625
623
  this.setSecondsElapsed(0);
626
624
  if (this.elementRef) this.elementRef.currentTime = 0;
627
625
  };
@@ -698,10 +696,7 @@ class AudioPlayer {
698
696
  if (audioElement) {
699
697
  this.updateDurationFromElement(audioElement);
700
698
  }
701
- this.state.partialNext({
702
- isPlaying: false,
703
- secondsElapsed: audioElement?.duration ?? this.durationSeconds ?? 0
704
- });
699
+ this.stop();
705
700
  };
706
701
  const handleError = (e) => {
707
702
  const audio = e.currentTarget;
@@ -4729,4 +4724,4 @@ exports.useThreadsViewContext = useThreadsViewContext;
4729
4724
  exports.useTranslationContext = useTranslationContext;
4730
4725
  exports.useTypingContext = useTypingContext;
4731
4726
  exports.validateAndGetMessage = validateAndGetMessage;
4732
- //# sourceMappingURL=WithAudioPlayback-myzUS2m6.js.map
4727
+ //# sourceMappingURL=WithAudioPlayback.4a84360f.js.map