@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.es.js
CHANGED
|
@@ -4927,7 +4927,7 @@ const toIceCandidate = (iceTrickle) => {
|
|
|
4927
4927
|
}
|
|
4928
4928
|
};
|
|
4929
4929
|
|
|
4930
|
-
const version = "1.55.
|
|
4930
|
+
const version = "1.55.2";
|
|
4931
4931
|
const [major, minor, patch] = version.split('.');
|
|
4932
4932
|
let sdkInfo = {
|
|
4933
4933
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -6282,6 +6282,12 @@ class CallState {
|
|
|
6282
6282
|
// trigger re-sorting of participants
|
|
6283
6283
|
this.setCurrentValue(this.participantsSubject, (ps) => ps);
|
|
6284
6284
|
};
|
|
6285
|
+
/**
|
|
6286
|
+
* Returns the comparator currently used to sort the participants.
|
|
6287
|
+
*/
|
|
6288
|
+
getSortParticipantsBy = () => {
|
|
6289
|
+
return this.sortParticipantsBy;
|
|
6290
|
+
};
|
|
6285
6291
|
/**
|
|
6286
6292
|
* Gets the current value of an observable, or undefined if the observable has
|
|
6287
6293
|
* not emitted a value yet.
|
|
@@ -16350,6 +16356,12 @@ class Call {
|
|
|
16350
16356
|
setSortParticipantsBy = (criteria) => {
|
|
16351
16357
|
return this.state.setSortParticipantsBy(criteria);
|
|
16352
16358
|
};
|
|
16359
|
+
/**
|
|
16360
|
+
* Returns the comparator currently used to sort the participants.
|
|
16361
|
+
*/
|
|
16362
|
+
getSortParticipantsBy = () => {
|
|
16363
|
+
return this.state.getSortParticipantsBy();
|
|
16364
|
+
};
|
|
16353
16365
|
/**
|
|
16354
16366
|
* Sends a reaction to the other call participants.
|
|
16355
16367
|
*
|
|
@@ -18417,11 +18429,11 @@ class StreamClient {
|
|
|
18417
18429
|
return await this.wsConnection.connect(this.defaultWSTimeout);
|
|
18418
18430
|
};
|
|
18419
18431
|
getSdkVersion = () => this.options.clientAppIdentifier?.sdkVersion ||
|
|
18420
|
-
"1.55.
|
|
18432
|
+
"1.55.2";
|
|
18421
18433
|
getUserAgent = () => {
|
|
18422
18434
|
if (!this.cachedUserAgent) {
|
|
18423
18435
|
const { clientAppIdentifier = {} } = this.options;
|
|
18424
|
-
const { sdkName = 'js', sdkVersion = "1.55.
|
|
18436
|
+
const { sdkName = 'js', sdkVersion = "1.55.2", ...extras } = clientAppIdentifier;
|
|
18425
18437
|
this.cachedUserAgent = [
|
|
18426
18438
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
18427
18439
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|