stream-chat 8.4.1 → 8.5.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.js CHANGED
@@ -1411,30 +1411,36 @@ var Channel = /*#__PURE__*/function () {
1411
1411
 
1412
1412
  _defineProperty__default['default'](this, "disconnected", void 0);
1413
1413
 
1414
- _defineProperty__default['default'](this, "create", /*#__PURE__*/_asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee() {
1415
- var options;
1416
- return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) {
1417
- while (1) {
1418
- switch (_context.prev = _context.next) {
1419
- case 0:
1420
- options = {
1421
- watch: false,
1422
- state: false,
1423
- presence: false
1424
- };
1425
- _context.next = 3;
1426
- return _this.query(options, 'latest');
1414
+ _defineProperty__default['default'](this, "create", /*#__PURE__*/function () {
1415
+ var _ref = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(options) {
1416
+ var defaultOptions;
1417
+ return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) {
1418
+ while (1) {
1419
+ switch (_context.prev = _context.next) {
1420
+ case 0:
1421
+ defaultOptions = _objectSpread$5(_objectSpread$5({}, options), {}, {
1422
+ watch: false,
1423
+ state: false,
1424
+ presence: false
1425
+ });
1426
+ _context.next = 3;
1427
+ return _this.query(defaultOptions, 'latest');
1427
1428
 
1428
- case 3:
1429
- return _context.abrupt("return", _context.sent);
1429
+ case 3:
1430
+ return _context.abrupt("return", _context.sent);
1430
1431
 
1431
- case 4:
1432
- case "end":
1433
- return _context.stop();
1432
+ case 4:
1433
+ case "end":
1434
+ return _context.stop();
1435
+ }
1434
1436
  }
1435
- }
1436
- }, _callee);
1437
- })));
1437
+ }, _callee);
1438
+ }));
1439
+
1440
+ return function (_x) {
1441
+ return _ref.apply(this, arguments);
1442
+ };
1443
+ }());
1438
1444
 
1439
1445
  _defineProperty__default['default'](this, "_callChannelListeners", function (event) {
1440
1446
  var channel = _this; // gather and call the listeners
@@ -1564,7 +1570,7 @@ var Channel = /*#__PURE__*/function () {
1564
1570
  }, _callee2, this);
1565
1571
  }));
1566
1572
 
1567
- function sendMessage(_x, _x2) {
1573
+ function sendMessage(_x2, _x3) {
1568
1574
  return _sendMessage.apply(this, arguments);
1569
1575
  }
1570
1576
 
@@ -1628,7 +1634,7 @@ var Channel = /*#__PURE__*/function () {
1628
1634
  }, _callee3, this);
1629
1635
  }));
1630
1636
 
1631
- function sendEvent(_x3) {
1637
+ function sendEvent(_x4) {
1632
1638
  return _sendEvent.apply(this, arguments);
1633
1639
  }
1634
1640
 
@@ -1716,7 +1722,7 @@ var Channel = /*#__PURE__*/function () {
1716
1722
  }, _callee4, this);
1717
1723
  }));
1718
1724
 
1719
- function search(_x4) {
1725
+ function search(_x5) {
1720
1726
  return _search.apply(this, arguments);
1721
1727
  }
1722
1728
 
@@ -1782,7 +1788,7 @@ var Channel = /*#__PURE__*/function () {
1782
1788
  }, _callee5, this);
1783
1789
  }));
1784
1790
 
1785
- function queryMembers(_x5) {
1791
+ function queryMembers(_x6) {
1786
1792
  return _queryMembers.apply(this, arguments);
1787
1793
  }
1788
1794
 
@@ -1838,7 +1844,7 @@ var Channel = /*#__PURE__*/function () {
1838
1844
  }, _callee6, this);
1839
1845
  }));
1840
1846
 
1841
- function sendReaction(_x6, _x7, _x8) {
1847
+ function sendReaction(_x7, _x8, _x9) {
1842
1848
  return _sendReaction.apply(this, arguments);
1843
1849
  }
1844
1850
 
@@ -1959,7 +1965,7 @@ var Channel = /*#__PURE__*/function () {
1959
1965
  }, _callee8, this);
1960
1966
  }));
1961
1967
 
1962
- function updatePartial(_x9) {
1968
+ function updatePartial(_x10) {
1963
1969
  return _updatePartial.apply(this, arguments);
1964
1970
  }
1965
1971
 
@@ -1999,7 +2005,7 @@ var Channel = /*#__PURE__*/function () {
1999
2005
  }, _callee9, this);
2000
2006
  }));
2001
2007
 
2002
- function enableSlowMode(_x10) {
2008
+ function enableSlowMode(_x11) {
2003
2009
  return _enableSlowMode.apply(this, arguments);
2004
2010
  }
2005
2011
 
@@ -2239,7 +2245,7 @@ var Channel = /*#__PURE__*/function () {
2239
2245
  }, _callee15, this);
2240
2246
  }));
2241
2247
 
2242
- function addMembers(_x11, _x12) {
2248
+ function addMembers(_x12, _x13) {
2243
2249
  return _addMembers.apply(this, arguments);
2244
2250
  }
2245
2251
 
@@ -2282,7 +2288,7 @@ var Channel = /*#__PURE__*/function () {
2282
2288
  }, _callee16, this);
2283
2289
  }));
2284
2290
 
2285
- function addModerators(_x13, _x14) {
2291
+ function addModerators(_x14, _x15) {
2286
2292
  return _addModerators.apply(this, arguments);
2287
2293
  }
2288
2294
 
@@ -2325,7 +2331,7 @@ var Channel = /*#__PURE__*/function () {
2325
2331
  }, _callee17, this);
2326
2332
  }));
2327
2333
 
2328
- function assignRoles(_x15, _x16) {
2334
+ function assignRoles(_x16, _x17) {
2329
2335
  return _assignRoles.apply(this, arguments);
2330
2336
  }
2331
2337
 
@@ -2368,7 +2374,7 @@ var Channel = /*#__PURE__*/function () {
2368
2374
  }, _callee18, this);
2369
2375
  }));
2370
2376
 
2371
- function inviteMembers(_x17, _x18) {
2377
+ function inviteMembers(_x18, _x19) {
2372
2378
  return _inviteMembers.apply(this, arguments);
2373
2379
  }
2374
2380
 
@@ -2411,7 +2417,7 @@ var Channel = /*#__PURE__*/function () {
2411
2417
  }, _callee19, this);
2412
2418
  }));
2413
2419
 
2414
- function removeMembers(_x19, _x20) {
2420
+ function removeMembers(_x20, _x21) {
2415
2421
  return _removeMembers.apply(this, arguments);
2416
2422
  }
2417
2423
 
@@ -2454,7 +2460,7 @@ var Channel = /*#__PURE__*/function () {
2454
2460
  }, _callee20, this);
2455
2461
  }));
2456
2462
 
2457
- function demoteModerators(_x21, _x22) {
2463
+ function demoteModerators(_x22, _x23) {
2458
2464
  return _demoteModerators.apply(this, arguments);
2459
2465
  }
2460
2466
 
@@ -2492,7 +2498,7 @@ var Channel = /*#__PURE__*/function () {
2492
2498
  }, _callee21, this);
2493
2499
  }));
2494
2500
 
2495
- function _update(_x23) {
2501
+ function _update(_x24) {
2496
2502
  return _update3.apply(this, arguments);
2497
2503
  }
2498
2504
 
@@ -2665,7 +2671,7 @@ var Channel = /*#__PURE__*/function () {
2665
2671
  }, _callee24, this);
2666
2672
  }));
2667
2673
 
2668
- function keystroke(_x24) {
2674
+ function keystroke(_x25) {
2669
2675
  return _keystroke.apply(this, arguments);
2670
2676
  }
2671
2677
 
@@ -2711,7 +2717,7 @@ var Channel = /*#__PURE__*/function () {
2711
2717
  }, _callee25, this);
2712
2718
  }));
2713
2719
 
2714
- function stopTyping(_x25) {
2720
+ function stopTyping(_x26) {
2715
2721
  return _stopTyping.apply(this, arguments);
2716
2722
  }
2717
2723
 
@@ -2834,7 +2840,7 @@ var Channel = /*#__PURE__*/function () {
2834
2840
  }, _callee27, this);
2835
2841
  }));
2836
2842
 
2837
- function markUnread(_x26) {
2843
+ function markUnread(_x27) {
2838
2844
  return _markUnread.apply(this, arguments);
2839
2845
  }
2840
2846
 
@@ -2913,7 +2919,7 @@ var Channel = /*#__PURE__*/function () {
2913
2919
  }, _callee28, this);
2914
2920
  }));
2915
2921
 
2916
- function watch(_x27) {
2922
+ function watch(_x28) {
2917
2923
  return _watch.apply(this, arguments);
2918
2924
  }
2919
2925
 
@@ -3000,7 +3006,7 @@ var Channel = /*#__PURE__*/function () {
3000
3006
  }, _callee30, this);
3001
3007
  }));
3002
3008
 
3003
- function getReplies(_x28, _x29) {
3009
+ function getReplies(_x29, _x30) {
3004
3010
  return _getReplies.apply(this, arguments);
3005
3011
  }
3006
3012
 
@@ -3044,7 +3050,7 @@ var Channel = /*#__PURE__*/function () {
3044
3050
  }, _callee31, this);
3045
3051
  }));
3046
3052
 
3047
- function getPinnedMessages(_x30) {
3053
+ function getPinnedMessages(_x31) {
3048
3054
  return _getPinnedMessages.apply(this, arguments);
3049
3055
  }
3050
3056
 
@@ -3167,6 +3173,7 @@ var Channel = /*#__PURE__*/function () {
3167
3173
  * create - Creates a new channel
3168
3174
  *
3169
3175
  * @return {Promise<QueryChannelAPIResponse<StreamChatGenerics>>} The Server Response
3176
+ *
3170
3177
  */
3171
3178
 
3172
3179
  }, {
@@ -3260,7 +3267,7 @@ var Channel = /*#__PURE__*/function () {
3260
3267
  }, _callee32, this);
3261
3268
  }));
3262
3269
 
3263
- function query(_x31) {
3270
+ function query(_x32) {
3264
3271
  return _query.apply(this, arguments);
3265
3272
  }
3266
3273
 
@@ -3301,7 +3308,7 @@ var Channel = /*#__PURE__*/function () {
3301
3308
  }, _callee33, this);
3302
3309
  }));
3303
3310
 
3304
- function banUser(_x32, _x33) {
3311
+ function banUser(_x33, _x34) {
3305
3312
  return _banUser.apply(this, arguments);
3306
3313
  }
3307
3314
 
@@ -3432,7 +3439,7 @@ var Channel = /*#__PURE__*/function () {
3432
3439
  }, _callee36, this);
3433
3440
  }));
3434
3441
 
3435
- function unbanUser(_x34) {
3442
+ function unbanUser(_x35) {
3436
3443
  return _unbanUser.apply(this, arguments);
3437
3444
  }
3438
3445
 
@@ -3473,7 +3480,7 @@ var Channel = /*#__PURE__*/function () {
3473
3480
  }, _callee37, this);
3474
3481
  }));
3475
3482
 
3476
- function shadowBan(_x35, _x36) {
3483
+ function shadowBan(_x36, _x37) {
3477
3484
  return _shadowBan.apply(this, arguments);
3478
3485
  }
3479
3486
 
@@ -3513,7 +3520,7 @@ var Channel = /*#__PURE__*/function () {
3513
3520
  }, _callee38, this);
3514
3521
  }));
3515
3522
 
3516
- function removeShadowBan(_x37) {
3523
+ function removeShadowBan(_x38) {
3517
3524
  return _removeShadowBan.apply(this, arguments);
3518
3525
  }
3519
3526
 
@@ -3548,7 +3555,7 @@ var Channel = /*#__PURE__*/function () {
3548
3555
  }, _callee39, this);
3549
3556
  }));
3550
3557
 
3551
- function createCall(_x38) {
3558
+ function createCall(_x39) {
3552
3559
  return _createCall.apply(this, arguments);
3553
3560
  }
3554
3561
 
@@ -10039,7 +10046,7 @@ var StreamChat = /*#__PURE__*/function () {
10039
10046
  }, {
10040
10047
  key: "getUserAgent",
10041
10048
  value: function getUserAgent() {
10042
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.4.1");
10049
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.5.0");
10043
10050
  }
10044
10051
  }, {
10045
10052
  key: "setUserAgent",