@stream-io/video-client 0.6.8 → 0.6.9

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.6.9](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.6.8...@stream-io/video-client-0.6.9) (2024-04-05)
6
+
7
+
8
+ ### Features
9
+
10
+ * add submit feedback method to Call ([#1307](https://github.com/GetStream/stream-video-js/issues/1307)) ([45fb9da](https://github.com/GetStream/stream-video-js/commit/45fb9da6eb52e4509c7b45b53cd62b0af6f7ec74))
11
+
5
12
  ### [0.6.8](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.6.7...@stream-io/video-client-0.6.8) (2024-04-05)
6
13
 
7
14
 
@@ -12609,6 +12609,19 @@ class Call {
12609
12609
  const endpoint = `${this.streamClientBasePath}/stats/${callSessionID}`;
12610
12610
  return this.streamClient.get(endpoint);
12611
12611
  };
12612
+ /**
12613
+ * Submit feedback on call experience
12614
+ *
12615
+ * @returns
12616
+ */
12617
+ this.submitFeedback = async (feedback) => {
12618
+ const callSessionId = this.state.session?.id;
12619
+ if (!callSessionId) {
12620
+ return;
12621
+ }
12622
+ const endpoint = `${this.streamClientBasePath}/feedback/${callSessionId}`;
12623
+ return this.streamClient.post(endpoint, feedback);
12624
+ };
12612
12625
  /**
12613
12626
  * Sends a custom event to all call participants.
12614
12627
  *
@@ -14477,7 +14490,7 @@ class StreamClient {
14477
14490
  });
14478
14491
  };
14479
14492
  this.getUserAgent = () => {
14480
- const version = "0.6.8" ;
14493
+ const version = "0.6.9" ;
14481
14494
  return (this.userAgent ||
14482
14495
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
14483
14496
  };