stream-chat-react 11.12.0 → 11.12.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/{Window-e8323a54.js → Window-40a618cb.js} +2 -2
- package/dist/browser.full-bundle.js +3 -3
- package/dist/browser.full-bundle.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/components/AutoCompleteTextarea/Textarea.d.ts +2 -2
- package/dist/components/AutoCompleteTextarea/Textarea.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Textarea.js +23 -13
- package/dist/components/Emojis/index.cjs.js +1 -1
- package/dist/css/v2/index.css +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/scss/v2/Message/Message-layout.scss +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -33185,12 +33185,12 @@ class ReactTextareaAutocomplete extends React__default["default"].Component {
|
|
|
33185
33185
|
if (event.key === ' ') return this._onSpace(event);
|
|
33186
33186
|
if (event.key === 'Escape') return this._closeAutocomplete();
|
|
33187
33187
|
});
|
|
33188
|
-
_defineProperty__default["default"](this, "_onEnter", event => {
|
|
33188
|
+
_defineProperty__default["default"](this, "_onEnter", async event => {
|
|
33189
33189
|
if (!this.textareaRef) return;
|
|
33190
33190
|
const trigger = this.state.currentTrigger;
|
|
33191
33191
|
if (!trigger || !this.state.data) {
|
|
33192
33192
|
// trigger a submit
|
|
33193
|
-
this._replaceWord();
|
|
33193
|
+
await this._replaceWord();
|
|
33194
33194
|
if (this.textareaRef) {
|
|
33195
33195
|
this.textareaRef.selectionEnd = 0;
|
|
33196
33196
|
}
|
|
@@ -44494,12 +44494,12 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, ReactDOM, streamC
|
|
|
44494
44494
|
if (event.key === ' ') return this._onSpace(event);
|
|
44495
44495
|
if (event.key === 'Escape') return this._closeAutocomplete();
|
|
44496
44496
|
});
|
|
44497
|
-
_defineProperty(this, "_onEnter", event => {
|
|
44497
|
+
_defineProperty(this, "_onEnter", async event => {
|
|
44498
44498
|
if (!this.textareaRef) return;
|
|
44499
44499
|
const trigger = this.state.currentTrigger;
|
|
44500
44500
|
if (!trigger || !this.state.data) {
|
|
44501
44501
|
// trigger a submit
|
|
44502
|
-
this._replaceWord();
|
|
44502
|
+
await this._replaceWord();
|
|
44503
44503
|
if (this.textareaRef) {
|
|
44504
44504
|
this.textareaRef.selectionEnd = 0;
|
|
44505
44505
|
}
|
|
@@ -59680,7 +59680,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, ReactDOM, streamC
|
|
|
59680
59680
|
|
|
59681
59681
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
|
|
59682
59682
|
|
|
59683
|
-
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version$1 = '11.12.
|
|
59683
|
+
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version$1 = '11.12.1';
|
|
59684
59684
|
|
|
59685
59685
|
window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var useChat = function (_a) {
|
|
59686
59686
|
var _b, _c;
|