@stream-io/video-client 1.55.1 → 1.55.2
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 +6 -0
- package/dist/index.browser.es.js +15 -3
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +15 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +15 -3
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +4 -0
- package/dist/src/store/CallState.d.ts +4 -0
- package/package.json +2 -2
- package/src/Call.ts +7 -0
- package/src/store/CallState.ts +7 -0
package/dist/index.cjs.js
CHANGED
|
@@ -4946,7 +4946,7 @@ const toIceCandidate = (iceTrickle) => {
|
|
|
4946
4946
|
}
|
|
4947
4947
|
};
|
|
4948
4948
|
|
|
4949
|
-
const version = "1.55.
|
|
4949
|
+
const version = "1.55.2";
|
|
4950
4950
|
const [major, minor, patch] = version.split('.');
|
|
4951
4951
|
let sdkInfo = {
|
|
4952
4952
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -6301,6 +6301,12 @@ class CallState {
|
|
|
6301
6301
|
// trigger re-sorting of participants
|
|
6302
6302
|
this.setCurrentValue(this.participantsSubject, (ps) => ps);
|
|
6303
6303
|
};
|
|
6304
|
+
/**
|
|
6305
|
+
* Returns the comparator currently used to sort the participants.
|
|
6306
|
+
*/
|
|
6307
|
+
getSortParticipantsBy = () => {
|
|
6308
|
+
return this.sortParticipantsBy;
|
|
6309
|
+
};
|
|
6304
6310
|
/**
|
|
6305
6311
|
* Gets the current value of an observable, or undefined if the observable has
|
|
6306
6312
|
* not emitted a value yet.
|
|
@@ -16369,6 +16375,12 @@ class Call {
|
|
|
16369
16375
|
setSortParticipantsBy = (criteria) => {
|
|
16370
16376
|
return this.state.setSortParticipantsBy(criteria);
|
|
16371
16377
|
};
|
|
16378
|
+
/**
|
|
16379
|
+
* Returns the comparator currently used to sort the participants.
|
|
16380
|
+
*/
|
|
16381
|
+
getSortParticipantsBy = () => {
|
|
16382
|
+
return this.state.getSortParticipantsBy();
|
|
16383
|
+
};
|
|
16372
16384
|
/**
|
|
16373
16385
|
* Sends a reaction to the other call participants.
|
|
16374
16386
|
*
|
|
@@ -18436,11 +18448,11 @@ class StreamClient {
|
|
|
18436
18448
|
return await this.wsConnection.connect(this.defaultWSTimeout);
|
|
18437
18449
|
};
|
|
18438
18450
|
getSdkVersion = () => this.options.clientAppIdentifier?.sdkVersion ||
|
|
18439
|
-
"1.55.
|
|
18451
|
+
"1.55.2";
|
|
18440
18452
|
getUserAgent = () => {
|
|
18441
18453
|
if (!this.cachedUserAgent) {
|
|
18442
18454
|
const { clientAppIdentifier = {} } = this.options;
|
|
18443
|
-
const { sdkName = 'js', sdkVersion = "1.55.
|
|
18455
|
+
const { sdkName = 'js', sdkVersion = "1.55.2", ...extras } = clientAppIdentifier;
|
|
18444
18456
|
this.cachedUserAgent = [
|
|
18445
18457
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
18446
18458
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|