@stream-io/video-react-sdk 1.24.0 → 1.24.1
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 +11 -0
- package/dist/index.cjs.js +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -3
- package/dist/index.es.js.map +1 -1
- package/dist/src/core/components/CallLayout/hooks.d.ts +2 -1
- package/package.json +3 -3
- package/src/core/components/CallLayout/hooks.ts +7 -4
|
@@ -4,9 +4,10 @@ export type FilterableParticipant = Pick<StreamVideoParticipant, 'userId' | 'isS
|
|
|
4
4
|
isPinned: boolean;
|
|
5
5
|
hasVideo: boolean;
|
|
6
6
|
hasAudio: boolean;
|
|
7
|
+
hasScreenShare: boolean;
|
|
7
8
|
};
|
|
8
9
|
export type ParticipantFilter = Filter<FilterableParticipant>;
|
|
9
|
-
export type ParticipantPredicate = (
|
|
10
|
+
export type ParticipantPredicate = (participant: StreamVideoParticipant) => boolean;
|
|
10
11
|
export declare const useFilteredParticipants: ({ excludeLocalParticipant, filterParticipants, }: {
|
|
11
12
|
excludeLocalParticipant?: boolean;
|
|
12
13
|
filterParticipants?: ParticipantFilter | ParticipantPredicate;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-sdk",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.1",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@floating-ui/react": "^0.27.6",
|
|
33
|
-
"@stream-io/video-client": "1.34.
|
|
33
|
+
"@stream-io/video-client": "1.34.1",
|
|
34
34
|
"@stream-io/video-filters-web": "0.3.0",
|
|
35
|
-
"@stream-io/video-react-bindings": "1.10.
|
|
35
|
+
"@stream-io/video-react-bindings": "1.10.1",
|
|
36
36
|
"chart.js": "^4.4.4",
|
|
37
37
|
"clsx": "^2.0.0",
|
|
38
38
|
"react-chartjs-2": "^5.3.0"
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
Comparator,
|
|
7
7
|
defaultSortPreset,
|
|
8
8
|
hasAudio,
|
|
9
|
+
hasScreenShare,
|
|
9
10
|
hasVideo,
|
|
10
11
|
isPinned,
|
|
11
12
|
paginatedLayoutSortPreset,
|
|
@@ -23,11 +24,12 @@ export type FilterableParticipant = Pick<
|
|
|
23
24
|
isPinned: boolean;
|
|
24
25
|
hasVideo: boolean;
|
|
25
26
|
hasAudio: boolean;
|
|
27
|
+
hasScreenShare: boolean;
|
|
26
28
|
};
|
|
27
29
|
|
|
28
30
|
export type ParticipantFilter = Filter<FilterableParticipant>;
|
|
29
31
|
export type ParticipantPredicate = (
|
|
30
|
-
|
|
32
|
+
participant: StreamVideoParticipant,
|
|
31
33
|
) => boolean;
|
|
32
34
|
|
|
33
35
|
export const useFilteredParticipants = ({
|
|
@@ -74,6 +76,7 @@ export const applyParticipantsFilter = (
|
|
|
74
76
|
isPinned: isPinned(participant),
|
|
75
77
|
hasVideo: hasVideo(participant),
|
|
76
78
|
hasAudio: hasAudio(participant),
|
|
79
|
+
hasScreenShare: hasScreenShare(participant),
|
|
77
80
|
},
|
|
78
81
|
filter,
|
|
79
82
|
);
|
|
@@ -111,10 +114,10 @@ export const useSpeakerLayoutSortPreset = (
|
|
|
111
114
|
|
|
112
115
|
export const useRawRemoteParticipants = () => {
|
|
113
116
|
const { useRawParticipants } = useCallStateHooks();
|
|
114
|
-
const
|
|
117
|
+
const rawParticipants = useRawParticipants();
|
|
115
118
|
return useMemo(
|
|
116
|
-
() =>
|
|
117
|
-
[
|
|
119
|
+
() => rawParticipants.filter((p) => !p.isLocalParticipant),
|
|
120
|
+
[rawParticipants],
|
|
118
121
|
);
|
|
119
122
|
};
|
|
120
123
|
|