@vkontakte/calls-sdk 2.6.2-dev.974887b.0 → 2.6.2-dev.aa1b4e2.0
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/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +2 -0
- package/package.json +1 -1
- package/static/Utils.d.ts +2 -0
- package/types/Conversation.d.ts +12 -0
- package/utils/Conversation.d.ts +2 -0
|
@@ -154,6 +154,8 @@ export default class Conversation extends EventEmitter {
|
|
|
154
154
|
private _participantListChunkToExternalChunk;
|
|
155
155
|
private _registerConnectionParticipants;
|
|
156
156
|
private _registerParticipants;
|
|
157
|
+
/** Установим состояние локальных мьютов */
|
|
158
|
+
private _registerParticipantLocalMuteState;
|
|
157
159
|
private _getClientType;
|
|
158
160
|
private _getStatusByTransportState;
|
|
159
161
|
private _registerParticipantInCache;
|
package/package.json
CHANGED
package/static/Utils.d.ts
CHANGED
|
@@ -62,5 +62,7 @@ declare namespace Utils {
|
|
|
62
62
|
function participantMarkerCompare(marker1: ExternalParticipantListMarker | undefined, marker2: ExternalParticipantListMarker | undefined): number;
|
|
63
63
|
/** убирает все ключи со значением `V` на 1 уровне */
|
|
64
64
|
function objectFilterOutValues<T extends Record<string, V>, V = unknown>(obj: T, value?: V | V[]): Partial<T>;
|
|
65
|
+
function objectReduce<R, T extends Object>(obj: T, callback: (acc: R, value: T[keyof T], key: keyof T) => R, initialValue: R): R;
|
|
66
|
+
const setImmediate: (fn: VoidFunction) => VoidFunction;
|
|
65
67
|
}
|
|
66
68
|
export default Utils;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import MediaOption from '../enums/MediaOption';
|
|
2
|
+
import MediaSettings from './MediaSettings';
|
|
3
|
+
import { Participant } from './Participant';
|
|
4
|
+
export interface IProcessMuteStateParams {
|
|
5
|
+
mediaOptions?: MediaOption[];
|
|
6
|
+
muteAll?: boolean;
|
|
7
|
+
unmute?: boolean;
|
|
8
|
+
serverSettings?: MediaSettings | null;
|
|
9
|
+
admin?: Participant | null;
|
|
10
|
+
stateUpdated?: boolean;
|
|
11
|
+
requestedMedia?: MediaOption[];
|
|
12
|
+
}
|