stream-chat 8.27.0 → 8.28.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 +20 -17
- 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 +20 -17
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +20 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +20 -17
- package/dist/index.js.map +1 -1
- package/dist/types/channel.d.ts +4 -2
- package/dist/types/channel.d.ts.map +1 -1
- package/dist/types/client.d.ts +2 -0
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/types.d.ts +7 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/channel.ts +4 -0
- package/src/types.ts +8 -0
package/dist/browser.es.js
CHANGED
|
@@ -3123,16 +3123,19 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3123
3123
|
}, {
|
|
3124
3124
|
key: "getReplies",
|
|
3125
3125
|
value: function () {
|
|
3126
|
-
var _getReplies = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(parent_id, options) {
|
|
3127
|
-
var data;
|
|
3126
|
+
var _getReplies = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(parent_id, options, sort) {
|
|
3127
|
+
var normalizedSort, data;
|
|
3128
3128
|
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
3129
3129
|
while (1) {
|
|
3130
3130
|
switch (_context30.prev = _context30.next) {
|
|
3131
3131
|
case 0:
|
|
3132
|
-
|
|
3133
|
-
|
|
3132
|
+
normalizedSort = sort ? normalizeQuerySort(sort) : undefined;
|
|
3133
|
+
_context30.next = 3;
|
|
3134
|
+
return this.getClient().get(this.getClient().baseURL + "/messages/".concat(parent_id, "/replies"), _objectSpread$6({
|
|
3135
|
+
sort: normalizedSort
|
|
3136
|
+
}, options));
|
|
3134
3137
|
|
|
3135
|
-
case
|
|
3138
|
+
case 3:
|
|
3136
3139
|
data = _context30.sent;
|
|
3137
3140
|
|
|
3138
3141
|
// add any messages to our thread state
|
|
@@ -3142,7 +3145,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3142
3145
|
|
|
3143
3146
|
return _context30.abrupt("return", data);
|
|
3144
3147
|
|
|
3145
|
-
case
|
|
3148
|
+
case 6:
|
|
3146
3149
|
case "end":
|
|
3147
3150
|
return _context30.stop();
|
|
3148
3151
|
}
|
|
@@ -3150,7 +3153,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3150
3153
|
}, _callee30, this);
|
|
3151
3154
|
}));
|
|
3152
3155
|
|
|
3153
|
-
function getReplies(_x31, _x32) {
|
|
3156
|
+
function getReplies(_x31, _x32, _x33) {
|
|
3154
3157
|
return _getReplies.apply(this, arguments);
|
|
3155
3158
|
}
|
|
3156
3159
|
|
|
@@ -3194,7 +3197,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3194
3197
|
}, _callee31, this);
|
|
3195
3198
|
}));
|
|
3196
3199
|
|
|
3197
|
-
function getPinnedMessages(
|
|
3200
|
+
function getPinnedMessages(_x34) {
|
|
3198
3201
|
return _getPinnedMessages.apply(this, arguments);
|
|
3199
3202
|
}
|
|
3200
3203
|
|
|
@@ -3424,7 +3427,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3424
3427
|
}, _callee32, this);
|
|
3425
3428
|
}));
|
|
3426
3429
|
|
|
3427
|
-
function query(
|
|
3430
|
+
function query(_x35) {
|
|
3428
3431
|
return _query.apply(this, arguments);
|
|
3429
3432
|
}
|
|
3430
3433
|
|
|
@@ -3465,7 +3468,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3465
3468
|
}, _callee33, this);
|
|
3466
3469
|
}));
|
|
3467
3470
|
|
|
3468
|
-
function banUser(
|
|
3471
|
+
function banUser(_x36, _x37) {
|
|
3469
3472
|
return _banUser.apply(this, arguments);
|
|
3470
3473
|
}
|
|
3471
3474
|
|
|
@@ -3596,7 +3599,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3596
3599
|
}, _callee36, this);
|
|
3597
3600
|
}));
|
|
3598
3601
|
|
|
3599
|
-
function unbanUser(
|
|
3602
|
+
function unbanUser(_x38) {
|
|
3600
3603
|
return _unbanUser.apply(this, arguments);
|
|
3601
3604
|
}
|
|
3602
3605
|
|
|
@@ -3637,7 +3640,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3637
3640
|
}, _callee37, this);
|
|
3638
3641
|
}));
|
|
3639
3642
|
|
|
3640
|
-
function shadowBan(
|
|
3643
|
+
function shadowBan(_x39, _x40) {
|
|
3641
3644
|
return _shadowBan.apply(this, arguments);
|
|
3642
3645
|
}
|
|
3643
3646
|
|
|
@@ -3677,7 +3680,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3677
3680
|
}, _callee38, this);
|
|
3678
3681
|
}));
|
|
3679
3682
|
|
|
3680
|
-
function removeShadowBan(
|
|
3683
|
+
function removeShadowBan(_x41) {
|
|
3681
3684
|
return _removeShadowBan.apply(this, arguments);
|
|
3682
3685
|
}
|
|
3683
3686
|
|
|
@@ -3712,7 +3715,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3712
3715
|
}, _callee39, this);
|
|
3713
3716
|
}));
|
|
3714
3717
|
|
|
3715
|
-
function createCall(
|
|
3718
|
+
function createCall(_x42) {
|
|
3716
3719
|
return _createCall.apply(this, arguments);
|
|
3717
3720
|
}
|
|
3718
3721
|
|
|
@@ -3747,7 +3750,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3747
3750
|
}, _callee40, this);
|
|
3748
3751
|
}));
|
|
3749
3752
|
|
|
3750
|
-
function vote(
|
|
3753
|
+
function vote(_x43, _x44, _x45) {
|
|
3751
3754
|
return _vote2.apply(this, arguments);
|
|
3752
3755
|
}
|
|
3753
3756
|
|
|
@@ -3775,7 +3778,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3775
3778
|
}, _callee41, this);
|
|
3776
3779
|
}));
|
|
3777
3780
|
|
|
3778
|
-
function removeVote(
|
|
3781
|
+
function removeVote(_x46, _x47, _x48) {
|
|
3779
3782
|
return _removeVote.apply(this, arguments);
|
|
3780
3783
|
}
|
|
3781
3784
|
|
|
@@ -11392,7 +11395,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11392
11395
|
}, {
|
|
11393
11396
|
key: "getUserAgent",
|
|
11394
11397
|
value: function getUserAgent() {
|
|
11395
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
11398
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.28.0");
|
|
11396
11399
|
}
|
|
11397
11400
|
}, {
|
|
11398
11401
|
key: "setUserAgent",
|