@stream-io/video-react-sdk 1.18.5 → 1.18.7

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/dist/index.cjs.js CHANGED
@@ -1460,7 +1460,7 @@ const ToggleDeviceSettingsMenuButton = react.forwardRef(function ToggleDeviceSet
1460
1460
  });
1461
1461
 
1462
1462
  const ToggleAudioPreviewButton = (props) => {
1463
- const { caption, onMenuToggle, ...restCompositeButtonProps } = props;
1463
+ const { caption, Menu = DeviceSelectorAudioInput, menuPlacement = 'top', onMenuToggle, ...restCompositeButtonProps } = props;
1464
1464
  const { t } = videoReactBindings.useI18n();
1465
1465
  const { useMicrophoneState } = videoReactBindings.useCallStateHooks();
1466
1466
  const { microphone, optimisticIsMute, hasBrowserPermission, isPromptingPermission, } = useMicrophoneState();
@@ -1470,7 +1470,7 @@ const ToggleAudioPreviewButton = (props) => {
1470
1470
  ? t('Check your browser audio permissions')
1471
1471
  : (caption ?? t('Mic')), tooltipDisabled: tooltipDisabled, children: jsxRuntime.jsxs(CompositeButton, { active: optimisticIsMute, caption: caption, className: clsx(!hasBrowserPermission && 'str-video__device-unavailable'), variant: "secondary", disabled: !hasBrowserPermission, "data-testid": optimisticIsMute
1472
1472
  ? 'preview-audio-unmute-button'
1473
- : 'preview-audio-mute-button', onClick: handleClick, ...restCompositeButtonProps, onMenuToggle: (shown) => {
1473
+ : 'preview-audio-mute-button', onClick: handleClick, Menu: Menu, menuPlacement: menuPlacement, ...restCompositeButtonProps, onMenuToggle: (shown) => {
1474
1474
  setTooltipDisabled(shown);
1475
1475
  onMenuToggle?.(shown);
1476
1476
  }, children: [jsxRuntime.jsx(Icon, { icon: !optimisticIsMute ? 'mic' : 'mic-off' }), !hasBrowserPermission && (jsxRuntime.jsx("span", { className: "str-video__no-media-permission", title: t('Check your browser audio permissions'), children: "!" })), isPromptingPermission && (jsxRuntime.jsx("span", { className: "str-video__pending-permission", title: t('Waiting for permission'), children: "?" }))] }) }));
@@ -2937,7 +2937,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
2937
2937
  return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
2938
2938
  };
2939
2939
 
2940
- const [major, minor, patch] = ("1.18.5").split('.');
2940
+ const [major, minor, patch] = ("1.18.7").split('.');
2941
2941
  videoClient.setSdkInfo({
2942
2942
  type: videoClient.SfuModels.SdkType.REACT,
2943
2943
  major,