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.es.js +55 -48
- 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 +55 -48
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +55 -48
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +55 -48
- package/dist/index.js.map +1 -1
- package/dist/types/channel.d.ts +3 -1
- package/dist/types/channel.d.ts.map +1 -1
- package/dist/types/types.d.ts +2 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/channel.ts +6 -3
- package/src/types.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -1415,30 +1415,36 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1415
1415
|
|
|
1416
1416
|
_defineProperty__default['default'](this, "disconnected", void 0);
|
|
1417
1417
|
|
|
1418
|
-
_defineProperty__default['default'](this, "create", /*#__PURE__*/
|
|
1419
|
-
var options
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1418
|
+
_defineProperty__default['default'](this, "create", /*#__PURE__*/function () {
|
|
1419
|
+
var _ref = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(options) {
|
|
1420
|
+
var defaultOptions;
|
|
1421
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) {
|
|
1422
|
+
while (1) {
|
|
1423
|
+
switch (_context.prev = _context.next) {
|
|
1424
|
+
case 0:
|
|
1425
|
+
defaultOptions = _objectSpread$5(_objectSpread$5({}, options), {}, {
|
|
1426
|
+
watch: false,
|
|
1427
|
+
state: false,
|
|
1428
|
+
presence: false
|
|
1429
|
+
});
|
|
1430
|
+
_context.next = 3;
|
|
1431
|
+
return _this.query(defaultOptions, 'latest');
|
|
1431
1432
|
|
|
1432
|
-
|
|
1433
|
-
|
|
1433
|
+
case 3:
|
|
1434
|
+
return _context.abrupt("return", _context.sent);
|
|
1434
1435
|
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1436
|
+
case 4:
|
|
1437
|
+
case "end":
|
|
1438
|
+
return _context.stop();
|
|
1439
|
+
}
|
|
1438
1440
|
}
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1441
|
+
}, _callee);
|
|
1442
|
+
}));
|
|
1443
|
+
|
|
1444
|
+
return function (_x) {
|
|
1445
|
+
return _ref.apply(this, arguments);
|
|
1446
|
+
};
|
|
1447
|
+
}());
|
|
1442
1448
|
|
|
1443
1449
|
_defineProperty__default['default'](this, "_callChannelListeners", function (event) {
|
|
1444
1450
|
var channel = _this; // gather and call the listeners
|
|
@@ -1568,7 +1574,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1568
1574
|
}, _callee2, this);
|
|
1569
1575
|
}));
|
|
1570
1576
|
|
|
1571
|
-
function sendMessage(
|
|
1577
|
+
function sendMessage(_x2, _x3) {
|
|
1572
1578
|
return _sendMessage.apply(this, arguments);
|
|
1573
1579
|
}
|
|
1574
1580
|
|
|
@@ -1632,7 +1638,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1632
1638
|
}, _callee3, this);
|
|
1633
1639
|
}));
|
|
1634
1640
|
|
|
1635
|
-
function sendEvent(
|
|
1641
|
+
function sendEvent(_x4) {
|
|
1636
1642
|
return _sendEvent.apply(this, arguments);
|
|
1637
1643
|
}
|
|
1638
1644
|
|
|
@@ -1720,7 +1726,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1720
1726
|
}, _callee4, this);
|
|
1721
1727
|
}));
|
|
1722
1728
|
|
|
1723
|
-
function search(
|
|
1729
|
+
function search(_x5) {
|
|
1724
1730
|
return _search.apply(this, arguments);
|
|
1725
1731
|
}
|
|
1726
1732
|
|
|
@@ -1786,7 +1792,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1786
1792
|
}, _callee5, this);
|
|
1787
1793
|
}));
|
|
1788
1794
|
|
|
1789
|
-
function queryMembers(
|
|
1795
|
+
function queryMembers(_x6) {
|
|
1790
1796
|
return _queryMembers.apply(this, arguments);
|
|
1791
1797
|
}
|
|
1792
1798
|
|
|
@@ -1842,7 +1848,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1842
1848
|
}, _callee6, this);
|
|
1843
1849
|
}));
|
|
1844
1850
|
|
|
1845
|
-
function sendReaction(
|
|
1851
|
+
function sendReaction(_x7, _x8, _x9) {
|
|
1846
1852
|
return _sendReaction.apply(this, arguments);
|
|
1847
1853
|
}
|
|
1848
1854
|
|
|
@@ -1963,7 +1969,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1963
1969
|
}, _callee8, this);
|
|
1964
1970
|
}));
|
|
1965
1971
|
|
|
1966
|
-
function updatePartial(
|
|
1972
|
+
function updatePartial(_x10) {
|
|
1967
1973
|
return _updatePartial.apply(this, arguments);
|
|
1968
1974
|
}
|
|
1969
1975
|
|
|
@@ -2003,7 +2009,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2003
2009
|
}, _callee9, this);
|
|
2004
2010
|
}));
|
|
2005
2011
|
|
|
2006
|
-
function enableSlowMode(
|
|
2012
|
+
function enableSlowMode(_x11) {
|
|
2007
2013
|
return _enableSlowMode.apply(this, arguments);
|
|
2008
2014
|
}
|
|
2009
2015
|
|
|
@@ -2243,7 +2249,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2243
2249
|
}, _callee15, this);
|
|
2244
2250
|
}));
|
|
2245
2251
|
|
|
2246
|
-
function addMembers(
|
|
2252
|
+
function addMembers(_x12, _x13) {
|
|
2247
2253
|
return _addMembers.apply(this, arguments);
|
|
2248
2254
|
}
|
|
2249
2255
|
|
|
@@ -2286,7 +2292,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2286
2292
|
}, _callee16, this);
|
|
2287
2293
|
}));
|
|
2288
2294
|
|
|
2289
|
-
function addModerators(
|
|
2295
|
+
function addModerators(_x14, _x15) {
|
|
2290
2296
|
return _addModerators.apply(this, arguments);
|
|
2291
2297
|
}
|
|
2292
2298
|
|
|
@@ -2329,7 +2335,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2329
2335
|
}, _callee17, this);
|
|
2330
2336
|
}));
|
|
2331
2337
|
|
|
2332
|
-
function assignRoles(
|
|
2338
|
+
function assignRoles(_x16, _x17) {
|
|
2333
2339
|
return _assignRoles.apply(this, arguments);
|
|
2334
2340
|
}
|
|
2335
2341
|
|
|
@@ -2372,7 +2378,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2372
2378
|
}, _callee18, this);
|
|
2373
2379
|
}));
|
|
2374
2380
|
|
|
2375
|
-
function inviteMembers(
|
|
2381
|
+
function inviteMembers(_x18, _x19) {
|
|
2376
2382
|
return _inviteMembers.apply(this, arguments);
|
|
2377
2383
|
}
|
|
2378
2384
|
|
|
@@ -2415,7 +2421,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2415
2421
|
}, _callee19, this);
|
|
2416
2422
|
}));
|
|
2417
2423
|
|
|
2418
|
-
function removeMembers(
|
|
2424
|
+
function removeMembers(_x20, _x21) {
|
|
2419
2425
|
return _removeMembers.apply(this, arguments);
|
|
2420
2426
|
}
|
|
2421
2427
|
|
|
@@ -2458,7 +2464,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2458
2464
|
}, _callee20, this);
|
|
2459
2465
|
}));
|
|
2460
2466
|
|
|
2461
|
-
function demoteModerators(
|
|
2467
|
+
function demoteModerators(_x22, _x23) {
|
|
2462
2468
|
return _demoteModerators.apply(this, arguments);
|
|
2463
2469
|
}
|
|
2464
2470
|
|
|
@@ -2496,7 +2502,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2496
2502
|
}, _callee21, this);
|
|
2497
2503
|
}));
|
|
2498
2504
|
|
|
2499
|
-
function _update(
|
|
2505
|
+
function _update(_x24) {
|
|
2500
2506
|
return _update3.apply(this, arguments);
|
|
2501
2507
|
}
|
|
2502
2508
|
|
|
@@ -2669,7 +2675,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2669
2675
|
}, _callee24, this);
|
|
2670
2676
|
}));
|
|
2671
2677
|
|
|
2672
|
-
function keystroke(
|
|
2678
|
+
function keystroke(_x25) {
|
|
2673
2679
|
return _keystroke.apply(this, arguments);
|
|
2674
2680
|
}
|
|
2675
2681
|
|
|
@@ -2715,7 +2721,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2715
2721
|
}, _callee25, this);
|
|
2716
2722
|
}));
|
|
2717
2723
|
|
|
2718
|
-
function stopTyping(
|
|
2724
|
+
function stopTyping(_x26) {
|
|
2719
2725
|
return _stopTyping.apply(this, arguments);
|
|
2720
2726
|
}
|
|
2721
2727
|
|
|
@@ -2838,7 +2844,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2838
2844
|
}, _callee27, this);
|
|
2839
2845
|
}));
|
|
2840
2846
|
|
|
2841
|
-
function markUnread(
|
|
2847
|
+
function markUnread(_x27) {
|
|
2842
2848
|
return _markUnread.apply(this, arguments);
|
|
2843
2849
|
}
|
|
2844
2850
|
|
|
@@ -2917,7 +2923,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2917
2923
|
}, _callee28, this);
|
|
2918
2924
|
}));
|
|
2919
2925
|
|
|
2920
|
-
function watch(
|
|
2926
|
+
function watch(_x28) {
|
|
2921
2927
|
return _watch.apply(this, arguments);
|
|
2922
2928
|
}
|
|
2923
2929
|
|
|
@@ -3004,7 +3010,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3004
3010
|
}, _callee30, this);
|
|
3005
3011
|
}));
|
|
3006
3012
|
|
|
3007
|
-
function getReplies(
|
|
3013
|
+
function getReplies(_x29, _x30) {
|
|
3008
3014
|
return _getReplies.apply(this, arguments);
|
|
3009
3015
|
}
|
|
3010
3016
|
|
|
@@ -3048,7 +3054,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3048
3054
|
}, _callee31, this);
|
|
3049
3055
|
}));
|
|
3050
3056
|
|
|
3051
|
-
function getPinnedMessages(
|
|
3057
|
+
function getPinnedMessages(_x31) {
|
|
3052
3058
|
return _getPinnedMessages.apply(this, arguments);
|
|
3053
3059
|
}
|
|
3054
3060
|
|
|
@@ -3171,6 +3177,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3171
3177
|
* create - Creates a new channel
|
|
3172
3178
|
*
|
|
3173
3179
|
* @return {Promise<QueryChannelAPIResponse<StreamChatGenerics>>} The Server Response
|
|
3180
|
+
*
|
|
3174
3181
|
*/
|
|
3175
3182
|
|
|
3176
3183
|
}, {
|
|
@@ -3264,7 +3271,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3264
3271
|
}, _callee32, this);
|
|
3265
3272
|
}));
|
|
3266
3273
|
|
|
3267
|
-
function query(
|
|
3274
|
+
function query(_x32) {
|
|
3268
3275
|
return _query.apply(this, arguments);
|
|
3269
3276
|
}
|
|
3270
3277
|
|
|
@@ -3305,7 +3312,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3305
3312
|
}, _callee33, this);
|
|
3306
3313
|
}));
|
|
3307
3314
|
|
|
3308
|
-
function banUser(
|
|
3315
|
+
function banUser(_x33, _x34) {
|
|
3309
3316
|
return _banUser.apply(this, arguments);
|
|
3310
3317
|
}
|
|
3311
3318
|
|
|
@@ -3436,7 +3443,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3436
3443
|
}, _callee36, this);
|
|
3437
3444
|
}));
|
|
3438
3445
|
|
|
3439
|
-
function unbanUser(
|
|
3446
|
+
function unbanUser(_x35) {
|
|
3440
3447
|
return _unbanUser.apply(this, arguments);
|
|
3441
3448
|
}
|
|
3442
3449
|
|
|
@@ -3477,7 +3484,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3477
3484
|
}, _callee37, this);
|
|
3478
3485
|
}));
|
|
3479
3486
|
|
|
3480
|
-
function shadowBan(
|
|
3487
|
+
function shadowBan(_x36, _x37) {
|
|
3481
3488
|
return _shadowBan.apply(this, arguments);
|
|
3482
3489
|
}
|
|
3483
3490
|
|
|
@@ -3517,7 +3524,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3517
3524
|
}, _callee38, this);
|
|
3518
3525
|
}));
|
|
3519
3526
|
|
|
3520
|
-
function removeShadowBan(
|
|
3527
|
+
function removeShadowBan(_x38) {
|
|
3521
3528
|
return _removeShadowBan.apply(this, arguments);
|
|
3522
3529
|
}
|
|
3523
3530
|
|
|
@@ -3552,7 +3559,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3552
3559
|
}, _callee39, this);
|
|
3553
3560
|
}));
|
|
3554
3561
|
|
|
3555
|
-
function createCall(
|
|
3562
|
+
function createCall(_x39) {
|
|
3556
3563
|
return _createCall.apply(this, arguments);
|
|
3557
3564
|
}
|
|
3558
3565
|
|
|
@@ -10045,7 +10052,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10045
10052
|
}, {
|
|
10046
10053
|
key: "getUserAgent",
|
|
10047
10054
|
value: function getUserAgent() {
|
|
10048
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
10055
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.5.0");
|
|
10049
10056
|
}
|
|
10050
10057
|
}, {
|
|
10051
10058
|
key: "setUserAgent",
|