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/index.es.js
CHANGED
|
@@ -7339,6 +7339,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
7339
7339
|
|
|
7340
7340
|
for (var _channelID2 in refMap) {
|
|
7341
7341
|
var _channel3 = _this.activeChannels[_channelID2];
|
|
7342
|
+
if (!_channel3) continue;
|
|
7342
7343
|
var state = _channel3.state;
|
|
7343
7344
|
/** update the messages from this user. */
|
|
7344
7345
|
|
|
@@ -10858,13 +10859,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10858
10859
|
}, {
|
|
10859
10860
|
key: "getMessage",
|
|
10860
10861
|
value: function () {
|
|
10861
|
-
var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(messageID) {
|
|
10862
|
+
var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(messageID, options) {
|
|
10862
10863
|
return _regeneratorRuntime.wrap(function _callee58$(_context58) {
|
|
10863
10864
|
while (1) {
|
|
10864
10865
|
switch (_context58.prev = _context58.next) {
|
|
10865
10866
|
case 0:
|
|
10866
10867
|
_context58.next = 2;
|
|
10867
|
-
return this.get(this.baseURL + "/messages/".concat(encodeURIComponent(messageID)));
|
|
10868
|
+
return this.get(this.baseURL + "/messages/".concat(encodeURIComponent(messageID)), _objectSpread({}, options));
|
|
10868
10869
|
|
|
10869
10870
|
case 2:
|
|
10870
10871
|
return _context58.abrupt("return", _context58.sent);
|
|
@@ -10877,7 +10878,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10877
10878
|
}, _callee58, this);
|
|
10878
10879
|
}));
|
|
10879
10880
|
|
|
10880
|
-
function getMessage(_x77) {
|
|
10881
|
+
function getMessage(_x77, _x78) {
|
|
10881
10882
|
return _getMessage.apply(this, arguments);
|
|
10882
10883
|
}
|
|
10883
10884
|
|
|
@@ -10932,7 +10933,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10932
10933
|
}, _callee59, this);
|
|
10933
10934
|
}));
|
|
10934
10935
|
|
|
10935
|
-
function queryThreads(
|
|
10936
|
+
function queryThreads(_x79) {
|
|
10936
10937
|
return _queryThreads.apply(this, arguments);
|
|
10937
10938
|
}
|
|
10938
10939
|
|
|
@@ -10992,7 +10993,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10992
10993
|
}, _callee60, this);
|
|
10993
10994
|
}));
|
|
10994
10995
|
|
|
10995
|
-
function getThread(
|
|
10996
|
+
function getThread(_x80) {
|
|
10996
10997
|
return _getThread.apply(this, arguments);
|
|
10997
10998
|
}
|
|
10998
10999
|
|
|
@@ -11064,7 +11065,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11064
11065
|
}, _callee61, this);
|
|
11065
11066
|
}));
|
|
11066
11067
|
|
|
11067
|
-
function partialUpdateThread(
|
|
11068
|
+
function partialUpdateThread(_x81, _x82) {
|
|
11068
11069
|
return _partialUpdateThread.apply(this, arguments);
|
|
11069
11070
|
}
|
|
11070
11071
|
|
|
@@ -11073,7 +11074,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11073
11074
|
}, {
|
|
11074
11075
|
key: "getUserAgent",
|
|
11075
11076
|
value: function getUserAgent() {
|
|
11076
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
11077
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.20.0");
|
|
11077
11078
|
}
|
|
11078
11079
|
}, {
|
|
11079
11080
|
key: "setUserAgent",
|
|
@@ -11313,7 +11314,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11313
11314
|
}, _callee62, this);
|
|
11314
11315
|
}));
|
|
11315
11316
|
|
|
11316
|
-
function sendUserCustomEvent(
|
|
11317
|
+
function sendUserCustomEvent(_x83, _x84) {
|
|
11317
11318
|
return _sendUserCustomEvent.apply(this, arguments);
|
|
11318
11319
|
}
|
|
11319
11320
|
|
|
@@ -11433,7 +11434,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11433
11434
|
}, _callee63, this);
|
|
11434
11435
|
}));
|
|
11435
11436
|
|
|
11436
|
-
function createSegment(
|
|
11437
|
+
function createSegment(_x85, _x86, _x87, _x88) {
|
|
11437
11438
|
return _createSegment.apply(this, arguments);
|
|
11438
11439
|
}
|
|
11439
11440
|
|
|
@@ -11468,7 +11469,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11468
11469
|
}, _callee64, this);
|
|
11469
11470
|
}));
|
|
11470
11471
|
|
|
11471
|
-
function createUserSegment(
|
|
11472
|
+
function createUserSegment(_x89, _x90, _x91) {
|
|
11472
11473
|
return _createUserSegment.apply(this, arguments);
|
|
11473
11474
|
}
|
|
11474
11475
|
|
|
@@ -11503,7 +11504,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11503
11504
|
}, _callee65, this);
|
|
11504
11505
|
}));
|
|
11505
11506
|
|
|
11506
|
-
function createChannelSegment(
|
|
11507
|
+
function createChannelSegment(_x92, _x93, _x94) {
|
|
11507
11508
|
return _createChannelSegment.apply(this, arguments);
|
|
11508
11509
|
}
|
|
11509
11510
|
|
|
@@ -11528,7 +11529,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11528
11529
|
}, _callee66, this);
|
|
11529
11530
|
}));
|
|
11530
11531
|
|
|
11531
|
-
function getSegment(
|
|
11532
|
+
function getSegment(_x95) {
|
|
11532
11533
|
return _getSegment.apply(this, arguments);
|
|
11533
11534
|
}
|
|
11534
11535
|
|
|
@@ -11562,7 +11563,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11562
11563
|
}, _callee67, this);
|
|
11563
11564
|
}));
|
|
11564
11565
|
|
|
11565
|
-
function updateSegment(
|
|
11566
|
+
function updateSegment(_x96, _x97) {
|
|
11566
11567
|
return _updateSegment.apply(this, arguments);
|
|
11567
11568
|
}
|
|
11568
11569
|
|
|
@@ -11600,7 +11601,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11600
11601
|
}, _callee68, this);
|
|
11601
11602
|
}));
|
|
11602
11603
|
|
|
11603
|
-
function addSegmentTargets(
|
|
11604
|
+
function addSegmentTargets(_x98, _x99) {
|
|
11604
11605
|
return _addSegmentTargets.apply(this, arguments);
|
|
11605
11606
|
}
|
|
11606
11607
|
|
|
@@ -11635,7 +11636,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11635
11636
|
}, _callee69, this);
|
|
11636
11637
|
}));
|
|
11637
11638
|
|
|
11638
|
-
function querySegmentTargets(
|
|
11639
|
+
function querySegmentTargets(_x100) {
|
|
11639
11640
|
return _querySegmentTargets.apply(this, arguments);
|
|
11640
11641
|
}
|
|
11641
11642
|
|
|
@@ -11673,7 +11674,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11673
11674
|
}, _callee70, this);
|
|
11674
11675
|
}));
|
|
11675
11676
|
|
|
11676
|
-
function removeSegmentTargets(
|
|
11677
|
+
function removeSegmentTargets(_x101, _x102) {
|
|
11677
11678
|
return _removeSegmentTargets.apply(this, arguments);
|
|
11678
11679
|
}
|
|
11679
11680
|
|
|
@@ -11713,7 +11714,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11713
11714
|
}, _callee71, this);
|
|
11714
11715
|
}));
|
|
11715
11716
|
|
|
11716
|
-
function querySegments(
|
|
11717
|
+
function querySegments(_x103, _x104) {
|
|
11717
11718
|
return _querySegments.apply(this, arguments);
|
|
11718
11719
|
}
|
|
11719
11720
|
|
|
@@ -11746,7 +11747,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11746
11747
|
}, _callee72, this);
|
|
11747
11748
|
}));
|
|
11748
11749
|
|
|
11749
|
-
function deleteSegment(
|
|
11750
|
+
function deleteSegment(_x105) {
|
|
11750
11751
|
return _deleteSegment.apply(this, arguments);
|
|
11751
11752
|
}
|
|
11752
11753
|
|
|
@@ -11780,7 +11781,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11780
11781
|
}, _callee73, this);
|
|
11781
11782
|
}));
|
|
11782
11783
|
|
|
11783
|
-
function segmentTargetExists(
|
|
11784
|
+
function segmentTargetExists(_x106, _x107) {
|
|
11784
11785
|
return _segmentTargetExists.apply(this, arguments);
|
|
11785
11786
|
}
|
|
11786
11787
|
|
|
@@ -11813,7 +11814,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11813
11814
|
}, _callee74, this);
|
|
11814
11815
|
}));
|
|
11815
11816
|
|
|
11816
|
-
function createCampaign(
|
|
11817
|
+
function createCampaign(_x108) {
|
|
11817
11818
|
return _createCampaign.apply(this, arguments);
|
|
11818
11819
|
}
|
|
11819
11820
|
|
|
@@ -11838,7 +11839,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11838
11839
|
}, _callee75, this);
|
|
11839
11840
|
}));
|
|
11840
11841
|
|
|
11841
|
-
function getCampaign(
|
|
11842
|
+
function getCampaign(_x109) {
|
|
11842
11843
|
return _getCampaign.apply(this, arguments);
|
|
11843
11844
|
}
|
|
11844
11845
|
|
|
@@ -11866,7 +11867,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11866
11867
|
}, _callee76, this);
|
|
11867
11868
|
}));
|
|
11868
11869
|
|
|
11869
|
-
function startCampaign(
|
|
11870
|
+
function startCampaign(_x110, _x111) {
|
|
11870
11871
|
return _startCampaign.apply(this, arguments);
|
|
11871
11872
|
}
|
|
11872
11873
|
|
|
@@ -11905,7 +11906,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11905
11906
|
}, _callee77, this);
|
|
11906
11907
|
}));
|
|
11907
11908
|
|
|
11908
|
-
function queryCampaigns(
|
|
11909
|
+
function queryCampaigns(_x112, _x113, _x114) {
|
|
11909
11910
|
return _queryCampaigns.apply(this, arguments);
|
|
11910
11911
|
}
|
|
11911
11912
|
|
|
@@ -11939,7 +11940,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11939
11940
|
}, _callee78, this);
|
|
11940
11941
|
}));
|
|
11941
11942
|
|
|
11942
|
-
function updateCampaign(
|
|
11943
|
+
function updateCampaign(_x115, _x116) {
|
|
11943
11944
|
return _updateCampaign.apply(this, arguments);
|
|
11944
11945
|
}
|
|
11945
11946
|
|
|
@@ -11972,7 +11973,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11972
11973
|
}, _callee79, this);
|
|
11973
11974
|
}));
|
|
11974
11975
|
|
|
11975
|
-
function deleteCampaign(
|
|
11976
|
+
function deleteCampaign(_x117) {
|
|
11976
11977
|
return _deleteCampaign.apply(this, arguments);
|
|
11977
11978
|
}
|
|
11978
11979
|
|
|
@@ -12013,7 +12014,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12013
12014
|
}, _callee80, this);
|
|
12014
12015
|
}));
|
|
12015
12016
|
|
|
12016
|
-
function stopCampaign(
|
|
12017
|
+
function stopCampaign(_x118) {
|
|
12017
12018
|
return _stopCampaign.apply(this, arguments);
|
|
12018
12019
|
}
|
|
12019
12020
|
|
|
@@ -12046,7 +12047,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12046
12047
|
}, _callee81, this);
|
|
12047
12048
|
}));
|
|
12048
12049
|
|
|
12049
|
-
function enrichURL(
|
|
12050
|
+
function enrichURL(_x119) {
|
|
12050
12051
|
return _enrichURL.apply(this, arguments);
|
|
12051
12052
|
}
|
|
12052
12053
|
|
|
@@ -12078,7 +12079,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12078
12079
|
}, _callee82, this);
|
|
12079
12080
|
}));
|
|
12080
12081
|
|
|
12081
|
-
function getTask(
|
|
12082
|
+
function getTask(_x120) {
|
|
12082
12083
|
return _getTask.apply(this, arguments);
|
|
12083
12084
|
}
|
|
12084
12085
|
|
|
@@ -12120,7 +12121,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12120
12121
|
}, _callee83, this);
|
|
12121
12122
|
}));
|
|
12122
12123
|
|
|
12123
|
-
function deleteChannels(
|
|
12124
|
+
function deleteChannels(_x121) {
|
|
12124
12125
|
return _deleteChannels.apply(this, arguments);
|
|
12125
12126
|
}
|
|
12126
12127
|
|
|
@@ -12187,7 +12188,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12187
12188
|
}, _callee84, this);
|
|
12188
12189
|
}));
|
|
12189
12190
|
|
|
12190
|
-
function deleteUsers(
|
|
12191
|
+
function deleteUsers(_x122) {
|
|
12191
12192
|
return _deleteUsers.apply(this, arguments);
|
|
12192
12193
|
}
|
|
12193
12194
|
|
|
@@ -12229,7 +12230,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12229
12230
|
}, _callee85, this);
|
|
12230
12231
|
}));
|
|
12231
12232
|
|
|
12232
|
-
function _createImportURL(
|
|
12233
|
+
function _createImportURL(_x123) {
|
|
12233
12234
|
return _createImportURL2.apply(this, arguments);
|
|
12234
12235
|
}
|
|
12235
12236
|
|
|
@@ -12277,7 +12278,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12277
12278
|
}, _callee86, this);
|
|
12278
12279
|
}));
|
|
12279
12280
|
|
|
12280
|
-
function _createImport(
|
|
12281
|
+
function _createImport(_x124) {
|
|
12281
12282
|
return _createImport2.apply(this, arguments);
|
|
12282
12283
|
}
|
|
12283
12284
|
|
|
@@ -12318,7 +12319,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12318
12319
|
}, _callee87, this);
|
|
12319
12320
|
}));
|
|
12320
12321
|
|
|
12321
|
-
function _getImport(
|
|
12322
|
+
function _getImport(_x125) {
|
|
12322
12323
|
return _getImport2.apply(this, arguments);
|
|
12323
12324
|
}
|
|
12324
12325
|
|
|
@@ -12359,7 +12360,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12359
12360
|
}, _callee88, this);
|
|
12360
12361
|
}));
|
|
12361
12362
|
|
|
12362
|
-
function _listImports(
|
|
12363
|
+
function _listImports(_x126) {
|
|
12363
12364
|
return _listImports2.apply(this, arguments);
|
|
12364
12365
|
}
|
|
12365
12366
|
|
|
@@ -12399,7 +12400,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12399
12400
|
}, _callee89, this);
|
|
12400
12401
|
}));
|
|
12401
12402
|
|
|
12402
|
-
function upsertPushProvider(
|
|
12403
|
+
function upsertPushProvider(_x127) {
|
|
12403
12404
|
return _upsertPushProvider.apply(this, arguments);
|
|
12404
12405
|
}
|
|
12405
12406
|
|
|
@@ -12439,7 +12440,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12439
12440
|
}, _callee90, this);
|
|
12440
12441
|
}));
|
|
12441
12442
|
|
|
12442
|
-
function deletePushProvider(
|
|
12443
|
+
function deletePushProvider(_x128) {
|
|
12443
12444
|
return _deletePushProvider.apply(this, arguments);
|
|
12444
12445
|
}
|
|
12445
12446
|
|
|
@@ -12519,7 +12520,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
12519
12520
|
}, _callee92, this);
|
|
12520
12521
|
}));
|
|
12521
12522
|
|
|
12522
|
-
function commitMessage(
|
|
12523
|
+
function commitMessage(_x129) {
|
|
12523
12524
|
return _commitMessage.apply(this, arguments);
|
|
12524
12525
|
}
|
|
12525
12526
|
|