stream-chat 9.8.0 → 9.10.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.
- package/dist/cjs/index.browser.cjs +25 -1
- package/dist/cjs/index.browser.cjs.map +2 -2
- package/dist/cjs/index.node.cjs +25 -1
- package/dist/cjs/index.node.cjs.map +2 -2
- package/dist/esm/index.js +25 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/types/client.d.ts +17 -1
- package/dist/types/types.d.ts +26 -0
- package/package.json +1 -1
- package/src/client.ts +28 -2
- package/src/messageComposer/messageComposer.ts +1 -0
- package/src/types.ts +30 -1
|
@@ -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.
|
|
15564
|
+
const version = "9.10.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
|
*
|