stream-chat 8.19.0 → 8.20.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/browser.es.js +38 -37
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +38 -37
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +38 -37
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +38 -37
- package/dist/index.js.map +1 -1
- package/dist/types/client.d.ts +4 -2
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/types.d.ts +4 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +6 -1
- package/src/types.ts +5 -0
package/dist/browser.es.js
CHANGED
|
@@ -7336,6 +7336,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
7336
7336
|
|
|
7337
7337
|
for (var _channelID2 in refMap) {
|
|
7338
7338
|
var _channel3 = _this.activeChannels[_channelID2];
|
|
7339
|
+
if (!_channel3) continue;
|
|
7339
7340
|
var state = _channel3.state;
|
|
7340
7341
|
/** update the messages from this user. */
|
|
7341
7342
|
|
|
@@ -10855,13 +10856,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10855
10856
|
}, {
|
|
10856
10857
|
key: "getMessage",
|
|
10857
10858
|
value: function () {
|
|
10858
|
-
var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(messageID) {
|
|
10859
|
+
var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(messageID, options) {
|
|
10859
10860
|
return _regeneratorRuntime.wrap(function _callee58$(_context58) {
|
|
10860
10861
|
while (1) {
|
|
10861
10862
|
switch (_context58.prev = _context58.next) {
|
|
10862
10863
|
case 0:
|
|
10863
10864
|
_context58.next = 2;
|
|
10864
|
-
return this.get(this.baseURL + "/messages/".concat(encodeURIComponent(messageID)));
|
|
10865
|
+
return this.get(this.baseURL + "/messages/".concat(encodeURIComponent(messageID)), _objectSpread({}, options));
|
|
10865
10866
|
|
|
10866
10867
|
case 2:
|
|
10867
10868
|
return _context58.abrupt("return", _context58.sent);
|
|
@@ -10874,7 +10875,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10874
10875
|
}, _callee58, this);
|
|
10875
10876
|
}));
|
|
10876
10877
|
|
|
10877
|
-
function getMessage(_x77) {
|
|
10878
|
+
function getMessage(_x77, _x78) {
|
|
10878
10879
|
return _getMessage.apply(this, arguments);
|
|
10879
10880
|
}
|
|
10880
10881
|
|
|
@@ -10929,7 +10930,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10929
10930
|
}, _callee59, this);
|
|
10930
10931
|
}));
|
|
10931
10932
|
|
|
10932
|
-
function queryThreads(
|
|
10933
|
+
function queryThreads(_x79) {
|
|
10933
10934
|
return _queryThreads.apply(this, arguments);
|
|
10934
10935
|
}
|
|
10935
10936
|
|
|
@@ -10989,7 +10990,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10989
10990
|
}, _callee60, this);
|
|
10990
10991
|
}));
|
|
10991
10992
|
|
|
10992
|
-
function getThread(
|
|
10993
|
+
function getThread(_x80) {
|
|
10993
10994
|
return _getThread.apply(this, arguments);
|
|
10994
10995
|
}
|
|
10995
10996
|
|
|
@@ -11061,7 +11062,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11061
11062
|
}, _callee61, this);
|
|
11062
11063
|
}));
|
|
11063
11064
|
|
|
11064
|
-
function partialUpdateThread(
|
|
11065
|
+
function partialUpdateThread(_x81, _x82) {
|
|
11065
11066
|
return _partialUpdateThread.apply(this, arguments);
|
|
11066
11067
|
}
|
|
11067
11068
|
|
|
@@ -11070,7 +11071,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11070
11071
|
}, {
|
|
11071
11072
|
key: "getUserAgent",
|
|
11072
11073
|
value: function getUserAgent() {
|
|
11073
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
11074
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.20.0");
|
|
11074
11075
|
}
|
|
11075
11076
|
}, {
|
|
11076
11077
|
key: "setUserAgent",
|
|
@@ -11310,7 +11311,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11310
11311
|
}, _callee62, this);
|
|
11311
11312
|
}));
|
|
11312
11313
|
|
|
11313
|
-
function sendUserCustomEvent(
|
|
11314
|
+
function sendUserCustomEvent(_x83, _x84) {
|
|
11314
11315
|
return _sendUserCustomEvent.apply(this, arguments);
|
|
11315
11316
|
}
|
|
11316
11317
|
|
|
@@ -11430,7 +11431,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11430
11431
|
}, _callee63, this);
|
|
11431
11432
|
}));
|
|
11432
11433
|
|
|
11433
|
-
function createSegment(
|
|
11434
|
+
function createSegment(_x85, _x86, _x87, _x88) {
|
|
11434
11435
|
return _createSegment.apply(this, arguments);
|
|
11435
11436
|
}
|
|
11436
11437
|
|
|
@@ -11465,7 +11466,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11465
11466
|
}, _callee64, this);
|
|
11466
11467
|
}));
|
|
11467
11468
|
|
|
11468
|
-
function createUserSegment(
|
|
11469
|
+
function createUserSegment(_x89, _x90, _x91) {
|
|
11469
11470
|
return _createUserSegment.apply(this, arguments);
|
|
11470
11471
|
}
|
|
11471
11472
|
|
|
@@ -11500,7 +11501,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11500
11501
|
}, _callee65, this);
|
|
11501
11502
|
}));
|
|
11502
11503
|
|
|
11503
|
-
function createChannelSegment(
|
|
11504
|
+
function createChannelSegment(_x92, _x93, _x94) {
|
|
11504
11505
|
return _createChannelSegment.apply(this, arguments);
|
|
11505
11506
|
}
|
|
11506
11507
|
|
|
@@ -11525,7 +11526,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11525
11526
|
}, _callee66, this);
|
|
11526
11527
|
}));
|
|
11527
11528
|
|
|
11528
|
-
function getSegment(
|
|
11529
|
+
function getSegment(_x95) {
|
|
11529
11530
|
return _getSegment.apply(this, arguments);
|
|
11530
11531
|
}
|
|
11531
11532
|
|
|
@@ -11559,7 +11560,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11559
11560
|
}, _callee67, this);
|
|
11560
11561
|
}));
|
|
11561
11562
|
|
|
11562
|
-
function updateSegment(
|
|
11563
|
+
function updateSegment(_x96, _x97) {
|
|
11563
11564
|
return _updateSegment.apply(this, arguments);
|
|
11564
11565
|
}
|
|
11565
11566
|
|
|
@@ -11597,7 +11598,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11597
11598
|
}, _callee68, this);
|
|
11598
11599
|
}));
|
|
11599
11600
|
|
|
11600
|
-
function addSegmentTargets(
|
|
11601
|
+
function addSegmentTargets(_x98, _x99) {
|
|
11601
11602
|
return _addSegmentTargets.apply(this, arguments);
|
|
11602
11603
|
}
|
|
11603
11604
|
|
|
@@ -11632,7 +11633,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11632
11633
|
}, _callee69, this);
|
|
11633
11634
|
}));
|
|
11634
11635
|
|
|
11635
|
-
function querySegmentTargets(
|
|
11636
|
+
function querySegmentTargets(_x100) {
|
|
11636
11637
|
return _querySegmentTargets.apply(this, arguments);
|
|
11637
11638
|
}
|
|
11638
11639
|
|
|
@@ -11670,7 +11671,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11670
11671
|
}, _callee70, this);
|
|
11671
11672
|
}));
|
|
11672
11673
|
|
|
11673
|
-
function removeSegmentTargets(
|
|
11674
|
+
function removeSegmentTargets(_x101, _x102) {
|
|
11674
11675
|
return _removeSegmentTargets.apply(this, arguments);
|
|
11675
11676
|
}
|
|
11676
11677
|
|
|
@@ -11710,7 +11711,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11710
11711
|
}, _callee71, this);
|
|
11711
11712
|
}));
|
|
11712
11713
|
|
|
11713
|
-
function querySegments(
|
|
11714
|
+
function querySegments(_x103, _x104) {
|
|
11714
11715
|
return _querySegments.apply(this, arguments);
|
|
11715
11716
|
}
|
|
11716
11717
|
|
|
@@ -11743,7 +11744,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11743
11744
|
}, _callee72, this);
|
|
11744
11745
|
}));
|
|
11745
11746
|
|
|
11746
|
-
function deleteSegment(
|
|
11747
|
+
function deleteSegment(_x105) {
|
|
11747
11748
|
return _deleteSegment.apply(this, arguments);
|
|
11748
11749
|
}
|
|
11749
11750
|
|
|
@@ -11777,7 +11778,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11777
11778
|
}, _callee73, this);
|
|
11778
11779
|
}));
|
|
11779
11780
|
|
|
11780
|
-
function segmentTargetExists(
|
|
11781
|
+
function segmentTargetExists(_x106, _x107) {
|
|
11781
11782
|
return _segmentTargetExists.apply(this, arguments);
|
|
11782
11783
|
}
|
|
11783
11784
|
|
|
@@ -11810,7 +11811,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11810
11811
|
}, _callee74, this);
|
|
11811
11812
|
}));
|
|
11812
11813
|
|
|
11813
|
-
function createCampaign(
|
|
11814
|
+
function createCampaign(_x108) {
|
|
11814
11815
|
return _createCampaign.apply(this, arguments);
|
|
11815
11816
|
}
|
|
11816
11817
|
|
|
@@ -11835,7 +11836,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11835
11836
|
}, _callee75, this);
|
|
11836
11837
|
}));
|
|
11837
11838
|
|
|
11838
|
-
function getCampaign(
|
|
11839
|
+
function getCampaign(_x109) {
|
|
11839
11840
|
return _getCampaign.apply(this, arguments);
|
|
11840
11841
|
}
|
|
11841
11842
|
|
|
@@ -11863,7 +11864,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11863
11864
|
}, _callee76, this);
|
|
11864
11865
|
}));
|
|
11865
11866
|
|
|
11866
|
-
function startCampaign(
|
|
11867
|
+
function startCampaign(_x110, _x111) {
|
|
11867
11868
|
return _startCampaign.apply(this, arguments);
|
|
11868
11869
|
}
|
|
11869
11870
|
|
|
@@ -11902,7 +11903,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11902
11903
|
}, _callee77, this);
|
|
11903
11904
|
}));
|
|
11904
11905
|
|
|
11905
|
-
function queryCampaigns(
|
|
11906
|
+
function queryCampaigns(_x112, _x113, _x114) {
|
|
11906
11907
|
return _queryCampaigns.apply(this, arguments);
|
|
11907
11908
|
}
|
|
11908
11909
|
|
|
@@ -11936,7 +11937,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11936
11937
|
}, _callee78, this);
|
|
11937
11938
|
}));
|
|
11938
11939
|
|
|
11939
|
-
function updateCampaign(
|
|
11940
|
+
function updateCampaign(_x115, _x116) {
|
|
11940
11941
|
return _updateCampaign.apply(this, arguments);
|
|
11941
11942
|
}
|
|
11942
11943
|
|
|
@@ -11969,7 +11970,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11969
11970
|
}, _callee79, this);
|
|
11970
11971
|
}));
|
|
11971
11972
|
|
|
11972
|
-
function deleteCampaign(
|
|
11973
|
+
function deleteCampaign(_x117) {
|
|
11973
11974
|
return _deleteCampaign.apply(this, arguments);
|
|
11974
11975
|
}
|
|
11975
11976
|
|
|
@@ -12010,7 +12011,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12010
12011
|
}, _callee80, this);
|
|
12011
12012
|
}));
|
|
12012
12013
|
|
|
12013
|
-
function stopCampaign(
|
|
12014
|
+
function stopCampaign(_x118) {
|
|
12014
12015
|
return _stopCampaign.apply(this, arguments);
|
|
12015
12016
|
}
|
|
12016
12017
|
|
|
@@ -12043,7 +12044,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12043
12044
|
}, _callee81, this);
|
|
12044
12045
|
}));
|
|
12045
12046
|
|
|
12046
|
-
function enrichURL(
|
|
12047
|
+
function enrichURL(_x119) {
|
|
12047
12048
|
return _enrichURL.apply(this, arguments);
|
|
12048
12049
|
}
|
|
12049
12050
|
|
|
@@ -12075,7 +12076,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12075
12076
|
}, _callee82, this);
|
|
12076
12077
|
}));
|
|
12077
12078
|
|
|
12078
|
-
function getTask(
|
|
12079
|
+
function getTask(_x120) {
|
|
12079
12080
|
return _getTask.apply(this, arguments);
|
|
12080
12081
|
}
|
|
12081
12082
|
|
|
@@ -12117,7 +12118,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12117
12118
|
}, _callee83, this);
|
|
12118
12119
|
}));
|
|
12119
12120
|
|
|
12120
|
-
function deleteChannels(
|
|
12121
|
+
function deleteChannels(_x121) {
|
|
12121
12122
|
return _deleteChannels.apply(this, arguments);
|
|
12122
12123
|
}
|
|
12123
12124
|
|
|
@@ -12184,7 +12185,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12184
12185
|
}, _callee84, this);
|
|
12185
12186
|
}));
|
|
12186
12187
|
|
|
12187
|
-
function deleteUsers(
|
|
12188
|
+
function deleteUsers(_x122) {
|
|
12188
12189
|
return _deleteUsers.apply(this, arguments);
|
|
12189
12190
|
}
|
|
12190
12191
|
|
|
@@ -12226,7 +12227,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12226
12227
|
}, _callee85, this);
|
|
12227
12228
|
}));
|
|
12228
12229
|
|
|
12229
|
-
function _createImportURL(
|
|
12230
|
+
function _createImportURL(_x123) {
|
|
12230
12231
|
return _createImportURL2.apply(this, arguments);
|
|
12231
12232
|
}
|
|
12232
12233
|
|
|
@@ -12274,7 +12275,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12274
12275
|
}, _callee86, this);
|
|
12275
12276
|
}));
|
|
12276
12277
|
|
|
12277
|
-
function _createImport(
|
|
12278
|
+
function _createImport(_x124) {
|
|
12278
12279
|
return _createImport2.apply(this, arguments);
|
|
12279
12280
|
}
|
|
12280
12281
|
|
|
@@ -12315,7 +12316,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12315
12316
|
}, _callee87, this);
|
|
12316
12317
|
}));
|
|
12317
12318
|
|
|
12318
|
-
function _getImport(
|
|
12319
|
+
function _getImport(_x125) {
|
|
12319
12320
|
return _getImport2.apply(this, arguments);
|
|
12320
12321
|
}
|
|
12321
12322
|
|
|
@@ -12356,7 +12357,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12356
12357
|
}, _callee88, this);
|
|
12357
12358
|
}));
|
|
12358
12359
|
|
|
12359
|
-
function _listImports(
|
|
12360
|
+
function _listImports(_x126) {
|
|
12360
12361
|
return _listImports2.apply(this, arguments);
|
|
12361
12362
|
}
|
|
12362
12363
|
|
|
@@ -12396,7 +12397,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12396
12397
|
}, _callee89, this);
|
|
12397
12398
|
}));
|
|
12398
12399
|
|
|
12399
|
-
function upsertPushProvider(
|
|
12400
|
+
function upsertPushProvider(_x127) {
|
|
12400
12401
|
return _upsertPushProvider.apply(this, arguments);
|
|
12401
12402
|
}
|
|
12402
12403
|
|
|
@@ -12436,7 +12437,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12436
12437
|
}, _callee90, this);
|
|
12437
12438
|
}));
|
|
12438
12439
|
|
|
12439
|
-
function deletePushProvider(
|
|
12440
|
+
function deletePushProvider(_x128) {
|
|
12440
12441
|
return _deletePushProvider.apply(this, arguments);
|
|
12441
12442
|
}
|
|
12442
12443
|
|
|
@@ -12516,7 +12517,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12516
12517
|
}, _callee92, this);
|
|
12517
12518
|
}));
|
|
12518
12519
|
|
|
12519
|
-
function commitMessage(
|
|
12520
|
+
function commitMessage(_x129) {
|
|
12520
12521
|
return _commitMessage.apply(this, arguments);
|
|
12521
12522
|
}
|
|
12522
12523
|
|