@100mslive/hms-video-store 0.2.75 → 0.2.76

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.
@@ -18,22 +18,12 @@ export interface HMSPublishAllowed {
18
18
  audio: boolean;
19
19
  screen: boolean;
20
20
  }
21
- export declare const selectPeersWithAudioStatus: import("reselect").OutputSelector<[(store: HMSStore) => Record<string, HMSPeer>, (store: HMSStore) => Record<string, import("../schema").HMSTrack>], HMSPeerWithMuteStatus[], never, ((args_0: Record<string, HMSPeer>, args_1: Record<string, import("../schema").HMSTrack>, ...args_2: unknown[]) => HMSPeerWithMuteStatus[]) & ((...args: any[]) => any) & {
22
- clearCache: () => void;
23
- }>;
21
+ export declare const selectPeersWithAudioStatus: import("reselect").OutputSelector<HMSStore, HMSPeerWithMuteStatus[], (res1: Record<string, HMSPeer>, res2: Record<string, import("../schema").HMSTrack>) => HMSPeerWithMuteStatus[]>;
24
22
  /**
25
23
  * Select the role change request received for your local peer.
26
24
  */
27
- export declare const selectRoleChangeRequest: import("reselect").OutputSelector<[(store: HMSStore) => import("../schema").HMSRoleChangeStoreRequest, (store: HMSStore) => Record<string, HMSPeer>, (store: HMSStore) => Record<string, HMSRole>], HMSRoleChangeRequest | null, never, ((args_0: import("../schema").HMSRoleChangeStoreRequest, args_1: Record<string, HMSPeer>, args_2: Record<string, HMSRole>, ...args_3: unknown[]) => HMSRoleChangeRequest | null) & ((...args: any[]) => any) & {
28
- clearCache: () => void;
29
- }>;
25
+ export declare const selectRoleChangeRequest: import("reselect").OutputSelector<HMSStore, HMSRoleChangeRequest | null, (res1: import("../schema").HMSRoleChangeStoreRequest, res2: Record<string, HMSPeer>, res3: Record<string, HMSRole>) => HMSRoleChangeRequest | null>;
30
26
  /**
31
27
  * Select what streams is the local peer allowed to publish from video, audio and screenshare.
32
28
  */
33
- export declare const selectIsAllowedToPublish: import("reselect").OutputSelector<[import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => import("../schema").HMSRoom, (store: HMSStore) => Record<string, HMSPeer>], HMSPeer, never, ((args_0: import("../schema").HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer) & ((...args: any[]) => any) & {
34
- clearCache: () => void;
35
- }>, (store: HMSStore) => Record<string, HMSRole>], HMSRole | null, never, ((args_0: HMSPeer, args_1: Record<string, HMSRole>, ...args_2: unknown[]) => HMSRole | null) & ((...args: any[]) => any) & {
36
- clearCache: () => void;
37
- }>], HMSPublishAllowed, never, ((args_0: HMSRole | null, ...args_1: unknown[]) => HMSPublishAllowed) & ((...args: any[]) => any) & {
38
- clearCache: () => void;
39
- }>;
29
+ export declare const selectIsAllowedToPublish: import("reselect").OutputSelector<HMSStore, HMSPublishAllowed, (res: HMSRole | null) => HMSPublishAllowed>;
@@ -45,78 +45,40 @@ export declare const selectSpeakers: (store: HMSStore) => Record<string, import(
45
45
  * Select a boolean flag denoting whether you've joined a room.
46
46
  * NOTE: Returns true only after join, returns false during preview.
47
47
  */
48
- export declare const selectIsConnectedToRoom: import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom], boolean | undefined, never, ((args_0: HMSRoom, ...args_1: unknown[]) => boolean | undefined) & ((...args: any[]) => any) & {
49
- clearCache: () => void;
50
- }>;
51
- export declare const selectPeerCount: import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom], number, never, ((args_0: HMSRoom, ...args_1: unknown[]) => number) & ((...args: any[]) => any) & {
52
- clearCache: () => void;
53
- }>;
48
+ export declare const selectIsConnectedToRoom: import("reselect").OutputSelector<HMSStore, boolean | undefined, (res: HMSRoom) => boolean | undefined>;
49
+ export declare const selectPeerCount: import("reselect").OutputSelector<HMSStore, number, (res: HMSRoom) => number>;
54
50
  /**
55
51
  * Select an array of peers(remote peers and your local peer) present in the room.
56
52
  */
57
- export declare const selectPeers: import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer[], never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer[]) & ((...args: any[]) => any) & {
58
- clearCache: () => void;
59
- }>;
53
+ export declare const selectPeers: import("reselect").OutputSelector<HMSStore, HMSPeer[], (res1: HMSRoom, res2: Record<string, HMSPeer>) => HMSPeer[]>;
60
54
  /**
61
55
  * Select the local peer object object assigned to you.
62
56
  */
63
- export declare const selectLocalPeer: import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer, never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer) & ((...args: any[]) => any) & {
64
- clearCache: () => void;
65
- }>;
57
+ export declare const selectLocalPeer: import("reselect").OutputSelector<HMSStore, HMSPeer, (res1: HMSRoom, res2: Record<string, HMSPeer>) => HMSPeer>;
66
58
  /**
67
59
  * Select the peer ID of your local peer.
68
60
  */
69
- export declare const selectLocalPeerID: import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom], string, never, ((args_0: HMSRoom, ...args_1: unknown[]) => string) & ((...args: any[]) => any) & {
70
- clearCache: () => void;
71
- }>;
61
+ export declare const selectLocalPeerID: import("reselect").OutputSelector<HMSStore, string, (res: HMSRoom) => string>;
72
62
  /**
73
63
  * Select the track ID of your local peer's primary audio track
74
64
  */
75
- export declare const selectLocalAudioTrackID: import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer, never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer) & ((...args: any[]) => any) & {
76
- clearCache: () => void;
77
- }>], string | undefined, never, ((args_0: HMSPeer, ...args_1: unknown[]) => string | undefined) & ((...args: any[]) => any) & {
78
- clearCache: () => void;
79
- }>;
65
+ export declare const selectLocalAudioTrackID: import("reselect").OutputSelector<HMSStore, string | undefined, (res: HMSPeer) => string | undefined>;
80
66
  /**
81
67
  * Select the track ID of your local peer's primary video track
82
68
  */
83
- export declare const selectLocalVideoTrackID: import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer, never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer) & ((...args: any[]) => any) & {
84
- clearCache: () => void;
85
- }>], string | undefined, never, ((args_0: HMSPeer, ...args_1: unknown[]) => string | undefined) & ((...args: any[]) => any) & {
86
- clearCache: () => void;
87
- }>;
69
+ export declare const selectLocalVideoTrackID: import("reselect").OutputSelector<HMSStore, string | undefined, (res: HMSPeer) => string | undefined>;
88
70
  /**
89
71
  * Select an array of track IDs of all your local peer's tracks
90
72
  */
91
- export declare const selectLocalTrackIDs: import("reselect").OutputSelector<[import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer, never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer) & ((...args: any[]) => any) & {
92
- clearCache: () => void;
93
- }>], string | undefined, never, ((args_0: HMSPeer, ...args_1: unknown[]) => string | undefined) & ((...args: any[]) => any) & {
94
- clearCache: () => void;
95
- }>, import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer, never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer) & ((...args: any[]) => any) & {
96
- clearCache: () => void;
97
- }>], string | undefined, never, ((args_0: HMSPeer, ...args_1: unknown[]) => string | undefined) & ((...args: any[]) => any) & {
98
- clearCache: () => void;
99
- }>, import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer, never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer) & ((...args: any[]) => any) & {
100
- clearCache: () => void;
101
- }>], string[], never, ((args_0: HMSPeer, ...args_1: unknown[]) => string[]) & ((...args: any[]) => any) & {
102
- clearCache: () => void;
103
- }>], string[], never, ((args_0: string | undefined, args_1: string | undefined, args_2: string[], ...args_3: unknown[]) => string[]) & ((...args: any[]) => any) & {
104
- clearCache: () => void;
105
- }>;
73
+ export declare const selectLocalTrackIDs: import("reselect").OutputSelector<HMSStore, string[], (res1: string | undefined, res2: string | undefined, res3: string[]) => string[]>;
106
74
  /**
107
75
  * Select remote peers(other users you're connected with via the internet) present in the room.
108
76
  */
109
- export declare const selectRemotePeers: import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer[], never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer[]) & ((...args: any[]) => any) & {
110
- clearCache: () => void;
111
- }>], HMSPeer[], never, ((args_0: HMSPeer[], ...args_1: unknown[]) => HMSPeer[]) & ((...args: any[]) => any) & {
112
- clearCache: () => void;
113
- }>;
77
+ export declare const selectRemotePeers: import("reselect").OutputSelector<HMSStore, HMSPeer[], (res: HMSPeer[]) => HMSPeer[]>;
114
78
  /**
115
79
  * Select the peer who's speaking the loudest at the moment
116
80
  */
117
- export declare const selectDominantSpeaker: import("reselect").OutputSelector<[(store: HMSStore) => Record<HMSPeerID, HMSPeer>, (store: HMSStore) => Record<string, import("../schema").HMSSpeaker>], HMSPeer | null, never, ((args_0: Record<string, HMSPeer>, args_1: Record<string, import("../schema").HMSSpeaker>, ...args_2: unknown[]) => HMSPeer | null) & ((...args: any[]) => any) & {
118
- clearCache: () => void;
119
- }>;
81
+ export declare const selectDominantSpeaker: import("reselect").OutputSelector<HMSStore, HMSPeer | null, (res1: Record<string, HMSPeer>, res2: Record<string, import("../schema").HMSSpeaker>) => HMSPeer | null>;
120
82
  /**
121
83
  * Select a boolean denoting whether your local audio is unmuted
122
84
  * and the audio from your microphone is shared to remote peers
@@ -139,86 +101,50 @@ export declare const selectIsLocalVideoDisplayEnabled: (store: HMSStore) => bool
139
101
  /**
140
102
  * Select a boolean denoting whether your screen is shared to remote peers in the room.
141
103
  */
142
- export declare const selectIsLocalScreenShared: import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer, never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer) & ((...args: any[]) => any) & {
143
- clearCache: () => void;
144
- }>, (store: HMSStore) => Record<string, import("../schema").HMSTrack>], boolean, never, ((args_0: HMSPeer, args_1: Record<string, import("../schema").HMSTrack>, ...args_2: unknown[]) => boolean) & ((...args: any[]) => any) & {
145
- clearCache: () => void;
146
- }>;
104
+ export declare const selectIsLocalScreenShared: import("reselect").OutputSelector<HMSStore, boolean, (res1: HMSPeer, res2: Record<string, import("../schema").HMSTrack>) => boolean>;
147
105
  /**
148
106
  * Select the first peer who is currently sharing their screen.
149
107
  */
150
- export declare const selectPeerScreenSharing: import("reselect").OutputSelector<[(store: HMSStore) => Record<HMSPeerID, HMSPeer>, (store: HMSStore) => Record<string, import("../schema").HMSTrack>], HMSPeer | undefined, never, ((args_0: Record<string, HMSPeer>, args_1: Record<string, import("../schema").HMSTrack>, ...args_2: unknown[]) => HMSPeer | undefined) & ((...args: any[]) => any) & {
151
- clearCache: () => void;
152
- }>;
108
+ export declare const selectPeerScreenSharing: import("reselect").OutputSelector<HMSStore, HMSPeer | undefined, (res1: Record<string, HMSPeer>, res2: Record<string, import("../schema").HMSTrack>) => HMSPeer | undefined>;
153
109
  /**
154
110
  * Select a boolean denoting whether someone is sharing screen in the room.
155
111
  */
156
- export declare const selectIsSomeoneScreenSharing: import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => Record<HMSPeerID, HMSPeer>, (store: HMSStore) => Record<string, import("../schema").HMSTrack>], HMSPeer | undefined, never, ((args_0: Record<string, HMSPeer>, args_1: Record<string, import("../schema").HMSTrack>, ...args_2: unknown[]) => HMSPeer | undefined) & ((...args: any[]) => any) & {
157
- clearCache: () => void;
158
- }>], boolean, never, ((args_0: HMSPeer | undefined, ...args_1: unknown[]) => boolean) & ((...args: any[]) => any) & {
159
- clearCache: () => void;
160
- }>;
112
+ export declare const selectIsSomeoneScreenSharing: import("reselect").OutputSelector<HMSStore, boolean, (res: HMSPeer | undefined) => boolean>;
161
113
  /**
162
114
  * Select the first peer who is currently sharing their audio only screen
163
115
  */
164
- export declare const selectPeerSharingAudio: import("reselect").OutputSelector<[(store: HMSStore) => Record<HMSPeerID, HMSPeer>, (store: HMSStore) => Record<string, import("../schema").HMSTrack>], HMSPeer | undefined, never, ((args_0: Record<string, HMSPeer>, args_1: Record<string, import("../schema").HMSTrack>, ...args_2: unknown[]) => HMSPeer | undefined) & ((...args: any[]) => any) & {
165
- clearCache: () => void;
166
- }>;
116
+ export declare const selectPeerSharingAudio: import("reselect").OutputSelector<HMSStore, HMSPeer | undefined, (res1: Record<string, HMSPeer>, res2: Record<string, import("../schema").HMSTrack>) => HMSPeer | undefined>;
167
117
  /**
168
118
  * Select an array of peers who are currently sharing their screen.
169
119
  */
170
- export declare const selectPeersScreenSharing: import("reselect").OutputSelector<[(store: HMSStore) => Record<HMSPeerID, HMSPeer>, (store: HMSStore) => Record<string, import("../schema").HMSTrack>], HMSPeer[], never, ((args_0: Record<string, HMSPeer>, args_1: Record<string, import("../schema").HMSTrack>, ...args_2: unknown[]) => HMSPeer[]) & ((...args: any[]) => any) & {
171
- clearCache: () => void;
172
- }>;
173
- export declare const selectPeerSharingVideoPlaylist: import("reselect").OutputSelector<[(store: HMSStore) => Record<HMSPeerID, HMSPeer>, (store: HMSStore) => Record<string, import("../schema").HMSTrack>], HMSPeer | undefined, never, ((args_0: Record<string, HMSPeer>, args_1: Record<string, import("../schema").HMSTrack>, ...args_2: unknown[]) => HMSPeer | undefined) & ((...args: any[]) => any) & {
174
- clearCache: () => void;
175
- }>;
176
- export declare const selectPeerSharingAudioPlaylist: import("reselect").OutputSelector<[(store: HMSStore) => Record<HMSPeerID, HMSPeer>, (store: HMSStore) => Record<string, import("../schema").HMSTrack>], HMSPeer | undefined, never, ((args_0: Record<string, HMSPeer>, args_1: Record<string, import("../schema").HMSTrack>, ...args_2: unknown[]) => HMSPeer | undefined) & ((...args: any[]) => any) & {
177
- clearCache: () => void;
178
- }>;
120
+ export declare const selectPeersScreenSharing: import("reselect").OutputSelector<HMSStore, HMSPeer[], (res1: Record<string, HMSPeer>, res2: Record<string, import("../schema").HMSTrack>) => HMSPeer[]>;
121
+ export declare const selectPeerSharingVideoPlaylist: import("reselect").OutputSelector<HMSStore, HMSPeer | undefined, (res1: Record<string, HMSPeer>, res2: Record<string, import("../schema").HMSTrack>) => HMSPeer | undefined>;
122
+ export declare const selectPeerSharingAudioPlaylist: import("reselect").OutputSelector<HMSStore, HMSPeer | undefined, (res1: Record<string, HMSPeer>, res2: Record<string, import("../schema").HMSTrack>) => HMSPeer | undefined>;
179
123
  /**
180
124
  * Select an array of tracks that have been degraded(receiving lower video quality/no video) due to bad network locally.
181
125
  */
182
- export declare const selectDegradedTracks: import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => Record<string, import("../schema").HMSTrack>], import("../schema").HMSTrack[], never, ((args_0: Record<string, import("../schema").HMSTrack>, ...args_1: unknown[]) => import("../schema").HMSTrack[]) & ((...args: any[]) => any) & {
183
- clearCache: () => void;
184
- }>], import("../schema").HMSTrack[], never, ((args_0: import("../schema").HMSTrack[], ...args_1: unknown[]) => import("../schema").HMSTrack[]) & ((...args: any[]) => any) & {
185
- clearCache: () => void;
186
- }>;
126
+ export declare const selectDegradedTracks: import("reselect").OutputSelector<HMSStore, import("../schema").HMSTrack[], (res: import("../schema").HMSTrack[]) => import("../schema").HMSTrack[]>;
187
127
  /**
188
128
  * Select the number of messages(sent and received).
189
129
  */
190
- export declare const selectHMSMessagesCount: import("reselect").OutputSelector<[(store: HMSStore) => string[]], number, never, ((args_0: string[], ...args_1: unknown[]) => number) & ((...args: any[]) => any) & {
191
- clearCache: () => void;
192
- }>;
130
+ export declare const selectHMSMessagesCount: import("reselect").OutputSelector<HMSStore, number, (res: string[]) => number>;
193
131
  /**
194
132
  * Select the number of unread messages.
195
133
  */
196
- export declare const selectUnreadHMSMessagesCount: import("reselect").OutputSelector<[(store: HMSStore) => Record<string, HMSMessage>], number, never, ((args_0: Record<string, HMSMessage>, ...args_1: unknown[]) => number) & ((...args: any[]) => any) & {
197
- clearCache: () => void;
198
- }>;
134
+ export declare const selectUnreadHMSMessagesCount: import("reselect").OutputSelector<HMSStore, number, (res: Record<string, HMSMessage>) => number>;
199
135
  /**
200
136
  * Select an array of messages in the room(sent and received).
201
137
  */
202
- export declare const selectHMSMessages: import("reselect").OutputSelector<[(store: HMSStore) => string[], (store: HMSStore) => Record<string, HMSMessage>], HMSMessage[], never, ((args_0: string[], args_1: Record<string, HMSMessage>, ...args_2: unknown[]) => HMSMessage[]) & ((...args: any[]) => any) & {
203
- clearCache: () => void;
204
- }>;
138
+ export declare const selectHMSMessages: import("reselect").OutputSelector<HMSStore, HMSMessage[], (res1: string[], res2: Record<string, HMSMessage>) => HMSMessage[]>;
205
139
  /**
206
140
  * Select the current state of the room.
207
141
  */
208
- export declare const selectRoomState: import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom], HMSRoomState, never, ((args_0: HMSRoom, ...args_1: unknown[]) => HMSRoomState) & ((...args: any[]) => any) & {
209
- clearCache: () => void;
210
- }>;
142
+ export declare const selectRoomState: import("reselect").OutputSelector<HMSStore, HMSRoomState, (res: HMSRoom) => HMSRoomState>;
211
143
  /**
212
144
  * Select a boolean denoting whether the room is in Preview state.
213
145
  */
214
- export declare const selectIsInPreview: import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom], HMSRoomState, never, ((args_0: HMSRoom, ...args_1: unknown[]) => HMSRoomState) & ((...args: any[]) => any) & {
215
- clearCache: () => void;
216
- }>], boolean, never, ((args_0: HMSRoomState, ...args_1: unknown[]) => boolean) & ((...args: any[]) => any) & {
217
- clearCache: () => void;
218
- }>;
219
- export declare const selectRoomStarted: import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom], boolean, never, ((args_0: HMSRoom, ...args_1: unknown[]) => boolean) & ((...args: any[]) => any) & {
220
- clearCache: () => void;
221
- }>;
146
+ export declare const selectIsInPreview: import("reselect").OutputSelector<HMSStore, boolean, (res: HMSRoomState) => boolean>;
147
+ export declare const selectRoomStarted: import("reselect").OutputSelector<HMSStore, boolean, (res: HMSRoom) => boolean>;
222
148
  /**
223
149
  * Select available roles in the room as a map between the role name and {@link HMSRole} object.
224
150
  */
@@ -226,52 +152,30 @@ export declare const selectRolesMap: (store: HMSStore) => Record<string, HMSRole
226
152
  /**
227
153
  * Select an array of names of available roles in the room.
228
154
  */
229
- export declare const selectAvailableRoleNames: import("reselect").OutputSelector<[(store: HMSStore) => Record<string, HMSRole>], string[], never, ((args_0: Record<string, HMSRole>, ...args_1: unknown[]) => string[]) & ((...args: any[]) => any) & {
230
- clearCache: () => void;
231
- }>;
155
+ export declare const selectAvailableRoleNames: import("reselect").OutputSelector<HMSStore, string[], (res: Record<string, HMSRole>) => string[]>;
232
156
  /**
233
157
  * Select the {@link HMSRole} object of your local peer.
234
158
  */
235
- export declare const selectLocalPeerRole: import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer, never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer) & ((...args: any[]) => any) & {
236
- clearCache: () => void;
237
- }>, (store: HMSStore) => Record<string, HMSRole>], HMSRole | null, never, ((args_0: HMSPeer, args_1: Record<string, HMSRole>, ...args_2: unknown[]) => HMSRole | null) & ((...args: any[]) => any) & {
238
- clearCache: () => void;
239
- }>;
159
+ export declare const selectLocalPeerRole: import("reselect").OutputSelector<HMSStore, HMSRole | null, (res1: HMSPeer, res2: Record<string, HMSRole>) => HMSRole | null>;
240
160
  /**
241
161
  * Select a boolean denoting whether if your local peer is allowed to subscribe to any other role.
242
162
  */
243
- export declare const selectIsAllowedToSubscribe: import("reselect").OutputSelector<[import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer, never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer) & ((...args: any[]) => any) & {
244
- clearCache: () => void;
245
- }>, (store: HMSStore) => Record<string, HMSRole>], HMSRole | null, never, ((args_0: HMSPeer, args_1: Record<string, HMSRole>, ...args_2: unknown[]) => HMSRole | null) & ((...args: any[]) => any) & {
246
- clearCache: () => void;
247
- }>], boolean, never, ((args_0: HMSRole | null, ...args_1: unknown[]) => boolean) & ((...args: any[]) => any) & {
248
- clearCache: () => void;
249
- }>;
163
+ export declare const selectIsAllowedToSubscribe: import("reselect").OutputSelector<HMSStore, boolean, (res: HMSRole | null) => boolean>;
250
164
  /**
251
165
  * Select the permissions which determine what actions the local peer can do.
252
166
  */
253
- export declare const selectPermissions: import("reselect").OutputSelector<[import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom, (store: HMSStore) => Record<HMSPeerID, HMSPeer>], HMSPeer, never, ((args_0: HMSRoom, args_1: Record<string, HMSPeer>, ...args_2: unknown[]) => HMSPeer) & ((...args: any[]) => any) & {
254
- clearCache: () => void;
255
- }>, (store: HMSStore) => Record<string, HMSRole>], HMSRole | null, never, ((args_0: HMSPeer, args_1: Record<string, HMSRole>, ...args_2: unknown[]) => HMSRole | null) & ((...args: any[]) => any) & {
256
- clearCache: () => void;
257
- }>], {
167
+ export declare const selectPermissions: import("reselect").OutputSelector<HMSStore, {
258
168
  endRoom: boolean;
259
169
  removeOthers: boolean;
260
170
  unmute: boolean;
261
171
  mute: boolean;
262
172
  changeRole: boolean;
263
- } | undefined, never, ((args_0: HMSRole | null, ...args_1: unknown[]) => {
173
+ } | undefined, (res: HMSRole | null) => {
264
174
  endRoom: boolean;
265
175
  removeOthers: boolean;
266
176
  unmute: boolean;
267
177
  mute: boolean;
268
178
  changeRole: boolean;
269
- } | undefined) & ((...args: any[]) => any) & {
270
- clearCache: () => void;
271
- }>;
272
- export declare const selectRecordingState: import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom], import("@100mslive/hms-video/dist/interfaces/room").HMSRecording, never, ((args_0: HMSRoom, ...args_1: unknown[]) => import("@100mslive/hms-video/dist/interfaces/room").HMSRecording) & ((...args: any[]) => any) & {
273
- clearCache: () => void;
274
- }>;
275
- export declare const selectRTMPState: import("reselect").OutputSelector<[(store: HMSStore) => HMSRoom], import("@100mslive/hms-video/dist/interfaces/room").HMSRTMP, never, ((args_0: HMSRoom, ...args_1: unknown[]) => import("@100mslive/hms-video/dist/interfaces/room").HMSRTMP) & ((...args: any[]) => any) & {
276
- clearCache: () => void;
277
- }>;
179
+ } | undefined>;
180
+ export declare const selectRecordingState: import("reselect").OutputSelector<HMSStore, import("@100mslive/hms-video/dist/interfaces/room").HMSRecording, (res: HMSRoom) => import("@100mslive/hms-video/dist/interfaces/room").HMSRecording>;
181
+ export declare const selectRTMPState: import("reselect").OutputSelector<HMSStore, import("@100mslive/hms-video/dist/interfaces/room").HMSRTMP, (res: HMSRoom) => import("@100mslive/hms-video/dist/interfaces/room").HMSRTMP>;
@@ -56,27 +56,17 @@ export declare const selectScreenSharesByPeerId: (id?: string | undefined) => St
56
56
  /**
57
57
  * Select the screen share video track of a peer given a peer ID.
58
58
  */
59
- export declare const selectScreenShareByPeerID: (id?: string | undefined) => import("reselect").OutputSelector<[StoreSelector<{
59
+ export declare const selectScreenShareByPeerID: (id?: string | undefined) => import("reselect").OutputSelector<HMSStore, HMSTrack | undefined, (res: {
60
60
  video: HMSTrack | undefined;
61
61
  audio: HMSTrack | undefined;
62
- }>], HMSTrack | undefined, never, ((args_0: {
63
- video: HMSTrack | undefined;
64
- audio: HMSTrack | undefined;
65
- }, ...args_1: unknown[]) => HMSTrack | undefined) & ((...args: any[]) => any) & {
66
- clearCache: () => void;
67
- }>;
62
+ }) => HMSTrack | undefined>;
68
63
  /**
69
64
  * Select the screen share audio track of a peer given a peer ID.
70
65
  */
71
- export declare const selectScreenShareAudioByPeerID: (id?: string | undefined) => import("reselect").OutputSelector<[StoreSelector<{
72
- video: HMSTrack | undefined;
73
- audio: HMSTrack | undefined;
74
- }>], HMSTrack | undefined, never, ((args_0: {
66
+ export declare const selectScreenShareAudioByPeerID: (id?: string | undefined) => import("reselect").OutputSelector<HMSStore, HMSTrack | undefined, (res: {
75
67
  video: HMSTrack | undefined;
76
68
  audio: HMSTrack | undefined;
77
- }, ...args_1: unknown[]) => HMSTrack | undefined) & ((...args: any[]) => any) & {
78
- clearCache: () => void;
79
- }>;
69
+ }) => HMSTrack | undefined>;
80
70
  /**
81
71
  * Select a boolean denoting whether a peer has unmuted audio and sharing it to other peers.
82
72
  */
@@ -117,18 +107,8 @@ export declare const selectScreenshareAudioVolumeByPeerID: (id?: string | undefi
117
107
  * Select the current simulcast layer of a track given a track ID.
118
108
  */
119
109
  export declare const selectSimulcastLayerByTrack: (id?: string | undefined) => StoreSelector<import("@100mslive/hms-video").HMSSimulcastLayer | undefined>;
120
- export declare const selectBroadcastMessages: import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => string[], (store: HMSStore) => Record<string, import("../schema").HMSMessage>], import("../schema").HMSMessage[], never, ((args_0: string[], args_1: Record<string, import("../schema").HMSMessage>, ...args_2: unknown[]) => import("../schema").HMSMessage[]) & ((...args: any[]) => any) & {
121
- clearCache: () => void;
122
- }>], import("../schema").HMSMessage[], never, ((args_0: import("../schema").HMSMessage[], ...args_1: unknown[]) => import("../schema").HMSMessage[]) & ((...args: any[]) => any) & {
123
- clearCache: () => void;
124
- }>;
125
- export declare const selectBroadcastMessagesUnreadCount: import("reselect").OutputSelector<[import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: HMSStore) => string[], (store: HMSStore) => Record<string, import("../schema").HMSMessage>], import("../schema").HMSMessage[], never, ((args_0: string[], args_1: Record<string, import("../schema").HMSMessage>, ...args_2: unknown[]) => import("../schema").HMSMessage[]) & ((...args: any[]) => any) & {
126
- clearCache: () => void;
127
- }>], import("../schema").HMSMessage[], never, ((args_0: import("../schema").HMSMessage[], ...args_1: unknown[]) => import("../schema").HMSMessage[]) & ((...args: any[]) => any) & {
128
- clearCache: () => void;
129
- }>], number, never, ((args_0: import("../schema").HMSMessage[], ...args_1: unknown[]) => number) & ((...args: any[]) => any) & {
130
- clearCache: () => void;
131
- }>;
110
+ export declare const selectBroadcastMessages: import("reselect").OutputSelector<HMSStore, import("../schema").HMSMessage[], (res: import("../schema").HMSMessage[]) => import("../schema").HMSMessage[]>;
111
+ export declare const selectBroadcastMessagesUnreadCount: import("reselect").OutputSelector<HMSStore, number, (res: import("../schema").HMSMessage[]) => number>;
132
112
  export declare const selectMessagesByPeerID: (id?: string | undefined) => StoreSelector<import("../schema").HMSMessage[] | undefined>;
133
113
  export declare const selectMessagesByRole: (id?: string | undefined) => StoreSelector<import("../schema").HMSMessage[] | undefined>;
134
114
  export declare const selectMessagesUnreadCountByRole: (id?: string | undefined) => StoreSelector<number>;
@@ -1,22 +1,3 @@
1
- import { HMSTrack } from '../schema';
2
- export declare const selectRoleByRoleName: (roleName: string) => import("reselect").OutputSelector<[(store: import("../schema").HMSStore) => Record<string, import("@100mslive/hms-video/dist/interfaces/role").HMSRole>], import("@100mslive/hms-video/dist/interfaces/role").HMSRole, never, ((args_0: Record<string, import("@100mslive/hms-video/dist/interfaces/role").HMSRole>, ...args_1: unknown[]) => import("@100mslive/hms-video/dist/interfaces/role").HMSRole) & ((...args: any[]) => any) & {
3
- clearCache: () => void;
4
- }>;
5
- export declare const selectIsLocalVideoPluginPresent: (pluginName: string) => import("reselect").OutputSelector<[import("reselect").OutputSelector<[import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: import("../schema").HMSStore) => import("../schema").HMSRoom, (store: import("../schema").HMSStore) => Record<string, import("../schema").HMSPeer>], import("../schema").HMSPeer, never, ((args_0: import("../schema").HMSRoom, args_1: Record<string, import("../schema").HMSPeer>, ...args_2: unknown[]) => import("../schema").HMSPeer) & ((...args: any[]) => any) & {
6
- clearCache: () => void;
7
- }>], string | undefined, never, ((args_0: import("../schema").HMSPeer, ...args_1: unknown[]) => string | undefined) & ((...args: any[]) => any) & {
8
- clearCache: () => void;
9
- }>, (store: import("../schema").HMSStore) => Record<string, HMSTrack>], string[], never, ((args_0: string | undefined, args_1: Record<string, HMSTrack>, ...args_2: unknown[]) => string[]) & ((...args: any[]) => any) & {
10
- clearCache: () => void;
11
- }>], boolean, never, ((args_0: string[], ...args_1: unknown[]) => boolean) & ((...args: any[]) => any) & {
12
- clearCache: () => void;
13
- }>;
14
- export declare const selectIsLocalAudioPluginPresent: (pluginName: string) => import("reselect").OutputSelector<[import("reselect").OutputSelector<[import("reselect").OutputSelector<[import("reselect").OutputSelector<[(store: import("../schema").HMSStore) => import("../schema").HMSRoom, (store: import("../schema").HMSStore) => Record<string, import("../schema").HMSPeer>], import("../schema").HMSPeer, never, ((args_0: import("../schema").HMSRoom, args_1: Record<string, import("../schema").HMSPeer>, ...args_2: unknown[]) => import("../schema").HMSPeer) & ((...args: any[]) => any) & {
15
- clearCache: () => void;
16
- }>], string | undefined, never, ((args_0: import("../schema").HMSPeer, ...args_1: unknown[]) => string | undefined) & ((...args: any[]) => any) & {
17
- clearCache: () => void;
18
- }>, (store: import("../schema").HMSStore) => Record<string, HMSTrack>], string[], never, ((args_0: string | undefined, args_1: Record<string, HMSTrack>, ...args_2: unknown[]) => string[]) & ((...args: any[]) => any) & {
19
- clearCache: () => void;
20
- }>], boolean, never, ((args_0: string[], ...args_1: unknown[]) => boolean) & ((...args: any[]) => any) & {
21
- clearCache: () => void;
22
- }>;
1
+ export declare const selectRoleByRoleName: (roleName: string) => import("reselect").OutputSelector<import("../schema").HMSStore, import("@100mslive/hms-video/dist/interfaces/role").HMSRole, (res: Record<string, import("@100mslive/hms-video/dist/interfaces/role").HMSRole>) => import("@100mslive/hms-video/dist/interfaces/role").HMSRole>;
2
+ export declare const selectIsLocalVideoPluginPresent: (pluginName: string) => import("reselect").OutputSelector<import("../schema").HMSStore, boolean, (res: string[]) => boolean>;
3
+ export declare const selectIsLocalAudioPluginPresent: (pluginName: string) => import("reselect").OutputSelector<import("../schema").HMSStore, boolean, (res: string[]) => boolean>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.75",
2
+ "version": "0.2.76",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -53,7 +53,7 @@
53
53
  "dependencies": {
54
54
  "eventemitter2": "^6.4.5",
55
55
  "immer": "^9.0.6",
56
- "reselect": "^4.0.0",
56
+ "reselect": "4.0.0",
57
57
  "zustand": "3.5.7"
58
58
  },
59
59
  "peerDependencies": {
@@ -76,7 +76,7 @@
76
76
  "tslib": "^2.2.0",
77
77
  "typedoc": "^0.21.5",
78
78
  "typedoc-plugin-markdown": "^3.10.4",
79
- "typescript": "^4.3.2"
79
+ "typescript": "^4.4.4"
80
80
  },
81
81
  "description": "This is an addon to the core sdk provided by 100ms. It abstracts away the intricacies of data management and provides a flux based reactive data store where data flows in only one direction.",
82
82
  "repository": {