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.
- 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 +25 -0
- package/package.json +1 -1
- package/src/client.ts +28 -2
- package/src/messageComposer/messageComposer.ts +1 -0
- package/src/types.ts +29 -1
package/dist/cjs/index.node.cjs
CHANGED
|
@@ -19650,6 +19650,7 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
|
|
|
19650
19650
|
this.state.partialNext({ showReplyInChannel: !this.showReplyInChannel });
|
|
19651
19651
|
};
|
|
19652
19652
|
this.clear = () => {
|
|
19653
|
+
this.setQuotedMessage(null);
|
|
19653
19654
|
this.initState();
|
|
19654
19655
|
};
|
|
19655
19656
|
this.restore = () => {
|
|
@@ -26327,6 +26328,16 @@ var StreamChat = class _StreamChat {
|
|
|
26327
26328
|
...userID ? { user_id: userID } : {}
|
|
26328
26329
|
});
|
|
26329
26330
|
}
|
|
26331
|
+
/** getSharedLocations
|
|
26332
|
+
*
|
|
26333
|
+
* @returns {Promise<ActiveLiveLocationsAPIResponse>} The server response
|
|
26334
|
+
*
|
|
26335
|
+
*/
|
|
26336
|
+
async getSharedLocations() {
|
|
26337
|
+
return await this.get(
|
|
26338
|
+
this.baseURL + `/users/live_locations`
|
|
26339
|
+
);
|
|
26340
|
+
}
|
|
26330
26341
|
/** muteUser - mutes a user
|
|
26331
26342
|
*
|
|
26332
26343
|
* @param {string} targetID
|
|
@@ -26881,7 +26892,7 @@ var StreamChat = class _StreamChat {
|
|
|
26881
26892
|
if (this.userAgent) {
|
|
26882
26893
|
return this.userAgent;
|
|
26883
26894
|
}
|
|
26884
|
-
const version = "9.
|
|
26895
|
+
const version = "9.9.0";
|
|
26885
26896
|
const clientBundle = "node-cjs";
|
|
26886
26897
|
let userAgentString = "";
|
|
26887
26898
|
if (this.sdkIdentifier) {
|
|
@@ -27970,6 +27981,19 @@ var StreamChat = class _StreamChat {
|
|
|
27970
27981
|
...rest
|
|
27971
27982
|
});
|
|
27972
27983
|
}
|
|
27984
|
+
/**
|
|
27985
|
+
* updateLocation - Updates a location
|
|
27986
|
+
*
|
|
27987
|
+
* @param location UserLocation the location data to update
|
|
27988
|
+
*
|
|
27989
|
+
* @returns {Promise<APIResponse>} The server response
|
|
27990
|
+
*/
|
|
27991
|
+
async updateLocation(location) {
|
|
27992
|
+
return await this.put(
|
|
27993
|
+
this.baseURL + `/users/live_locations`,
|
|
27994
|
+
location
|
|
27995
|
+
);
|
|
27996
|
+
}
|
|
27973
27997
|
/**
|
|
27974
27998
|
* uploadFile - Uploads a file to the configured storage (defaults to Stream CDN)
|
|
27975
27999
|
*
|