@stream-io/video-react-sdk 0.0.75 → 0.0.77

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 (61) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/src/components/Avatar/Avatar.d.ts +2 -2
  3. package/dist/src/components/Button/CopyToClipboardButton.d.ts +1 -1
  4. package/dist/src/components/Button/TextButton.d.ts +1 -1
  5. package/dist/src/components/CallControls/AcceptCallButton.d.ts +1 -1
  6. package/dist/src/components/CallControls/CallControls.d.ts +1 -2
  7. package/dist/src/components/CallControls/CallStatsButton.d.ts +1 -2
  8. package/dist/src/components/CallControls/CancelCallButton.d.ts +1 -1
  9. package/dist/src/components/CallControls/ReactionsButton.d.ts +2 -3
  10. package/dist/src/components/CallControls/RecordCallButton.d.ts +1 -2
  11. package/dist/src/components/CallControls/ScreenShareButton.d.ts +1 -2
  12. package/dist/src/components/CallControls/ToggleAudioButton.d.ts +2 -2
  13. package/dist/src/components/CallControls/ToggleAudioOutputButton.d.ts +1 -1
  14. package/dist/src/components/CallControls/ToggleVideoButton.d.ts +2 -2
  15. package/dist/src/components/CallParticipantsList/BlockedUserListing.d.ts +1 -2
  16. package/dist/src/components/CallParticipantsList/CallParticipantListHeader.d.ts +1 -2
  17. package/dist/src/components/CallParticipantsList/CallParticipantListing.d.ts +1 -1
  18. package/dist/src/components/CallParticipantsList/CallParticipantListingItem.d.ts +2 -2
  19. package/dist/src/components/CallParticipantsList/CallParticipantsList.d.ts +1 -2
  20. package/dist/src/components/CallParticipantsList/EmptyParticipantSearchList.d.ts +1 -2
  21. package/dist/src/components/CallRecordingList/CallRecordingList.d.ts +1 -1
  22. package/dist/src/components/CallRecordingList/CallRecordingListHeader.d.ts +1 -2
  23. package/dist/src/components/CallRecordingList/CallRecordingListItem.d.ts +1 -2
  24. package/dist/src/components/CallRecordingList/EmptyCallRecordingListing.d.ts +1 -2
  25. package/dist/src/components/CallRecordingList/LoadingCallRecordingListing.d.ts +1 -2
  26. package/dist/src/components/CallStats/CallStats.d.ts +2 -3
  27. package/dist/src/components/CallStats/CallStatsLatencyChart.d.ts +1 -2
  28. package/dist/src/components/Debug/DebugParticipantPublishQuality.d.ts +1 -2
  29. package/dist/src/components/Debug/DebugStatsView.d.ts +1 -2
  30. package/dist/src/components/DeviceSettings/DeviceSelector.d.ts +1 -2
  31. package/dist/src/components/DeviceSettings/DeviceSelectorAudio.d.ts +2 -3
  32. package/dist/src/components/DeviceSettings/DeviceSelectorVideo.d.ts +1 -2
  33. package/dist/src/components/DeviceSettings/DeviceSettings.d.ts +1 -2
  34. package/dist/src/components/Icon/Icon.d.ts +1 -2
  35. package/dist/src/components/LoadingIndicator/LoadingIndicator.d.ts +1 -2
  36. package/dist/src/components/Menu/GenericMenu.d.ts +2 -2
  37. package/dist/src/components/Menu/MenuToggle.d.ts +1 -1
  38. package/dist/src/components/Notification/Notification.d.ts +1 -1
  39. package/dist/src/components/Notification/PermissionNotification.d.ts +1 -1
  40. package/dist/src/components/Notification/SpeakingWhileMutedNotification.d.ts +1 -1
  41. package/dist/src/components/Permissions/PermissionRequests.d.ts +1 -1
  42. package/dist/src/components/Reaction/Reaction.d.ts +1 -2
  43. package/dist/src/components/RingingCall/RingingCall.d.ts +1 -2
  44. package/dist/src/components/RingingCall/RingingCallControls.d.ts +1 -2
  45. package/dist/src/components/Search/SearchInput.d.ts +1 -1
  46. package/dist/src/components/Search/SearchResults.d.ts +1 -1
  47. package/dist/src/components/StreamTheme/StreamTheme.d.ts +1 -1
  48. package/dist/src/components/Tooltip/Tooltip.d.ts +1 -1
  49. package/dist/src/components/Tooltip/WithTooltip.d.ts +1 -1
  50. package/dist/src/components/Video/VideoPreview.d.ts +1 -1
  51. package/dist/src/core/components/Audio/Audio.d.ts +1 -1
  52. package/dist/src/core/components/CallLayout/PaginatedGridLayout.d.ts +1 -2
  53. package/dist/src/core/components/CallLayout/SpeakerLayout.d.ts +1 -2
  54. package/dist/src/core/components/ParticipantView/DefaultParticipantViewUI.d.ts +3 -4
  55. package/dist/src/core/components/StreamCall/StreamCall.d.ts +1 -1
  56. package/dist/src/core/components/Video/Video.d.ts +1 -1
  57. package/dist/src/core/contexts/MediaDevicesContext.d.ts +1 -1
  58. package/dist/src/core/hooks/useVideoPublisher.js +1 -1
  59. package/dist/src/core/hooks/useVideoPublisher.js.map +1 -1
  60. package/package.json +3 -3
  61. package/src/core/hooks/useVideoPublisher.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.0.77](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.0.76...@stream-io/video-react-sdk-0.0.77) (2023-07-10)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `@stream-io/video-client` updated to version `0.0.1`
10
+ * `@stream-io/video-react-bindings` updated to version `0.0.43`
11
+
12
+ ### Documentation
13
+
14
+ * **react-sdk:** add token snippet to audio rooms tutorial ([#739](https://github.com/GetStream/stream-video-js/issues/739)) ([bf0b46c](https://github.com/GetStream/stream-video-js/commit/bf0b46ce40329458ad545c82b70a4099c4afc8f2))
15
+
16
+ ### [0.0.76](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.0.75...@stream-io/video-react-sdk-0.0.76) (2023-07-10)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * **react:** missing dependency for video publishing ([#771](https://github.com/GetStream/stream-video-js/issues/771)) ([71144b2](https://github.com/GetStream/stream-video-js/commit/71144b2b4ebf1c719acd384b2f13befcf6bde213))
22
+
5
23
  ### [0.0.75](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.0.74...@stream-io/video-react-sdk-0.0.75) (2023-07-07)
6
24
 
7
25
  ### Dependency Updates
@@ -5,11 +5,11 @@ export type AvatarData = {
5
5
  style?: CSSProperties & Record<string, string | number>;
6
6
  };
7
7
  export type AvatarProps = AvatarData & ComponentProps<'img'>;
8
- export declare const Avatar: ({ imageSrc, name, style, className, ...rest }: AvatarProps) => JSX.Element;
8
+ export declare const Avatar: ({ imageSrc, name, style, className, ...rest }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
9
9
  type AvatarFallbackProps = {
10
10
  names: string[];
11
11
  className?: string;
12
12
  style?: CSSProperties & Record<string, string | number>;
13
13
  };
14
- export declare const AvatarFallback: ({ className, names, style, }: AvatarFallbackProps) => JSX.Element;
14
+ export declare const AvatarFallback: ({ className, names, style, }: AvatarFallbackProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export {};
@@ -23,5 +23,5 @@ type CopyToClipboardButtonWithPopupProps = Exclude<CopyToClipboardButtonProps, '
23
23
  popupClassName?: string;
24
24
  popupPlacement?: Placement;
25
25
  };
26
- export declare const CopyToClipboardButtonWithPopup: ({ dismissAfterMs, onErrorMessage, onSuccessMessage, popupClassName, popupPlacement, ...restProps }: CopyToClipboardButtonWithPopupProps) => JSX.Element;
26
+ export declare const CopyToClipboardButtonWithPopup: ({ dismissAfterMs, onErrorMessage, onSuccessMessage, popupClassName, popupPlacement, ...restProps }: CopyToClipboardButtonWithPopupProps) => import("react/jsx-runtime").JSX.Element;
27
27
  export {};
@@ -1,2 +1,2 @@
1
1
  import { ComponentProps } from 'react';
2
- export declare const TextButton: ({ children, ...rest }: Omit<ComponentProps<'button'>, 'ref' | 'className'>) => JSX.Element;
2
+ export declare const TextButton: ({ children, ...rest }: Omit<ComponentProps<'button'>, 'ref' | 'className'>) => import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ export type AcceptCallButtonProps = {
4
4
  onClick?: MouseEventHandler<HTMLButtonElement>;
5
5
  onAccept?: () => void;
6
6
  };
7
- export declare const AcceptCallButton: ({ disabled, onAccept, onClick, }: AcceptCallButtonProps) => JSX.Element;
7
+ export declare const AcceptCallButton: ({ disabled, onAccept, onClick, }: AcceptCallButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  export type CallControlsProps = {
3
2
  onLeave?: () => void;
4
3
  };
5
- export declare const CallControls: ({ onLeave }: CallControlsProps) => JSX.Element;
4
+ export declare const CallControls: ({ onLeave }: CallControlsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const CallStatsButton: () => JSX.Element;
1
+ export declare const CallStatsButton: () => import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ export type CancelCallButtonProps = {
4
4
  onClick?: MouseEventHandler<HTMLButtonElement>;
5
5
  onLeave?: () => void;
6
6
  };
7
- export declare const CancelCallButton: ({ disabled, onClick, onLeave, }: CancelCallButtonProps) => JSX.Element;
7
+ export declare const CancelCallButton: ({ disabled, onClick, onLeave, }: CancelCallButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  import { StreamReaction } from '@stream-io/video-client';
3
2
  export declare const defaultReactions: StreamReaction[];
4
3
  export interface ReactionsButtonProps {
5
4
  reactions?: StreamReaction[];
6
5
  }
7
- export declare const ReactionsButton: ({ reactions, }: ReactionsButtonProps) => JSX.Element;
6
+ export declare const ReactionsButton: ({ reactions, }: ReactionsButtonProps) => import("react/jsx-runtime").JSX.Element;
8
7
  export interface DefaultReactionsMenuProps {
9
8
  reactions: StreamReaction[];
10
9
  }
11
- export declare const DefaultReactionsMenu: ({ reactions, }: DefaultReactionsMenuProps) => JSX.Element;
10
+ export declare const DefaultReactionsMenu: ({ reactions, }: DefaultReactionsMenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  export type RecordCallButtonProps = {
3
2
  caption?: string;
4
3
  };
5
- export declare const RecordCallButton: ({ caption, }: RecordCallButtonProps) => JSX.Element;
4
+ export declare const RecordCallButton: ({ caption, }: RecordCallButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  export type ScreenShareButtonProps = {
3
2
  caption?: string;
4
3
  };
5
- export declare const ScreenShareButton: ({ caption, }: ScreenShareButtonProps) => JSX.Element;
4
+ export declare const ScreenShareButton: ({ caption, }: ScreenShareButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,9 +3,9 @@ export type ToggleAudioPreviewButtonProps = {
3
3
  caption?: string;
4
4
  Menu?: ComponentType;
5
5
  };
6
- export declare const ToggleAudioPreviewButton: (props: ToggleAudioPreviewButtonProps) => JSX.Element;
6
+ export declare const ToggleAudioPreviewButton: (props: ToggleAudioPreviewButtonProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export type ToggleAudioPublishingButtonProps = {
8
8
  caption?: string;
9
9
  Menu?: ComponentType;
10
10
  };
11
- export declare const ToggleAudioPublishingButton: (props: ToggleAudioPublishingButtonProps) => JSX.Element;
11
+ export declare const ToggleAudioPublishingButton: (props: ToggleAudioPublishingButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ export type ToggleAudioOutputButtonProps = {
3
3
  caption?: string;
4
4
  Menu?: ComponentType;
5
5
  };
6
- export declare const ToggleAudioOutputButton: (props: ToggleAudioOutputButtonProps) => JSX.Element;
6
+ export declare const ToggleAudioOutputButton: (props: ToggleAudioOutputButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,10 +3,10 @@ export type ToggleVideoPreviewButtonProps = {
3
3
  caption?: string;
4
4
  Menu?: ComponentType;
5
5
  };
6
- export declare const ToggleVideoPreviewButton: (props: ToggleVideoPreviewButtonProps) => JSX.Element;
6
+ export declare const ToggleVideoPreviewButton: (props: ToggleVideoPreviewButtonProps) => import("react/jsx-runtime").JSX.Element;
7
7
  type ToggleVideoPublishingButtonProps = {
8
8
  caption?: string;
9
9
  Menu?: ComponentType;
10
10
  };
11
- export declare const ToggleVideoPublishingButton: (props: ToggleVideoPublishingButtonProps) => JSX.Element;
11
+ export declare const ToggleVideoPublishingButton: (props: ToggleVideoPublishingButtonProps) => import("react/jsx-runtime").JSX.Element;
12
12
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const BlockedUserListing: ({ data }: {
3
2
  data: string[];
4
- }) => JSX.Element | null;
3
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export type CallParticipantListHeaderProps = {
3
2
  /** Click event listener function to be invoked in order to dismiss / hide the CallParticipantsList from the UI */
4
3
  onClose: () => void;
5
4
  };
6
- export declare const CallParticipantListHeader: ({ onClose, }: CallParticipantListHeaderProps) => JSX.Element;
5
+ export declare const CallParticipantListHeader: ({ onClose, }: CallParticipantListHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,4 +5,4 @@ export type CallParticipantListingProps = {
5
5
  data: StreamVideoParticipant[];
6
6
  Header?: ComponentType;
7
7
  };
8
- export declare const CallParticipantListing: ({ data, }: CallParticipantListingProps) => JSX.Element;
8
+ export declare const CallParticipantListing: ({ data, }: CallParticipantListingProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,10 +8,10 @@ type CallParticipantListingItemProps = {
8
8
  participant: StreamVideoParticipant;
9
9
  }>;
10
10
  };
11
- export declare const CallParticipantListingItem: ({ participant, DisplayName, }: CallParticipantListingItemProps) => JSX.Element;
11
+ export declare const CallParticipantListingItem: ({ participant, DisplayName, }: CallParticipantListingItemProps) => import("react/jsx-runtime").JSX.Element;
12
12
  export declare const ParticipantActionsContextMenu: ({ participant, participantViewElement, videoElement, }: {
13
13
  participant: StreamVideoParticipant;
14
14
  participantViewElement?: HTMLDivElement | null | undefined;
15
15
  videoElement?: HTMLVideoElement | null | undefined;
16
- }) => JSX.Element;
16
+ }) => import("react/jsx-runtime").JSX.Element;
17
17
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StreamVideoParticipant } from '@stream-io/video-client';
3
2
  import { UseSearchParams } from '../Search/hooks';
4
3
  type CallParticipantListProps = {
@@ -11,5 +10,5 @@ type CallParticipantListProps = {
11
10
  /** Interval in ms, during which the participant search calls will be debounced. The default value is 200ms. */
12
11
  debounceSearchInterval?: number;
13
12
  };
14
- export declare const CallParticipantsList: ({ onClose, activeUsersSearchFn, blockedUsersSearchFn, debounceSearchInterval, }: CallParticipantListProps) => JSX.Element;
13
+ export declare const CallParticipantsList: ({ onClose, activeUsersSearchFn, blockedUsersSearchFn, debounceSearchInterval, }: CallParticipantListProps) => import("react/jsx-runtime").JSX.Element;
15
14
  export {};
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const EmptyParticipantSearchList: () => JSX.Element;
1
+ export declare const EmptyParticipantSearchList: () => import("react/jsx-runtime").JSX.Element;
@@ -17,4 +17,4 @@ export type CallRecordingListProps = {
17
17
  /** Custom component to be rendered when loading is true */
18
18
  LoadingCallRecordingList?: ComponentType<LoadingCallRecordingListProps>;
19
19
  };
20
- export declare const CallRecordingList: ({ callRecordings, CallRecordingListHeader, CallRecordingListItem, EmptyCallRecordingList, loading, LoadingCallRecordingList, }: CallRecordingListProps) => JSX.Element;
20
+ export declare const CallRecordingList: ({ callRecordings, CallRecordingListHeader, CallRecordingListItem, EmptyCallRecordingList, loading, LoadingCallRecordingList, }: CallRecordingListProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { CallRecording } from '@stream-io/video-client';
3
2
  export type CallRecordingListHeaderProps = {
4
3
  /** Array of CallRecording objects */
5
4
  callRecordings: CallRecording[];
6
5
  };
7
- export declare const CallRecordingListHeader: ({ callRecordings, }: CallRecordingListHeaderProps) => JSX.Element;
6
+ export declare const CallRecordingListHeader: ({ callRecordings, }: CallRecordingListHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { CallRecording } from '@stream-io/video-client';
3
2
  export type CallRecordingListItemProps = {
4
3
  /** CallRecording object to represent */
5
4
  recording: CallRecording;
6
5
  };
7
- export declare const CallRecordingListItem: ({ recording, }: CallRecordingListItemProps) => JSX.Element;
6
+ export declare const CallRecordingListItem: ({ recording, }: CallRecordingListItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const EmptyCallRecordingListing: () => JSX.Element;
1
+ export declare const EmptyCallRecordingListing: () => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { CallRecording } from '@stream-io/video-client';
3
2
  export type LoadingCallRecordingListProps = {
4
3
  /** Array of CallRecording objects */
5
4
  callRecordings: CallRecording[];
6
5
  };
7
- export declare const LoadingCallRecordingListing: ({ callRecordings, }: LoadingCallRecordingListProps) => JSX.Element;
6
+ export declare const LoadingCallRecordingListing: ({ callRecordings, }: LoadingCallRecordingListProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const CallStats: () => JSX.Element;
1
+ export declare const CallStats: () => import("react/jsx-runtime").JSX.Element;
3
2
  export declare const StatCard: (props: {
4
3
  label: string;
5
4
  value: string;
6
- }) => JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  export declare const CallStatsLatencyChart: (props: {
3
2
  values: Array<{
4
3
  x: number;
5
4
  y: number;
6
5
  }>;
7
- }) => JSX.Element;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { Call, StreamVideoParticipant } from '@stream-io/video-client';
3
2
  export declare const DebugParticipantPublishQuality: (props: {
4
3
  participant: StreamVideoParticipant;
5
4
  call: Call;
6
- }) => JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { Call } from '@stream-io/video-client';
3
2
  export declare const DebugStatsView: (props: {
4
3
  call: Call;
5
4
  mediaStream?: MediaStream;
6
5
  sessionId: string;
7
6
  userId: string;
8
- }) => JSX.Element;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  export declare const DeviceSelector: (props: {
3
2
  devices: MediaDeviceInfo[];
4
3
  selectedDeviceId?: string | undefined;
5
4
  title: string;
6
5
  onChange?: ((deviceId: string) => void) | undefined;
7
- }) => JSX.Element;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  export type DeviceSelectorAudioInputProps = {
3
2
  title?: string;
4
3
  };
5
- export declare const DeviceSelectorAudioInput: ({ title, }: DeviceSelectorAudioInputProps) => JSX.Element;
4
+ export declare const DeviceSelectorAudioInput: ({ title, }: DeviceSelectorAudioInputProps) => import("react/jsx-runtime").JSX.Element;
6
5
  export type DeviceSelectorAudioOutputProps = {
7
6
  title?: string;
8
7
  };
9
- export declare const DeviceSelectorAudioOutput: ({ title, }: DeviceSelectorAudioOutputProps) => JSX.Element | null;
8
+ export declare const DeviceSelectorAudioOutput: ({ title, }: DeviceSelectorAudioOutputProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  export type DeviceSelectorVideoProps = {
3
2
  title?: string;
4
3
  };
5
- export declare const DeviceSelectorVideo: ({ title }: DeviceSelectorVideoProps) => JSX.Element;
4
+ export declare const DeviceSelectorVideo: ({ title }: DeviceSelectorVideoProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const DeviceSettings: () => JSX.Element;
1
+ export declare const DeviceSettings: () => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  export type IconProps = {
3
2
  icon: string;
4
3
  };
5
- export declare const Icon: ({ icon }: IconProps) => JSX.Element;
4
+ export declare const Icon: ({ icon }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type LoadingIndicatorProps = {
3
2
  className?: string;
4
3
  /** String will be injected into class and later used to apply as a CSS mask-image to an element as data URL */
@@ -8,4 +7,4 @@ export type LoadingIndicatorProps = {
8
7
  /** Tooltip to be displayed on hover */
9
8
  tooltip?: string;
10
9
  };
11
- export declare const LoadingIndicator: ({ className, type, text, tooltip, }: LoadingIndicatorProps) => JSX.Element;
10
+ export declare const LoadingIndicator: ({ className, type, text, tooltip, }: LoadingIndicatorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { ComponentProps, PropsWithChildren } from 'react';
2
- export declare const GenericMenu: ({ children }: PropsWithChildren) => JSX.Element;
3
- export declare const GenericMenuButtonItem: ({ children, ...rest }: Omit<ComponentProps<'button'>, 'ref'>) => JSX.Element;
2
+ export declare const GenericMenu: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const GenericMenuButtonItem: ({ children, ...rest }: Omit<ComponentProps<'button'>, 'ref'>) => import("react/jsx-runtime").JSX.Element;
@@ -9,4 +9,4 @@ export type MenuToggleProps<E extends HTMLElement> = PropsWithChildren<{
9
9
  placement?: Placement;
10
10
  strategy?: Strategy;
11
11
  }>;
12
- export declare const MenuToggle: <E extends HTMLElement>({ ToggleButton, placement, strategy, children, }: MenuToggleProps<E>) => JSX.Element;
12
+ export declare const MenuToggle: <E extends HTMLElement>({ ToggleButton, placement, strategy, children, }: MenuToggleProps<E>) => import("react/jsx-runtime").JSX.Element;
@@ -8,4 +8,4 @@ export type NotificationProps = {
8
8
  placement?: Placement;
9
9
  iconClassName?: string | null;
10
10
  };
11
- export declare const Notification: (props: PropsWithChildren<NotificationProps>) => JSX.Element;
11
+ export declare const Notification: (props: PropsWithChildren<NotificationProps>) => import("react/jsx-runtime").JSX.Element;
@@ -30,4 +30,4 @@ export type PermissionNotificationProps = PropsWithChildren<{
30
30
  */
31
31
  visibilityTimeout?: number;
32
32
  }>;
33
- export declare const PermissionNotification: (props: PermissionNotificationProps) => JSX.Element;
33
+ export declare const PermissionNotification: (props: PermissionNotificationProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,4 +2,4 @@ import { PropsWithChildren } from 'react';
2
2
  export type SpeakingWhileMutedNotificationProps = {
3
3
  text?: string;
4
4
  };
5
- export declare const SpeakingWhileMutedNotification: ({ children, text, }: PropsWithChildren<SpeakingWhileMutedNotificationProps>) => JSX.Element;
5
+ export declare const SpeakingWhileMutedNotification: ({ children, text, }: PropsWithChildren<SpeakingWhileMutedNotificationProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { PermissionRequestEvent } from '@stream-io/video-client';
3
- export declare const PermissionRequests: () => JSX.Element | null;
3
+ export declare const PermissionRequests: () => import("react/jsx-runtime").JSX.Element | null;
4
4
  export type PermissionRequestListProps = ComponentProps<'div'> & {
5
5
  permissionRequests: PermissionRequestEvent[];
6
6
  handleUpdatePermission: (request: PermissionRequestEvent, allow: boolean) => () => Promise<void>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StreamVideoParticipant } from '@stream-io/video-client';
3
2
  export type ReactionProps = {
4
3
  participant: StreamVideoParticipant;
@@ -6,4 +5,4 @@ export type ReactionProps = {
6
5
  emojiReactionMap?: Record<string, string>;
7
6
  };
8
7
  export declare const defaultEmojiReactionMap: Record<string, string>;
9
- export declare const Reaction: ({ participant: { reaction, sessionId }, hideAfterTimeoutInMs, emojiReactionMap, }: ReactionProps) => JSX.Element | null;
8
+ export declare const Reaction: ({ participant: { reaction, sessionId }, hideAfterTimeoutInMs, emojiReactionMap, }: ReactionProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type RingingCallProps = {
3
2
  /**
4
3
  * Whether to include the current user in the list of members to show.
@@ -11,4 +10,4 @@ export type RingingCallProps = {
11
10
  */
12
11
  totalMembersToShow?: number;
13
12
  };
14
- export declare const RingingCall: (props: RingingCallProps) => JSX.Element | null;
13
+ export declare const RingingCall: (props: RingingCallProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const RingingCallControls: () => JSX.Element | null;
1
+ export declare const RingingCallControls: () => import("react/jsx-runtime").JSX.Element | null;
@@ -10,5 +10,5 @@ type SearchInputProps = ComponentProps<'input'> & {
10
10
  */
11
11
  isActive: boolean;
12
12
  };
13
- export declare const SearchInput: ({ exitSearch, isActive, ...rest }: SearchInputProps) => JSX.Element;
13
+ export declare const SearchInput: ({ exitSearch, isActive, ...rest }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
14
14
  export {};
@@ -11,4 +11,4 @@ export type SearchResultsProps<T> = Pick<SearchController<T>, 'searchResults' |
11
11
  /** Component to be displayed while the search query request is in progress */
12
12
  LoadingIndicator?: ComponentType;
13
13
  };
14
- export declare const SearchResults: <T extends unknown>({ EmptySearchResultComponent, LoadingIndicator, searchQueryInProgress, searchResults, SearchResultList, }: SearchResultsProps<T>) => JSX.Element;
14
+ export declare const SearchResults: <T extends unknown>({ EmptySearchResultComponent, LoadingIndicator, searchQueryInProgress, searchResults, SearchResultList, }: SearchResultsProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -2,4 +2,4 @@ import { ElementType, HTMLProps, PropsWithChildren } from 'react';
2
2
  export type StreamThemeProps = HTMLProps<HTMLElement> & {
3
3
  as?: ElementType;
4
4
  };
5
- export declare const StreamTheme: ({ as: Component, className, children, ...props }: PropsWithChildren<StreamThemeProps>) => JSX.Element;
5
+ export declare const StreamTheme: ({ as: Component, className, children, ...props }: PropsWithChildren<StreamThemeProps>) => import("react/jsx-runtime").JSX.Element;
@@ -12,4 +12,4 @@ export type TooltipProps<T extends HTMLElement> = PropsWithChildren<{
12
12
  /** Tells component whether to render its contents */
13
13
  visible?: boolean;
14
14
  }>;
15
- export declare const Tooltip: <T extends HTMLElement>({ children, referenceElement, tooltipClassName, tooltipPlacement, visible, }: TooltipProps<T>) => JSX.Element | null;
15
+ export declare const Tooltip: <T extends HTMLElement>({ children, referenceElement, tooltipClassName, tooltipPlacement, visible, }: TooltipProps<T>) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { TooltipProps } from './Tooltip';
3
3
  type WithPopupProps = ComponentProps<'div'> & Omit<TooltipProps<HTMLDivElement>, 'referenceElement'>;
4
- export declare const WithTooltip: ({ title, tooltipClassName, tooltipPlacement, ...props }: WithPopupProps) => JSX.Element;
4
+ export declare const WithTooltip: ({ title, tooltipClassName, tooltipPlacement, ...props }: WithPopupProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export {};
@@ -24,5 +24,5 @@ export type VideoPreviewProps = {
24
24
  */
25
25
  VideoErrorPreview?: ComponentType<VideoErrorPreviewProps>;
26
26
  };
27
- export declare const VideoPreview: ({ mirror, DisabledVideoPreview, NoCameraPreview, StartingCameraPreview, VideoErrorPreview, }: VideoPreviewProps) => JSX.Element;
27
+ export declare const VideoPreview: ({ mirror, DisabledVideoPreview, NoCameraPreview, StartingCameraPreview, VideoErrorPreview, }: VideoPreviewProps) => import("react/jsx-runtime").JSX.Element;
28
28
  export {};
@@ -3,4 +3,4 @@ import { StreamVideoParticipant } from '@stream-io/video-client';
3
3
  export type AudioProps = DetailedHTMLProps<AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement> & Pick<StreamVideoParticipant, 'audioStream'> & {
4
4
  sinkId?: string;
5
5
  };
6
- export declare const Audio: ({ audioStream, sinkId, ...rest }: AudioProps) => JSX.Element;
6
+ export declare const Audio: ({ audioStream, sinkId, ...rest }: AudioProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ParticipantViewProps } from '../ParticipantView';
3
2
  export type PaginatedGridLayoutProps = {
4
3
  /**
@@ -14,4 +13,4 @@ export type PaginatedGridLayoutProps = {
14
13
  */
15
14
  pageArrowsVisible?: boolean;
16
15
  } & Pick<ParticipantViewProps, 'ParticipantViewUI' | 'VideoPlaceholder'>;
17
- export declare const PaginatedGridLayout: ({ groupSize, excludeLocalParticipant, pageArrowsVisible, VideoPlaceholder, ParticipantViewUI, }: PaginatedGridLayoutProps) => JSX.Element | null;
16
+ export declare const PaginatedGridLayout: ({ groupSize, excludeLocalParticipant, pageArrowsVisible, VideoPlaceholder, ParticipantViewUI, }: PaginatedGridLayoutProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ParticipantViewProps } from '../ParticipantView';
3
2
  export type SpeakerLayoutProps = {
4
3
  ParticipantViewUISpotlight?: ParticipantViewProps['ParticipantViewUI'];
@@ -9,4 +8,4 @@ export type SpeakerLayoutProps = {
9
8
  */
10
9
  participantsBarPosition?: 'top' | 'bottom' | 'left' | 'right' | null;
11
10
  } & Pick<ParticipantViewProps, 'VideoPlaceholder'>;
12
- export declare const SpeakerLayout: ({ ParticipantViewUIBar, ParticipantViewUISpotlight, VideoPlaceholder, participantsBarPosition, }: SpeakerLayoutProps) => JSX.Element | null;
11
+ export declare const SpeakerLayout: ({ ParticipantViewUIBar, ParticipantViewUISpotlight, VideoPlaceholder, participantsBarPosition, }: SpeakerLayoutProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Placement } from '@floating-ui/react';
3
2
  export type DefaultParticipantViewUIProps = {
4
3
  /**
@@ -14,6 +13,6 @@ export type DefaultParticipantViewUIProps = {
14
13
  */
15
14
  showMenuButton?: boolean;
16
15
  };
17
- export declare const DefaultScreenShareOverlay: () => JSX.Element;
18
- export declare const DefaultParticipantViewUI: ({ indicatorsVisible, menuPlacement, showMenuButton, }: DefaultParticipantViewUIProps) => JSX.Element;
19
- export declare const ParticipantDetails: ({ indicatorsVisible, }: Pick<DefaultParticipantViewUIProps, 'indicatorsVisible'>) => JSX.Element;
16
+ export declare const DefaultScreenShareOverlay: () => import("react/jsx-runtime").JSX.Element;
17
+ export declare const DefaultParticipantViewUI: ({ indicatorsVisible, menuPlacement, showMenuButton, }: DefaultParticipantViewUIProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const ParticipantDetails: ({ indicatorsVisible, }: Pick<DefaultParticipantViewUIProps, 'indicatorsVisible'>) => import("react/jsx-runtime").JSX.Element;
@@ -8,4 +8,4 @@ export type StreamCallProps = {
8
8
  */
9
9
  mediaDevicesProviderProps?: MediaDevicesProviderProps;
10
10
  };
11
- export declare const StreamCall: ({ children, call, mediaDevicesProviderProps, }: PropsWithChildren<StreamCallProps>) => JSX.Element;
11
+ export declare const StreamCall: ({ children, call, mediaDevicesProviderProps, }: PropsWithChildren<StreamCallProps>) => import("react/jsx-runtime").JSX.Element;
@@ -13,4 +13,4 @@ export type VideoProps = ComponentPropsWithoutRef<'video'> & {
13
13
  setVideoPlaceholderElement?: (element: HTMLDivElement | null) => void;
14
14
  };
15
15
  };
16
- export declare const Video: ({ kind, participant, className, VideoPlaceholder, refs, ...rest }: VideoProps) => JSX.Element | null;
16
+ export declare const Video: ({ kind, participant, className, VideoPlaceholder, refs, ...rest }: VideoProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -169,7 +169,7 @@ export type MediaDevicesProviderProps = {
169
169
  *
170
170
  * @category Device Management
171
171
  */
172
- export declare const MediaDevicesProvider: ({ children, initialAudioEnabled, initialVideoEnabled, initialVideoInputDeviceId, initialAudioOutputDeviceId, initialAudioInputDeviceId, }: PropsWithChildren<MediaDevicesProviderProps>) => JSX.Element;
172
+ export declare const MediaDevicesProvider: ({ children, initialAudioEnabled, initialVideoEnabled, initialVideoInputDeviceId, initialAudioOutputDeviceId, initialAudioInputDeviceId, }: PropsWithChildren<MediaDevicesProviderProps>) => import("react/jsx-runtime").JSX.Element;
173
173
  /**
174
174
  * Context consumer retrieving MediaDevicesContextAPI.
175
175
  * @returns
@@ -64,7 +64,7 @@ export const useVideoPublisher = ({ initialVideoMuted, videoDeviceId, }) => {
64
64
  console.error('Failed to publish video stream', e);
65
65
  });
66
66
  }
67
- }, [publishVideoStream, videoDeviceId]);
67
+ }, [publishVideoStream, videoDeviceId, callingState]);
68
68
  const initialPublishRun = useRef(false);
69
69
  useEffect(() => {
70
70
  if (callingState === CallingState.JOINED &&
@@ -1 +1 @@
1
- {"version":3,"file":"useVideoPublisher.js","sourceRoot":"","sources":["../../../../src/core/hooks/useVideoPublisher.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EACL,YAAY,EACZ,cAAc,EACd,aAAa,EACb,SAAS,EACT,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,GAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAUxD;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,iBAAiB,EACjB,aAAa,GACM,EAAE,EAAE;IACvB,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,YAAY,GAAG,mBAAmB,EAAE,CAAC;IAC3C,MAAM,WAAW,GAAG,mBAAmB,EAAE,CAAC;IAC1C,MAAM,8BAA8B,GAAG,wBAAwB,CAC7D,QAA0B,CAC3B,CAAC;IACF,MAAM,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IAExC,MAAM,cAAc,GAAG,2BAA2B,EAAE,CAAC;IACrD,MAA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AAC;oBACvC,QAAQ,EAAE,aAAa;iBACxB,CAAC,CAAC;gBACH,MAAM,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;aAC5C;QACH,CAAC,CAAA,CAAC;QAEF,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;QAClD,OAAO,GAAG,EAAE;YACV,KAAK,CAAC,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;YACrD,sBAAsB,CAAC,WAAW,EAAE,CAAC;QACvC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,aAAa,EAAE,IAAI,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAEvE,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,KAAgD,EAAE,EAAE;IACxE,QAAQ,KAAK,EAAE;QACb,KAAK,6BAA6B,CAAC,KAAK;YACtC,OAAO,MAAM,CAAC;QAChB,KAAK,6BAA6B,CAAC,IAAI;YACrC,OAAO,aAAa,CAAC;QACvB;YACE,OAAO,SAAS,CAAC;KACpB;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"useVideoPublisher.js","sourceRoot":"","sources":["../../../../src/core/hooks/useVideoPublisher.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EACL,YAAY,EACZ,cAAc,EACd,aAAa,EACb,SAAS,EACT,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,GAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,2BAA2B,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CAAC;QACvB;YACE,OAAO,SAAS,CAAC;KACpB;AACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -30,8 +30,8 @@
30
30
  "@nivo/core": "^0.80.0",
31
31
  "@nivo/line": "^0.80.0",
32
32
  "@stream-io/i18n": "^0.0.8",
33
- "@stream-io/video-client": "^0.0.40",
34
- "@stream-io/video-react-bindings": "^0.0.42",
33
+ "@stream-io/video-client": "^0.0.41",
34
+ "@stream-io/video-react-bindings": "^0.0.43",
35
35
  "clsx": "^1.2.1",
36
36
  "rxjs": "~7.8.1"
37
37
  },
@@ -50,5 +50,5 @@
50
50
  "rimraf": "^3.0.2",
51
51
  "typescript": "^4.9.5"
52
52
  },
53
- "version": "0.0.75"
53
+ "version": "0.0.77"
54
54
  }
@@ -88,7 +88,7 @@ export const useVideoPublisher = ({
88
88
  console.error('Failed to publish video stream', e);
89
89
  });
90
90
  }
91
- }, [publishVideoStream, videoDeviceId]);
91
+ }, [publishVideoStream, videoDeviceId, callingState]);
92
92
 
93
93
  const initialPublishRun = useRef(false);
94
94
  useEffect(() => {