stream-chat-react 10.8.1 → 10.8.3
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.full-bundle.js +99 -114
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +5 -5
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/ChannelSearch/hooks/useChannelSearch.js +5 -5
- package/dist/css/index.css +1 -1
- package/dist/css/index.css.map +1 -1
- package/dist/css/v2/index.css +1 -1
- package/dist/css/v2/index.css.map +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/css/v2/index.layout.css.map +1 -1
- package/dist/i18n/Streami18n.d.ts +11 -1
- package/dist/i18n/Streami18n.d.ts.map +1 -1
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/scss/Card.scss +27 -2
- package/dist/scss/v2/Channel/Channel-layout.scss +4 -0
- package/dist/scss/v2/Thread/Thread-layout.scss +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -6071,7 +6071,6 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
6071
6071
|
"default": obj
|
|
6072
6072
|
};
|
|
6073
6073
|
}
|
|
6074
|
-
|
|
6075
6074
|
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6076
6075
|
} (interopRequireDefault));
|
|
6077
6076
|
|
|
@@ -6089,7 +6088,6 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
6089
6088
|
throw new TypeError("Cannot call a class as a function");
|
|
6090
6089
|
}
|
|
6091
6090
|
}
|
|
6092
|
-
|
|
6093
6091
|
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6094
6092
|
} (classCallCheck));
|
|
6095
6093
|
return classCallCheck.exports;
|
|
@@ -6097,6 +6095,69 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
6097
6095
|
|
|
6098
6096
|
var createClass = {exports: {}};
|
|
6099
6097
|
|
|
6098
|
+
var toPropertyKey = {exports: {}};
|
|
6099
|
+
|
|
6100
|
+
var _typeof$3 = {exports: {}};
|
|
6101
|
+
|
|
6102
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
6103
|
+
(function (module) {
|
|
6104
|
+
function _typeof(obj) {
|
|
6105
|
+
"@babel/helpers - typeof";
|
|
6106
|
+
|
|
6107
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
6108
|
+
return typeof obj;
|
|
6109
|
+
} : function (obj) {
|
|
6110
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
6111
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
6112
|
+
}
|
|
6113
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6114
|
+
} (_typeof$3));
|
|
6115
|
+
|
|
6116
|
+
var _typeof$2 = /*@__PURE__*/getDefaultExportFromCjs(_typeof$3.exports);
|
|
6117
|
+
|
|
6118
|
+
var toPrimitive = {exports: {}};
|
|
6119
|
+
|
|
6120
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
6121
|
+
var hasRequiredToPrimitive;
|
|
6122
|
+
|
|
6123
|
+
function requireToPrimitive () {
|
|
6124
|
+
if (hasRequiredToPrimitive) return toPrimitive.exports;
|
|
6125
|
+
hasRequiredToPrimitive = 1;
|
|
6126
|
+
(function (module) {
|
|
6127
|
+
var _typeof = _typeof$3.exports["default"];
|
|
6128
|
+
function _toPrimitive(input, hint) {
|
|
6129
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
6130
|
+
var prim = input[Symbol.toPrimitive];
|
|
6131
|
+
if (prim !== undefined) {
|
|
6132
|
+
var res = prim.call(input, hint || "default");
|
|
6133
|
+
if (_typeof(res) !== "object") return res;
|
|
6134
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6135
|
+
}
|
|
6136
|
+
return (hint === "string" ? String : Number)(input);
|
|
6137
|
+
}
|
|
6138
|
+
module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6139
|
+
} (toPrimitive));
|
|
6140
|
+
return toPrimitive.exports;
|
|
6141
|
+
}
|
|
6142
|
+
|
|
6143
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
6144
|
+
var hasRequiredToPropertyKey;
|
|
6145
|
+
|
|
6146
|
+
function requireToPropertyKey () {
|
|
6147
|
+
if (hasRequiredToPropertyKey) return toPropertyKey.exports;
|
|
6148
|
+
hasRequiredToPropertyKey = 1;
|
|
6149
|
+
(function (module) {
|
|
6150
|
+
var _typeof = _typeof$3.exports["default"];
|
|
6151
|
+
var toPrimitive = requireToPrimitive();
|
|
6152
|
+
function _toPropertyKey(arg) {
|
|
6153
|
+
var key = toPrimitive(arg, "string");
|
|
6154
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
6155
|
+
}
|
|
6156
|
+
module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6157
|
+
} (toPropertyKey));
|
|
6158
|
+
return toPropertyKey.exports;
|
|
6159
|
+
}
|
|
6160
|
+
|
|
6100
6161
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
6101
6162
|
var hasRequiredCreateClass;
|
|
6102
6163
|
|
|
@@ -6104,16 +6165,16 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
6104
6165
|
if (hasRequiredCreateClass) return createClass.exports;
|
|
6105
6166
|
hasRequiredCreateClass = 1;
|
|
6106
6167
|
(function (module) {
|
|
6168
|
+
var toPropertyKey = requireToPropertyKey();
|
|
6107
6169
|
function _defineProperties(target, props) {
|
|
6108
6170
|
for (var i = 0; i < props.length; i++) {
|
|
6109
6171
|
var descriptor = props[i];
|
|
6110
6172
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
6111
6173
|
descriptor.configurable = true;
|
|
6112
6174
|
if ("value" in descriptor) descriptor.writable = true;
|
|
6113
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6175
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
|
6114
6176
|
}
|
|
6115
6177
|
}
|
|
6116
|
-
|
|
6117
6178
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
6118
6179
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
6119
6180
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
@@ -6122,7 +6183,6 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
6122
6183
|
});
|
|
6123
6184
|
return Constructor;
|
|
6124
6185
|
}
|
|
6125
|
-
|
|
6126
6186
|
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6127
6187
|
} (createClass));
|
|
6128
6188
|
return createClass.exports;
|
|
@@ -6130,25 +6190,6 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
6130
6190
|
|
|
6131
6191
|
var utils = {};
|
|
6132
6192
|
|
|
6133
|
-
var _typeof$3 = {exports: {}};
|
|
6134
|
-
|
|
6135
|
-
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
6136
|
-
(function (module) {
|
|
6137
|
-
function _typeof(obj) {
|
|
6138
|
-
"@babel/helpers - typeof";
|
|
6139
|
-
|
|
6140
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
6141
|
-
return typeof obj;
|
|
6142
|
-
} : function (obj) {
|
|
6143
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
6144
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
6145
|
-
}
|
|
6146
|
-
|
|
6147
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6148
|
-
} (_typeof$3));
|
|
6149
|
-
|
|
6150
|
-
var _typeof$2 = /*@__PURE__*/getDefaultExportFromCjs(_typeof$3.exports);
|
|
6151
|
-
|
|
6152
6193
|
var data = {};
|
|
6153
6194
|
|
|
6154
6195
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
@@ -15591,7 +15632,9 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
15591
15632
|
if (hasRequiredDefineProperty) return defineProperty$1.exports;
|
|
15592
15633
|
hasRequiredDefineProperty = 1;
|
|
15593
15634
|
(function (module) {
|
|
15635
|
+
var toPropertyKey = requireToPropertyKey();
|
|
15594
15636
|
function _defineProperty(obj, key, value) {
|
|
15637
|
+
key = toPropertyKey(key);
|
|
15595
15638
|
if (key in obj) {
|
|
15596
15639
|
Object.defineProperty(obj, key, {
|
|
15597
15640
|
value: value,
|
|
@@ -15602,10 +15645,8 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
15602
15645
|
} else {
|
|
15603
15646
|
obj[key] = value;
|
|
15604
15647
|
}
|
|
15605
|
-
|
|
15606
15648
|
return obj;
|
|
15607
15649
|
}
|
|
15608
|
-
|
|
15609
15650
|
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15610
15651
|
} (defineProperty$1));
|
|
15611
15652
|
return defineProperty$1.exports;
|
|
@@ -15622,7 +15663,6 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
15622
15663
|
function _arrayWithHoles(arr) {
|
|
15623
15664
|
if (Array.isArray(arr)) return arr;
|
|
15624
15665
|
}
|
|
15625
|
-
|
|
15626
15666
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15627
15667
|
} (arrayWithHoles));
|
|
15628
15668
|
|
|
@@ -15631,35 +15671,32 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
15631
15671
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
15632
15672
|
(function (module) {
|
|
15633
15673
|
function _iterableToArrayLimit(arr, i) {
|
|
15634
|
-
var _i =
|
|
15635
|
-
|
|
15636
|
-
|
|
15637
|
-
|
|
15638
|
-
|
|
15639
|
-
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
try {
|
|
15644
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
15645
|
-
_arr.push(_s.value);
|
|
15646
|
-
|
|
15647
|
-
if (i && _arr.length === i) break;
|
|
15648
|
-
}
|
|
15649
|
-
} catch (err) {
|
|
15650
|
-
_d = true;
|
|
15651
|
-
_e = err;
|
|
15652
|
-
} finally {
|
|
15674
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15675
|
+
if (null != _i) {
|
|
15676
|
+
var _s,
|
|
15677
|
+
_e,
|
|
15678
|
+
_x,
|
|
15679
|
+
_r,
|
|
15680
|
+
_arr = [],
|
|
15681
|
+
_n = !0,
|
|
15682
|
+
_d = !1;
|
|
15653
15683
|
try {
|
|
15654
|
-
if (
|
|
15684
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
15685
|
+
if (Object(_i) !== _i) return;
|
|
15686
|
+
_n = !1;
|
|
15687
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
15688
|
+
} catch (err) {
|
|
15689
|
+
_d = !0, _e = err;
|
|
15655
15690
|
} finally {
|
|
15656
|
-
|
|
15691
|
+
try {
|
|
15692
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
15693
|
+
} finally {
|
|
15694
|
+
if (_d) throw _e;
|
|
15695
|
+
}
|
|
15657
15696
|
}
|
|
15697
|
+
return _arr;
|
|
15658
15698
|
}
|
|
15659
|
-
|
|
15660
|
-
return _arr;
|
|
15661
15699
|
}
|
|
15662
|
-
|
|
15663
15700
|
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15664
15701
|
} (iterableToArrayLimit));
|
|
15665
15702
|
|
|
@@ -15671,21 +15708,15 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
15671
15708
|
(function (module) {
|
|
15672
15709
|
function _arrayLikeToArray(arr, len) {
|
|
15673
15710
|
if (len == null || len > arr.length) len = arr.length;
|
|
15674
|
-
|
|
15675
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
15676
|
-
arr2[i] = arr[i];
|
|
15677
|
-
}
|
|
15678
|
-
|
|
15711
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
15679
15712
|
return arr2;
|
|
15680
15713
|
}
|
|
15681
|
-
|
|
15682
15714
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15683
15715
|
} (arrayLikeToArray));
|
|
15684
15716
|
|
|
15685
15717
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
15686
15718
|
(function (module) {
|
|
15687
15719
|
var arrayLikeToArray$1 = arrayLikeToArray.exports;
|
|
15688
|
-
|
|
15689
15720
|
function _unsupportedIterableToArray(o, minLen) {
|
|
15690
15721
|
if (!o) return;
|
|
15691
15722
|
if (typeof o === "string") return arrayLikeToArray$1(o, minLen);
|
|
@@ -15694,7 +15725,6 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
15694
15725
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
15695
15726
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray$1(o, minLen);
|
|
15696
15727
|
}
|
|
15697
|
-
|
|
15698
15728
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15699
15729
|
} (unsupportedIterableToArray));
|
|
15700
15730
|
|
|
@@ -15705,24 +15735,18 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
15705
15735
|
function _nonIterableRest() {
|
|
15706
15736
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15707
15737
|
}
|
|
15708
|
-
|
|
15709
15738
|
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15710
15739
|
} (nonIterableRest));
|
|
15711
15740
|
|
|
15712
15741
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
15713
15742
|
(function (module) {
|
|
15714
15743
|
var arrayWithHoles$1 = arrayWithHoles.exports;
|
|
15715
|
-
|
|
15716
15744
|
var iterableToArrayLimit$1 = iterableToArrayLimit.exports;
|
|
15717
|
-
|
|
15718
15745
|
var unsupportedIterableToArray$1 = unsupportedIterableToArray.exports;
|
|
15719
|
-
|
|
15720
15746
|
var nonIterableRest$1 = nonIterableRest.exports;
|
|
15721
|
-
|
|
15722
15747
|
function _slicedToArray(arr, i) {
|
|
15723
15748
|
return arrayWithHoles$1(arr) || iterableToArrayLimit$1(arr, i) || unsupportedIterableToArray$1(arr, i) || nonIterableRest$1();
|
|
15724
15749
|
}
|
|
15725
|
-
|
|
15726
15750
|
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15727
15751
|
} (slicedToArray));
|
|
15728
15752
|
|
|
@@ -37310,31 +37334,25 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37310
37334
|
var target = {};
|
|
37311
37335
|
var sourceKeys = Object.keys(source);
|
|
37312
37336
|
var key, i;
|
|
37313
|
-
|
|
37314
37337
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
37315
37338
|
key = sourceKeys[i];
|
|
37316
37339
|
if (excluded.indexOf(key) >= 0) continue;
|
|
37317
37340
|
target[key] = source[key];
|
|
37318
37341
|
}
|
|
37319
|
-
|
|
37320
37342
|
return target;
|
|
37321
37343
|
}
|
|
37322
|
-
|
|
37323
37344
|
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37324
37345
|
} (objectWithoutPropertiesLoose));
|
|
37325
37346
|
|
|
37326
37347
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
37327
37348
|
(function (module) {
|
|
37328
37349
|
var objectWithoutPropertiesLoose$1 = objectWithoutPropertiesLoose.exports;
|
|
37329
|
-
|
|
37330
37350
|
function _objectWithoutProperties(source, excluded) {
|
|
37331
37351
|
if (source == null) return {};
|
|
37332
37352
|
var target = objectWithoutPropertiesLoose$1(source, excluded);
|
|
37333
37353
|
var key, i;
|
|
37334
|
-
|
|
37335
37354
|
if (Object.getOwnPropertySymbols) {
|
|
37336
37355
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
37337
|
-
|
|
37338
37356
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
37339
37357
|
key = sourceSymbolKeys[i];
|
|
37340
37358
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -37342,10 +37360,8 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37342
37360
|
target[key] = source[key];
|
|
37343
37361
|
}
|
|
37344
37362
|
}
|
|
37345
|
-
|
|
37346
37363
|
return target;
|
|
37347
37364
|
}
|
|
37348
|
-
|
|
37349
37365
|
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37350
37366
|
} (objectWithoutProperties));
|
|
37351
37367
|
|
|
@@ -37361,22 +37377,19 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37361
37377
|
hasRequired_extends = 1;
|
|
37362
37378
|
(function (module) {
|
|
37363
37379
|
function _extends() {
|
|
37364
|
-
module.exports = _extends = Object.assign
|
|
37380
|
+
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
37365
37381
|
for (var i = 1; i < arguments.length; i++) {
|
|
37366
37382
|
var source = arguments[i];
|
|
37367
|
-
|
|
37368
37383
|
for (var key in source) {
|
|
37369
37384
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
37370
37385
|
target[key] = source[key];
|
|
37371
37386
|
}
|
|
37372
37387
|
}
|
|
37373
37388
|
}
|
|
37374
|
-
|
|
37375
37389
|
return target;
|
|
37376
37390
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37377
37391
|
return _extends.apply(this, arguments);
|
|
37378
37392
|
}
|
|
37379
|
-
|
|
37380
37393
|
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37381
37394
|
} (_extends$2));
|
|
37382
37395
|
return _extends$2.exports;
|
|
@@ -37401,10 +37414,8 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37401
37414
|
if (self === void 0) {
|
|
37402
37415
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
37403
37416
|
}
|
|
37404
|
-
|
|
37405
37417
|
return self;
|
|
37406
37418
|
}
|
|
37407
|
-
|
|
37408
37419
|
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37409
37420
|
} (assertThisInitialized));
|
|
37410
37421
|
return assertThisInitialized.exports;
|
|
@@ -37424,13 +37435,12 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37424
37435
|
hasRequiredSetPrototypeOf = 1;
|
|
37425
37436
|
(function (module) {
|
|
37426
37437
|
function _setPrototypeOf(o, p) {
|
|
37427
|
-
module.exports = _setPrototypeOf = Object.setPrototypeOf
|
|
37438
|
+
module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
37428
37439
|
o.__proto__ = p;
|
|
37429
37440
|
return o;
|
|
37430
37441
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37431
37442
|
return _setPrototypeOf(o, p);
|
|
37432
37443
|
}
|
|
37433
|
-
|
|
37434
37444
|
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37435
37445
|
} (setPrototypeOf));
|
|
37436
37446
|
return setPrototypeOf.exports;
|
|
@@ -37444,12 +37454,10 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37444
37454
|
hasRequiredInherits = 1;
|
|
37445
37455
|
(function (module) {
|
|
37446
37456
|
var setPrototypeOf = requireSetPrototypeOf();
|
|
37447
|
-
|
|
37448
37457
|
function _inherits(subClass, superClass) {
|
|
37449
37458
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
37450
37459
|
throw new TypeError("Super expression must either be null or a function");
|
|
37451
37460
|
}
|
|
37452
|
-
|
|
37453
37461
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
37454
37462
|
constructor: {
|
|
37455
37463
|
value: subClass,
|
|
@@ -37462,7 +37470,6 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37462
37470
|
});
|
|
37463
37471
|
if (superClass) setPrototypeOf(subClass, superClass);
|
|
37464
37472
|
}
|
|
37465
|
-
|
|
37466
37473
|
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37467
37474
|
} (inherits$1));
|
|
37468
37475
|
return inherits$1.exports;
|
|
@@ -37480,19 +37487,15 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37480
37487
|
hasRequiredPossibleConstructorReturn = 1;
|
|
37481
37488
|
(function (module) {
|
|
37482
37489
|
var _typeof = _typeof$3.exports["default"];
|
|
37483
|
-
|
|
37484
37490
|
var assertThisInitialized = requireAssertThisInitialized();
|
|
37485
|
-
|
|
37486
37491
|
function _possibleConstructorReturn(self, call) {
|
|
37487
37492
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
37488
37493
|
return call;
|
|
37489
37494
|
} else if (call !== void 0) {
|
|
37490
37495
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
37491
37496
|
}
|
|
37492
|
-
|
|
37493
37497
|
return assertThisInitialized(self);
|
|
37494
37498
|
}
|
|
37495
|
-
|
|
37496
37499
|
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37497
37500
|
} (possibleConstructorReturn));
|
|
37498
37501
|
return possibleConstructorReturn.exports;
|
|
@@ -37510,12 +37513,11 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37510
37513
|
hasRequiredGetPrototypeOf = 1;
|
|
37511
37514
|
(function (module) {
|
|
37512
37515
|
function _getPrototypeOf(o) {
|
|
37513
|
-
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
37516
|
+
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
37514
37517
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
37515
37518
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37516
37519
|
return _getPrototypeOf(o);
|
|
37517
37520
|
}
|
|
37518
|
-
|
|
37519
37521
|
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37520
37522
|
} (getPrototypeOf));
|
|
37521
37523
|
return getPrototypeOf.exports;
|
|
@@ -37524,20 +37526,17 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37524
37526
|
var getPrototypeOfExports = requireGetPrototypeOf();
|
|
37525
37527
|
|
|
37526
37528
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};function _extends$1() {
|
|
37527
|
-
_extends$1 = Object.assign
|
|
37529
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
37528
37530
|
for (var i = 1; i < arguments.length; i++) {
|
|
37529
37531
|
var source = arguments[i];
|
|
37530
|
-
|
|
37531
37532
|
for (var key in source) {
|
|
37532
37533
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
37533
37534
|
target[key] = source[key];
|
|
37534
37535
|
}
|
|
37535
37536
|
}
|
|
37536
37537
|
}
|
|
37537
|
-
|
|
37538
37538
|
return target;
|
|
37539
37539
|
};
|
|
37540
|
-
|
|
37541
37540
|
return _extends$1.apply(this, arguments);
|
|
37542
37541
|
}
|
|
37543
37542
|
|
|
@@ -37546,13 +37545,11 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37546
37545
|
var target = {};
|
|
37547
37546
|
var sourceKeys = Object.keys(source);
|
|
37548
37547
|
var key, i;
|
|
37549
|
-
|
|
37550
37548
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
37551
37549
|
key = sourceKeys[i];
|
|
37552
37550
|
if (excluded.indexOf(key) >= 0) continue;
|
|
37553
37551
|
target[key] = source[key];
|
|
37554
37552
|
}
|
|
37555
|
-
|
|
37556
37553
|
return target;
|
|
37557
37554
|
}
|
|
37558
37555
|
|
|
@@ -48004,7 +48001,7 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
48004
48001
|
};
|
|
48005
48002
|
document.addEventListener('click', clickListener);
|
|
48006
48003
|
return function () { return document.removeEventListener('click', clickListener); };
|
|
48007
|
-
}, [disabled, inputIsFocused]);
|
|
48004
|
+
}, [disabled, inputIsFocused, query, exitSearch, navOpen, clearSearchOnClickOutside]);
|
|
48008
48005
|
React$2.useEffect(function () {
|
|
48009
48006
|
if (!inputRef.current || disabled)
|
|
48010
48007
|
return;
|
|
@@ -48017,7 +48014,7 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
48017
48014
|
var _a;
|
|
48018
48015
|
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('keydown', handleKeyDown);
|
|
48019
48016
|
};
|
|
48020
|
-
}, []);
|
|
48017
|
+
}, [disabled]);
|
|
48021
48018
|
var selectResult = React$2.useCallback(function (result) { return __awaiter$1(void 0, void 0, void 0, function () {
|
|
48022
48019
|
var selectedChannel, newChannel;
|
|
48023
48020
|
return __generator$1(this, function (_a) {
|
|
@@ -48055,7 +48052,7 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
48055
48052
|
return [2 /*return*/];
|
|
48056
48053
|
}
|
|
48057
48054
|
});
|
|
48058
|
-
}); }, [clearSearchOnClickOutside, client, exitSearch, onSelectResult]);
|
|
48055
|
+
}); }, [clearSearchOnClickOutside, client, exitSearch, onSelectResult, setActiveChannel, setChannels]);
|
|
48059
48056
|
var getChannels = React$2.useCallback(function (text) { return __awaiter$1(void 0, void 0, void 0, function () {
|
|
48060
48057
|
var userResponse, channelResponse, _a, channels, users_1, users, error_1;
|
|
48061
48058
|
var _b, _c, _d, _e, _f, _g;
|
|
@@ -48094,7 +48091,7 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
48094
48091
|
return [2 /*return*/];
|
|
48095
48092
|
}
|
|
48096
48093
|
});
|
|
48097
|
-
}); }, [client, searching]);
|
|
48094
|
+
}); }, [client, searching, searchForChannels]);
|
|
48098
48095
|
var getChannelsThrottled = lodash_throttle(getChannels, 200);
|
|
48099
48096
|
var onSearch = React$2.useCallback(function (event) {
|
|
48100
48097
|
event.preventDefault();
|
|
@@ -48112,7 +48109,7 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
48112
48109
|
getChannelsThrottled(event.target.value);
|
|
48113
48110
|
}
|
|
48114
48111
|
onSearchCallback === null || onSearchCallback === void 0 ? void 0 : onSearchCallback(event);
|
|
48115
|
-
}, [disabled, getChannelsThrottled, searchFunction]);
|
|
48112
|
+
}, [disabled, getChannelsThrottled, onSearchCallback, searchFunction]);
|
|
48116
48113
|
return {
|
|
48117
48114
|
activateSearch: activateSearch,
|
|
48118
48115
|
clearState: clearState,
|
|
@@ -48515,7 +48512,7 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
48515
48512
|
|
|
48516
48513
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
48517
48514
|
|
|
48518
|
-
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version$1 = '10.8.
|
|
48515
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version$1 = '10.8.3';
|
|
48519
48516
|
|
|
48520
48517
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var useChat = function (_a) {
|
|
48521
48518
|
var _b, _c;
|
|
@@ -52212,7 +52209,6 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
52212
52209
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
52213
52210
|
(function (module) {
|
|
52214
52211
|
var _typeof = _typeof$3.exports["default"];
|
|
52215
|
-
|
|
52216
52212
|
function _getRequireWildcardCache(nodeInterop) {
|
|
52217
52213
|
if (typeof WeakMap !== "function") return null;
|
|
52218
52214
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -52221,31 +52217,24 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
52221
52217
|
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
52222
52218
|
})(nodeInterop);
|
|
52223
52219
|
}
|
|
52224
|
-
|
|
52225
52220
|
function _interopRequireWildcard(obj, nodeInterop) {
|
|
52226
52221
|
if (!nodeInterop && obj && obj.__esModule) {
|
|
52227
52222
|
return obj;
|
|
52228
52223
|
}
|
|
52229
|
-
|
|
52230
52224
|
if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
|
|
52231
52225
|
return {
|
|
52232
52226
|
"default": obj
|
|
52233
52227
|
};
|
|
52234
52228
|
}
|
|
52235
|
-
|
|
52236
52229
|
var cache = _getRequireWildcardCache(nodeInterop);
|
|
52237
|
-
|
|
52238
52230
|
if (cache && cache.has(obj)) {
|
|
52239
52231
|
return cache.get(obj);
|
|
52240
52232
|
}
|
|
52241
|
-
|
|
52242
52233
|
var newObj = {};
|
|
52243
52234
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
52244
|
-
|
|
52245
52235
|
for (var key in obj) {
|
|
52246
52236
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
52247
52237
|
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
52248
|
-
|
|
52249
52238
|
if (desc && (desc.get || desc.set)) {
|
|
52250
52239
|
Object.defineProperty(newObj, key, desc);
|
|
52251
52240
|
} else {
|
|
@@ -52253,16 +52242,12 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
52253
52242
|
}
|
|
52254
52243
|
}
|
|
52255
52244
|
}
|
|
52256
|
-
|
|
52257
52245
|
newObj["default"] = obj;
|
|
52258
|
-
|
|
52259
52246
|
if (cache) {
|
|
52260
52247
|
cache.set(obj, newObj);
|
|
52261
52248
|
}
|
|
52262
|
-
|
|
52263
52249
|
return newObj;
|
|
52264
52250
|
}
|
|
52265
|
-
|
|
52266
52251
|
module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
52267
52252
|
} (interopRequireWildcard));
|
|
52268
52253
|
|