stream-chat 9.43.1 → 9.43.2
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.js +9 -2
- package/dist/cjs/index.browser.js.map +2 -2
- package/dist/cjs/index.node.js +14 -2
- package/dist/cjs/index.node.js.map +2 -2
- package/dist/esm/index.mjs +9 -2
- package/dist/esm/index.mjs.map +2 -2
- package/dist/types/client.d.ts +4 -4
- package/dist/types/messageComposer/middleware/textComposer/index.d.ts +1 -0
- package/dist/types/types.d.ts +121 -15
- package/package.json +1 -1
- package/src/client.ts +22 -9
- package/src/messageComposer/middleware/textComposer/index.ts +1 -0
- package/src/types.ts +133 -15
package/dist/esm/index.mjs
CHANGED
|
@@ -14301,15 +14301,17 @@ var StreamChat = class _StreamChat {
|
|
|
14301
14301
|
defaultOptions.watch = false;
|
|
14302
14302
|
}
|
|
14303
14303
|
const { predefined_filter, filter_values, sort_values, ...restOptions } = options;
|
|
14304
|
+
const normalizedSort = normalizeQuerySort(sort);
|
|
14304
14305
|
const payload = predefined_filter ? {
|
|
14305
14306
|
predefined_filter,
|
|
14306
14307
|
filter_values,
|
|
14307
14308
|
sort_values,
|
|
14309
|
+
sort: normalizedSort,
|
|
14308
14310
|
...defaultOptions,
|
|
14309
14311
|
...restOptions
|
|
14310
14312
|
} : {
|
|
14311
14313
|
filter_conditions: filterConditions,
|
|
14312
|
-
sort:
|
|
14314
|
+
sort: normalizedSort,
|
|
14313
14315
|
...defaultOptions,
|
|
14314
14316
|
...restOptions
|
|
14315
14317
|
};
|
|
@@ -15472,7 +15474,7 @@ var StreamChat = class _StreamChat {
|
|
|
15472
15474
|
if (this.userAgent) {
|
|
15473
15475
|
return this.userAgent;
|
|
15474
15476
|
}
|
|
15475
|
-
const version = "9.43.
|
|
15477
|
+
const version = "9.43.2";
|
|
15476
15478
|
const clientBundle = "browser-esm";
|
|
15477
15479
|
let userAgentString = "";
|
|
15478
15480
|
if (this.sdkIdentifier) {
|
|
@@ -18205,12 +18207,15 @@ export {
|
|
|
18205
18207
|
defaultPollFieldChangeEventValidators,
|
|
18206
18208
|
encodeBase64,
|
|
18207
18209
|
ensureIsLocalAttachment,
|
|
18210
|
+
escapeCommandRegExp,
|
|
18208
18211
|
extractPollData,
|
|
18209
18212
|
extractPollEnrichedData,
|
|
18210
18213
|
formatMessage,
|
|
18211
18214
|
generateFileName,
|
|
18212
18215
|
getAttachmentTypeFromMimeType,
|
|
18216
|
+
getCompleteCommandInString,
|
|
18213
18217
|
getExtensionFromMimeType,
|
|
18218
|
+
getRawCommandName,
|
|
18214
18219
|
getTokenizedSuggestionDisplayName,
|
|
18215
18220
|
getTriggerCharWithToken,
|
|
18216
18221
|
insertItemWithTrigger,
|
|
@@ -18242,6 +18247,7 @@ export {
|
|
|
18242
18247
|
localMessageToNewMessagePayload,
|
|
18243
18248
|
logChatPromiseExecution,
|
|
18244
18249
|
mapPollStateToResponse,
|
|
18250
|
+
notifyCommandDisabled,
|
|
18245
18251
|
pollCompositionStateProcessors,
|
|
18246
18252
|
pollStateChangeValidators,
|
|
18247
18253
|
postInsights,
|
|
@@ -18249,6 +18255,7 @@ export {
|
|
|
18249
18255
|
readFileAsArrayBuffer,
|
|
18250
18256
|
removeDiacritics,
|
|
18251
18257
|
replaceWordWithEntity,
|
|
18258
|
+
stripCommandFromText,
|
|
18252
18259
|
textIsEmpty,
|
|
18253
18260
|
timeLeftMs
|
|
18254
18261
|
};
|