stream-chat-react 10.7.6 → 10.8.1
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 +148 -31
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +4 -4
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/AutoCompleteTextarea/Textarea.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Textarea.js +48 -6
- package/dist/components/ChannelList/utils.d.ts +6 -0
- package/dist/components/ChannelList/utils.d.ts.map +1 -1
- package/dist/components/ChannelList/utils.js +24 -3
- package/dist/components/MessageInput/MessageInput.d.ts +2 -0
- package/dist/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useMessageInputState.js +2 -2
- package/dist/index.cjs.js +86 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/utils/browsers.d.ts +2 -0
- package/dist/utils/browsers.d.ts.map +1 -0
- package/dist/utils/browsers.js +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -12345,7 +12345,7 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
12345
12345
|
return v instanceof DOMException && (v.name === "SecurityError" || v.code === v.SECURITY_ERR);
|
|
12346
12346
|
}
|
|
12347
12347
|
|
|
12348
|
-
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var _excluded$
|
|
12348
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var _excluded$3 = ["children"],
|
|
12349
12349
|
_excluded2$1 = ["open"],
|
|
12350
12350
|
_excluded3$1 = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"],
|
|
12351
12351
|
_excluded4$1 = ["refKey", "onChange", "onClick"];
|
|
@@ -12376,7 +12376,7 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
12376
12376
|
|
|
12377
12377
|
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12378
12378
|
|
|
12379
|
-
function _objectWithoutProperties$
|
|
12379
|
+
function _objectWithoutProperties$2(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$3(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12380
12380
|
|
|
12381
12381
|
function _objectWithoutPropertiesLoose$3(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12382
12382
|
/**
|
|
@@ -12396,11 +12396,11 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
12396
12396
|
|
|
12397
12397
|
var Dropzone$1 = /*#__PURE__*/React$2.forwardRef(function (_ref, ref) {
|
|
12398
12398
|
var children = _ref.children,
|
|
12399
|
-
params = _objectWithoutProperties$
|
|
12399
|
+
params = _objectWithoutProperties$2(_ref, _excluded$3);
|
|
12400
12400
|
|
|
12401
12401
|
var _useDropzone = useDropzone$1(params),
|
|
12402
12402
|
open = _useDropzone.open,
|
|
12403
|
-
props = _objectWithoutProperties$
|
|
12403
|
+
props = _objectWithoutProperties$2(_useDropzone, _excluded2$1);
|
|
12404
12404
|
|
|
12405
12405
|
React$2.useImperativeHandle(ref, function () {
|
|
12406
12406
|
return {
|
|
@@ -13139,7 +13139,7 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
13139
13139
|
onDragOver = _ref2.onDragOver,
|
|
13140
13140
|
onDragLeave = _ref2.onDragLeave,
|
|
13141
13141
|
onDrop = _ref2.onDrop,
|
|
13142
|
-
rest = _objectWithoutProperties$
|
|
13142
|
+
rest = _objectWithoutProperties$2(_ref2, _excluded3$1);
|
|
13143
13143
|
|
|
13144
13144
|
return _objectSpread$4(_objectSpread$4(_defineProperty$2({
|
|
13145
13145
|
onKeyDown: composeKeyboardHandler(composeEventHandlers$1(onKeyDown, onKeyDownCb)),
|
|
@@ -13166,7 +13166,7 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
13166
13166
|
refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey,
|
|
13167
13167
|
onChange = _ref3.onChange,
|
|
13168
13168
|
onClick = _ref3.onClick,
|
|
13169
|
-
rest = _objectWithoutProperties$
|
|
13169
|
+
rest = _objectWithoutProperties$2(_ref3, _excluded4$1);
|
|
13170
13170
|
|
|
13171
13171
|
var inputProps = _defineProperty$2({
|
|
13172
13172
|
accept: accept,
|
|
@@ -37299,6 +37299,58 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37299
37299
|
}));
|
|
37300
37300
|
};
|
|
37301
37301
|
|
|
37302
|
+
var objectWithoutProperties = {exports: {}};
|
|
37303
|
+
|
|
37304
|
+
var objectWithoutPropertiesLoose = {exports: {}};
|
|
37305
|
+
|
|
37306
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
37307
|
+
(function (module) {
|
|
37308
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
37309
|
+
if (source == null) return {};
|
|
37310
|
+
var target = {};
|
|
37311
|
+
var sourceKeys = Object.keys(source);
|
|
37312
|
+
var key, i;
|
|
37313
|
+
|
|
37314
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
37315
|
+
key = sourceKeys[i];
|
|
37316
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
37317
|
+
target[key] = source[key];
|
|
37318
|
+
}
|
|
37319
|
+
|
|
37320
|
+
return target;
|
|
37321
|
+
}
|
|
37322
|
+
|
|
37323
|
+
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37324
|
+
} (objectWithoutPropertiesLoose));
|
|
37325
|
+
|
|
37326
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
37327
|
+
(function (module) {
|
|
37328
|
+
var objectWithoutPropertiesLoose$1 = objectWithoutPropertiesLoose.exports;
|
|
37329
|
+
|
|
37330
|
+
function _objectWithoutProperties(source, excluded) {
|
|
37331
|
+
if (source == null) return {};
|
|
37332
|
+
var target = objectWithoutPropertiesLoose$1(source, excluded);
|
|
37333
|
+
var key, i;
|
|
37334
|
+
|
|
37335
|
+
if (Object.getOwnPropertySymbols) {
|
|
37336
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
37337
|
+
|
|
37338
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
37339
|
+
key = sourceSymbolKeys[i];
|
|
37340
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
37341
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
37342
|
+
target[key] = source[key];
|
|
37343
|
+
}
|
|
37344
|
+
}
|
|
37345
|
+
|
|
37346
|
+
return target;
|
|
37347
|
+
}
|
|
37348
|
+
|
|
37349
|
+
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37350
|
+
} (objectWithoutProperties));
|
|
37351
|
+
|
|
37352
|
+
var _objectWithoutProperties$1 = /*@__PURE__*/getDefaultExportFromCjs(objectWithoutProperties.exports);
|
|
37353
|
+
|
|
37302
37354
|
var _extends$2 = {exports: {}};
|
|
37303
37355
|
|
|
37304
37356
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
@@ -37980,6 +38032,8 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
37980
38032
|
};
|
|
37981
38033
|
var CommandItem = React__default["default"].memo(UnMemoizedCommandItem);
|
|
37982
38034
|
|
|
38035
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
38036
|
+
|
|
37983
38037
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};/**
|
|
37984
38038
|
* A round avatar image with fallback to username's first letter
|
|
37985
38039
|
*/
|
|
@@ -38035,7 +38089,16 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
38035
38089
|
};
|
|
38036
38090
|
var UserItem = React__default["default"].memo(UnMemoizedUserItem);
|
|
38037
38091
|
|
|
38038
|
-
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
38092
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
38093
|
+
|
|
38094
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var isSafari = function () {
|
|
38095
|
+
if (typeof navigator === 'undefined')
|
|
38096
|
+
return false;
|
|
38097
|
+
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent || '');
|
|
38098
|
+
};
|
|
38099
|
+
|
|
38100
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var _excluded$2 = ["onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onScroll", "onSelect"];
|
|
38101
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
38039
38102
|
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { definePropertyExports(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
38040
38103
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOfExports(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOfExports(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturnExports(this, result); }; }
|
|
38041
38104
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
@@ -38411,7 +38474,13 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
38411
38474
|
// that was actually clicked. If we clicked inside the auto-select dropdown, then
|
|
38412
38475
|
// that's not a blur, from the auto-select point of view, so then do nothing.
|
|
38413
38476
|
var el = e.relatedTarget;
|
|
38414
|
-
|
|
38477
|
+
// If this is a blur event in Safari, then relatedTarget is never a dropdown item, but a common parent
|
|
38478
|
+
// of textarea and dropdown container. That means that dropdownRef will not contain its parent and the
|
|
38479
|
+
// autocomplete will be closed before onclick handler can be invoked selecting an item.
|
|
38480
|
+
// It seems that Safari has different implementation determining the relatedTarget node than Chrome and Firefox.
|
|
38481
|
+
// Therefore, if focused away in Safari, the dropdown will be kept rendered until pressing Esc or selecting and item from it.
|
|
38482
|
+
var focusedAwayInSafari = isSafari() && e.type === 'blur';
|
|
38483
|
+
if (_this.dropdownRef && el instanceof Node && _this.dropdownRef.contains(el) || focusedAwayInSafari) {
|
|
38415
38484
|
return;
|
|
38416
38485
|
}
|
|
38417
38486
|
if (closeOnClickOutside) _this._closeAutocomplete();
|
|
@@ -38543,6 +38612,15 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
38543
38612
|
containerClassName = _this$props8.containerClassName,
|
|
38544
38613
|
containerStyle = _this$props8.containerStyle,
|
|
38545
38614
|
style = _this$props8.style;
|
|
38615
|
+
var _ref = this.props.additionalTextareaProps || {},
|
|
38616
|
+
_onBlur = _ref.onBlur,
|
|
38617
|
+
_onChange = _ref.onChange,
|
|
38618
|
+
_onClick = _ref.onClick,
|
|
38619
|
+
_onFocus = _ref.onFocus,
|
|
38620
|
+
_onKeyDown = _ref.onKeyDown,
|
|
38621
|
+
_onScroll = _ref.onScroll,
|
|
38622
|
+
_onSelect = _ref.onSelect,
|
|
38623
|
+
restAdditionalTextareaProps = _objectWithoutProperties$1(_ref, _excluded$2);
|
|
38546
38624
|
var maxRows = this.props.maxRows;
|
|
38547
38625
|
var _this$state7 = this.state,
|
|
38548
38626
|
dataLoading = _this$state7.dataLoading,
|
|
@@ -38563,21 +38641,43 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
38563
38641
|
}, this._cleanUpProps(), {
|
|
38564
38642
|
className: clsx('rta__textarea', className),
|
|
38565
38643
|
maxRows: maxRows,
|
|
38566
|
-
onBlur:
|
|
38567
|
-
|
|
38568
|
-
|
|
38569
|
-
|
|
38570
|
-
|
|
38571
|
-
|
|
38572
|
-
|
|
38573
|
-
|
|
38574
|
-
|
|
38575
|
-
|
|
38576
|
-
|
|
38644
|
+
onBlur: function onBlur(e) {
|
|
38645
|
+
_this2._onClickAndBlurHandler(e);
|
|
38646
|
+
_onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e);
|
|
38647
|
+
},
|
|
38648
|
+
onChange: function onChange(e) {
|
|
38649
|
+
_this2._changeHandler(e);
|
|
38650
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(e);
|
|
38651
|
+
},
|
|
38652
|
+
onClick: function onClick(e) {
|
|
38653
|
+
_this2._onClickAndBlurHandler(e);
|
|
38654
|
+
_onClick === null || _onClick === void 0 ? void 0 : _onClick(e);
|
|
38655
|
+
},
|
|
38656
|
+
onFocus: function onFocus(e) {
|
|
38657
|
+
var _this2$props$onFocus, _this2$props;
|
|
38658
|
+
(_this2$props$onFocus = (_this2$props = _this2.props).onFocus) === null || _this2$props$onFocus === void 0 ? void 0 : _this2$props$onFocus.call(_this2$props, e);
|
|
38659
|
+
_onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(e);
|
|
38660
|
+
},
|
|
38661
|
+
onKeyDown: function onKeyDown(e) {
|
|
38662
|
+
_this2._handleKeyDown(e);
|
|
38663
|
+
_onKeyDown === null || _onKeyDown === void 0 ? void 0 : _onKeyDown(e);
|
|
38664
|
+
},
|
|
38665
|
+
onScroll: function onScroll(e) {
|
|
38666
|
+
_this2._onScrollHandler(e);
|
|
38667
|
+
_onScroll === null || _onScroll === void 0 ? void 0 : _onScroll(e);
|
|
38668
|
+
},
|
|
38669
|
+
onSelect: function onSelect(e) {
|
|
38670
|
+
_this2._selectHandler(e);
|
|
38671
|
+
_onSelect === null || _onSelect === void 0 ? void 0 : _onSelect(e);
|
|
38672
|
+
},
|
|
38673
|
+
ref: function ref(_ref2) {
|
|
38674
|
+
var _this2$props2;
|
|
38675
|
+
(_this2$props2 = _this2.props) === null || _this2$props2 === void 0 ? void 0 : _this2$props2.innerRef(_ref2);
|
|
38676
|
+
_this2.textareaRef = _ref2;
|
|
38577
38677
|
},
|
|
38578
38678
|
style: style,
|
|
38579
38679
|
value: value
|
|
38580
|
-
},
|
|
38680
|
+
}, restAdditionalTextareaProps, {
|
|
38581
38681
|
defaultValue: undefined
|
|
38582
38682
|
})));
|
|
38583
38683
|
}
|
|
@@ -45651,9 +45751,9 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
45651
45751
|
* hook for MessageInput state
|
|
45652
45752
|
*/
|
|
45653
45753
|
var useMessageInputState = function (props) {
|
|
45654
|
-
var additionalTextareaProps = props.additionalTextareaProps, closeEmojiPickerOnClick = props.closeEmojiPickerOnClick, message = props.message;
|
|
45754
|
+
var additionalTextareaProps = props.additionalTextareaProps, closeEmojiPickerOnClick = props.closeEmojiPickerOnClick, getDefaultValue = props.getDefaultValue, message = props.message;
|
|
45655
45755
|
var _a = useChannelStateContext('useMessageInputState'), _b = _a.channelCapabilities, channelCapabilities = _b === void 0 ? {} : _b, channelConfig = _a.channelConfig;
|
|
45656
|
-
var defaultValue = additionalTextareaProps === null || additionalTextareaProps === void 0 ? void 0 : additionalTextareaProps.defaultValue;
|
|
45756
|
+
var defaultValue = (getDefaultValue === null || getDefaultValue === void 0 ? void 0 : getDefaultValue()) || (additionalTextareaProps === null || additionalTextareaProps === void 0 ? void 0 : additionalTextareaProps.defaultValue);
|
|
45657
45757
|
var initialStateValue = message ||
|
|
45658
45758
|
(Array.isArray(defaultValue)
|
|
45659
45759
|
? { text: defaultValue.join('') }
|
|
@@ -47471,16 +47571,37 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
47471
47571
|
}, [customHandler]);
|
|
47472
47572
|
};
|
|
47473
47573
|
|
|
47474
|
-
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{}
|
|
47475
|
-
|
|
47574
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};/**
|
|
47575
|
+
* prevent from duplicate invocation of channel.watch()
|
|
47576
|
+
* when events 'notification.message_new' and 'notification.added_to_channel' arrive at the same time
|
|
47577
|
+
*/
|
|
47578
|
+
var WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL = {};
|
|
47579
|
+
/**
|
|
47580
|
+
* Calls channel.watch() if it was not already recently called. Waits for watch promise to resolve even if it was invoked previously.
|
|
47581
|
+
* @param client
|
|
47582
|
+
* @param type
|
|
47583
|
+
* @param id
|
|
47584
|
+
*/
|
|
47585
|
+
var getChannel = function (client, type, id) { return __awaiter$1(void 0, void 0, void 0, function () {
|
|
47586
|
+
var channel, queryPromise;
|
|
47476
47587
|
return __generator$1(this, function (_a) {
|
|
47477
47588
|
switch (_a.label) {
|
|
47478
47589
|
case 0:
|
|
47479
47590
|
channel = client.channel(type, id);
|
|
47480
|
-
|
|
47591
|
+
queryPromise = WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[channel.cid];
|
|
47592
|
+
if (!queryPromise) return [3 /*break*/, 2];
|
|
47593
|
+
return [4 /*yield*/, queryPromise];
|
|
47481
47594
|
case 1:
|
|
47482
47595
|
_a.sent();
|
|
47483
|
-
return [
|
|
47596
|
+
return [3 /*break*/, 4];
|
|
47597
|
+
case 2:
|
|
47598
|
+
WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[channel.cid] = channel.watch();
|
|
47599
|
+
return [4 /*yield*/, WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[channel.cid]];
|
|
47600
|
+
case 3:
|
|
47601
|
+
_a.sent();
|
|
47602
|
+
WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[channel.cid] = undefined;
|
|
47603
|
+
_a.label = 4;
|
|
47604
|
+
case 4: return [2 /*return*/, channel];
|
|
47484
47605
|
}
|
|
47485
47606
|
});
|
|
47486
47607
|
}); };
|
|
@@ -48394,7 +48515,7 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
48394
48515
|
|
|
48395
48516
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
48396
48517
|
|
|
48397
|
-
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version$1 = '10.
|
|
48518
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version$1 = '10.8.1';
|
|
48398
48519
|
|
|
48399
48520
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var useChat = function (_a) {
|
|
48400
48521
|
var _b, _c;
|
|
@@ -48615,8 +48736,6 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
48615
48736
|
|
|
48616
48737
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
48617
48738
|
|
|
48618
|
-
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
48619
|
-
|
|
48620
48739
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var UnMemoizedDateSeparator = function (props) {
|
|
48621
48740
|
var messageCreatedAt = props.date, formatDate = props.formatDate, _a = props.position, position = _a === void 0 ? 'right' : _a, unread = props.unread;
|
|
48622
48741
|
var _b = useTranslationContext('DateSeparator'), t = _b.t, tDateTimeParser = _b.tDateTimeParser;
|
|
@@ -51653,8 +51772,6 @@ var StreamChatReact = (function (exports, React$2, streamChat, ReactDOM) {
|
|
|
51653
51772
|
|
|
51654
51773
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
51655
51774
|
|
|
51656
|
-
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
51657
|
-
|
|
51658
51775
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var UnMemoizedWindow = function (props) {
|
|
51659
51776
|
var children = props.children, _a = props.hideOnThread, hideOnThread = _a === void 0 ? false : _a, propThread = props.thread;
|
|
51660
51777
|
var contextThread = useChannelStateContext('Window').thread;
|