@stream-io/video-client 0.0.15 → 0.0.17
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 +14 -0
- package/dist/index.browser.es.js +6 -2
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +6 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamVideoClient.d.ts +2 -1
- package/package.json +1 -1
- package/src/StreamVideoClient.ts +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.0.17](https://github.com/GetStream/stream-video-js/compare/client0.0.16...client0.0.17) (2023-06-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **react-native:** push notification for android ([#626](https://github.com/GetStream/stream-video-js/issues/626)) ([ec2e439](https://github.com/GetStream/stream-video-js/commit/ec2e4390cb724091352ba774c55ad2245ace2955))
|
|
11
|
+
|
|
12
|
+
### [0.0.16](https://github.com/GetStream/stream-video-js/compare/client0.0.15...client0.0.16) (2023-06-16)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Documentation
|
|
16
|
+
|
|
17
|
+
* **react-sdk:** Runtime layout switching guide ([#642](https://github.com/GetStream/stream-video-js/issues/642)) ([1557168](https://github.com/GetStream/stream-video-js/commit/1557168da69660b71a0a420a94a0c354466681a7))
|
|
18
|
+
|
|
5
19
|
### [0.0.15](https://github.com/GetStream/stream-video-js/compare/client0.0.14...client0.0.15) (2023-06-16)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -11079,7 +11079,7 @@ class StreamClient {
|
|
|
11079
11079
|
}
|
|
11080
11080
|
getUserAgent() {
|
|
11081
11081
|
return (this.userAgent ||
|
|
11082
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11082
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.16"}`);
|
|
11083
11083
|
}
|
|
11084
11084
|
setUserAgent(userAgent) {
|
|
11085
11085
|
this.userAgent = userAgent;
|
|
@@ -11200,13 +11200,15 @@ class StreamVideoClient {
|
|
|
11200
11200
|
*
|
|
11201
11201
|
* @param type the type of the call.
|
|
11202
11202
|
* @param id the id of the call, if not provided a unique random value is used
|
|
11203
|
+
* @param {boolean} [ringing] whether the call should be created in the ringing state.
|
|
11203
11204
|
*/
|
|
11204
|
-
this.call = (type, id) => {
|
|
11205
|
+
this.call = (type, id, ringing) => {
|
|
11205
11206
|
return new Call({
|
|
11206
11207
|
streamClient: this.streamClient,
|
|
11207
11208
|
id: id,
|
|
11208
11209
|
type: type,
|
|
11209
11210
|
clientStore: this.writeableStateStore,
|
|
11211
|
+
ringing,
|
|
11210
11212
|
});
|
|
11211
11213
|
};
|
|
11212
11214
|
/**
|
|
@@ -11429,6 +11431,7 @@ class StreamVideoClient {
|
|
|
11429
11431
|
// if `call.created` was received before `call.ring`.
|
|
11430
11432
|
// In that case, we cleanup the already tracked call.
|
|
11431
11433
|
const prevCall = this.writeableStateStore.findCall(call.type, call.id);
|
|
11434
|
+
const prevMetadata = prevCall === null || prevCall === void 0 ? void 0 : prevCall.state.metadata;
|
|
11432
11435
|
yield (prevCall === null || prevCall === void 0 ? void 0 : prevCall.leave());
|
|
11433
11436
|
// we create a new call
|
|
11434
11437
|
const theCall = new Call({
|
|
@@ -11438,6 +11441,7 @@ class StreamVideoClient {
|
|
|
11438
11441
|
members,
|
|
11439
11442
|
clientStore: this.writeableStateStore,
|
|
11440
11443
|
ringing: true,
|
|
11444
|
+
metadata: prevMetadata,
|
|
11441
11445
|
});
|
|
11442
11446
|
// we fetch the latest metadata for the call from the server
|
|
11443
11447
|
yield theCall.get();
|