stream-chat 9.8.0 → 9.9.0

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.
@@ -8307,6 +8307,7 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
8307
8307
  this.state.partialNext({ showReplyInChannel: !this.showReplyInChannel });
8308
8308
  };
8309
8309
  this.clear = () => {
8310
+ this.setQuotedMessage(null);
8310
8311
  this.initState();
8311
8312
  };
8312
8313
  this.restore = () => {
@@ -14996,6 +14997,16 @@ var StreamChat = class _StreamChat {
14996
14997
  ...userID ? { user_id: userID } : {}
14997
14998
  });
14998
14999
  }
15000
+ /** getSharedLocations
15001
+ *
15002
+ * @returns {Promise<ActiveLiveLocationsAPIResponse>} The server response
15003
+ *
15004
+ */
15005
+ async getSharedLocations() {
15006
+ return await this.get(
15007
+ this.baseURL + `/users/live_locations`
15008
+ );
15009
+ }
14999
15010
  /** muteUser - mutes a user
15000
15011
  *
15001
15012
  * @param {string} targetID
@@ -15550,7 +15561,7 @@ var StreamChat = class _StreamChat {
15550
15561
  if (this.userAgent) {
15551
15562
  return this.userAgent;
15552
15563
  }
15553
- const version = "9.8.0";
15564
+ const version = "9.9.0";
15554
15565
  const clientBundle = "browser-cjs";
15555
15566
  let userAgentString = "";
15556
15567
  if (this.sdkIdentifier) {
@@ -16639,6 +16650,19 @@ var StreamChat = class _StreamChat {
16639
16650
  ...rest
16640
16651
  });
16641
16652
  }
16653
+ /**
16654
+ * updateLocation - Updates a location
16655
+ *
16656
+ * @param location UserLocation the location data to update
16657
+ *
16658
+ * @returns {Promise<APIResponse>} The server response
16659
+ */
16660
+ async updateLocation(location) {
16661
+ return await this.put(
16662
+ this.baseURL + `/users/live_locations`,
16663
+ location
16664
+ );
16665
+ }
16642
16666
  /**
16643
16667
  * uploadFile - Uploads a file to the configured storage (defaults to Stream CDN)
16644
16668
  *