@stream-io/video-react-sdk 1.18.6 → 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/CHANGELOG.md +12 -0
- package/dist/css/styles.css +4 -4
- package/dist/css/styles.css.map +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/Button/CompositeButton.d.ts +2 -2
- package/package.json +4 -4
- package/src/components/Button/CompositeButton.tsx +2 -2
- package/src/components/CallControls/ToggleAudioButton.tsx +9 -1
package/dist/index.es.js
CHANGED
|
@@ -1460,7 +1460,7 @@ const ToggleDeviceSettingsMenuButton = forwardRef(function ToggleDeviceSettingsM
|
|
|
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 } = useI18n();
|
|
1465
1465
|
const { useMicrophoneState } = 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: 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: [jsx(Icon, { icon: !optimisticIsMute ? 'mic' : 'mic-off' }), !hasBrowserPermission && (jsx("span", { className: "str-video__no-media-permission", title: t('Check your browser audio permissions'), children: "!" })), isPromptingPermission && (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.
|
|
2940
|
+
const [major, minor, patch] = ("1.18.7").split('.');
|
|
2941
2941
|
setSdkInfo({
|
|
2942
2942
|
type: SfuModels.SdkType.REACT,
|
|
2943
2943
|
major,
|