@stream-io/video-react-sdk 1.40.1 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/background-filters-D2U5UBbH.es.js.map +1 -1
- package/dist/background-filters-folwWrgs.cjs.js.map +1 -1
- package/dist/embedded-BackgroundFilters-D2U5UBbH.es.js.map +1 -1
- package/dist/embedded-BackgroundFilters-folwWrgs.cjs.js.map +1 -1
- package/dist/embedded.cjs.js +27 -26
- package/dist/embedded.cjs.js.map +1 -1
- package/dist/embedded.es.js +28 -27
- package/dist/embedded.es.js.map +1 -1
- package/dist/index.cjs.js +26 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +27 -26
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/Avatar/Avatar.d.ts +2 -2
- package/dist/src/components/BackgroundFilters/BackgroundFilters.d.ts +1 -1
- package/dist/src/components/BackgroundFilters/BackgroundFiltersProvider.d.ts +1 -1
- package/dist/src/components/Button/TextButton.d.ts +1 -1
- package/dist/src/components/CallControls/AcceptCallButton.d.ts +1 -1
- package/dist/src/components/CallControls/CallControls.d.ts +1 -1
- package/dist/src/components/CallControls/CallStatsButton.d.ts +1 -1
- package/dist/src/components/CallControls/CancelCallButton.d.ts +2 -2
- package/dist/src/components/CallControls/ReactionsButton.d.ts +2 -2
- package/dist/src/components/CallControls/RecordCallButton.d.ts +2 -2
- package/dist/src/components/CallControls/ScreenShareButton.d.ts +1 -1
- package/dist/src/components/CallControls/ToggleAudioButton.d.ts +2 -2
- package/dist/src/components/CallControls/ToggleAudioOutputButton.d.ts +1 -1
- package/dist/src/components/CallControls/ToggleVideoButton.d.ts +2 -2
- package/dist/src/components/CallParticipantsList/BlockedUserListing.d.ts +1 -1
- package/dist/src/components/CallParticipantsList/CallParticipantListHeader.d.ts +1 -1
- package/dist/src/components/CallParticipantsList/CallParticipantListing.d.ts +1 -1
- package/dist/src/components/CallParticipantsList/CallParticipantListingItem.d.ts +1 -1
- package/dist/src/components/CallParticipantsList/CallParticipantsList.d.ts +1 -1
- package/dist/src/components/CallParticipantsList/EmptyParticipantSearchList.d.ts +1 -1
- package/dist/src/components/CallPreview/CallPreview.d.ts +1 -1
- package/dist/src/components/CallRecordingList/CallRecordingList.d.ts +1 -1
- package/dist/src/components/CallRecordingList/CallRecordingListHeader.d.ts +1 -1
- package/dist/src/components/CallRecordingList/CallRecordingListItem.d.ts +1 -1
- package/dist/src/components/CallRecordingList/EmptyCallRecordingListing.d.ts +1 -1
- package/dist/src/components/CallRecordingList/LoadingCallRecordingListing.d.ts +1 -1
- package/dist/src/components/CallStats/CallStats.d.ts +2 -2
- package/dist/src/components/CallStats/CallStatsLatencyChart.d.ts +1 -1
- package/dist/src/components/DeviceSettings/AudioVolumeIndicator.d.ts +1 -1
- package/dist/src/components/DeviceSettings/DeviceAudioPreviewItem.d.ts +1 -1
- package/dist/src/components/DeviceSettings/DeviceSelector.d.ts +1 -1
- package/dist/src/components/DeviceSettings/DeviceSelectorAudio.d.ts +2 -2
- package/dist/src/components/DeviceSettings/DeviceSelectorVideo.d.ts +1 -1
- package/dist/src/components/DeviceSettings/DeviceSettings.d.ts +1 -1
- package/dist/src/components/DeviceSettings/DeviceVideoPreviewItem.d.ts +1 -1
- package/dist/src/components/DeviceSettings/SpeakerTest.d.ts +1 -1
- package/dist/src/components/DropdownSelect/DropdownSelect.d.ts +2 -2
- package/dist/src/components/Icon/Icon.d.ts +1 -1
- package/dist/src/components/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/dist/src/components/Menu/GenericMenu.d.ts +2 -2
- package/dist/src/components/Menu/MenuToggle.d.ts +1 -1
- package/dist/src/components/NoiseCancellation/NoiseCancellationProvider.d.ts +1 -1
- package/dist/src/components/Notification/MicCaptureErrorNotification.d.ts +1 -1
- package/dist/src/components/Notification/Notification.d.ts +1 -1
- package/dist/src/components/Notification/PermissionNotification.d.ts +1 -1
- package/dist/src/components/Notification/RecordingInProgressNotification.d.ts +1 -1
- package/dist/src/components/Notification/SpeakingWhileMutedNotification.d.ts +1 -1
- package/dist/src/components/Permissions/PermissionRequests.d.ts +1 -1
- package/dist/src/components/Reaction/Reaction.d.ts +1 -1
- package/dist/src/components/RingingCall/RingingCall.d.ts +1 -1
- package/dist/src/components/RingingCall/RingingCallControls.d.ts +1 -1
- package/dist/src/components/Search/SearchInput.d.ts +1 -1
- package/dist/src/components/Search/SearchResults.d.ts +1 -1
- package/dist/src/components/StreamTheme/StreamTheme.d.ts +1 -1
- package/dist/src/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/src/components/Tooltip/WithTooltip.d.ts +1 -1
- package/dist/src/components/VideoPreview/VideoPreview.d.ts +1 -1
- package/dist/src/core/components/Audio/Audio.d.ts +1 -1
- package/dist/src/core/components/Audio/ParticipantsAudio.d.ts +1 -1
- package/dist/src/core/components/CallLayout/LivestreamLayout.d.ts +2 -2
- package/dist/src/core/components/CallLayout/PaginatedGridLayout.d.ts +1 -1
- package/dist/src/core/components/CallLayout/PipLayout/Grid.d.ts +1 -1
- package/dist/src/core/components/CallLayout/PipLayout/Host.d.ts +1 -1
- package/dist/src/core/components/CallLayout/PipLayout/Pip.d.ts +1 -1
- package/dist/src/core/components/CallLayout/PipLayout/index.d.ts +3 -3
- package/dist/src/core/components/CallLayout/SpeakerLayout.d.ts +1 -1
- package/dist/src/core/components/ParticipantView/DefaultParticipantViewUI.d.ts +5 -5
- package/dist/src/core/components/ParticipantView/ParticipantActionsContextMenu.d.ts +1 -1
- package/dist/src/core/components/StreamVideo/StreamVideo.d.ts +1 -1
- package/dist/src/core/components/Video/Video.d.ts +1 -1
- package/dist/src/embedded/EmbeddedClientProvider.d.ts +1 -1
- package/dist/src/embedded/call/CallControls.d.ts +1 -1
- package/dist/src/embedded/call/CallHeader.d.ts +1 -1
- package/dist/src/embedded/call/CallLayout.d.ts +1 -1
- package/dist/src/embedded/call/CallStateRouter.d.ts +1 -1
- package/dist/src/embedded/call/EmbeddedCall.d.ts +1 -1
- package/dist/src/embedded/context/ConfigurationContext.d.ts +1 -1
- package/dist/src/embedded/livestream/EmbeddedLivestream.d.ts +1 -1
- package/dist/src/embedded/livestream/LivestreamUI.d.ts +1 -1
- package/dist/src/embedded/livestream/host/HostLayout.d.ts +1 -1
- package/dist/src/embedded/livestream/host/HostStateRouter.d.ts +1 -1
- package/dist/src/embedded/livestream/viewer/ViewerLayout.d.ts +1 -1
- package/dist/src/embedded/livestream/viewer/ViewerLobby.d.ts +1 -1
- package/dist/src/embedded/livestream/viewer/ViewerStateRouter.d.ts +1 -1
- package/dist/src/embedded/shared/BlurToggleButton/BlurToggleButton.d.ts +2 -2
- package/dist/src/embedded/shared/CallFeedback/CallEndedScreen.d.ts +1 -1
- package/dist/src/embedded/shared/CallFeedback/CallFeedback.d.ts +1 -1
- package/dist/src/embedded/shared/CallFeedback/RatingScreen.d.ts +1 -1
- package/dist/src/embedded/shared/CallFeedback/StarRating.d.ts +1 -1
- package/dist/src/embedded/shared/CallFeedback/ThankYouScreen.d.ts +1 -1
- package/dist/src/embedded/shared/ConnectionNotification/ConnectionNotification.d.ts +1 -1
- package/dist/src/embedded/shared/EmbeddedParticipantViewUI/EmbeddedParticipantViewUI.d.ts +1 -1
- package/dist/src/embedded/shared/JoinError/JoinError.d.ts +1 -1
- package/dist/src/embedded/shared/Lobby/DeviceControls.d.ts +1 -1
- package/dist/src/embedded/shared/Lobby/DisabledDeviceButton.d.ts +1 -1
- package/dist/src/embedded/shared/Lobby/Lobby.d.ts +1 -1
- package/dist/src/embedded/shared/Lobby/ToggleCameraButton.d.ts +1 -1
- package/dist/src/embedded/shared/Lobby/ToggleMicButton.d.ts +1 -1
- package/dist/src/embedded/shared/Lobby/VideoPreviewFallbacks.d.ts +2 -2
- package/dist/src/embedded/shared/ViewersCount/ViewersCount.d.ts +1 -1
- package/dist/src/hooks/useRequestPermission.d.ts +2 -2
- package/dist/src/wrappers/LivestreamPlayer/LivestreamPlayer.d.ts +1 -1
- package/package.json +13 -13
- package/src/components/BackgroundFilters/BackgroundFilters.tsx +2 -4
- package/src/components/Button/CompositeButton.tsx +2 -2
- package/src/components/Button/IconButton.tsx +1 -1
- package/src/components/CallControls/CallStatsButton.tsx +1 -1
- package/src/components/CallControls/CancelCallButton.tsx +1 -1
- package/src/components/CallControls/ReactionsButton.tsx +1 -1
- package/src/components/CallControls/RecordCallButton.tsx +1 -1
- package/src/components/CallControls/ScreenShareButton.tsx +5 -2
- package/src/components/CallControls/ToggleAudioButton.tsx +6 -2
- package/src/components/CallControls/ToggleVideoButton.tsx +6 -2
- package/src/components/CallParticipantsList/CallParticipantListingItem.tsx +2 -2
- package/src/components/CallParticipantsList/CallParticipantsList.tsx +1 -1
- package/src/components/DeviceSettings/DeviceSettings.tsx +1 -1
- package/src/components/Permissions/PermissionRequests.tsx +1 -1
- package/src/core/components/Audio/Audio.tsx +1 -1
- package/src/core/components/ParticipantView/DefaultParticipantViewUI.tsx +1 -1
- package/src/core/components/ParticipantView/ParticipantActionsContextMenu.tsx +16 -12
- package/src/core/components/ParticipantView/ParticipantView.tsx +124 -120
- package/src/core/components/Video/BaseVideo.tsx +1 -1
- package/src/core/components/Video/DefaultPictureInPicturePlaceholder.tsx +1 -1
- package/src/core/components/Video/DefaultVideoPlaceholder.tsx +1 -1
- package/src/embedded/shared/Lobby/ToggleCameraButton.tsx +1 -1
- package/src/embedded/shared/Lobby/ToggleMicButton.tsx +1 -1
- package/src/embedded/types.ts +1 -3
- package/src/hooks/useRequestPermission.ts +4 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StreamVideoProps } from '@stream-io/video-react-bindings';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
export declare const StreamVideo: {
|
|
4
|
-
(props: PropsWithChildren<StreamVideoProps>): import("react
|
|
4
|
+
(props: PropsWithChildren<StreamVideoProps>): import("react").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -57,6 +57,6 @@ export type VideoProps = ComponentPropsWithoutRef<'video'> & {
|
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
export declare const Video: {
|
|
60
|
-
({ enabled, mirror, trackType, participant, className, VideoPlaceholder, PictureInPicturePlaceholder, refs, ...rest }: VideoProps): import("react
|
|
60
|
+
({ enabled, mirror, trackType, participant, className, VideoPlaceholder, PictureInPicturePlaceholder, refs, ...rest }: VideoProps): import("react").JSX.Element | null;
|
|
61
61
|
displayName: string;
|
|
62
62
|
};
|
|
@@ -18,4 +18,4 @@ export interface EmbeddedClientProviderProps {
|
|
|
18
18
|
* Shared provider wrapper for embedded components.
|
|
19
19
|
* Handles client/call initialization and wraps children with all necessary providers.
|
|
20
20
|
*/
|
|
21
|
-
export declare const EmbeddedClientProvider: ({ apiKey, user, callId, callType, token, tokenProvider, logLevel, onError, layout, theme, children, }: EmbeddedClientProviderProps) => import("react
|
|
21
|
+
export declare const EmbeddedClientProvider: ({ apiKey, user, callId, callType, token, tokenProvider, logLevel, onError, layout, theme, children, }: EmbeddedClientProviderProps) => import("react").JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface CallControlsProps {
|
|
|
5
5
|
/**
|
|
6
6
|
* Renders the active call control bar
|
|
7
7
|
*/
|
|
8
|
-
export declare const CallControls: ({ showParticipants, onToggleParticipants, }: CallControlsProps) => import("react
|
|
8
|
+
export declare const CallControls: ({ showParticipants, onToggleParticipants, }: CallControlsProps) => import("react").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -3,4 +3,4 @@ import type { EmbeddedMeetingProps } from '../types';
|
|
|
3
3
|
* Drop-in video call component that renders a lobby, active call,
|
|
4
4
|
* and post-call feedback screen. Handles client and call setup internally.
|
|
5
5
|
*/
|
|
6
|
-
export declare const EmbeddedCall: ({ children, ...props }: EmbeddedMeetingProps) => import("react
|
|
6
|
+
export declare const EmbeddedCall: ({ children, ...props }: EmbeddedMeetingProps) => import("react").JSX.Element;
|
|
@@ -4,7 +4,7 @@ export interface EmbeddedConfiguration {
|
|
|
4
4
|
layout?: LayoutOption;
|
|
5
5
|
onError?: (error: any) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const ConfigurationProvider: ({ children, layout, onError, }: PropsWithChildren<EmbeddedConfiguration>) => import("react
|
|
7
|
+
export declare const ConfigurationProvider: ({ children, layout, onError, }: PropsWithChildren<EmbeddedConfiguration>) => import("react").JSX.Element;
|
|
8
8
|
/**
|
|
9
9
|
* Hook to access embedded configuration settings.
|
|
10
10
|
*/
|
|
@@ -2,4 +2,4 @@ import type { EmbeddedLivestreamProps } from '../types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Drop-in livestream component. Renders host or viewer UI based on permissions.
|
|
4
4
|
*/
|
|
5
|
-
export declare const EmbeddedLivestream: ({ children, ...props }: EmbeddedLivestreamProps) => import("react
|
|
5
|
+
export declare const EmbeddedLivestream: ({ children, ...props }: EmbeddedLivestreamProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LivestreamUI: () => import("react
|
|
1
|
+
export declare const LivestreamUI: () => import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ export type HostViewProps = {
|
|
|
4
4
|
onGoLive: () => void;
|
|
5
5
|
onStopLive: () => void;
|
|
6
6
|
};
|
|
7
|
-
export declare const HostLayout: ({ isLive, isBackstageEnabled, onGoLive, onStopLive, }: HostViewProps) => import("react
|
|
7
|
+
export declare const HostLayout: ({ isLive, isBackstageEnabled, onGoLive, onStopLive, }: HostViewProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HostStateRouter: () => import("react
|
|
1
|
+
export declare const HostStateRouter: () => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ViewerLayout: () => import("react
|
|
1
|
+
export declare const ViewerLayout: () => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type ViewerLobbyProps = {
|
|
2
2
|
onJoin: () => Promise<void>;
|
|
3
3
|
};
|
|
4
|
-
export declare const ViewerLobby: ({ onJoin }: ViewerLobbyProps) => import("react
|
|
4
|
+
export declare const ViewerLobby: ({ onJoin }: ViewerLobbyProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ViewerStateRouter: () => import("react
|
|
1
|
+
export declare const ViewerStateRouter: () => import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const BlurToggleButton: () => import("react
|
|
2
|
-
export declare const CameraMenuWithBlur: () => import("react
|
|
1
|
+
export declare const BlurToggleButton: () => import("react").JSX.Element | null;
|
|
2
|
+
export declare const CameraMenuWithBlur: () => import("react").JSX.Element;
|
|
@@ -2,5 +2,5 @@ interface CallEndedScreenProps {
|
|
|
2
2
|
onJoin?: () => void;
|
|
3
3
|
onFeedback: () => void;
|
|
4
4
|
}
|
|
5
|
-
export declare const CallEndedScreen: ({ onJoin, onFeedback, }: CallEndedScreenProps) => import("react
|
|
5
|
+
export declare const CallEndedScreen: ({ onJoin, onFeedback, }: CallEndedScreenProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export interface CallFeedbackProps {
|
|
2
2
|
onJoin?: () => void;
|
|
3
3
|
}
|
|
4
|
-
export declare const CallFeedback: ({ onJoin }: CallFeedbackProps) => import("react
|
|
4
|
+
export declare const CallFeedback: ({ onJoin }: CallFeedbackProps) => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface RatingScreenProps {
|
|
2
2
|
onSubmit: (rating: number, message: string) => void;
|
|
3
3
|
}
|
|
4
|
-
export declare const RatingScreen: ({ onSubmit }: RatingScreenProps) => import("react
|
|
4
|
+
export declare const RatingScreen: ({ onSubmit }: RatingScreenProps) => import("react").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -2,5 +2,5 @@ interface StarRatingProps {
|
|
|
2
2
|
value: number;
|
|
3
3
|
onChange: (rating: number) => void;
|
|
4
4
|
}
|
|
5
|
-
export declare const StarRating: ({ value, onChange }: StarRatingProps) => import("react
|
|
5
|
+
export declare const StarRating: ({ value, onChange }: StarRatingProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ThankYouScreen: () => import("react
|
|
1
|
+
export declare const ThankYouScreen: () => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ConnectionNotification: () => import("react
|
|
1
|
+
export declare const ConnectionNotification: () => import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const EmbeddedParticipantViewUI: () => import("react
|
|
1
|
+
export declare const EmbeddedParticipantViewUI: () => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface DeviceControlsProps {
|
|
2
2
|
isVideoEnabled: boolean;
|
|
3
3
|
}
|
|
4
|
-
export declare const DeviceControls: ({ isVideoEnabled }: DeviceControlsProps) => import("react
|
|
4
|
+
export declare const DeviceControls: ({ isVideoEnabled }: DeviceControlsProps) => import("react").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -2,5 +2,5 @@ interface DisabledDeviceButtonProps {
|
|
|
2
2
|
icon: string;
|
|
3
3
|
label: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const DisabledDeviceButton: ({ icon, label, }: DisabledDeviceButtonProps) => import("react
|
|
5
|
+
export declare const DisabledDeviceButton: ({ icon, label, }: DisabledDeviceButtonProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -6,5 +6,5 @@ interface LobbyProps {
|
|
|
6
6
|
/**
|
|
7
7
|
* Lobby component - Device setup screen before joining a call.
|
|
8
8
|
*/
|
|
9
|
-
export declare const Lobby: ({ onJoin, title, joinLabel }: LobbyProps) => import("react
|
|
9
|
+
export declare const Lobby: ({ onJoin, title, joinLabel }: LobbyProps) => import("react").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ToggleCameraButton: () => import("react
|
|
1
|
+
export declare const ToggleCameraButton: () => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ToggleMicButton: () => import("react
|
|
1
|
+
export declare const ToggleMicButton: () => import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DisabledVideoPreview: () => import("react
|
|
2
|
-
export declare const NoCameraPreview: () => import("react
|
|
1
|
+
export declare const DisabledVideoPreview: () => import("react").JSX.Element;
|
|
2
|
+
export declare const NoCameraPreview: () => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface ViewersCountProps {
|
|
2
2
|
count: number;
|
|
3
3
|
}
|
|
4
|
-
export declare const ViewersCount: ({ count }: ViewersCountProps) => import("react
|
|
4
|
+
export declare const ViewersCount: ({ count }: ViewersCountProps) => import("react").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useRequestPermission: (permission:
|
|
1
|
+
import { RequestPermissionRequestPermissionsEnum } from '@stream-io/video-client';
|
|
2
|
+
export declare const useRequestPermission: (permission: RequestPermissionRequestPermissionsEnum) => {
|
|
3
3
|
requestPermission: () => Promise<boolean>;
|
|
4
4
|
hasPermission: boolean;
|
|
5
5
|
canRequestPermission: boolean;
|
|
@@ -34,4 +34,4 @@ export type LivestreamPlayerProps = {
|
|
|
34
34
|
*/
|
|
35
35
|
onError?: (error: any) => void;
|
|
36
36
|
};
|
|
37
|
-
export declare const LivestreamPlayer: (props: PropsWithChildren<LivestreamPlayerProps>) => import("react
|
|
37
|
+
export declare const LivestreamPlayer: (props: PropsWithChildren<LivestreamPlayerProps>) => import("react").JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.41.0",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"*.css"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@floating-ui/react": "^0.27.
|
|
48
|
-
"@stream-io/video-client": "1.
|
|
49
|
-
"@stream-io/video-filters-web": "0.8.
|
|
50
|
-
"@stream-io/video-react-bindings": "1.
|
|
47
|
+
"@floating-ui/react": "^0.27.20",
|
|
48
|
+
"@stream-io/video-client": "1.58.0",
|
|
49
|
+
"@stream-io/video-filters-web": "0.8.6",
|
|
50
|
+
"@stream-io/video-react-bindings": "1.20.0",
|
|
51
51
|
"chart.js": "^4.5.1",
|
|
52
52
|
"clsx": "^2.1.1",
|
|
53
53
|
"react-chartjs-2": "^5.3.1"
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
"@rollup/plugin-json": "^6.1.0",
|
|
61
61
|
"@rollup/plugin-replace": "^6.0.3",
|
|
62
62
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
63
|
-
"@stream-io/audio-filters-web": "^0.10.
|
|
63
|
+
"@stream-io/audio-filters-web": "^0.10.4",
|
|
64
64
|
"@stream-io/typescript-config": "^0.0.0",
|
|
65
|
-
"@stream-io/video-styling": "^1.15.
|
|
66
|
-
"@types/node": "^25.9.
|
|
67
|
-
"@types/react": "~19.2.
|
|
68
|
-
"@types/react-dom": "~19.2.
|
|
69
|
-
"react": "19.2.
|
|
70
|
-
"react-dom": "19.2.
|
|
65
|
+
"@stream-io/video-styling": "^1.15.1",
|
|
66
|
+
"@types/node": "^25.9.5",
|
|
67
|
+
"@types/react": "~19.2.18",
|
|
68
|
+
"@types/react-dom": "~19.2.4",
|
|
69
|
+
"react": "19.2.8",
|
|
70
|
+
"react-dom": "19.2.8",
|
|
71
71
|
"rimraf": "^6.1.3",
|
|
72
|
-
"rollup": "^4.
|
|
72
|
+
"rollup": "^4.62.4",
|
|
73
73
|
"typescript": "^6.0.3"
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -106,14 +106,12 @@ const useTrackFramesPerSecond = (call: Call | undefined) => {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
let previousSnapshot:
|
|
109
|
-
|
|
110
|
-
| undefined;
|
|
109
|
+
(MediaStreamTrackVideoStats & { capturedAt: number }) | undefined;
|
|
111
110
|
let previousTrackId: string | undefined;
|
|
112
111
|
|
|
113
112
|
const intervalId = setInterval(() => {
|
|
114
113
|
const track = rootMediaStream?.getVideoTracks()[0] as
|
|
115
|
-
|
|
|
116
|
-
| undefined;
|
|
114
|
+
MediaStreamTrackWithStats | undefined;
|
|
117
115
|
|
|
118
116
|
const stats = track?.stats;
|
|
119
117
|
if (!track || !stats) {
|
|
@@ -29,7 +29,7 @@ export type IconButtonWithMenuProps<E extends HTMLElement = HTMLButtonElement> =
|
|
|
29
29
|
export const CompositeButton = forwardRef<
|
|
30
30
|
HTMLDivElement,
|
|
31
31
|
IconButtonWithMenuProps
|
|
32
|
-
>(function
|
|
32
|
+
>(function CompositeButtonRender(
|
|
33
33
|
{
|
|
34
34
|
disabled,
|
|
35
35
|
caption,
|
|
@@ -100,7 +100,7 @@ export const CompositeButton = forwardRef<
|
|
|
100
100
|
const DefaultToggleMenuButton = forwardRef<
|
|
101
101
|
HTMLButtonElement,
|
|
102
102
|
ToggleMenuButtonProps
|
|
103
|
-
>(function
|
|
103
|
+
>(function DefaultToggleMenuButtonRender({ menuShown }, ref) {
|
|
104
104
|
return (
|
|
105
105
|
<IconButton
|
|
106
106
|
className={clsx('str-video__menu-toggle-button', {
|
|
@@ -9,7 +9,7 @@ export type ButtonWithIconProps = {
|
|
|
9
9
|
} & ComponentProps<'button'> &
|
|
10
10
|
IconProps;
|
|
11
11
|
|
|
12
|
-
export const IconButton = forwardRef(function
|
|
12
|
+
export const IconButton = forwardRef(function IconButtonRender(
|
|
13
13
|
props: ButtonWithIconProps,
|
|
14
14
|
ref: ForwardedRef<HTMLButtonElement>,
|
|
15
15
|
) {
|
|
@@ -19,7 +19,7 @@ export const CallStatsButton = () => (
|
|
|
19
19
|
const ToggleMenuButton = forwardRef<
|
|
20
20
|
HTMLDivElement,
|
|
21
21
|
ToggleMenuButtonProps<HTMLDivElement> & CallStatsButtonProps
|
|
22
|
-
>(function
|
|
22
|
+
>(function ToggleMenuButtonRender(props, ref) {
|
|
23
23
|
const { t } = useI18n();
|
|
24
24
|
const { caption, menuShown } = props;
|
|
25
25
|
|
|
@@ -49,7 +49,7 @@ const EndCallMenu = (props: {
|
|
|
49
49
|
const CancelCallToggleMenuButton = forwardRef<
|
|
50
50
|
HTMLButtonElement,
|
|
51
51
|
ToggleMenuButtonProps
|
|
52
|
-
>(function
|
|
52
|
+
>(function CancelCallToggleMenuButtonRender({ menuShown }, ref) {
|
|
53
53
|
const { t } = useI18n();
|
|
54
54
|
return (
|
|
55
55
|
<WithTooltip title={t('Leave call')} tooltipDisabled={menuShown}>
|
|
@@ -66,7 +66,7 @@ export const ReactionsButton = ({
|
|
|
66
66
|
const ToggleReactionsMenuButton = forwardRef<
|
|
67
67
|
HTMLDivElement,
|
|
68
68
|
ToggleMenuButtonProps
|
|
69
|
-
>(function
|
|
69
|
+
>(function ToggleReactionsMenuButtonRender({ menuShown }, ref) {
|
|
70
70
|
const { t } = useI18n();
|
|
71
71
|
return (
|
|
72
72
|
<WithTooltip title={t('Reactions')} tooltipDisabled={menuShown}>
|
|
@@ -62,7 +62,7 @@ const RecordEndConfirmation = (props: PropsWithErrorHandler) => {
|
|
|
62
62
|
const ToggleEndRecordingMenuButton = forwardRef<
|
|
63
63
|
HTMLDivElement,
|
|
64
64
|
ToggleMenuButtonProps
|
|
65
|
-
>(function
|
|
65
|
+
>(function ToggleEndRecordingMenuButtonRender(props, ref) {
|
|
66
66
|
return (
|
|
67
67
|
<CompositeButton
|
|
68
68
|
ref={ref}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
OwnCapability,
|
|
3
|
+
RequestPermissionRequestPermissionsEnum,
|
|
4
|
+
} from '@stream-io/video-client';
|
|
2
5
|
import {
|
|
3
6
|
Restricted,
|
|
4
7
|
useCallStateHooks,
|
|
@@ -29,7 +32,7 @@ export const ScreenShareButton = (props: ScreenShareButtonProps) => {
|
|
|
29
32
|
useCallStateHooks();
|
|
30
33
|
const isSomeoneScreenSharing = useHasOngoingScreenShare();
|
|
31
34
|
const { hasPermission, requestPermission, isAwaitingPermission } =
|
|
32
|
-
useRequestPermission(
|
|
35
|
+
useRequestPermission(RequestPermissionRequestPermissionsEnum.SCREENSHARE);
|
|
33
36
|
|
|
34
37
|
const callSettings = useCallSettings();
|
|
35
38
|
const isScreenSharingAllowed = callSettings?.screensharing.enabled;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
OwnCapability,
|
|
3
|
+
RequestPermissionRequestPermissionsEnum,
|
|
4
|
+
SfuModels,
|
|
5
|
+
} from '@stream-io/video-client';
|
|
2
6
|
import {
|
|
3
7
|
Restricted,
|
|
4
8
|
useCallStateHooks,
|
|
@@ -139,7 +143,7 @@ export const ToggleAudioPublishingButton = (
|
|
|
139
143
|
} = props;
|
|
140
144
|
|
|
141
145
|
const { hasPermission, requestPermission, isAwaitingPermission } =
|
|
142
|
-
useRequestPermission(
|
|
146
|
+
useRequestPermission(RequestPermissionRequestPermissionsEnum.SEND_AUDIO);
|
|
143
147
|
|
|
144
148
|
const { useMicrophoneState, useLocalParticipant } = useCallStateHooks();
|
|
145
149
|
const {
|
|
@@ -5,7 +5,11 @@ import {
|
|
|
5
5
|
UseInputMediaDeviceOptions,
|
|
6
6
|
} from '@stream-io/video-react-bindings';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
OwnCapability,
|
|
10
|
+
RequestPermissionRequestPermissionsEnum,
|
|
11
|
+
SfuModels,
|
|
12
|
+
} from '@stream-io/video-client';
|
|
9
13
|
import { CompositeButton, IconButtonWithMenuProps } from '../Button/';
|
|
10
14
|
import { DeviceSelectorVideo } from '../DeviceSettings';
|
|
11
15
|
import { PermissionNotification } from '../Notification';
|
|
@@ -137,7 +141,7 @@ export const ToggleVideoPublishingButton = (
|
|
|
137
141
|
} = props;
|
|
138
142
|
|
|
139
143
|
const { hasPermission, requestPermission, isAwaitingPermission } =
|
|
140
|
-
useRequestPermission(
|
|
144
|
+
useRequestPermission(RequestPermissionRequestPermissionsEnum.SEND_VIDEO);
|
|
141
145
|
|
|
142
146
|
const { useCameraState, useCallSettings, useLocalParticipant } =
|
|
143
147
|
useCallStateHooks();
|
|
@@ -21,7 +21,7 @@ type CallParticipantListingItemProps = {
|
|
|
21
21
|
DisplayName?: ComponentType<{ participant: StreamVideoParticipant }>;
|
|
22
22
|
};
|
|
23
23
|
export const CallParticipantListingItem = memo(
|
|
24
|
-
function
|
|
24
|
+
function CallParticipantListingItemRender({
|
|
25
25
|
participant,
|
|
26
26
|
DisplayName = DefaultDisplayName,
|
|
27
27
|
}: CallParticipantListingItemProps) {
|
|
@@ -114,7 +114,7 @@ const DefaultDisplayName = ({ participant }: DisplayNameProps) => {
|
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
const ToggleButton = forwardRef<HTMLButtonElement, ToggleMenuButtonProps>(
|
|
117
|
-
function
|
|
117
|
+
function ToggleButtonRender(props, ref) {
|
|
118
118
|
return <IconButton enabled={props.menuShown} icon="ellipsis" ref={ref} />;
|
|
119
119
|
},
|
|
120
120
|
);
|
|
@@ -226,7 +226,7 @@ const BlockedUsersSearchResults = ({
|
|
|
226
226
|
};
|
|
227
227
|
|
|
228
228
|
const ToggleButton = forwardRef<HTMLButtonElement, ToggleMenuButtonProps>(
|
|
229
|
-
function
|
|
229
|
+
function ToggleButtonRender(props, ref) {
|
|
230
230
|
return <IconButton enabled={props.menuShown} icon="filter" ref={ref} />;
|
|
231
231
|
},
|
|
232
232
|
);
|
|
@@ -41,7 +41,7 @@ const Menu = () => {
|
|
|
41
41
|
const ToggleDeviceSettingsMenuButton = forwardRef<
|
|
42
42
|
HTMLButtonElement,
|
|
43
43
|
ToggleMenuButtonProps
|
|
44
|
-
>(function
|
|
44
|
+
>(function ToggleDeviceSettingsMenuButtonRender({ menuShown }, ref) {
|
|
45
45
|
const { t } = useI18n();
|
|
46
46
|
return (
|
|
47
47
|
<IconButton
|
|
@@ -126,7 +126,7 @@ export type PermissionRequestListProps = ComponentProps<'div'> & {
|
|
|
126
126
|
export const PermissionRequestList = forwardRef<
|
|
127
127
|
HTMLDivElement,
|
|
128
128
|
PermissionRequestListProps
|
|
129
|
-
>(function
|
|
129
|
+
>(function PermissionRequestListRender(props, ref) {
|
|
130
130
|
const { permissionRequests, handleUpdatePermission, ...rest } = props;
|
|
131
131
|
|
|
132
132
|
const { t } = useI18n();
|
|
@@ -55,7 +55,7 @@ export type DefaultParticipantViewUIProps = {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
const ToggleButton = forwardRef<HTMLButtonElement, ToggleMenuButtonProps>(
|
|
58
|
-
function
|
|
58
|
+
function ToggleButtonRender(props, ref) {
|
|
59
59
|
return <IconButton enabled={props.menuShown} icon="ellipsis" ref={ref} />;
|
|
60
60
|
},
|
|
61
61
|
);
|
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
hasScreenShareAudio,
|
|
7
7
|
hasVideo,
|
|
8
8
|
OwnCapability,
|
|
9
|
+
UpdateUserPermissionsRequestGrantPermissionsEnum,
|
|
10
|
+
UpdateUserPermissionsRequestRevokePermissionsEnum,
|
|
9
11
|
} from '@stream-io/video-client';
|
|
10
12
|
import { useParticipantViewContext } from './ParticipantViewContext';
|
|
11
13
|
import {
|
|
@@ -41,19 +43,21 @@ export const ParticipantActionsContextMenu = () => {
|
|
|
41
43
|
const muteScreenShareAudio = () =>
|
|
42
44
|
call?.muteUser(userId, 'screenshare_audio');
|
|
43
45
|
|
|
44
|
-
const grantPermission =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
const grantPermission =
|
|
47
|
+
(permission: UpdateUserPermissionsRequestGrantPermissionsEnum) => () => {
|
|
48
|
+
call?.updateUserPermissions({
|
|
49
|
+
user_id: userId,
|
|
50
|
+
grant_permissions: [permission],
|
|
51
|
+
});
|
|
52
|
+
};
|
|
50
53
|
|
|
51
|
-
const revokePermission =
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
const revokePermission =
|
|
55
|
+
(permission: UpdateUserPermissionsRequestRevokePermissionsEnum) => () => {
|
|
56
|
+
call?.updateUserPermissions({
|
|
57
|
+
user_id: userId,
|
|
58
|
+
revoke_permissions: [permission],
|
|
59
|
+
});
|
|
60
|
+
};
|
|
57
61
|
|
|
58
62
|
const toggleParticipantPin = () => {
|
|
59
63
|
if (pin) {
|