@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/src/Call.d.ts
CHANGED
|
@@ -482,6 +482,10 @@ export declare class Call {
|
|
|
482
482
|
* @param criteria the list of criteria to sort the participants by.
|
|
483
483
|
*/
|
|
484
484
|
setSortParticipantsBy: CallState['setSortParticipantsBy'];
|
|
485
|
+
/**
|
|
486
|
+
* Returns the comparator currently used to sort the participants.
|
|
487
|
+
*/
|
|
488
|
+
getSortParticipantsBy: CallState['getSortParticipantsBy'];
|
|
485
489
|
/**
|
|
486
490
|
* Sends a reaction to the other call participants.
|
|
487
491
|
*
|
|
@@ -227,6 +227,10 @@ export declare class CallState {
|
|
|
227
227
|
* @param comparator the comparator to use to sort the participants.
|
|
228
228
|
*/
|
|
229
229
|
setSortParticipantsBy: (comparator: Comparator<StreamVideoParticipant>) => void;
|
|
230
|
+
/**
|
|
231
|
+
* Returns the comparator currently used to sort the participants.
|
|
232
|
+
*/
|
|
233
|
+
getSortParticipantsBy: () => Comparator<StreamVideoParticipant>;
|
|
230
234
|
/**
|
|
231
235
|
* Gets the current value of an observable, or undefined if the observable has
|
|
232
236
|
* not emitted a value yet.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-client",
|
|
3
|
-
"version": "1.55.
|
|
3
|
+
"version": "1.55.2",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"browser": "dist/index.browser.es.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@openapitools/openapi-generator-cli": "^2.34.0",
|
|
47
47
|
"@rollup/plugin-replace": "^6.0.3",
|
|
48
48
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
49
|
-
"@stream-io/audio-filters-web": "^0.
|
|
49
|
+
"@stream-io/audio-filters-web": "^0.10.1",
|
|
50
50
|
"@stream-io/node-sdk": "^0.7.59",
|
|
51
51
|
"@stream-io/typescript-config": "^0.0.0",
|
|
52
52
|
"@total-typescript/shoehorn": "^0.1.2",
|
package/src/Call.ts
CHANGED
|
@@ -2439,6 +2439,13 @@ export class Call {
|
|
|
2439
2439
|
return this.state.setSortParticipantsBy(criteria);
|
|
2440
2440
|
};
|
|
2441
2441
|
|
|
2442
|
+
/**
|
|
2443
|
+
* Returns the comparator currently used to sort the participants.
|
|
2444
|
+
*/
|
|
2445
|
+
getSortParticipantsBy: CallState['getSortParticipantsBy'] = () => {
|
|
2446
|
+
return this.state.getSortParticipantsBy();
|
|
2447
|
+
};
|
|
2448
|
+
|
|
2442
2449
|
/**
|
|
2443
2450
|
* Sends a reaction to the other call participants.
|
|
2444
2451
|
*
|
package/src/store/CallState.ts
CHANGED
|
@@ -601,6 +601,13 @@ export class CallState {
|
|
|
601
601
|
this.setCurrentValue(this.participantsSubject, (ps) => ps);
|
|
602
602
|
};
|
|
603
603
|
|
|
604
|
+
/**
|
|
605
|
+
* Returns the comparator currently used to sort the participants.
|
|
606
|
+
*/
|
|
607
|
+
getSortParticipantsBy = (): Comparator<StreamVideoParticipant> => {
|
|
608
|
+
return this.sortParticipantsBy;
|
|
609
|
+
};
|
|
610
|
+
|
|
604
611
|
/**
|
|
605
612
|
* Gets the current value of an observable, or undefined if the observable has
|
|
606
613
|
* not emitted a value yet.
|