@stream-io/video-react-sdk 1.6.4 → 1.6.6
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 +13 -0
- package/dist/index.cjs.js +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
- package/src/components/CallControls/CallControls.tsx +24 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-sdk",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"packageManager": "yarn@3.2.4",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@floating-ui/react": "^0.26.24",
|
|
35
|
-
"@stream-io/video-client": "1.8.
|
|
35
|
+
"@stream-io/video-client": "1.8.3",
|
|
36
36
|
"@stream-io/video-filters-web": "0.1.4",
|
|
37
|
-
"@stream-io/video-react-bindings": "1.1.
|
|
37
|
+
"@stream-io/video-react-bindings": "1.1.3",
|
|
38
38
|
"chart.js": "^4.4.4",
|
|
39
39
|
"clsx": "^2.0.0",
|
|
40
40
|
"react-chartjs-2": "^5.2.0"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { OwnCapability } from '@stream-io/video-client';
|
|
2
|
+
import { Restricted } from '@stream-io/video-react-bindings';
|
|
1
3
|
import { SpeakingWhileMutedNotification } from '../Notification';
|
|
2
4
|
import { RecordCallButton } from './RecordCallButton';
|
|
3
5
|
import { ReactionsButton } from './ReactionsButton';
|
|
@@ -12,13 +14,28 @@ export type CallControlsProps = {
|
|
|
12
14
|
|
|
13
15
|
export const CallControls = ({ onLeave }: CallControlsProps) => (
|
|
14
16
|
<div className="str-video__call-controls">
|
|
15
|
-
<
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
17
|
+
<Restricted requiredGrants={[OwnCapability.SEND_AUDIO]}>
|
|
18
|
+
<SpeakingWhileMutedNotification>
|
|
19
|
+
<ToggleAudioPublishingButton />
|
|
20
|
+
</SpeakingWhileMutedNotification>
|
|
21
|
+
</Restricted>
|
|
22
|
+
<Restricted requiredGrants={[OwnCapability.SEND_VIDEO]}>
|
|
23
|
+
<ToggleVideoPublishingButton />
|
|
24
|
+
</Restricted>
|
|
25
|
+
<Restricted requiredGrants={[OwnCapability.CREATE_REACTION]}>
|
|
26
|
+
<ReactionsButton />
|
|
27
|
+
</Restricted>
|
|
28
|
+
<Restricted requiredGrants={[OwnCapability.SCREENSHARE]}>
|
|
29
|
+
<ScreenShareButton />
|
|
30
|
+
</Restricted>
|
|
31
|
+
<Restricted
|
|
32
|
+
requiredGrants={[
|
|
33
|
+
OwnCapability.START_RECORD_CALL,
|
|
34
|
+
OwnCapability.STOP_RECORD_CALL,
|
|
35
|
+
]}
|
|
36
|
+
>
|
|
37
|
+
<RecordCallButton />
|
|
38
|
+
</Restricted>
|
|
22
39
|
<CancelCallButton onLeave={onLeave} />
|
|
23
40
|
</div>
|
|
24
41
|
);
|