@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/dist/index.cjs.js CHANGED
@@ -12632,6 +12632,19 @@ class Call {
12632
12632
  const endpoint = `${this.streamClientBasePath}/stats/${callSessionID}`;
12633
12633
  return this.streamClient.get(endpoint);
12634
12634
  };
12635
+ /**
12636
+ * Submit feedback on call experience
12637
+ *
12638
+ * @returns
12639
+ */
12640
+ this.submitFeedback = async (feedback) => {
12641
+ const callSessionId = this.state.session?.id;
12642
+ if (!callSessionId) {
12643
+ return;
12644
+ }
12645
+ const endpoint = `${this.streamClientBasePath}/feedback/${callSessionId}`;
12646
+ return this.streamClient.post(endpoint, feedback);
12647
+ };
12635
12648
  /**
12636
12649
  * Sends a custom event to all call participants.
12637
12650
  *
@@ -14501,7 +14514,7 @@ class StreamClient {
14501
14514
  });
14502
14515
  };
14503
14516
  this.getUserAgent = () => {
14504
- const version = "0.6.8" ;
14517
+ const version = "0.6.9" ;
14505
14518
  return (this.userAgent ||
14506
14519
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
14507
14520
  };