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/cjs/index.node.js
CHANGED
|
@@ -161,12 +161,15 @@ __export(index_exports, {
|
|
|
161
161
|
defaultPollFieldChangeEventValidators: () => defaultPollFieldChangeEventValidators,
|
|
162
162
|
encodeBase64: () => encodeBase64,
|
|
163
163
|
ensureIsLocalAttachment: () => ensureIsLocalAttachment,
|
|
164
|
+
escapeCommandRegExp: () => escapeCommandRegExp,
|
|
164
165
|
extractPollData: () => extractPollData,
|
|
165
166
|
extractPollEnrichedData: () => extractPollEnrichedData,
|
|
166
167
|
formatMessage: () => formatMessage,
|
|
167
168
|
generateFileName: () => generateFileName,
|
|
168
169
|
getAttachmentTypeFromMimeType: () => getAttachmentTypeFromMimeType,
|
|
170
|
+
getCompleteCommandInString: () => getCompleteCommandInString,
|
|
169
171
|
getExtensionFromMimeType: () => getExtensionFromMimeType,
|
|
172
|
+
getRawCommandName: () => getRawCommandName,
|
|
170
173
|
getTokenizedSuggestionDisplayName: () => getTokenizedSuggestionDisplayName,
|
|
171
174
|
getTriggerCharWithToken: () => getTriggerCharWithToken,
|
|
172
175
|
insertItemWithTrigger: () => insertItemWithTrigger,
|
|
@@ -198,6 +201,7 @@ __export(index_exports, {
|
|
|
198
201
|
localMessageToNewMessagePayload: () => localMessageToNewMessagePayload,
|
|
199
202
|
logChatPromiseExecution: () => logChatPromiseExecution,
|
|
200
203
|
mapPollStateToResponse: () => mapPollStateToResponse,
|
|
204
|
+
notifyCommandDisabled: () => notifyCommandDisabled,
|
|
201
205
|
pollCompositionStateProcessors: () => pollCompositionStateProcessors,
|
|
202
206
|
pollStateChangeValidators: () => pollStateChangeValidators,
|
|
203
207
|
postInsights: () => postInsights,
|
|
@@ -205,6 +209,7 @@ __export(index_exports, {
|
|
|
205
209
|
readFileAsArrayBuffer: () => readFileAsArrayBuffer,
|
|
206
210
|
removeDiacritics: () => removeDiacritics,
|
|
207
211
|
replaceWordWithEntity: () => replaceWordWithEntity,
|
|
212
|
+
stripCommandFromText: () => stripCommandFromText,
|
|
208
213
|
textIsEmpty: () => textIsEmpty,
|
|
209
214
|
timeLeftMs: () => timeLeftMs
|
|
210
215
|
});
|
|
@@ -14469,15 +14474,17 @@ var StreamChat = class _StreamChat {
|
|
|
14469
14474
|
defaultOptions.watch = false;
|
|
14470
14475
|
}
|
|
14471
14476
|
const { predefined_filter, filter_values, sort_values, ...restOptions } = options;
|
|
14477
|
+
const normalizedSort = normalizeQuerySort(sort);
|
|
14472
14478
|
const payload = predefined_filter ? {
|
|
14473
14479
|
predefined_filter,
|
|
14474
14480
|
filter_values,
|
|
14475
14481
|
sort_values,
|
|
14482
|
+
sort: normalizedSort,
|
|
14476
14483
|
...defaultOptions,
|
|
14477
14484
|
...restOptions
|
|
14478
14485
|
} : {
|
|
14479
14486
|
filter_conditions: filterConditions,
|
|
14480
|
-
sort:
|
|
14487
|
+
sort: normalizedSort,
|
|
14481
14488
|
...defaultOptions,
|
|
14482
14489
|
...restOptions
|
|
14483
14490
|
};
|
|
@@ -15640,7 +15647,7 @@ var StreamChat = class _StreamChat {
|
|
|
15640
15647
|
if (this.userAgent) {
|
|
15641
15648
|
return this.userAgent;
|
|
15642
15649
|
}
|
|
15643
|
-
const version = "9.43.
|
|
15650
|
+
const version = "9.43.2";
|
|
15644
15651
|
const clientBundle = "node-cjs";
|
|
15645
15652
|
let userAgentString = "";
|
|
15646
15653
|
if (this.sdkIdentifier) {
|
|
@@ -18374,12 +18381,15 @@ var FixedSizeQueueCache = class {
|
|
|
18374
18381
|
defaultPollFieldChangeEventValidators,
|
|
18375
18382
|
encodeBase64,
|
|
18376
18383
|
ensureIsLocalAttachment,
|
|
18384
|
+
escapeCommandRegExp,
|
|
18377
18385
|
extractPollData,
|
|
18378
18386
|
extractPollEnrichedData,
|
|
18379
18387
|
formatMessage,
|
|
18380
18388
|
generateFileName,
|
|
18381
18389
|
getAttachmentTypeFromMimeType,
|
|
18390
|
+
getCompleteCommandInString,
|
|
18382
18391
|
getExtensionFromMimeType,
|
|
18392
|
+
getRawCommandName,
|
|
18383
18393
|
getTokenizedSuggestionDisplayName,
|
|
18384
18394
|
getTriggerCharWithToken,
|
|
18385
18395
|
insertItemWithTrigger,
|
|
@@ -18411,6 +18421,7 @@ var FixedSizeQueueCache = class {
|
|
|
18411
18421
|
localMessageToNewMessagePayload,
|
|
18412
18422
|
logChatPromiseExecution,
|
|
18413
18423
|
mapPollStateToResponse,
|
|
18424
|
+
notifyCommandDisabled,
|
|
18414
18425
|
pollCompositionStateProcessors,
|
|
18415
18426
|
pollStateChangeValidators,
|
|
18416
18427
|
postInsights,
|
|
@@ -18418,6 +18429,7 @@ var FixedSizeQueueCache = class {
|
|
|
18418
18429
|
readFileAsArrayBuffer,
|
|
18419
18430
|
removeDiacritics,
|
|
18420
18431
|
replaceWordWithEntity,
|
|
18432
|
+
stripCommandFromText,
|
|
18421
18433
|
textIsEmpty,
|
|
18422
18434
|
timeLeftMs
|
|
18423
18435
|
});
|