whyuzeim 1.1.23 → 1.1.24
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.
|
@@ -12,7 +12,6 @@ var _asyncToGenerator = require('@babel/runtime-corejs3/helpers/esm/asyncToGener
|
|
|
12
12
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/esm/defineProperty');
|
|
13
13
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/esm/slicedToArray');
|
|
14
14
|
var _regeneratorRuntime = require('@babel/runtime-corejs3/regenerator');
|
|
15
|
-
var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
16
15
|
var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
17
16
|
var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
18
17
|
var _setInterval = require('@babel/runtime-corejs3/core-js-stable/set-interval');
|
|
@@ -138,11 +137,8 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
138
137
|
};
|
|
139
138
|
var _renderMessage = function renderMessage(msg) {
|
|
140
139
|
var cuiScrollList = document.querySelector(".cui-scrollList div");
|
|
141
|
-
console.log(_JSON$stringify(msg), 'fdsfsfsd');
|
|
142
140
|
var generatingLoader = document.querySelector("#agent-generating-loader");
|
|
143
|
-
if (cuiScrollList && generatingLoader && msg.to !== (currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.conversationId))
|
|
144
|
-
cuiScrollList.removeChild(generatingLoader);
|
|
145
|
-
}
|
|
141
|
+
if (cuiScrollList && generatingLoader && msg.to !== (currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.conversationId)) ;
|
|
146
142
|
if (msg.type === "txt") {
|
|
147
143
|
return renderTxtMsg(msg);
|
|
148
144
|
} else if (msg.type === "img") {
|
|
@@ -452,6 +448,9 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
452
448
|
return _ref4.apply(this, arguments);
|
|
453
449
|
};
|
|
454
450
|
}();
|
|
451
|
+
React.useEffect(function () {
|
|
452
|
+
console.log(currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.lastMessage, 'fdsfsfs');
|
|
453
|
+
}, [currentConversation]);
|
|
455
454
|
return /*#__PURE__*/React.createElement("div", {
|
|
456
455
|
className: "bg-[var(--im-main-backgroundColor)] im-agent-mid ".concat((_props$className = props.className) !== null && _props$className !== void 0 ? _props$className : "", " w-full h-full overflow-hidden flex flex-col")
|
|
457
456
|
}, loading ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -10,7 +10,6 @@ import _asyncToGenerator from '@babel/runtime-corejs3/helpers/esm/asyncToGenerat
|
|
|
10
10
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
11
11
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
12
12
|
import _regeneratorRuntime from '@babel/runtime-corejs3/regenerator';
|
|
13
|
-
import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
14
13
|
import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
15
14
|
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
16
15
|
import _setInterval from '@babel/runtime-corejs3/core-js-stable/set-interval';
|
|
@@ -136,11 +135,8 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
136
135
|
};
|
|
137
136
|
var _renderMessage = function renderMessage(msg) {
|
|
138
137
|
var cuiScrollList = document.querySelector(".cui-scrollList div");
|
|
139
|
-
console.log(_JSON$stringify(msg), 'fdsfsfsd');
|
|
140
138
|
var generatingLoader = document.querySelector("#agent-generating-loader");
|
|
141
|
-
if (cuiScrollList && generatingLoader && msg.to !== (currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.conversationId))
|
|
142
|
-
cuiScrollList.removeChild(generatingLoader);
|
|
143
|
-
}
|
|
139
|
+
if (cuiScrollList && generatingLoader && msg.to !== (currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.conversationId)) ;
|
|
144
140
|
if (msg.type === "txt") {
|
|
145
141
|
return renderTxtMsg(msg);
|
|
146
142
|
} else if (msg.type === "img") {
|
|
@@ -450,6 +446,9 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
450
446
|
return _ref4.apply(this, arguments);
|
|
451
447
|
};
|
|
452
448
|
}();
|
|
449
|
+
useEffect(function () {
|
|
450
|
+
console.log(currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.lastMessage, 'fdsfsfs');
|
|
451
|
+
}, [currentConversation]);
|
|
453
452
|
return /*#__PURE__*/React.createElement("div", {
|
|
454
453
|
className: "bg-[var(--im-main-backgroundColor)] im-agent-mid ".concat((_props$className = props.className) !== null && _props$className !== void 0 ? _props$className : "", " w-full h-full overflow-hidden flex flex-col")
|
|
455
454
|
}, loading ? /*#__PURE__*/React.createElement("div", {
|