@stream-io/video-react-sdk 1.32.2 → 1.32.4
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 +18 -0
- package/dist/index.cjs.js +37 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +37 -11
- package/dist/index.es.js.map +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/CancelCallButton.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/CallControls/AcceptCallButton.tsx +8 -3
- package/src/components/CallControls/CallControls.tsx +1 -1
- package/src/components/CallControls/CancelCallButton.tsx +22 -7
- package/src/components/RingingCall/RingingCallControls.tsx +3 -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
|
+
## [1.32.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.32.3...@stream-io/video-react-sdk-1.32.4) (2026-02-20)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
- `@stream-io/video-client` updated to version `1.43.0`
|
|
10
|
+
- `@stream-io/video-react-bindings` updated to version `1.13.8`
|
|
11
|
+
|
|
12
|
+
## [1.32.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.32.2...@stream-io/video-react-sdk-1.32.3) (2026-02-16)
|
|
13
|
+
|
|
14
|
+
### Dependency Updates
|
|
15
|
+
|
|
16
|
+
- `@stream-io/video-client` updated to version `1.42.3`
|
|
17
|
+
- `@stream-io/video-react-bindings` updated to version `1.13.7`
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- guard from parallel accept/reject invocations ([#2127](https://github.com/GetStream/stream-video-js/issues/2127)) ([621218f](https://github.com/GetStream/stream-video-js/commit/621218f4ab6b4623370fd66f1b02b8cb7cb1baad))
|
|
22
|
+
|
|
5
23
|
## [1.32.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.32.1...@stream-io/video-react-sdk-1.32.2) (2026-02-13)
|
|
6
24
|
|
|
7
25
|
### Dependency Updates
|
package/dist/index.cjs.js
CHANGED
|
@@ -1083,8 +1083,14 @@ const AcceptCallButton = ({ disabled, onAccept, onClick, }) => {
|
|
|
1083
1083
|
onClick(e);
|
|
1084
1084
|
}
|
|
1085
1085
|
else if (call) {
|
|
1086
|
-
|
|
1087
|
-
|
|
1086
|
+
try {
|
|
1087
|
+
await call.join();
|
|
1088
|
+
onAccept?.();
|
|
1089
|
+
}
|
|
1090
|
+
catch (err) {
|
|
1091
|
+
console.error(`Failed to accept call`, err);
|
|
1092
|
+
onAccept?.(err);
|
|
1093
|
+
}
|
|
1088
1094
|
}
|
|
1089
1095
|
}, [onClick, onAccept, call]);
|
|
1090
1096
|
return (jsxRuntime.jsx(IconButton, { disabled: disabled, icon: "call-accept", variant: "success", "data-testid": "accept-call-button", onClick: handleClick }));
|
|
@@ -1526,7 +1532,7 @@ const SpeakerTest = (props) => {
|
|
|
1526
1532
|
const audioElementRef = react.useRef(null);
|
|
1527
1533
|
const [isPlaying, setIsPlaying] = react.useState(false);
|
|
1528
1534
|
const { t } = videoReactBindings.useI18n();
|
|
1529
|
-
const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.32.
|
|
1535
|
+
const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.32.4"}/assets/piano.mp3`, } = props;
|
|
1530
1536
|
// Update audio output device when selection changes
|
|
1531
1537
|
react.useEffect(() => {
|
|
1532
1538
|
const audio = audioElementRef.current;
|
|
@@ -1713,8 +1719,14 @@ const CancelCallConfirmButton = ({ onClick, onLeave, }) => {
|
|
|
1713
1719
|
onClick(e);
|
|
1714
1720
|
}
|
|
1715
1721
|
else if (call) {
|
|
1716
|
-
|
|
1717
|
-
|
|
1722
|
+
try {
|
|
1723
|
+
await call.leave();
|
|
1724
|
+
onLeave?.();
|
|
1725
|
+
}
|
|
1726
|
+
catch (err) {
|
|
1727
|
+
console.error(`Failed to leave call`, err);
|
|
1728
|
+
onLeave?.(err);
|
|
1729
|
+
}
|
|
1718
1730
|
}
|
|
1719
1731
|
}, [onClick, onLeave, call]);
|
|
1720
1732
|
const handleEndCall = react.useCallback(async (e) => {
|
|
@@ -1722,8 +1734,14 @@ const CancelCallConfirmButton = ({ onClick, onLeave, }) => {
|
|
|
1722
1734
|
onClick(e);
|
|
1723
1735
|
}
|
|
1724
1736
|
else if (call) {
|
|
1725
|
-
|
|
1726
|
-
|
|
1737
|
+
try {
|
|
1738
|
+
await call.endCall();
|
|
1739
|
+
onLeave?.();
|
|
1740
|
+
}
|
|
1741
|
+
catch (err) {
|
|
1742
|
+
console.error(`Failed to end call`, err);
|
|
1743
|
+
onLeave?.(err);
|
|
1744
|
+
}
|
|
1727
1745
|
}
|
|
1728
1746
|
}, [onClick, onLeave, call]);
|
|
1729
1747
|
return (jsxRuntime.jsx(MenuToggle, { placement: "top-start", ToggleButton: CancelCallToggleMenuButton, children: jsxRuntime.jsx(EndCallMenu, { onEnd: handleEndCall, onLeave: handleLeave }) }));
|
|
@@ -1736,8 +1754,14 @@ const CancelCallButton = ({ disabled, caption, onClick, onLeave, }) => {
|
|
|
1736
1754
|
onClick(e);
|
|
1737
1755
|
}
|
|
1738
1756
|
else if (call) {
|
|
1739
|
-
|
|
1740
|
-
|
|
1757
|
+
try {
|
|
1758
|
+
await call.leave();
|
|
1759
|
+
onLeave?.();
|
|
1760
|
+
}
|
|
1761
|
+
catch (err) {
|
|
1762
|
+
console.error(`Failed to leave call`, err);
|
|
1763
|
+
onLeave?.(err);
|
|
1764
|
+
}
|
|
1741
1765
|
}
|
|
1742
1766
|
}, [onClick, onLeave, call]);
|
|
1743
1767
|
return (jsxRuntime.jsx(IconButton, { disabled: disabled, icon: "call-end", variant: "danger", title: caption ?? t('Leave call'), "data-testid": "cancel-call-button", onClick: handleClick }));
|
|
@@ -2240,7 +2264,9 @@ const RingingCallControls = () => {
|
|
|
2240
2264
|
const buttonsDisabled = callCallingState !== videoClient.CallingState.RINGING;
|
|
2241
2265
|
return (jsxRuntime.jsx("div", { className: "str-video__pending-call-controls", children: call.isCreatedByMe ? (jsxRuntime.jsx(CancelCallButton, { disabled: buttonsDisabled })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(AcceptCallButton, { disabled: buttonsDisabled }), jsxRuntime.jsx(CancelCallButton, { onClick: () => {
|
|
2242
2266
|
const reason = call.isCreatedByMe ? 'cancel' : 'decline';
|
|
2243
|
-
call.leave({ reject: true, reason })
|
|
2267
|
+
call.leave({ reject: true, reason }).catch((err) => {
|
|
2268
|
+
console.error(`Failed to reject`, err);
|
|
2269
|
+
});
|
|
2244
2270
|
}, disabled: buttonsDisabled })] })) }));
|
|
2245
2271
|
};
|
|
2246
2272
|
|
|
@@ -3246,7 +3272,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
|
|
|
3246
3272
|
return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
|
|
3247
3273
|
};
|
|
3248
3274
|
|
|
3249
|
-
const [major, minor, patch] = ("1.32.
|
|
3275
|
+
const [major, minor, patch] = ("1.32.4").split('.');
|
|
3250
3276
|
videoClient.setSdkInfo({
|
|
3251
3277
|
type: videoClient.SfuModels.SdkType.REACT,
|
|
3252
3278
|
major,
|