@stream-io/video-react-sdk 1.40.0 → 1.40.2
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 +24 -3
- 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 +24 -23
- package/dist/embedded.cjs.js.map +1 -1
- package/dist/embedded.es.js +24 -23
- package/dist/embedded.es.js.map +1 -1
- package/dist/index.cjs.js +23 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +23 -22
- 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/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/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/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/dist/index.cjs.js
CHANGED
|
@@ -7,7 +7,7 @@ var react = require('react');
|
|
|
7
7
|
var react$1 = require('@floating-ui/react');
|
|
8
8
|
var clsx = require('clsx');
|
|
9
9
|
|
|
10
|
-
const Audio = react.memo(function
|
|
10
|
+
const Audio = react.memo(function AudioRender({ participant, trackType = 'audioTrack', ...rest }) {
|
|
11
11
|
const call = videoReactBindings.useCall();
|
|
12
12
|
const [audioElement, setAudioElement] = react.useState(null);
|
|
13
13
|
const { userId, sessionId } = participant;
|
|
@@ -677,7 +677,7 @@ const normalizeString = (value) => value
|
|
|
677
677
|
* @description Extends video element with `stream` property
|
|
678
678
|
* (`srcObject`) to reactively handle stream changes
|
|
679
679
|
*/
|
|
680
|
-
const BaseVideo = react.forwardRef(function
|
|
680
|
+
const BaseVideo = react.forwardRef(function BaseVideoRender({ stream, ...rest }, ref) {
|
|
681
681
|
const [videoElement, setVideoElement] = react.useState(null);
|
|
682
682
|
react.useEffect(() => {
|
|
683
683
|
if (!videoElement || !stream)
|
|
@@ -723,12 +723,12 @@ const InitialsFallback = (props) => {
|
|
|
723
723
|
return (jsxRuntime.jsx("div", { className: "str-video__video-placeholder__initials-fallback", children: initials }));
|
|
724
724
|
};
|
|
725
725
|
|
|
726
|
-
const DefaultVideoPlaceholder = react.forwardRef(function
|
|
726
|
+
const DefaultVideoPlaceholder = react.forwardRef(function DefaultVideoPlaceholderRender(props, ref) {
|
|
727
727
|
const { t } = videoReactBindings.useI18n();
|
|
728
728
|
return (jsxRuntime.jsx(BaseVideoPlaceholder, { ref: ref, ...props, children: t('Video is disabled') }));
|
|
729
729
|
});
|
|
730
730
|
|
|
731
|
-
const DefaultPictureInPicturePlaceholder = react.forwardRef(function
|
|
731
|
+
const DefaultPictureInPicturePlaceholder = react.forwardRef(function DefaultPictureInPicturePlaceholderRender(props, ref) {
|
|
732
732
|
const { t } = videoReactBindings.useI18n();
|
|
733
733
|
return (jsxRuntime.jsx(BaseVideoPlaceholder, { ref: ref, ...props, children: t('Video is playing in a popup') }));
|
|
734
734
|
});
|
|
@@ -855,7 +855,7 @@ const BackgroundFiltersProvider = (props) => {
|
|
|
855
855
|
return (jsxRuntime.jsx(react.Suspense, { fallback: SuspenseFallback, children: jsxRuntime.jsx(BackgroundFiltersProviderImpl, { ...filterProps, ContextProvider: BackgroundFiltersContext }) }));
|
|
856
856
|
};
|
|
857
857
|
|
|
858
|
-
const IconButton = react.forwardRef(function
|
|
858
|
+
const IconButton = react.forwardRef(function IconButtonRender(props, ref) {
|
|
859
859
|
const { icon, enabled, variant, onClick, className, ...rest } = props;
|
|
860
860
|
return (jsxRuntime.jsx("button", { className: clsx('str-video__call-controls__button', className, {
|
|
861
861
|
[`str-video__call-controls__button--variant-${variant}`]: variant,
|
|
@@ -866,7 +866,7 @@ const IconButton = react.forwardRef(function IconButton(props, ref) {
|
|
|
866
866
|
}, ref: ref, ...rest, children: jsxRuntime.jsx(Icon, { icon: icon }) }));
|
|
867
867
|
});
|
|
868
868
|
|
|
869
|
-
const CompositeButton = react.forwardRef(function
|
|
869
|
+
const CompositeButton = react.forwardRef(function CompositeButtonRender({ disabled, caption, children, className, active, Menu, menuPlacement, menuOffset, title, ToggleMenuButton = DefaultToggleMenuButton, variant, onClick, onMenuToggle, ...restButtonProps }, ref) {
|
|
870
870
|
return (jsxRuntime.jsxs("div", { className: clsx('str-video__composite-button', className, {
|
|
871
871
|
'str-video__composite-button--caption': caption,
|
|
872
872
|
'str-video__composite-button--menu': Menu,
|
|
@@ -880,7 +880,7 @@ const CompositeButton = react.forwardRef(function CompositeButton({ disabled, ca
|
|
|
880
880
|
onClick?.(e);
|
|
881
881
|
}, disabled: disabled, ...restButtonProps, children: children }), Menu && (jsxRuntime.jsx(MenuToggle, { offset: menuOffset, placement: menuPlacement, ToggleButton: ToggleMenuButton, onToggle: onMenuToggle, children: isComponentType(Menu) ? jsxRuntime.jsx(Menu, {}) : Menu }))] }), caption && (jsxRuntime.jsx("div", { className: "str-video__composite-button__caption", children: caption }))] }));
|
|
882
882
|
});
|
|
883
|
-
const DefaultToggleMenuButton = react.forwardRef(function
|
|
883
|
+
const DefaultToggleMenuButton = react.forwardRef(function DefaultToggleMenuButtonRender({ menuShown }, ref) {
|
|
884
884
|
return (jsxRuntime.jsx(IconButton, { className: clsx('str-video__menu-toggle-button', {
|
|
885
885
|
'str-video__menu-toggle-button--active': menuShown,
|
|
886
886
|
}), icon: menuShown ? 'caret-down' : 'caret-up', ref: ref }));
|
|
@@ -1075,7 +1075,7 @@ const RecordEndConfirmation = (props) => {
|
|
|
1075
1075
|
const handleClick = createCallControlHandler(props, toggleCallRecording);
|
|
1076
1076
|
return (jsxRuntime.jsxs("div", { className: "str-video__end-recording__confirmation", children: [jsxRuntime.jsxs("div", { className: "str-video__end-recording__header", children: [jsxRuntime.jsx(Icon, { icon: "recording-on" }), jsxRuntime.jsx("h2", { className: "str-video__end-recording__heading", children: t('End recording') })] }), jsxRuntime.jsx("p", { className: "str-video__end-recording__description", children: t('Are you sure you want end the recording?') }), jsxRuntime.jsxs("div", { className: "str-video__end-recording__actions", children: [jsxRuntime.jsx(CompositeButton, { variant: "secondary", onClick: close, children: t('Cancel') }), jsxRuntime.jsx(CompositeButton, { variant: "primary", onClick: isAwaitingResponse ? undefined : handleClick, children: isAwaitingResponse ? jsxRuntime.jsx(LoadingIndicator, {}) : t('End recording') })] })] }));
|
|
1077
1077
|
};
|
|
1078
|
-
const ToggleEndRecordingMenuButton = react.forwardRef(function
|
|
1078
|
+
const ToggleEndRecordingMenuButton = react.forwardRef(function ToggleEndRecordingMenuButtonRender(props, ref) {
|
|
1079
1079
|
return (jsxRuntime.jsx(CompositeButton, { ref: ref, active: true, variant: "secondary", "data-testid": "recording-stop-button", children: jsxRuntime.jsx(Icon, { icon: "recording-off" }) }));
|
|
1080
1080
|
});
|
|
1081
1081
|
const RecordCallConfirmationButton = (props) => {
|
|
@@ -1172,7 +1172,7 @@ const defaultReactions = [
|
|
|
1172
1172
|
const ReactionsButton = ({ reactions = defaultReactions, }) => {
|
|
1173
1173
|
return (jsxRuntime.jsx(videoReactBindings.Restricted, { requiredGrants: [videoClient.OwnCapability.CREATE_REACTION], children: jsxRuntime.jsx(MenuToggle, { placement: "top", ToggleButton: ToggleReactionsMenuButton, visualType: exports.MenuVisualType.MENU, children: jsxRuntime.jsx(DefaultReactionsMenu, { reactions: reactions }) }) }));
|
|
1174
1174
|
};
|
|
1175
|
-
const ToggleReactionsMenuButton = react.forwardRef(function
|
|
1175
|
+
const ToggleReactionsMenuButton = react.forwardRef(function ToggleReactionsMenuButtonRender({ menuShown }, ref) {
|
|
1176
1176
|
const { t } = videoReactBindings.useI18n();
|
|
1177
1177
|
return (jsxRuntime.jsx(WithTooltip, { title: t('Reactions'), tooltipDisabled: menuShown, children: jsxRuntime.jsx(CompositeButton, { ref: ref, active: menuShown, variant: "primary", children: jsxRuntime.jsx(Icon, { icon: "reactions" }) }) }));
|
|
1178
1178
|
});
|
|
@@ -1406,7 +1406,7 @@ const SpeakerTest = (props) => {
|
|
|
1406
1406
|
const audioElementRef = react.useRef(null);
|
|
1407
1407
|
const [isPlaying, setIsPlaying] = react.useState(false);
|
|
1408
1408
|
const { t } = videoReactBindings.useI18n();
|
|
1409
|
-
const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.40.
|
|
1409
|
+
const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.40.2"}/assets/piano.mp3`, } = props;
|
|
1410
1410
|
// Update audio output device when selection changes
|
|
1411
1411
|
react.useEffect(() => {
|
|
1412
1412
|
const audio = audioElementRef.current;
|
|
@@ -1512,7 +1512,7 @@ const Menu = () => {
|
|
|
1512
1512
|
const { t } = videoReactBindings.useI18n();
|
|
1513
1513
|
return (jsxRuntime.jsxs("div", { className: "str-video__device-settings", children: [jsxRuntime.jsx(DeviceSelectorVideo, { title: t('Select a Camera') }), jsxRuntime.jsx(DeviceSelectorAudioInput, { title: t('Select a Mic') }), jsxRuntime.jsx(DeviceSelectorAudioOutput, { title: t('Select Speakers') })] }));
|
|
1514
1514
|
};
|
|
1515
|
-
const ToggleDeviceSettingsMenuButton = react.forwardRef(function
|
|
1515
|
+
const ToggleDeviceSettingsMenuButton = react.forwardRef(function ToggleDeviceSettingsMenuButtonRender({ menuShown }, ref) {
|
|
1516
1516
|
const { t } = videoReactBindings.useI18n();
|
|
1517
1517
|
return (jsxRuntime.jsx(IconButton, { className: clsx('str-video__device-settings__button', {
|
|
1518
1518
|
'str-video__device-settings__button--active': menuShown,
|
|
@@ -1637,7 +1637,7 @@ const EndCallMenu = (props) => {
|
|
|
1637
1637
|
const { t } = videoReactBindings.useI18n();
|
|
1638
1638
|
return (jsxRuntime.jsxs("div", { className: "str-video__end-call__confirmation", children: [jsxRuntime.jsxs("button", { className: "str-video__button str-video__end-call__leave", type: "button", "data-testid": "leave-call-button", onClick: onLeave, children: [jsxRuntime.jsx(Icon, { className: "str-video__button__icon str-video__end-call__leave-icon", icon: "logout" }), t('Leave call')] }), jsxRuntime.jsx(videoReactBindings.Restricted, { requiredGrants: [videoClient.OwnCapability.END_CALL], children: jsxRuntime.jsxs("button", { className: "str-video__button str-video__end-call__end", type: "button", "data-testid": "end-call-for-all-button", onClick: onEnd, children: [jsxRuntime.jsx(Icon, { className: "str-video__button__icon str-video__end-call__end-icon", icon: "call-end" }), t('End call for all')] }) })] }));
|
|
1639
1639
|
};
|
|
1640
|
-
const CancelCallToggleMenuButton = react.forwardRef(function
|
|
1640
|
+
const CancelCallToggleMenuButton = react.forwardRef(function CancelCallToggleMenuButtonRender({ menuShown }, ref) {
|
|
1641
1641
|
const { t } = videoReactBindings.useI18n();
|
|
1642
1642
|
return (jsxRuntime.jsx(WithTooltip, { title: t('Leave call'), tooltipDisabled: menuShown, children: jsxRuntime.jsx(IconButton, { icon: menuShown ? 'close' : 'call-end', variant: menuShown ? 'active' : 'danger', "data-testid": "leave-call-button", ref: ref }) }));
|
|
1643
1643
|
});
|
|
@@ -1872,7 +1872,7 @@ const calculateSubscribeAudioBitrate = (previousCallStatsReport, callStatsReport
|
|
|
1872
1872
|
};
|
|
1873
1873
|
|
|
1874
1874
|
const CallStatsButton = () => (jsxRuntime.jsx(MenuToggle, { placement: "top-end", ToggleButton: ToggleMenuButton, children: jsxRuntime.jsx(CallStats, {}) }));
|
|
1875
|
-
const ToggleMenuButton = react.forwardRef(function
|
|
1875
|
+
const ToggleMenuButton = react.forwardRef(function ToggleMenuButtonRender(props, ref) {
|
|
1876
1876
|
const { t } = videoReactBindings.useI18n();
|
|
1877
1877
|
const { caption, menuShown } = props;
|
|
1878
1878
|
return (jsxRuntime.jsx(CompositeButton, { ref: ref, active: menuShown, caption: caption, title: caption || t('Statistics'), "data-testid": "stats-button", children: jsxRuntime.jsx(Icon, { icon: "stats" }) }));
|
|
@@ -1910,7 +1910,7 @@ const CallParticipantListHeader = ({ onClose, }) => {
|
|
|
1910
1910
|
return (jsxRuntime.jsxs("div", { className: "str-video__participant-list-header", children: [jsxRuntime.jsxs("div", { className: "str-video__participant-list-header__title", children: [t('Participants'), ' ', jsxRuntime.jsxs("span", { className: "str-video__participant-list-header__title-count", children: ["[", participants.length, "]"] }), anonymousParticipantCount > 0 && (jsxRuntime.jsx("span", { className: "str-video__participant-list-header__title-anonymous", children: t('Anonymous', { count: anonymousParticipantCount }) }))] }), jsxRuntime.jsx(IconButton, { onClick: onClose, className: "str-video__participant-list-header__close-button", icon: "close" })] }));
|
|
1911
1911
|
};
|
|
1912
1912
|
|
|
1913
|
-
const CallParticipantListingItem = react.memo(function
|
|
1913
|
+
const CallParticipantListingItem = react.memo(function CallParticipantListingItemRender({ participant, DisplayName = DefaultDisplayName, }) {
|
|
1914
1914
|
const isAudioOn = videoClient.hasAudio(participant);
|
|
1915
1915
|
const isVideoOn = videoClient.hasVideo(participant);
|
|
1916
1916
|
const isPinnedOn = videoClient.isPinned(participant);
|
|
@@ -1936,7 +1936,7 @@ const DefaultDisplayName = ({ participant }) => {
|
|
|
1936
1936
|
}
|
|
1937
1937
|
return (jsxRuntime.jsx(WithTooltip, { className: "str-video__participant-listing-item__display-name", title: displayName, children: displayName }));
|
|
1938
1938
|
};
|
|
1939
|
-
const ToggleButton$2 = react.forwardRef(function
|
|
1939
|
+
const ToggleButton$2 = react.forwardRef(function ToggleButtonRender(props, ref) {
|
|
1940
1940
|
return jsxRuntime.jsx(IconButton, { enabled: props.menuShown, icon: "ellipsis", ref: ref });
|
|
1941
1941
|
});
|
|
1942
1942
|
|
|
@@ -2067,7 +2067,7 @@ const BlockedUsersSearchResults = ({ blockedUsersSearchFn: blockedUsersSearchFnF
|
|
|
2067
2067
|
});
|
|
2068
2068
|
return (jsxRuntime.jsx(SearchResults, { EmptySearchResultComponent: EmptyParticipantSearchList, LoadingIndicator: LoadingIndicator, searchQueryInProgress: searchQueryInProgress, searchResults: searchQuery ? searchResults : blockedUsers, SearchResultList: BlockedUserListing }));
|
|
2069
2069
|
};
|
|
2070
|
-
const ToggleButton$1 = react.forwardRef(function
|
|
2070
|
+
const ToggleButton$1 = react.forwardRef(function ToggleButtonRender(props, ref) {
|
|
2071
2071
|
return jsxRuntime.jsx(IconButton, { enabled: props.menuShown, icon: "filter", ref: ref });
|
|
2072
2072
|
});
|
|
2073
2073
|
|
|
@@ -2315,7 +2315,7 @@ const PermissionRequests = () => {
|
|
|
2315
2315
|
overflowY: 'auto',
|
|
2316
2316
|
}, permissionRequests: permissionRequests, handleUpdatePermission: handleUpdatePermission }))] }));
|
|
2317
2317
|
};
|
|
2318
|
-
const PermissionRequestList = react.forwardRef(function
|
|
2318
|
+
const PermissionRequestList = react.forwardRef(function PermissionRequestListRender(props, ref) {
|
|
2319
2319
|
const { permissionRequests, handleUpdatePermission, ...rest } = props;
|
|
2320
2320
|
const { t } = videoReactBindings.useI18n();
|
|
2321
2321
|
return (jsxRuntime.jsx("div", { className: "str-video__permission-requests-list", ref: ref, ...rest, children: permissionRequests.map((request, reqIndex) => {
|
|
@@ -2379,7 +2379,7 @@ const VideoPreview = ({ className, mirror = true, DisabledVideoPreview = Default
|
|
|
2379
2379
|
return (jsxRuntime.jsx("div", { className: clsx('str-video__video-preview-container', className), children: contents }));
|
|
2380
2380
|
};
|
|
2381
2381
|
|
|
2382
|
-
const ToggleButton = react.forwardRef(function
|
|
2382
|
+
const ToggleButton = react.forwardRef(function ToggleButtonRender(props, ref) {
|
|
2383
2383
|
return jsxRuntime.jsx(IconButton, { enabled: props.menuShown, icon: "ellipsis", ref: ref });
|
|
2384
2384
|
});
|
|
2385
2385
|
const DefaultScreenShareOverlay = () => {
|
|
@@ -2439,14 +2439,14 @@ const SpeechIndicator = () => {
|
|
|
2439
2439
|
return (jsxRuntime.jsxs("span", { className: clsx('str-video__speech-indicator', isSpeaking && 'str-video__speech-indicator--speaking', isDominantSpeaker && 'str-video__speech-indicator--dominant'), children: [jsxRuntime.jsx("span", { className: "str-video__speech-indicator__bar" }), jsxRuntime.jsx("span", { className: "str-video__speech-indicator__bar" }), jsxRuntime.jsx("span", { className: "str-video__speech-indicator__bar" })] }));
|
|
2440
2440
|
};
|
|
2441
2441
|
|
|
2442
|
-
const ParticipantView = react.memo(react.forwardRef(function
|
|
2442
|
+
const ParticipantView = react.memo(react.forwardRef(function ParticipantViewRender({ participant, trackType = 'videoTrack', mirror, muteAudio, refs: { setVideoElement, setVideoPlaceholderElement } = {}, className, VideoPlaceholder, PictureInPicturePlaceholder, ParticipantViewUI = DefaultParticipantViewUI, }, ref) {
|
|
2443
2443
|
const { isLocalParticipant, isSpeaking, isDominantSpeaker, sessionId } = participant;
|
|
2444
2444
|
const hasAudioTrack = videoClient.hasAudio(participant);
|
|
2445
2445
|
const hasVideoTrack = videoClient.hasVideo(participant);
|
|
2446
2446
|
const hasScreenShareAudioTrack = videoClient.hasScreenShareAudio(participant);
|
|
2447
2447
|
const [trackedElement, setTrackedElement] = react.useState(null);
|
|
2448
2448
|
const [contextVideoElement, setContextVideoElement] = react.useState(null);
|
|
2449
|
-
const [contextVideoPlaceholderElement, setContextVideoPlaceholderElement] = react.useState(null);
|
|
2449
|
+
const [contextVideoPlaceholderElement, setContextVideoPlaceholderElement,] = react.useState(null);
|
|
2450
2450
|
useTrackElementVisibility({
|
|
2451
2451
|
sessionId,
|
|
2452
2452
|
trackedElement,
|
|
@@ -2480,7 +2480,8 @@ const ParticipantView = react.memo(react.forwardRef(function ParticipantView({ p
|
|
|
2480
2480
|
return (jsxRuntime.jsx("div", { "data-testid": "participant-view", ref: (element) => {
|
|
2481
2481
|
applyElementToRef(ref, element);
|
|
2482
2482
|
setTrackedElement(element);
|
|
2483
|
-
}, className: clsx('str-video__participant-view', isDominantSpeaker &&
|
|
2483
|
+
}, className: clsx('str-video__participant-view', isDominantSpeaker &&
|
|
2484
|
+
'str-video__participant-view--dominant-speaker', isSpeaking && 'str-video__participant-view--speaking', !hasVideoTrack && 'str-video__participant-view--no-video', !hasAudioTrack && 'str-video__participant-view--no-audio', className), children: jsxRuntime.jsxs(ParticipantViewContext.Provider, { value: participantViewContextValue, children: [!isLocalParticipant && !muteAudio && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [hasAudioTrack && (jsxRuntime.jsx(Audio, { participant: participant, trackType: "audioTrack" })), hasScreenShareAudioTrack && (jsxRuntime.jsx(Audio, { participant: participant, trackType: "screenShareAudioTrack" }))] })), jsxRuntime.jsx(Video$1, { VideoPlaceholder: VideoPlaceholder, PictureInPicturePlaceholder: PictureInPicturePlaceholder, participant: participant, trackType: trackType, refs: videoRefs, enabled: isLocalParticipant ||
|
|
2484
2485
|
trackType !== 'videoTrack' ||
|
|
2485
2486
|
isParticipantVideoEnabled(participant.sessionId), mirror: mirror, autoPlay: true }), isComponentType(ParticipantViewUI) ? (jsxRuntime.jsx(ParticipantViewUI, {})) : (ParticipantViewUI)] }) }));
|
|
2486
2487
|
}));
|
|
@@ -3278,7 +3279,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
|
|
|
3278
3279
|
return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
|
|
3279
3280
|
};
|
|
3280
3281
|
|
|
3281
|
-
const [major, minor, patch] = ("1.40.
|
|
3282
|
+
const [major, minor, patch] = ("1.40.2").split('.');
|
|
3282
3283
|
videoClient.setSdkInfo({
|
|
3283
3284
|
type: videoClient.SfuModels.SdkType.REACT,
|
|
3284
3285
|
major,
|