stream-chat 9.19.1 → 9.20.1
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 +8 -2
- package/dist/cjs/index.browser.cjs.map +2 -2
- package/dist/cjs/index.node.cjs +8 -2
- package/dist/cjs/index.node.cjs.map +2 -2
- package/dist/esm/index.js +8 -2
- package/dist/esm/index.js.map +2 -2
- package/dist/types/types.d.ts +1 -12
- package/package.json +1 -1
- package/src/campaign.ts +1 -0
- package/src/client.ts +7 -2
- package/src/messageComposer/middleware/messageComposer/attachments.ts +3 -0
- package/src/types.ts +1 -15
|
@@ -386,6 +386,7 @@ var Campaign = class {
|
|
|
386
386
|
segment_ids: this.data?.segment_ids,
|
|
387
387
|
sender_id: this.data?.sender_id,
|
|
388
388
|
sender_mode: this.data?.sender_mode,
|
|
389
|
+
sender_visibility: this.data?.sender_visibility,
|
|
389
390
|
channel_template: this.data?.channel_template,
|
|
390
391
|
create_channels: this.data?.create_channels,
|
|
391
392
|
show_channels: this.data?.show_channels,
|
|
@@ -6204,6 +6205,9 @@ var createAttachmentsCompositionMiddleware = (composer) => ({
|
|
|
6204
6205
|
origin: {
|
|
6205
6206
|
emitter: "MessageComposer",
|
|
6206
6207
|
context: { composer }
|
|
6208
|
+
},
|
|
6209
|
+
options: {
|
|
6210
|
+
type: "validation:attachment:upload:in-progress"
|
|
6207
6211
|
}
|
|
6208
6212
|
});
|
|
6209
6213
|
return discard();
|
|
@@ -14170,7 +14174,9 @@ var StreamChat = class _StreamChat {
|
|
|
14170
14174
|
this.activeChannels = {};
|
|
14171
14175
|
this.state = new ClientState({ client: this });
|
|
14172
14176
|
this.threads.resetState();
|
|
14173
|
-
|
|
14177
|
+
closePromise.finally(() => {
|
|
14178
|
+
this.tokenManager.reset();
|
|
14179
|
+
}).catch((err) => console.error(err));
|
|
14174
14180
|
return closePromise;
|
|
14175
14181
|
};
|
|
14176
14182
|
/**
|
|
@@ -16225,7 +16231,7 @@ var StreamChat = class _StreamChat {
|
|
|
16225
16231
|
if (this.userAgent) {
|
|
16226
16232
|
return this.userAgent;
|
|
16227
16233
|
}
|
|
16228
|
-
const version = "9.
|
|
16234
|
+
const version = "9.20.1";
|
|
16229
16235
|
const clientBundle = "browser-cjs";
|
|
16230
16236
|
let userAgentString = "";
|
|
16231
16237
|
if (this.sdkIdentifier) {
|